How many (incongruent) primitive roots are there modulo ?
Definition : An integer is said to be a primitive root modulo if every integer coprime to is congruent to a power of modulo .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
In a preliminary step, let us count the number of generators of the cyclic group of order n . If g is a generator, then g m will be a generator iff ( g m ) a = g for some a iff m a ≡ 1 ( m o d n ) iff 1 = a m + b n for some a , b iff g cd ( m , n ) = 1 . Thus there are ϕ ( n ) generators.
Now the primitive roots modulo n are just the generators of the multiplicative group modulo n , by definition. Since that group is cyclic for odd prime powers and its order is ϕ ( n ) , the number of (incongruent) primitive roots is ϕ ( ϕ ( n ) ) ... thus "think twice".
In particular, we have ϕ ( ϕ ( 7 7 ) ) = ϕ ( 6 × 7 6 ) = 2 × 6 × 7 5 = 2 0 1 6 8 4