proof of Euler’s criterion
(All congruences are modulo for the proof; omitted for clarity.)
Let
Then by Fermat’s Little Theorem. Thus:
Now consider the two possibilities:
- •
If is a quadratic residue
then by definition, for some. Hence:
- •
It remains to show that if is a quadraticnon-residue. We can proceed in two ways:
- Proof (a)
Partition
the set intopairs such that. Then and mustalways be distinct since is a non-residue. Hence, the product
ofthe union of the partitions is:
and the result follows by Wilson’s Theorem.
- Proof (b)
The equation:
has at most roots. But we already know of distinct roots of the above equation, these being the quadratic residues modulo. So can’t be a root, yet . Thus we must have:
QED.