Proof of the primitive root theorem
Builds on Primitive root modulo nMultiplicative orderExistence of primitive roots modulo a primeDivision algorithmEuler's theoremEuler's totient functionTotient of a prime powerTotient of a primeMultiplicativity of the totient functionBinomial theoremFactorial formula for binomial coefficientsEuclid's lemmaFermat's little theoremChinese remainder theoremFundamental theorem of arithmeticCoprime integersCongruence is compatible with powers
Proof
We prove existence for , and then nonexistence for every other . Throughout, is Euler's totient function and is the multiplicative order of an integer coprime to . A primitive root modulo is such an with .
- Let and let with . By the division algorithm, with and . Then , using powers of congruences. Minimality of forces . So .
- By Euler's theorem, . So by step 1, and in particular .
Existence.
- For : , and has order . For : , and while . So has order .
- Let be an odd prime and . By the existence of primitive roots modulo a prime, there is with . Then .
- Suppose . By the binomial theorem, for an integer .
- So . By Euclid's lemma, , so . Hence .
- Also , so all powers agree modulo and . Replacing by if needed, we may assume .
- By Fermat's little theorem, . So with an integer, and by step 7.
- For , we have . Indeed, by the factorial formula. Here , but by Euclid's lemma, since all factors are less than . So Euclid's lemma gives .
- Claim: for each , with an integer and . We argue by induction on . Step 8 is the case .
- Assume the claim for and write . By the binomial theorem, .
- For , the term is divisible by by step 9, and . The last term is divisible by , and .
- So for an integer . Set . Since , also . This proves the claim.
- Now let , which is defined since . By step 2 and the totient of a prime power, .
- From we get . By step 1 with modulus , . Write . Then .
- By the fundamental theorem of arithmetic, with .
- Suppose ; this needs . Then , so .
- But step 10 with gives with . So does not divide , a contradiction.
- Hence and . So is a primitive root modulo .
- Let . Put if is odd, and if is even. Since is odd, is odd.
- As , all powers of and agree modulo . So .
- A prime that divides both and is or . But is odd and . So is coprime to .
- By the multiplicativity of the totient and the totient of a prime, .
- Let . From and step 1, , so . By step 2, . So is a primitive root modulo .
Nonexistence.
- Let . Claim: every odd satisfies . We argue by induction on .
- For , write . Then . One of and is even, so .
- If with an integer, then . Since , this is modulo . This proves the claim.
- The integers coprime to are the odd ones. By step 27 and step 1, each has order at most . This is less than , so there is no primitive root modulo .
- Claim: is even for every integer . Let be the set of with and . Then .
- For , we have , and , since and have the same common divisors with . So maps to itself, and applying it twice gives .
- If , then and , so and . This is excluded. So splits into pairs , and is even.
- Claim: if with coprime, then there is no primitive root modulo . Let be coprime to . Then is coprime to and to .
- Let . It is an integer, and with integer factors, by step 31.
- By Euler's theorem, and .
- Both and are congruent to modulo and modulo . By the Chinese remainder theorem, .
- So , by multiplicativity of the totient. This proves the claim.
- Now let not be of the form . Write with and odd. If , then with , and step 28 applies.
- If has two distinct prime factors, let be one of them and the exact power of in . Then with . The other prime factor of divides , so is odd and . Take and .
- Then , and by Euclid's lemma. So and are coprime, and step 36 applies.
- If for one odd prime , then and by assumption. So . Take and , which are coprime. Step 36 applies.
- So a primitive root modulo exists if and only if .
Idea
A primitive root modulo lifts to once is not modulo . Then each -th power raises the exact power of in by one, so no smaller exponent works. For other moduli the group splits into two parts of even size, or is a large power of , and a common exponent below kills every unit.
Reading path
To understand this page from the ground up, read these 164 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 Chinese remainder theorem, 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 that a composition of injections is injective, 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 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 the fundamental theorem of arithmetic, Proof of Euler's theorem by rearrangement, Proof that the integers modulo a prime form a field, Proof of Pascal's rule from the recursive definition, Proof that a composition of surjections is surjective, Proof that congruence is compatible with addition, Proof of the multiplicativity of the totient function, 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 of the formula for the totient of a prime, Proof of the factorial formula for binomial coefficients by induction, Proof that congruence is compatible with multiplication, Proof that the order modulo p divides p − 1, Proof of the binomial theorem by induction, Proof of the formula for the order of a power, Proof of the existence of primitive roots modulo a prime by counting elements of each order, 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 formula for the totient of a prime power, Proof of the bijection principle, Proof of the factor theorem, Proof of the existence of a prime divisor, Proof that congruence is compatible with powers.
- Binary operation definition
- Binomial coefficient definition
- Cardinality of a finite set definition
- Definition by recursion concept
- Divisibility definition
- Element definition
- Factorial definition
- Group concept
- Group of units of Z/nZ object
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Proposition concept
- Associativity definition
- Identity element definition
- Proof of Pascal's rule from the recursive definition proof
- Congruence modulo n definition
- Greatest common divisor definition
- Prime number definition
- Set definition
- Order of a group definition
- Ring definition
- Subgroup definition
- Successor function definition
- Implication definition
- Predicate definition
- Semigroup definition
- Inverse element definition
- Pascal's rule statement
- Modular multiplicative inverse definition
- Residue class definition
- Proof that congruence is compatible with addition proof
- Proof that congruence is compatible with multiplication proof
- Coprime integers definition
- Prime factorization definition
- Ordered pair definition
- Addition of natural numbers definition
- Commutative ring definition
- Polynomial ring definition
- Ring homomorphism definition
- Unit of a ring definition
- Zero divisor definition
- The successor function is injective statement
- Zero is not a successor statement
- Existential quantifier definition
- Universal quantifier definition
- Monoid definition
- Proof of the factorial formula for binomial coefficients by induction proof
- Congruence is compatible with addition statement
- Proof of the uniqueness of inverses proof
- Congruence is compatible with multiplication statement
- Euler's totient function definition
- Cartesian product definition
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- Subset definition
- Group of units of a ring definition
- Divisibility in a commutative ring definition
- Degree of a polynomial definition
- Polynomial evaluation definition
- Field definition
- Integral domain definition
- Uniqueness quantifier definition
- Group of units of a monoid definition
- Factorial formula for binomial coefficients statement
- Integers modulo n definition
- Proof that congruence is compatible with powers proof
- Uniqueness of inverses statement
- Proof of the formula for the totient of a prime proof
- Binary relation definition
- Commutativity of addition statement
- Proof of cancellation in an integral domain proof
- Proof of strong induction from ordinary induction proof
- Leading coefficient definition
- Evaluation homomorphism definition
- Root of a polynomial definition
- Congruence is compatible with powers statement
- Proof of the binomial theorem by induction proof
- Totient of a prime statement
- Proof of the laws of exponents in a group proof
- Strong induction statement
- Monic polynomial definition
- Function definition
- Cancellation in an integral domain statement
- Proof of the remainder theorem proof
- Multiplicity of a root definition
- Proof of the degree of a product over an integral domain proof
- Binomial theorem statement
- Laws of exponents in a group statement
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Proof of the well-ordering principle from strong induction proof
- Division algorithm for polynomials statement
- Degree of a product statement
- Left inverse definition
- Right inverse definition
- Order of an element definition
- Proof that a composition of injections is injective proof
- Surjective function definition
- Cyclic subgroup generated by an element definition
- Well-ordering principle statement
- Remainder theorem statement
- Proof that R[x] is an integral domain iff R is proof
- Proof that a composition of surjections is surjective proof
- Composition of injections is injective statement
- Bijective function definition
- Cyclic group definition
- Proof of the existence of a prime divisor proof
- Proof of the division algorithm proof
- Proof of the factor theorem proof
- R[x] is an integral domain iff R is statement
- Composition of surjections is surjective statement
- Proof that a function is bijective iff it has a two-sided inverse proof
- Existence of a prime divisor statement
- Division algorithm statement
- Factor theorem statement
- Bijective iff it has a two-sided inverse statement
- Proof that g to the n equals 1 iff the order divides n proof
- Proof of Bézout's identity proof
- Proof of the existence of prime factorization proof
- Proof that a polynomial over a field has at most as many roots as its degree proof
- Proof of the bijection principle proof
- g to the n equals 1 iff the order divides n statement
- Bézout's identity statement
- Existence of prime factorization statement
- A polynomial over a field has at most as many roots as its degree statement
- Bijection principle statement
- Proof of the existence of inverses modulo n proof
- Proof of the generalized Euclid's lemma proof
- Proof of the sum of the totient over the divisors proof
- Proof that the integers modulo a prime form a field proof
- Proof that the units of Z/nZ are the residues coprime to n proof
- Existence of inverses modulo n statement
- Integers modulo a prime form a field statement
- Sum of the totient over the divisors statement
- Generalized Euclid's lemma statement
- Units of Z/nZ are the residues coprime to n statement
- Proof of the formula for the order of a power proof
- Proof of the Chinese remainder theorem proof
- Proof of Euler's theorem by rearrangement proof
- Proof of Euclid's lemma proof
- Proof that the order of the group of units of Z/nZ is Euler's totient proof
- Order of a power statement
- Chinese remainder theorem statement
- Euclid's lemma statement
- Euler's theorem statement
- Order of the group of units of Z/nZ is Euler's totient statement
- Proof of the multiplicativity of the totient function proof
- Proof of Fermat's little theorem by rearrangement proof
- Proof of the formula for the totient of a prime power proof
- Multiplicative order definition
- Proof of the fundamental theorem of arithmetic proof
- Fermat's little theorem statement
- Multiplicativity of the totient function statement
- Primitive root modulo n definition
- Totient of a prime power statement
- Fundamental theorem of arithmetic statement
- Proof that the order modulo p divides p − 1 proof
- The order modulo p divides p − 1 statement
- Proof of the existence of primitive roots modulo a prime by counting elements of each order proof
- Existence of primitive roots modulo a prime statement
- Proof of the primitive root theorem proof
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | 1PP33DM13N |
|---|---|
| URI | m2://1PP33DM13N |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A07 |
| Proves | Primitive root theorem |
| Uses | Primitive root modulo n, Multiplicative order, Existence of primitive roots modulo a prime, Division algorithm, Euler's theorem, Euler's totient function, Totient of a prime power, Totient of a prime, Multiplicativity of the totient function, Binomial theorem, Factorial formula for binomial coefficients, Euclid's lemma, Fermat's little theorem, Chinese remainder theorem, Fundamental theorem of arithmetic, Coprime integers, Congruence is compatible with powers |
| Changed | 4 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.