Lably
Skip to content

Jacobi symbol

Generalization of the Legendre symbol in number theory

  • 10 min read
  • 5 chapters
Carl Gustav Jacob Jacobi was not only a great German mathematician but also considered by many as the most inspiring teacher of his time.
Unknown author Unknown author · Public domain

Related on Lably

Through Modular arithmetic, Primality test and Integer factorization

Definition

For any integer a and any positive odd integer n, the Jacobi symbol (⁠a/n⁠) is defined as the product of the Legendre symbols corresponding to the prime factors of n:

(an):=(ap1)α1(ap2)α2⋯(apk)αk,

where

n=p1α1p2α2⋯pkαk

is the prime factorization of n.

The Legendre symbol (⁠a/p⁠) is defined for all integers a and all odd primes p by

(ap):={0if a≡0(modp),1if a≢0(modp) and for some integer x:a≡x2(modp),−1if a≢0(modp) and there is no such x.

Following the normal convention for the empty product, (⁠a/1⁠) = 1.

When the lower argument is an odd prime, the Jacobi symbol is equal to the Legendre symbol.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Number theory