Math 2.0

Number theory Proof

Proof that −1 is a square modulo p if and only if p is not 3 modulo 4

Builds on First supplement to quadratic reciprocityLegendre symbolQuadratic residuePrime number

Proof

  1. Let pp be a prime number. If p=2p = 2, then x=1x = 1 gives x2=1≡−1(mod2)x^2 = 1 \equiv -1 \pmod 2. Also 2≢3(mod4)2 \not\equiv 3 \pmod 4. So the statement holds for p=2p = 2.
  2. Let pp be odd. Then p≡1p \equiv 1 or p≡3(mod4)p \equiv 3 \pmod 4.
  3. There is an integer xx with x2≡−1(modp)x^2 \equiv -1 \pmod p exactly when −1-1 is a quadratic residue modulo pp.
  4. Since p∤−1p \nmid -1, this holds exactly when the Legendre symbol (−1p)\left(\frac{-1}{p}\right) equals 11.
  5. By the first supplement, (−1p)=(−1)(p−1)/2\left(\frac{-1}{p}\right) = (-1)^{(p-1)/2}. This is 11 exactly when (p−1)/2(p-1)/2 is even, that is, when 4∣p−14 \mid p - 1.
  6. So for odd pp, a solution exists exactly when p≡1(mod4)p \equiv 1 \pmod 4. By step 2, this means p≢3(mod4)p \not\equiv 3 \pmod 4.

Idea

For odd pp, the first supplement gives the answer as the sign (−1)(p−1)/2(-1)^{(p-1)/2}, which is +1+1 exactly for p≡1(mod4)p \equiv 1 \pmod 4. The prime 22 is checked by hand.

Reading path

To understand this page from the ground up, read these 77 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 first supplement to quadratic reciprocity from Euler's criterion, Proof of the factor theorem, Proof that congruence is compatible with powers.

  1. Definition by recursion concept
  2. Divisibility definition
  3. Group concept
  4. Mathematical induction concept
  5. Natural numbers object
  6. Peano axioms concept
  7. Congruence modulo n definition
  8. Greatest common divisor definition
  9. Prime number definition
  10. Ring definition
  11. Successor function definition
  12. Quadratic residue definition
  13. Residue class definition
  14. Proof that congruence is compatible with addition proof
  15. Proof that congruence is compatible with multiplication proof
  16. Coprime integers definition
  17. Addition of natural numbers definition
  18. Commutative ring definition
  19. Polynomial ring definition
  20. Ring homomorphism definition
  21. Unit of a ring definition
  22. Zero divisor definition
  23. The successor function is injective statement
  24. Zero is not a successor statement
  25. Congruence is compatible with addition statement
  26. Legendre symbol definition
  27. Congruence is compatible with multiplication statement
  28. Proof of the commutativity of addition by induction proof
  29. Order on the natural numbers definition
  30. Divisibility in a commutative ring definition
  31. Degree of a polynomial definition
  32. Polynomial evaluation definition
  33. Field definition
  34. Integral domain definition
  35. Integers modulo n definition
  36. Proof that congruence is compatible with powers proof
  37. Commutativity of addition statement
  38. Leading coefficient definition
  39. Proof of cancellation in an integral domain proof
  40. Proof of strong induction from ordinary induction proof
  41. Root of a polynomial definition
  42. Evaluation homomorphism definition
  43. Congruence is compatible with powers statement
  44. Monic polynomial definition
  45. Strong induction statement
  46. Multiplicity of a root definition
  47. Proof of the degree of a product over an integral domain proof
  48. Cancellation in an integral domain statement
  49. Proof of the remainder theorem proof
  50. Proof of the well-ordering principle from strong induction proof
  51. Division algorithm for polynomials statement
  52. Degree of a product statement
  53. Well-ordering principle statement
  54. Remainder theorem statement
  55. Proof that R[x] is an integral domain iff R is proof
  56. Proof of the division algorithm proof
  57. Proof of the factor theorem proof
  58. R[x] is an integral domain iff R is statement
  59. Division algorithm statement
  60. Factor theorem statement
  61. Proof of Bézout's identity proof
  62. Proof that a polynomial over a field has at most as many roots as its degree proof
  63. Bézout's identity statement
  64. A polynomial over a field has at most as many roots as its degree statement
  65. Proof that the integers modulo a prime form a field proof
  66. Proof of the generalized Euclid's lemma proof
  67. Integers modulo a prime form a field statement
  68. Generalized Euclid's lemma statement
  69. Proof of Euclid's lemma proof
  70. Euclid's lemma statement
  71. Proof of Fermat's little theorem by rearrangement proof
  72. Fermat's little theorem statement
  73. Proof of Euler's criterion by counting quadratic residues proof
  74. Euler's criterion statement
  75. Proof of the first supplement to quadratic reciprocity from Euler's criterion proof
  76. First supplement to quadratic reciprocity statement
  77. Proof that −1 is a square modulo p if and only if p is not 3 modulo 4 proof

Where this leads

6 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Quadratic_reciprocity, Proofs of the supplements
About this page
TagDZ5NDRMMGR
URIm2://DZ5NDRMMGR
Kindproof
WritingW0 stub
MSC11A15
Proves−1 is a square modulo p if and only if p is not 3 modulo 4
UsesFirst supplement to quadratic reciprocity, Legendre symbol, Quadratic residue, Prime number
Changed4 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.