Quadratic Residues
Summary: A quadratic residue modulo is a remainder that can arise when a perfect square is divided by ; Euler uses residue tables to prove that certain two-term formulas can never be perfect squares.
Sources: chapter-2.0.5
Last updated: 2026-05-08
Definition
An integer is a quadratic residue mod if there exists an integer such that . The set of all quadratic residues mod is a proper subset of .
If a number is a perfect square, then must be a quadratic residue. Conversely, if is not a quadratic residue, then cannot be a square.
Residue Tables
Mod 3
Every integer belongs to , , or .
| Class | Square mod 3 |
|---|---|
Quadratic residues mod 3: . Residue is impossible.
Mod 4 and Mod 8
| Class | Square mod 16 |
|---|---|
Even squares: only or . Odd squares: all .
Impossible residues mod 8: , , . Impossible even residues mod 16: , , , , , .
Mod 5
| Class | Square mod 5 |
|---|---|
Quadratic residues mod 5: . Residues and are impossible.
Mod 7
| Class | Square mod 7 |
|---|---|
Quadratic residues mod 7: . Residues , , are impossible.
General Divisor (§77)
The classes and give the same square remainder . So the distinct non-zero square residues mod are .
Impossibility Test for
To show is never a square, pick a modulus and check:
- Compute all possible residues of and .
- Check that every possible sum falls outside the quadratic residues mod .
Examples from Euler:
| Formula | Modulus | Residues of sum | Verdict |
|---|---|---|---|
| (if ) | Never square | ||
| (both odd) | Never square | ||
| (two subcases) | Never square | ||
| , none in | Never square |
The general criterion (§74): is never a square for any integers , , because both coefficients are .
Historical Note
Euler’s treatment in Chapter V of Part II is an early systematic use of what later became the theory of quadratic residues. The full theory was developed by Gauss in the Disquisitiones Arithmeticae (1801), including the quadratic reciprocity law. Euler’s residue tables are a computational precursor.