Math 2.0

Number theory Proof

Proof of the second supplement to quadratic reciprocity from Gauss's lemma

Builds on Legendre symbolGauss's lemma on quadratic residuesFloor function

Proof

  1. Let pp be an odd prime and h=(p−1)/2h = (p-1)/2. Since p∤2p \nmid 2, Gauss's lemma gives (2p)=(−1)n\left(\frac{2}{p}\right) = (-1)^n. Here nn counts the k∈{1,…,h}k \in \set{1, \dots, h} whose residue of 2k2k exceeds p/2p/2.
  2. For 1≤k≤h1 \le k \le h, we have 2≤2k≤p−12 \le 2k \le p - 1. So the least positive residue of 2k2k is 2k2k itself.
  3. So nn counts the integers kk with p/4<k≤hp/4 < k \le h. An integer kk satisfies k≤p/4k \le p/4 exactly when k≤⌊p/4⌋k \le \lfloor p/4 \rfloor, by the definition of the floor function.
  4. Since ⌊p/4⌋≤p/4<h\lfloor p/4 \rfloor \le p/4 < h for p≥3p \ge 3, this gives n=h−⌊p/4⌋n = h - \lfloor p/4 \rfloor.
  5. Write p=8m+cp = 8m + c with m≥0m \ge 0 and c∈{1,3,5,7}c \in \set{1, 3, 5, 7}. We compute nn and N=(p2−1)/8N = (p^2 - 1)/8 in each case.
  6. If c=1c = 1: h=4mh = 4m and ⌊p/4⌋=2m\lfloor p/4 \rfloor = 2m, so n=2mn = 2m. Also N=8m2+2mN = 8m^2 + 2m. Both are even.
  7. If c=3c = 3: h=4m+1h = 4m + 1 and ⌊p/4⌋=2m\lfloor p/4 \rfloor = 2m, so n=2m+1n = 2m + 1. Also N=8m2+6m+1N = 8m^2 + 6m + 1. Both are odd.
  8. If c=5c = 5: h=4m+2h = 4m + 2 and ⌊p/4⌋=2m+1\lfloor p/4 \rfloor = 2m + 1, so n=2m+1n = 2m + 1. Also N=8m2+10m+3N = 8m^2 + 10m + 3. Both are odd.
  9. If c=7c = 7: h=4m+3h = 4m + 3 and ⌊p/4⌋=2m+1\lfloor p/4 \rfloor = 2m + 1, so n=2m+2n = 2m + 2. Also N=8m2+14m+6N = 8m^2 + 14m + 6. Both are even.
  10. In every case nn and (p2−1)/8(p^2 - 1)/8 have the same parity. So the Legendre symbol satisfies (2p)=(−1)n=(−1)(p2−1)/8\left(\frac{2}{p}\right) = (-1)^n = (-1)^{(p^2-1)/8}.

Idea

For a=2a = 2 the multiples 2,4,…,p−12, 4, \dots, p - 1 are already reduced, so Gauss's lemma only asks how many even numbers below pp exceed p/2p/2. That count is h−⌊p/4⌋h - \lfloor p/4 \rfloor, and its parity depends only on pp modulo 88, just like (p2−1)/8(p^2 - 1)/8.

Reading path

To understand this page from the ground up, read these 114 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 approximation property of the supremum, Proof of Gauss's lemma on quadratic residues, 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 that the reals form an ordered field, with the Cauchy sequence construction, 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 that the reals are Archimedean from the completeness axiom, Proof of the factor theorem, Proof that congruence is compatible with powers.

  1. Construction of the reals from Cauchy sequences concept
  2. Definition by recursion concept
  3. Divisibility definition
  4. Element definition
  5. Group concept
  6. Integers object
  7. Mathematical induction concept
  8. Natural numbers object
  9. Ordered field definition
  10. Peano axioms concept
  11. Proposition concept
  12. Rational numbers object
  13. Real numbers object
  14. Set bounded above definition
  15. Congruence modulo n definition
  16. Greatest common divisor definition
  17. Prime number definition
  18. Set definition
  19. Ring definition
  20. Ring of integers statement
  21. Archimedean ordered field definition
  22. Successor function definition
  23. Implication definition
  24. Predicate definition
  25. The reals form a field statement
  26. Supremum definition
  27. Quadratic residue definition
  28. Residue class definition
  29. Coprime integers definition
  30. Proof that congruence is compatible with addition proof
  31. Proof that congruence is compatible with multiplication proof
  32. Ordered pair definition
  33. Commutative ring definition
  34. Polynomial ring definition
  35. Ring homomorphism definition
  36. Unit of a ring definition
  37. Zero divisor definition
  38. Addition of natural numbers definition
  39. The rationals form a field statement
  40. The successor function is injective statement
  41. Zero is not a successor statement
  42. Universal quantifier definition
  43. Completeness axiom statement
  44. Legendre symbol definition
  45. Congruence is compatible with addition statement
  46. Congruence is compatible with multiplication statement
  47. Cartesian product definition
  48. Divisibility in a commutative ring definition
  49. Degree of a polynomial definition
  50. Polynomial evaluation definition
  51. Subset definition
  52. Field definition
  53. Integral domain definition
  54. Proof of the commutativity of addition by induction proof
  55. Order on the natural numbers definition
  56. The rationals form an ordered field statement
  57. Integers modulo n definition
  58. Proof that congruence is compatible with powers proof
  59. Binary relation definition
  60. Leading coefficient definition
  61. Order on the reals definition
  62. Root of a polynomial definition
  63. Proof of cancellation in an integral domain proof
  64. Evaluation homomorphism definition
  65. Commutativity of addition statement
  66. Proof of strong induction from ordinary induction proof
  67. Congruence is compatible with powers statement
  68. Antisymmetric relation definition
  69. Reflexive relation definition
  70. Transitive relation definition
  71. Monic polynomial definition
  72. Multiplicity of a root definition
  73. Proof of the degree of a product over an integral domain proof
  74. Proof of the remainder theorem proof
  75. Cancellation in an integral domain statement
  76. Strong induction statement
  77. Preorder definition
  78. Division algorithm for polynomials statement
  79. Degree of a product statement
  80. Proof of the well-ordering principle from strong induction proof
  81. Partial order definition
  82. Remainder theorem statement
  83. Proof that R[x] is an integral domain iff R is proof
  84. Well-ordering principle statement
  85. Total order definition
  86. Proof of the division algorithm proof
  87. Proof of the factor theorem proof
  88. R[x] is an integral domain iff R is statement
  89. Division algorithm statement
  90. Factor theorem statement
  91. Proof that the reals form an ordered field, with the Cauchy sequence construction proof
  92. Proof of Bézout's identity proof
  93. Proof that a polynomial over a field has at most as many roots as its degree proof
  94. The reals form an ordered field statement
  95. Bézout's identity statement
  96. A polynomial over a field has at most as many roots as its degree statement
  97. Proof of the approximation property of the supremum proof
  98. Proof of the generalized Euclid's lemma proof
  99. Proof that the integers modulo a prime form a field proof
  100. Approximation property of the supremum statement
  101. Integers modulo a prime form a field statement
  102. Generalized Euclid's lemma statement
  103. Proof that the reals are Archimedean from the completeness axiom proof
  104. Proof of Euclid's lemma proof
  105. The reals are Archimedean statement
  106. Euclid's lemma statement
  107. Floor function definition
  108. Proof of Fermat's little theorem by rearrangement proof
  109. Fermat's little theorem statement
  110. Proof of Euler's criterion by counting quadratic residues proof
  111. Euler's criterion statement
  112. Proof of Gauss's lemma on quadratic residues proof
  113. Gauss's lemma on quadratic residues statement
  114. Proof of the second supplement to quadratic reciprocity from Gauss's lemma proof

Where this leads

12 pages build on this one.

Further reading

  1. Web https://proofwiki.org/wiki/Quadratic_Character_of_2
About this page
TagK6Z5NJE22G
URIm2://K6Z5NJE22G
Kindproof
WritingW0 stub
MSC11A15
ProvesSecond supplement to quadratic reciprocity
UsesLegendre symbol, Gauss's lemma on quadratic residues, Floor function
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)
  • a source with a locator (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.