Definition
Let be an odd prime and let . The Legendre symbol is defined by
genui{“math_block_widget_always_prefetch_v2”:{“content”:"\left(\frac{a}{p}\right)"} }
Thus the Legendre symbol encodes whether the congruence
has a solution.
For example, modulo , the quadratic residues are
Hence
The Legendre symbol provides compact notation for quadratic residue questions.
Dependence on Residue Class
The value of
depends only on the residue class of modulo .
Indeed, if
then the congruences
and
are equivalent. Therefore
For instance,
so
Euler’s Criterion
A fundamental characterization of the Legendre symbol is given by Euler’s criterion.
Theorem. Let be an odd prime and let be an integer with
Then
Since the Legendre symbol takes only the values , Euler’s criterion gives
if is a quadratic residue, and
otherwise.
Example
Determine whether is a quadratic residue modulo .
Compute
Hence
Therefore is a quadratic nonresidue modulo .
Multiplicativity
The Legendre symbol satisfies an important multiplicative property.
Theorem.
$$ \left(\frac{ab}{p}\right)
\left(\frac{a}{p}\right) \left(\frac{b}{p}\right). $$
This property allows complicated symbols to be decomposed into simpler ones.
Example
Compute
Since
we have
$$ \left(\frac{6}{11}\right)
\left(\frac{2}{11}\right) \left(\frac{3}{11}\right). $$
Now:
so
Hence is a quadratic nonresidue modulo .
The Symbols and
Two special cases occur frequently.
Residues of
The congruence
has a solution exactly when
Equivalently,
$$ \left(\frac{-1}{p}\right)
(-1)^{(p-1)/2}. $$
Thus
Residues of
The value of
depends on :
$$ \left(\frac{2}{p}\right)
(-1)^{(p^2-1)/8}. $$
Hence:
These formulas become important ingredients in quadratic reciprocity.
Counting Solutions
The Legendre symbol also helps count solutions of quadratic congruences.
If
then:
- if
the congruence
has exactly two solutions modulo ,
- if
it has none.
This follows because if is a solution, then so is , and these are distinct modulo an odd prime.
Connection with Finite Fields
The nonzero elements of the finite field
form a multiplicative cyclic group of order
An element is a quadratic residue precisely when it is a square in this group.
Thus the Legendre symbol detects whether an element lies in the subgroup of squares, which has index .
This group-theoretic viewpoint generalizes naturally to higher residue symbols and algebraic number fields.
Toward Quadratic Reciprocity
The central question of quadratic residue theory is:
Given distinct odd primes and , when is
a quadratic residue modulo ?
The answer is provided by the quadratic reciprocity law, discovered by entity[“people”,“Carl Friedrich Gauss”,“German mathematician”].
The Legendre symbol provides the language in which quadratic reciprocity is naturally expressed.