Math 2.0

Number theory Proof

Proof that a prime is a Gaussian prime if and only if it is 3 modulo 4

Builds on Gaussian primePrime numberGaussian integerNorm of a Gaussian integerUnits of the Gaussian integersFermat's theorem on sums of two squaresFirst supplement to quadratic reciprocityLegendre symbolBézout's identity

Proof

Write N(γ)=γγˉN(\gamma) = \gamma\bar\gamma for the norm of a Gaussian integer γ\gamma. Then N(γδ)=N(γ)N(δ)N(\gamma\delta) = N(\gamma) N(\delta), since complex conjugation is multiplicative.

  1. A prime number pp is either 22, or odd with p≡1(mod4)p \equiv 1 \pmod 4, or odd with p≡3(mod4)p \equiv 3 \pmod 4. We treat the three cases.
  2. Case p=2p = 2. We have 2=(1+i)(1−i)2 = (1 + i)(1 - i), so 22 divides (1+i)(1−i)(1 + i)(1 - i) in ℤ[i]\mathbb{Z}[i].
  3. But 2∤1+i2 \nmid 1 + i and 2∤1−i2 \nmid 1 - i, because (1±i)/2(1 \pm i)/2 has non-integer real part. So 22 is not a Gaussian prime.
  4. Case p≡1(mod4)p \equiv 1 \pmod 4. By Fermat's theorem on sums of two squares, p=a2+b2p = a^2 + b^2 with integers aa, bb. So p=(a+bi)(a−bi)p = (a + bi)(a - bi).
  5. If p∣a+bip \mid a + bi in ℤ[i]\mathbb{Z}[i], then p∣ap \mid a and p∣bp \mid b in ℤ\Z, so p2∣a2+b2=pp^2 \mid a^2 + b^2 = p. This is false. Likewise p∤a−bip \nmid a - bi.
  6. So pp divides (a+bi)(a−bi)(a + bi)(a - bi) but neither factor, and pp is not a Gaussian prime.
  7. Case p≡3(mod4)p \equiv 3 \pmod 4. First, p≠0p \ne 0, and pp is not a unit, since the units of ℤ[i]\mathbb{Z}[i] are ±1\pm 1 and ±i\pm i.
  8. By the first supplement to quadratic reciprocity, the Legendre symbol of −1-1 is (−1)(p−1)/2=−1(-1)^{(p-1)/2} = -1. So −1-1 is not a square modulo pp.
  9. Claim: if aa, bb are integers with p∣a2+b2p \mid a^2 + b^2, then p∣ap \mid a and p∣bp \mid b. Suppose p∤bp \nmid b. By Bézout's identity, there is an integer cc with bc≡1(modp)bc \equiv 1 \pmod p.
  10. Multiplying a2+b2≡0a^2 + b^2 \equiv 0 by c2c^2 gives (ac)2≡−1(modp)(ac)^2 \equiv -1 \pmod p, against step 8. So p∣bp \mid b, and then p∣a2p \mid a^2, so p∣ap \mid a since pp is prime.
  11. Now let α=a+bi\alpha = a + bi and β\beta be Gaussian integers with p∣αβp \mid \alpha\beta and p∤αp \nmid \alpha. We show p∣βp \mid \beta.
  12. Since p∤αp \nmid \alpha, pp does not divide both aa and bb. By the claim, p∤N(α)=a2+b2p \nmid N(\alpha) = a^2 + b^2.
  13. As pp is prime, gcd⁡(N(α),p)=1\gcd(N(\alpha), p) = 1. By Bézout's identity, uN(α)+vp=1u N(\alpha) + v p = 1 for some integers uu, vv.
  14. Then β=uN(α)β+vpβ=uαˉ(αβ)+vpβ\beta = u N(\alpha) \beta + v p \beta = u \bar\alpha (\alpha\beta) + v p \beta. Both terms are divisible by pp in ℤ[i]\mathbb{Z}[i], so p∣βp \mid \beta.
  15. By steps 7 and 14, pp is a Gaussian prime when p≡3(mod4)p \equiv 3 \pmod 4.
  16. By steps 3, 6 and 15, pp is a Gaussian prime if and only if p≡3(mod4)p \equiv 3 \pmod 4.

Idea

For p=2p = 2 and p≡1(mod4)p \equiv 1 \pmod 4, the prime is a product (a+bi)(a−bi)(a + bi)(a - bi) and divides this product without dividing either factor. For p≡3(mod4)p \equiv 3 \pmod 4, the fact that −1-1 is not a square mod pp makes N(α)N(\alpha) prime to pp whenever p∤αp \nmid \alpha. Then a Bézout relation lets us cancel α\alpha from p∣αβp \mid \alpha\beta, as for ordinary primes.

Reading path

To understand this page from the ground up, read these 142 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 that a composition of injections is injective, Proof of Fermat's theorem on sums of two squares by Thue's lemma, Proof of Euclid's lemma, Proof that R[x] is an integral domain iff R is, Proof that a function is bijective iff it has a two-sided inverse, Proof of the degree of a product over an integral domain, Proof of strong induction from ordinary induction, Proof of the fundamental theorem of arithmetic, Proof of the complement principle, Proof that −1 is a square modulo p if and only if p is not 3 modulo 4, Proof of the pigeonhole principle, Proof that the integers modulo a prime form a field, Proof that a composition of surjections is surjective, Proof that congruence is compatible with addition, Proof of Euler's criterion by counting quadratic residues, Proof of the existence of prime factorization, 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 that the units of the Gaussian integers are 1, -1, i and -i, Proof of the rule of sum, 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 bijection principle, Proof of the irrationality of square roots of non-squares, Proof of the factor theorem, Proof of the existence of a prime divisor, Proof that congruence is compatible with powers.

  1. Cardinality of a finite set definition
  2. Definition by recursion concept
  3. Divisibility definition
  4. Element definition
  5. Gaussian integer definition
  6. Group concept
  7. Mathematical induction concept
  8. Natural numbers object
  9. Peano axioms concept
  10. Proposition concept
  11. Rational numbers object
  12. Real numbers object
  13. Congruence modulo n definition
  14. Greatest common divisor definition
  15. Prime number definition
  16. Set definition
  17. Gaussian prime definition
  18. Norm of a Gaussian integer definition
  19. Ring definition
  20. Successor function definition
  21. Conjunction definition
  22. Implication definition
  23. Predicate definition
  24. Irrational number definition
  25. Quadratic residue definition
  26. Residue class definition
  27. Coprime integers definition
  28. Proof that congruence is compatible with addition proof
  29. Proof that congruence is compatible with multiplication proof
  30. Prime factorization definition
  31. Empty set object
  32. Ordered pair definition
  33. Intersection definition
  34. Addition of natural numbers definition
  35. Commutative ring definition
  36. Polynomial ring definition
  37. Ring homomorphism definition
  38. Subring definition
  39. Unit of a ring definition
  40. Zero divisor definition
  41. The successor function is injective statement
  42. Zero is not a successor statement
  43. Existential quantifier definition
  44. Universal quantifier definition
  45. Legendre symbol definition
  46. Congruence is compatible with addition statement
  47. Congruence is compatible with multiplication statement
  48. Cartesian product definition
  49. Disjoint sets definition
  50. Proof of the commutativity of addition by induction proof
  51. Order on the natural numbers definition
  52. Subset definition
  53. Divisibility in a commutative ring definition
  54. Degree of a polynomial definition
  55. Polynomial evaluation definition
  56. Field definition
  57. Integral domain definition
  58. Uniqueness quantifier definition
  59. Integers modulo n definition
  60. Proof that congruence is compatible with powers proof
  61. Binary relation definition
  62. Commutativity of addition statement
  63. Leading coefficient definition
  64. Proof of cancellation in an integral domain proof
  65. Root of a polynomial definition
  66. Proof of strong induction from ordinary induction proof
  67. Evaluation homomorphism definition
  68. Gaussian integers object
  69. Congruence is compatible with powers statement
  70. Monic polynomial definition
  71. Strong induction statement
  72. Function definition
  73. Multiplicity of a root definition
  74. Cancellation in an integral domain statement
  75. Norm on the Gaussian integers definition
  76. Proof of the degree of a product over an integral domain proof
  77. Proof of the remainder theorem proof
  78. Codomain definition
  79. Function composition definition
  80. Identity function definition
  81. Injective function definition
  82. Image of a set definition
  83. Proof of the well-ordering principle from strong induction proof
  84. Division algorithm for polynomials statement
  85. Degree of a product statement
  86. Proof that the units of the Gaussian integers are 1, -1, i and -i proof
  87. Left inverse definition
  88. Right inverse definition
  89. Surjective function definition
  90. Proof that a composition of injections is injective proof
  91. Well-ordering principle statement
  92. Remainder theorem statement
  93. Units of the Gaussian integers statement
  94. Proof that R[x] is an integral domain iff R is proof
  95. Proof that a composition of surjections is surjective proof
  96. Composition of injections is injective statement
  97. Bijective function definition
  98. Proof of the existence of a prime divisor proof
  99. Proof of the division algorithm proof
  100. Proof of the factor theorem proof
  101. R[x] is an integral domain iff R is statement
  102. Composition of surjections is surjective statement
  103. Proof of the rule of sum proof
  104. Proof that a function is bijective iff it has a two-sided inverse proof
  105. Existence of a prime divisor statement
  106. Division algorithm statement
  107. Factor theorem statement
  108. Rule of sum statement
  109. Bijective iff it has a two-sided inverse statement
  110. Proof of Bézout's identity proof
  111. Proof of the existence of prime factorization proof
  112. Proof that a polynomial over a field has at most as many roots as its degree proof
  113. Proof of the bijection principle proof
  114. Bézout's identity statement
  115. Proof of the complement principle proof
  116. Existence of prime factorization statement
  117. A polynomial over a field has at most as many roots as its degree statement
  118. Bijection principle statement
  119. Complement principle statement
  120. Proof of the generalized Euclid's lemma proof
  121. Proof that the integers modulo a prime form a field proof
  122. Integers modulo a prime form a field statement
  123. Generalized Euclid's lemma statement
  124. Proof of the pigeonhole principle proof
  125. Pigeonhole principle statement
  126. Proof of Euclid's lemma proof
  127. Euclid's lemma statement
  128. Proof of Fermat's little theorem by rearrangement proof
  129. Proof of the fundamental theorem of arithmetic proof
  130. Fermat's little theorem statement
  131. Fundamental theorem of arithmetic statement
  132. Proof of Euler's criterion by counting quadratic residues proof
  133. Proof of the irrationality of square roots of non-squares proof
  134. Euler's criterion statement
  135. Irrationality of square roots of non-squares statement
  136. Proof of the first supplement to quadratic reciprocity from Euler's criterion proof
  137. First supplement to quadratic reciprocity statement
  138. Proof of Fermat's theorem on sums of two squares by Thue's lemma proof
  139. Proof that −1 is a square modulo p if and only if p is not 3 modulo 4 proof
  140. −1 is a square modulo p if and only if p is not 3 modulo 4 statement
  141. Fermat's theorem on sums of two squares statement
  142. Proof that a prime is a Gaussian prime if and only if it is 3 modulo 4 proof

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Gaussian_integer, Gaussian primes
About this page
TagFATHK2VGE6
URIm2://FATHK2VGE6
Kindproof
WritingW0 stub
MSC11R11
ProvesA prime is a Gaussian prime if and only if it is 3 modulo 4
UsesGaussian prime, Prime number, Gaussian integer, Norm of a Gaussian integer, Units of the Gaussian integers, Fermat's theorem on sums of two squares, First supplement to quadratic reciprocity, Legendre symbol, Bézout's identity
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.