Proof of Gauss's lemma on quadratic residues
Builds on Legendre symbolEuler's criterionEuclid's lemmaCongruence is compatible with multiplicationCongruence modulo n
Proof
- Let be an odd prime, an integer with , and . For , let be the least positive residue of modulo .
- By Euclid's lemma, , so . Since is odd, .
- Put and if . Put and if .
- Then and . Exactly of the equal , where is the number in the statement.
- The are distinct. Suppose with . Then , so . As , Euclid's lemma gives or .
- But and . So is not a multiple of , and .
- So are distinct numbers in . Hence they are in some order.
- Multiplying the congruences of step 4 with products of congruences gives .
- So . Every factor of is less than , so by Euclid's lemma. Thus .
- By Euler's criterion, .
- Since , the Legendre symbol is . Two signs that agree modulo are equal. So .
Idea
Fold each residue of into the range by replacing with when . The folded numbers are exactly , so the product of the is up to the sign . Comparing with and using Euler's criterion gives the lemma.
Reading path
To understand this page from the ground up, read these 75 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 of Euler's criterion by counting quadratic residues, 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
- Euler's criterion statement
- Proof of Gauss's lemma on quadratic residues proof
Where this leads
16 pages build on this one.
- Gauss's lemma on quadratic residues
- Lucas–Lehmer test
- Pépin's test
- Law of quadratic reciprocity
- Eisenstein's lemma
- Quadratic reciprocity for the Jacobi symbol
- Second supplement to quadratic reciprocity
- Proof of Pépin's test
- Artin reciprocity law
- Proof of the Lucas–Lehmer test
- Proof of the law of quadratic reciprocity by counting lattice points
- Cubic reciprocity
- Hilbert class field
- Proof of quadratic reciprocity for the Jacobi symbol
- Proof of the second supplement to quadratic reciprocity from Gauss's lemma
- Quartic reciprocity
Further reading
About this page
| Tag | 3HKZCMGESN |
|---|---|
| URI | m2://3HKZCMGESN |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A15 |
| Proves | Gauss's lemma on quadratic residues |
| Uses | Legendre symbol, Euler's criterion, Euclid's lemma, Congruence is compatible with multiplication, 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.