Euler criterion gives an efficient way to decide whether an integer is a square modulo an odd prime. Let $p$ be an odd prime and let $a$ be an integer not divisible by $p$....
Detecting Quadratic Residues
Euler criterion gives an efficient way to decide whether an integer is a square modulo an odd prime. Let be an odd prime and let be an integer not divisible by . Then is either a quadratic residue modulo or a quadratic nonresidue modulo .
The criterion states that this distinction is detected by the power
More precisely,
Equivalently, using the Legendre symbol,
Statement of the Theorem
Theorem. Let be an odd prime and let with . Then
This is Euler criterion.
It turns the problem of solving
into a modular exponentiation problem.
Proof
The nonzero residue classes modulo form a multiplicative group
of order
By Fermat little theorem,
Therefore
So
or
Now suppose is a quadratic residue modulo . Then there exists an integer such that
Hence
So quadratic residues give the value .
It remains to see that nonresidues give the value . Since exactly half of the nonzero residue classes modulo are quadratic residues, there are
quadratic residues. The polynomial
has degree , and we have already found roots, namely the nonzero quadratic residues. Therefore these are all its roots in .
Thus any nonresidue cannot satisfy
Since the only possible values are and , every quadratic nonresidue satisfies
This proves the theorem.
Example
Determine whether is a quadratic residue modulo .
Compute
Modulo ,
so
Therefore
Hence is a quadratic residue modulo . Indeed,
and also
Example of a Nonresidue
Determine whether is a quadratic residue modulo .
Compute
Therefore
So is a quadratic nonresidue modulo . The congruence
has no solution.
Computational Use
Euler criterion is effective because modular exponentiation can be performed quickly by repeated squaring.
For large primes, checking all squares modulo would be inefficient. Euler criterion reduces the problem to computing one power modulo .
For example, to test whether is a quadratic residue modulo a large prime , compute
If the result is , then is a residue. If the result is , which represents , then is a nonresidue.
This is useful in computational number theory, cryptography, and primality testing.
Relation to Group Theory
Euler criterion reflects the structure of the cyclic group
Since this group has order , its subgroup of squares has order
The map
has kernel
so its image has exactly half of the nonzero elements.
The function
is a group homomorphism from
to
Its kernel is precisely the subgroup of squares. Thus Euler criterion identifies the quadratic residue character of the finite field.
Conceptual Meaning
Euler criterion translates a solvability question into a power congruence. Instead of asking directly whether
has a solution, it asks whether lies in the kernel of the character
This viewpoint prepares the way for quadratic reciprocity, Dirichlet characters, and the use of multiplicative characters in analytic number theory.