In: Advanced Math
Which positive integers n, where 20 ≤ n ≤ 30, have primitive roots?
Let us give a solution using Group Theory.
Result: The multiplicative group Zn* = { [a] in
Zn | g.c.d(a,n) = 1 } of invertible elements of
Zn is cyclic iff n=2 or 4 or pk or
2pk for some odd prime p.
Observe that |Zn*| = (n)
, where (n)
is the Euler's totient function.
Now, Zn* is cyclic iff there is an element in it of
order (n)
( which generates Zn* ).
In other words, Zn* is cyclic iff there is an integer a
such that gcd(a,n)=1 and the multiplicative order of a is (n)
modulo n.
This is equivalent to saying that Zn* is cyclic iff n
has a primitive root.
Thus, a positive integer n has a primitive root iff Zn*
is cyclic iff n=2 or 4 or pk or 2pk for some
odd prime p(using the result).
The positive integers n such that 20
n
30 which are one of the form pk or 2pk for
some odd prime p are:::
22,23,25,26,27 and 29.
Hence, the positive integers n, where 20
n
30, which have primitive roots are 22,23,25,26,27 and
29.