Proof of the Primitive Element Theorem
📂Number TheoryProof of the Primitive Element Theorem
Definition
If 1≤a≤p satisfies ordp(a)=p−1, it is defined as a primitive root modulo p.
Theorem
Every prime number p has ϕ(p−1) primitive roots.
Explanation
The reason why a satisfying ordp(a)=p−1 is called a primitive root is because, by Fermat’s little theorem, it is guaranteed that ap−1≡1(modp), so if exactly ordp(a)=p−1, it means that all numbers between 1 and p can be represented by powers of a.
For example, consider the primitive root a=3 of p=7
1≡2≡3≡4≡5≡6≡30(mod7)32(mod7)31(mod7)34(mod7)35(mod7)33(mod7)
Now focusing on a for p=7,
11≡23≡36≡43≡56≡62≡1(mod7)1(mod7)1(mod7)1(mod7)1(mod7)1(mod7)
Here, the number of primitive roots of p=7 is two, 3,5,
ϕ(7−1)=ϕ(6)=ϕ(3)ϕ(2)=(3−1)(2−1)=2
which exactly matches. On the other hand, ϕ(p−1) is at least 1, so it’s okay to use just for mentioning existence, not the exact number. This totient function ϕ might seem to appear out of nowhere but it is an essential element in the proof process.
Proof
Part 1.
According to the properties of order, for all 1≤a≤(p−1), now for all divisors d that divide (p−1), let’s define the function ψ as
ψ(d):=∣{a ∣ 1≤a<p∧ordp(a)=d}∣
In Part 4, we will show that this ψ is essentially the same function as the totient function ϕ.
Part 2.
Let’s call the divisors that divide (p−1) as n, then (p−1)=nk, and factoring out (Xp−1−1) results in
Xp−1−1===Xnk−1(Xn)k−1(Xn−1)((Xn)k−1+(Xn)k−2+⋯+(Xn)2+(Xn)1+1)
By Fermat’s little theorem,
Xp−1−1≡0(modp)
has X=1,2,⋯,(p−1) as a root, and by the fundamental theorem of algebra for congruences, Xn−1≡0(modp) has at most n roots therefore
(Xn)k−1+(Xn)k−2+⋯+(Xn)2+(Xn)1+1≡0(modp)
has at most n(k−1) roots. Thinking again about
Xp−1−1≡(Xn−1)((Xn)k−1+(Xn)k−2+⋯+(Xn)2+(Xn)1+1)(modp)
- The left side has exactly (p−1)=nk roots
- The right side has at most n roots and at most n(k−1) roots.
To satisfy this, Xn−1≡0(modp) must have at least, that is, exactly n roots. In summary, if n∣(p−1) then
Xn−1≡0(modp)
has exactly n solutions in 0≤X<p.
Part 3. i=1∑rψ(di)=n
Let’s denote all divisors of n as d1,⋯,dr.
If the divisor d of n satisfies d=ordp(a), then from the definition of order
ad=aordp(a)≡1(modp)
is obtained. Here, the number of a satisfying the given d is ψ(d).
However, since
an≡ad⋅(dn)≡1(dn)≡1(modp)
Thus, ψ(d) of X=a becomes a solution of Xn−1≡0(modp).
Summarizing, the number of solutions of Xn−1≡0(modp) is
d∣n∑ψ(d)=ψ(d1)+ψ(d2)+⋯+ψ(dr)
Since we stated in Part 2 that the number of solutions of Xn−1≡0(modp) is n,
d∣n∑ψ(d)=ψ(d1)+ψ(d2)+⋯+ψ(dr)=n
This is similar to the totient sum formula.
Part 4. ϕ(n)=ψ(n)
We need to show that for all natural numbers n, ϕ(n)=ψ(n) holds true.
Calculations for ψ are obtained using i=1∑rψ(di)=n unless otherwise mentioned.
- Case 1. n=1
ϕ(1)=1 and ψ(1)=1, therefore ϕ(1)=ψ(1) - Case 2. For prime q when n=q
ϕ(q)=q−1 and ψ(q)+ψ(1)=q, therefore ϕ(q)=q−1=ψ(q) - Case 3. For prime q when n=q2
The divisor of q2 is only 1,q,q2, hence ϕ(q2)+ϕ(q)+1=q2=ψ(q2)+ψ(q)+1
After subtracting the terms for Case 1 and 2 from both sides, ϕ(q2)=ψ(q2) - Case 4. For different primes q1,q2 when n=q1q2
The divisor of q1q2 is only 1,q1,q2,q1q2, hence ϕ(q1q2)+ϕ(q1)+ϕ(q2)+1=q1q2=ψ(q1q2)+ψ(q1)+ψ(q2)+1
After subtracting the terms for Case 1 and 2 from both sides, ϕ(q1q2)=ψ(q1q2) - Otherwise.
In other cases, by breaking down the terms as in Cases 3 and 4, we obtain ϕ(n)=ψ(n).
Part 5.
In Parts 2 and 3, we confirmed that for all n satisfying n∣(p−1), there are ϕ(n) number of a satisfying ordp(a)=n. Here, if k=1, that is, n=p−1, then ordp(a)=p−1, hence a is a primitive root modulo p. Therefore, prime number p has ϕ(p−1) primitive roots.
■