Math 2.0

Number theory Proof

Proof of the existence of primitive roots modulo a prime by counting elements of each order

Builds on Primitive root modulo nMultiplicative orderPrime numberThe order modulo p divides p − 1Integers modulo a prime form a fieldA polynomial over a field has at most as many roots as its degreeOrder of a powerSum of the totient over the divisorsEuler's totient functionTotient of a primeOrder of the group of units of Z/nZ is Euler's totientGroup of units of a ringCyclic group

Proof

  1. Let pp be a prime number. Let G=(ℤ/pℤ)×G = (\mathbb{Z}/p\mathbb{Z})^\times be the group of units of ℤ/pℤ\mathbb{Z}/p\mathbb{Z}.
  2. The ring ℤ/pℤ\mathbb{Z}/p\mathbb{Z} is a field. So GG consists of the p−1p - 1 nonzero classes 1‾,…,p−1‾\overline{1}, \dots, \overline{p-1}.
  3. For a∈{1,…,p−1}a \in \set{1, \dots, p-1}, the multiplicative order ord⁡p(a)\operatorname{ord}_p(a) is the order of a‾\overline{a} in GG. By the corollary on orders modulo p, it divides p−1p - 1.
  4. For each positive divisor dd of p−1p - 1, let ψ(d)\psi(d) be the number of a∈{1,…,p−1}a \in \set{1, \dots, p-1} with ord⁡p(a)=d\operatorname{ord}_p(a) = d.
  5. Each of the p−1p - 1 elements is counted for exactly one dd, by step 3. So ∑d∣p−1ψ(d)=p−1\sum_{d \mid p-1} \psi(d) = p - 1.
  6. Claim: ψ(d)≤φ(d)\psi(d) \le \varphi(d) for each d∣p−1d \mid p - 1, where φ\varphi is Euler's totient function. If ψ(d)=0\psi(d) = 0, this holds. So let aa be an element of order dd.
  7. The classes a‾0,a‾1,…,a‾d−1\overline{a}^0, \overline{a}^1, \dots, \overline{a}^{d-1} are distinct. Indeed, if a‾i=a‾j\overline{a}^i = \overline{a}^j with 0≤i<j<d0 \le i < j < d, then a‾j−i=1‾\overline{a}^{j-i} = \overline{1} with 0<j−i<d0 < j - i < d. This contradicts ord⁡p(a)=d\operatorname{ord}_p(a) = d.
  8. Each a‾i\overline{a}^i is a root of xd−1x^d - 1 in ℤ/pℤ\mathbb{Z}/p\mathbb{Z}, because (a‾i)d=(a‾d)i=1‾(\overline{a}^i)^d = (\overline{a}^d)^i = \overline{1}.
  9. The polynomial xd−1x^d - 1 has degree dd over a field. So it has at most dd roots. By steps 7 and 8, its roots are exactly a‾0,…,a‾d−1\overline{a}^0, \dots, \overline{a}^{d-1}.
  10. Let bb have order dd. Then b‾\overline{b} is a root of xd−1x^d - 1. By step 9, b‾=a‾i\overline{b} = \overline{a}^i for some ii with 0≤i<d0 \le i < d.
  11. By the formula for the order of a power, the order of a‾i\overline{a}^i is d/gcd⁡(d,i)d / \gcd(d, i). This equals dd exactly when gcd⁡(d,i)=1\gcd(d, i) = 1.
  12. So the elements of order dd are among the a‾i\overline{a}^i with 0≤i<d0 \le i < d and gcd⁡(i,d)=1\gcd(i, d) = 1. For d=1d = 1 this is i=0i = 0; for d>1d > 1 it is 1≤i<d1 \le i < d. In both cases there are φ(d)\varphi(d) such ii. This proves the claim.
  13. By steps 5 and 6 and the sum of the totient over the divisors, p−1=∑d∣p−1ψ(d)≤∑d∣p−1φ(d)=p−1p - 1 = \sum_{d \mid p-1} \psi(d) \le \sum_{d \mid p-1} \varphi(d) = p - 1.
  14. So equality holds in each term: ψ(d)=φ(d)\psi(d) = \varphi(d) for every d∣p−1d \mid p - 1.
  15. In particular ψ(p−1)=φ(p−1)≥1\psi(p - 1) = \varphi(p - 1) \ge 1, since 11 is coprime to p−1p - 1. So some gg has ord⁡p(g)=p−1\operatorname{ord}_p(g) = p - 1.
  16. By the totient of a prime, φ(p)=p−1\varphi(p) = p - 1. So gg is a primitive root modulo pp.
  17. The group GG has order φ(p)=p−1\varphi(p) = p - 1, by the order of the group of units. By step 7 with d=p−1d = p - 1, the powers of g‾\overline{g} give p−1p - 1 distinct elements of GG.
  18. So the powers of g‾\overline{g} fill GG, and GG is a cyclic group of order p−1p - 1 generated by g‾\overline{g}.

Idea

Over a field, the polynomial xd−1x^d - 1 has at most dd roots. So once one element of order dd exists, all elements of order dd are among its powers, and there are exactly φ(d)\varphi(d) of them. The counts must add up to p−1=∑d∣p−1φ(d)p - 1 = \sum_{d \mid p - 1} \varphi(d), so no order can be missing, not even p−1p - 1.

Reading path

To understand this page from the ground up, read these 111 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 sum of the totient over the divisors, 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 g to the n equals 1 iff the order divides n, Proof of Euclid's lemma, Proof that R[x] is an integral domain iff R is, Proof that the order of the group of units of Z/nZ is Euler's totient, Proof of the degree of a product over an integral domain, Proof of strong induction from ordinary induction, Proof of the laws of exponents in a group, Proof of Euler's theorem by rearrangement, Proof that the integers modulo a prime form a field, Proof that congruence is compatible with addition, Proof that a polynomial over a field has at most as many roots as its degree, Proof of the remainder theorem, Proof of the formula for the totient of a prime, Proof that congruence is compatible with multiplication, Proof that the order modulo p divides p − 1, Proof of the formula for the order of a power, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the uniqueness of inverses, Proof of the existence of inverses modulo n, Proof that the units of Z/nZ are the residues coprime to n, Proof of the factor theorem, Proof that congruence is compatible with powers.

  1. Binary operation definition
  2. Definition by recursion concept
  3. Divisibility definition
  4. Group concept
  5. Group of units of Z/nZ object
  6. Mathematical induction concept
  7. Natural numbers object
  8. Peano axioms concept
  9. Associativity definition
  10. Identity element definition
  11. Congruence modulo n definition
  12. Greatest common divisor definition
  13. Prime number definition
  14. Order of a group definition
  15. Ring definition
  16. Subgroup definition
  17. Successor function definition
  18. Semigroup definition
  19. Inverse element definition
  20. Modular multiplicative inverse definition
  21. Proof that congruence is compatible with addition proof
  22. Proof that congruence is compatible with multiplication proof
  23. Residue class definition
  24. Coprime integers definition
  25. Addition of natural numbers definition
  26. Commutative ring definition
  27. Polynomial ring definition
  28. Ring homomorphism definition
  29. Unit of a ring definition
  30. Zero divisor definition
  31. The successor function is injective statement
  32. Zero is not a successor statement
  33. Monoid definition
  34. Proof of the uniqueness of inverses proof
  35. Congruence is compatible with addition statement
  36. Congruence is compatible with multiplication statement
  37. Euler's totient function definition
  38. Order on the natural numbers definition
  39. Proof of the commutativity of addition by induction proof
  40. Group of units of a ring definition
  41. Divisibility in a commutative ring definition
  42. Degree of a polynomial definition
  43. Polynomial evaluation definition
  44. Field definition
  45. Integral domain definition
  46. Group of units of a monoid definition
  47. Uniqueness of inverses statement
  48. Proof that congruence is compatible with powers proof
  49. Integers modulo n definition
  50. Proof of the formula for the totient of a prime proof
  51. Commutativity of addition statement
  52. Proof of cancellation in an integral domain proof
  53. Proof of strong induction from ordinary induction proof
  54. Leading coefficient definition
  55. Evaluation homomorphism definition
  56. Root of a polynomial definition
  57. Proof of the laws of exponents in a group proof
  58. Congruence is compatible with powers statement
  59. Totient of a prime statement
  60. Strong induction statement
  61. Monic polynomial definition
  62. Cancellation in an integral domain statement
  63. Proof of the remainder theorem proof
  64. Multiplicity of a root definition
  65. Proof of the degree of a product over an integral domain proof
  66. Laws of exponents in a group statement
  67. Proof of the well-ordering principle from strong induction proof
  68. Division algorithm for polynomials statement
  69. Degree of a product statement
  70. Order of an element definition
  71. Cyclic subgroup generated by an element definition
  72. Well-ordering principle statement
  73. Remainder theorem statement
  74. Proof that R[x] is an integral domain iff R is proof
  75. Cyclic group definition
  76. Proof of the division algorithm proof
  77. R[x] is an integral domain iff R is statement
  78. Proof of the factor theorem proof
  79. Division algorithm statement
  80. Factor theorem statement
  81. Proof that g to the n equals 1 iff the order divides n proof
  82. Proof of Bézout's identity proof
  83. Proof that a polynomial over a field has at most as many roots as its degree proof
  84. g to the n equals 1 iff the order divides n statement
  85. Bézout's identity statement
  86. A polynomial over a field has at most as many roots as its degree statement
  87. Proof of the existence of inverses modulo n proof
  88. Proof of the generalized Euclid's lemma proof
  89. Proof of the sum of the totient over the divisors proof
  90. Proof that the integers modulo a prime form a field proof
  91. Proof that the units of Z/nZ are the residues coprime to n proof
  92. Existence of inverses modulo n statement
  93. Sum of the totient over the divisors statement
  94. Units of Z/nZ are the residues coprime to n statement
  95. Integers modulo a prime form a field statement
  96. Generalized Euclid's lemma statement
  97. Proof of the formula for the order of a power proof
  98. Proof of Euler's theorem by rearrangement proof
  99. Proof that the order of the group of units of Z/nZ is Euler's totient proof
  100. Proof of Euclid's lemma proof
  101. Order of a power statement
  102. Euclid's lemma statement
  103. Order of the group of units of Z/nZ is Euler's totient statement
  104. Euler's theorem statement
  105. Proof of Fermat's little theorem by rearrangement proof
  106. Multiplicative order definition
  107. Fermat's little theorem statement
  108. Primitive root modulo n definition
  109. Proof that the order modulo p divides p − 1 proof
  110. The order modulo p divides p − 1 statement
  111. Proof of the existence of primitive roots modulo a prime by counting elements of each order proof

Where this leads

3 pages build on this one.

Further reading

  1. Web https://kconrad.math.uconn.edu/blurbs/grouptheory/cyclicmodp.pdf, Theorem 2.6
About this page
TagQ83MS5FFZB
URIm2://Q83MS5FFZB
Kindproof
WritingW0 stub
MSC11A07
ProvesExistence of primitive roots modulo a prime
UsesPrimitive root modulo n, Multiplicative order, Prime number, The order modulo p divides p − 1, Integers modulo a prime form a field, A polynomial over a field has at most as many roots as its degree, Order of a power, Sum of the totient over the divisors, Euler's totient function, Totient of a prime, Order of the group of units of Z/nZ is Euler's totient, Group of units of a ring, Cyclic group
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.