Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Law of quadratic reciprocity
The law of quadratic reciprocity predicts whether an odd prime number
- If at least one of
or are congruent to 1 mod 4: is a quadratic residue modulo if and only if is a quadratic residue modulo . - If both of
or are congruent to 3 mod 4: is a quadratic residue modulo if and only if is a quadratic non-residue modulo .
This theorem was first proved by Carl Friedrich Gauss in 1801.
This does not cover the cases where we want to know whether -1 or 2 are quadratic residues or non-residues modulo
- 2 is a quadratic residue modulo
if and only if is congruent to 1 or 7 (mod 8). - -1 is a quadratic residue modulo
if and only if is congruent to 1 (mod 4).