Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.8.25* (Number of solutions of the congruence $a^{m-1} \equiv 1 \pmod m$)
Exercise 2.8.25* (Number of solutions of the congruence $a^{m-1} \equiv 1 \pmod m$)
Show that the number of reduced residues such that is exactly .
Answers
Proof.
- a)
-
Write
the decomposition of
in prime factors. Let
be the number of reduced residues
such that
. Then
, where
( is the group of invertible elements of .)
Consider the sets
Let be the map
Then
- is well defined: if , then , because for every index . Thus . Moreover, if , then , therefore for every index , because , and . So .
- is injective : if , where , then , thus for every , therefore , so .
- is surjective: if is any element of , by the Chinese Remainder Theorem, there exists such that for every . Moreover, since , then for every , therefore , thus , and . So is surjective.
This proves that is bijective, thus
- b)
-
Now we show that
for every
. To have shorter notations, write
. We compute
where .
Consider first the case . Then has a generator by Theorem 2.39 and 2.40, of order .
Let be any element of . Then for some integer such that . Write the gcd of and . Then
because , and (recall that ), thus , and so
Since ,
and two distinct values of are not congruent modulo , therefore the equation has solutions in . This shows that
for every odd prime divisor of .
(Alternatively, we can use Corollary 2.32.)
Consider now the case . We prove that the congruence has exactly one solution (this is also a consequence of Corollary 2.44).
By Theorem we can write
Then, using the part "unicity" of Theorem 2.43,
Thus, for , we have also
- c)
-
Therefore (1) shows that
So the number of reduced residues such that is exactly .