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

From Prime-Wiki
Revision as of 18:19, 2 October 2022 by Happy5214 (talk | contribs) (Moving to new subcategory)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The law of quadratic reciprocity predicts whether an odd prime number p is a quadratic residue or non-residue modulo another odd prime number q if we know whether q is a quadratic residue or non-residue modulo p.

  • If at least one of p or q are congruent to 1 mod 4: p is a quadratic residue modulo q if and only if q is a quadratic residue modulo p.
  • If both of p or q are congruent to 3 mod 4: p is a quadratic residue modulo q if and only if q is a quadratic non-residue modulo p.

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 p.

  • 2 is a quadratic residue modulo p if and only if p is congruent to 1 or 7 (mod 8).
  • -1 is a quadratic residue modulo p if and only if p is congruent to 1 (mod 4).

External links