Motivation
The Legendre symbol
is defined only when the denominator is an odd prime. In many problems, however, one must work modulo an odd composite integer. The Jacobi symbol extends the notation of the Legendre symbol to this broader setting.
Let
be an odd integer with prime factorization
For any integer , the Jacobi symbol is defined by
When is prime, the Jacobi symbol agrees with the Legendre symbol.
First Examples
Consider
Since
we have
Now
and is not a square modulo , so
Also
so
Therefore
This does not necessarily mean that is a square modulo . Indeed, a Jacobi symbol equal to is only a necessary condition for being a quadratic residue modulo a composite modulus, not a sufficient one.
Difference from the Legendre Symbol
For an odd prime , the value
means that
has a solution.
For composite , the value
does not guarantee that
has a solution.
For example,
But is not a square modulo . The squares modulo are
Thus the Jacobi symbol behaves like a residue character, but it does not fully solve quadratic congruences for composite moduli.
Basic Properties
The Jacobi symbol inherits many formal properties from the Legendre symbol.
First, it depends only on :
Second, it is multiplicative in the numerator:
Third, it is multiplicative in the denominator:
for odd positive integers .
These properties make the Jacobi symbol computationally efficient.
Special Values
The special formulas for and remain valid for odd positive :
and
Thus
when
and equals when
Similarly,
when
and equals when
Reciprocity Law
The Jacobi symbol satisfies the same formal reciprocity law as the Legendre symbol.
If and are odd positive coprime integers, then
Equivalently,
unless both and are congruent to . In that exceptional case,
This law allows rapid computation without factoring the numerator.
Example of Computation
Compute
Using reciprocity is far better than checking squares directly.
Reduce:
Then
Each symbol can be reduced by quadratic reciprocity and modular reduction. This process eventually reduces the computation to small symbols such as
The Euclidean-algorithm-like nature of this process is one reason the Jacobi symbol is useful in computation.
Use in Primality Testing
The Jacobi symbol is central in probabilistic primality tests.
For an odd integer , Euler’s criterion suggests that if is prime, then
for all integers coprime to .
If this congruence fails for some , then is definitely composite.
This idea leads to the Solovay-Strassen primality test. The test does not prove primality in one step, but it efficiently detects many composite numbers.
Conceptual Role
The Jacobi symbol separates formal reciprocity from actual solvability of quadratic congruences. It preserves the algebraic laws of the Legendre symbol while allowing composite denominators.
This distinction is important. For prime moduli, quadratic residue theory is controlled by fields. For composite moduli, the arithmetic decomposes through prime powers, and a single symbol no longer captures all information.
The Jacobi symbol is therefore both a computational tool and a bridge from elementary congruence theory to deeper arithmetic characters.