Proof of Euler's criterion by counting quadratic residues
Builds on Legendre symbolQuadratic residueFermat's little theoremEuclid's lemmaIntegers modulo a prime form a fieldA polynomial over a field has at most as many roots as its degreeCongruence is compatible with powersCongruence modulo n
Proof
- Let be an odd prime and an integer. Let be the Legendre symbol. Note that is an integer.
- If , then . So . Assume from now on that .
- Let . By Fermat's little theorem, . So .
- By Euclid's lemma, or . These two cases exclude each other, because .
- Suppose is a quadratic residue, so for an integer . Then , since .
- Then , using powers of congruences and Fermat's little theorem. So .
- Now we count residues. Let be the set of nonzero classes in that are squares. Each such class is with .
- Since , each class in is for some with .
- Let . If , then . But and , so this contradicts Euclid's lemma.
- So the classes with are distinct, and has exactly elements.
- By steps 5 and 6, every class in is a root of the polynomial over .
- The ring is a field. So this polynomial has at most roots. By steps 10 and 11, its roots are exactly the elements of .
- Suppose is a quadratic nonresidue. Then , so is not a root, and .
- By step 4, .
- In all cases, .
Idea
The number squares to , so it is modulo . Residues give at once by Fermat. There are exactly nonzero residues, and they already fill all the roots of , so a nonresidue must give .
Reading path
To understand this page from the ground up, read these 73 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of cancellation in an integral domain, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Fermat's little theorem by rearrangement, Proof of Euclid's lemma, Proof that R[x] is an integral domain iff R is, Proof of the degree of a product over an integral domain, Proof of strong induction from ordinary induction, Proof that the integers modulo a prime form a field, Proof that congruence is compatible with addition, Proof that a polynomial over a field has at most as many roots as its degree, Proof of the remainder theorem, Proof that congruence is compatible with multiplication, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the factor theorem, Proof that congruence is compatible with powers.
- Definition by recursion concept
- Divisibility definition
- Group concept
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Congruence modulo n definition
- Greatest common divisor definition
- Prime number definition
- Ring definition
- Successor function definition
- Quadratic residue definition
- Residue class definition
- Proof that congruence is compatible with addition proof
- Proof that congruence is compatible with multiplication proof
- Coprime integers definition
- Addition of natural numbers definition
- Commutative ring definition
- Polynomial ring definition
- Ring homomorphism definition
- Unit of a ring definition
- Zero divisor definition
- The successor function is injective statement
- Zero is not a successor statement
- Congruence is compatible with addition statement
- Legendre symbol definition
- Congruence is compatible with multiplication statement
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- Divisibility in a commutative ring definition
- Degree of a polynomial definition
- Polynomial evaluation definition
- Field definition
- Integral domain definition
- Integers modulo n definition
- Proof that congruence is compatible with powers proof
- Commutativity of addition statement
- Leading coefficient definition
- Proof of cancellation in an integral domain proof
- Proof of strong induction from ordinary induction proof
- Root of a polynomial definition
- Evaluation homomorphism definition
- Congruence is compatible with powers statement
- Monic polynomial definition
- Strong induction statement
- Multiplicity of a root definition
- Proof of the degree of a product over an integral domain proof
- Cancellation in an integral domain statement
- Proof of the remainder theorem proof
- Proof of the well-ordering principle from strong induction proof
- Division algorithm for polynomials statement
- Degree of a product statement
- Well-ordering principle statement
- Remainder theorem statement
- Proof that R[x] is an integral domain iff R is proof
- Proof of the division algorithm proof
- Proof of the factor theorem proof
- R[x] is an integral domain iff R is statement
- Division algorithm statement
- Factor theorem statement
- Proof of Bézout's identity proof
- Proof that a polynomial over a field has at most as many roots as its degree proof
- Bézout's identity statement
- A polynomial over a field has at most as many roots as its degree statement
- Proof that the integers modulo a prime form a field proof
- Proof of the generalized Euclid's lemma proof
- Integers modulo a prime form a field statement
- Generalized Euclid's lemma statement
- Proof of Euclid's lemma proof
- Euclid's lemma statement
- Proof of Fermat's little theorem by rearrangement proof
- Fermat's little theorem statement
- Proof of Euler's criterion by counting quadratic residues proof
Where this leads
31 pages build on this one.
- −1 is a square modulo p if and only if p is not 3 modulo 4
- Gauss's lemma on quadratic residues
- Fermat's theorem on sums of two squares
- Sum of two squares theorem
- Lucas–Lehmer test
- Pépin's test
- Law of quadratic reciprocity
- Euler's criterion
- Multiplicativity of the Legendre symbol
- First supplement to quadratic reciprocity
- A prime is a Gaussian prime if and only if it is 3 modulo 4
- Eisenstein's lemma
- Quadratic reciprocity for the Jacobi symbol
- Second supplement to quadratic reciprocity
- Proof of Gauss's lemma on quadratic residues
- Proof of Eisenstein's lemma
- Proof of the sum of two squares theorem
- Proof of Pépin's test
- Artin reciprocity law
- Proof of Fermat's theorem on sums of two squares by Thue's lemma
- Proof of the Lucas–Lehmer test
- Proof of the law of quadratic reciprocity by counting lattice points
- Proof that −1 is a square modulo p if and only if p is not 3 modulo 4
- Proof of the multiplicativity of the Legendre symbol from Euler's criterion
- Cubic reciprocity
- Proof that a prime is a Gaussian prime if and only if it is 3 modulo 4
- Hilbert class field
- Proof of quadratic reciprocity for the Jacobi symbol
- Proof of the second supplement to quadratic reciprocity from Gauss's lemma
- Proof of the first supplement to quadratic reciprocity from Euler's criterion
- Quartic reciprocity
Further reading
About this page
| Tag | H2SRDFKTWD |
|---|---|
| URI | m2://H2SRDFKTWD |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A15 |
| Proves | Euler's criterion |
| Uses | Legendre symbol, Quadratic residue, Fermat's little theorem, Euclid's lemma, Integers modulo a prime form a field, A polynomial over a field has at most as many roots as its degree, Congruence is compatible with powers, Congruence modulo n |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.