Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.8.27* ($m$ is a Carmichael number iff $a^m \equiv a \pmod m$ for all $a$)
Exercise 2.8.27* ($m$ is a Carmichael number iff $a^m \equiv a \pmod m$ for all $a$)
Show that is a Carmichael number if and only if for all integers .
Answers
Proof. Let be a composite number.
Suppose that for all integers .
If , then , therefore , so . This shows that is a Carmichael number.
Conversely suppose that is a Carmichael number. Then
By Problem 26, is square-free, so that
where are distinct primes such that for all indices .
We can write under the form
Since , (1) shows that , thus, multiplying by ,
Moreover, using Fermat’s Theorem, since for ,
Since for all ,
Multiplying by ,
Moreover, , thus
Since are distinct, and ,
and similarly, for all ,
Then, using (2) and (3),
So, for all integers ,
This proves that a composite is a Carmichael number if and only if for all integers . □
Comments
Second (shorter) solution for Problems 26 and 27, without the result of problem 25, according to Demazure “Cours d’algèbre” (p. 84).
Let be an integer. The following conditions are equivalent.
- (i)
- is square-free, and for every prime factor of ;
- (ii)
- for every integer ;
- (iii)
- for every integer such that .
Proof. Here .
Let be a prime factor of , and let be any integer.
- If , by Fermat’s Theorem, . Since , . Multiplying by , we obtain .
- If , .
This shows that for every prime factor of ,
Since is square-free, , where are distinct prime. Therefore , so
. If , then , therefore , so .
. Suppose now that for every integer prime to .
Assume for contradiction that is not square-free, so that for some prime and some integer . Take . By the binomial formula,
so . Moreover , otherwise , and . Therefore the order of modulo is .
But by(iii), . Therefore , thus . This is a contradiction, which proves that is square-free.
We can write , where are distinct primes. Let be a primitive root modulo for each index . By the Chinese Remainder Theorem, there is some integer such that for all . By (iii), . A fortiori, . Therefore . Since the order of is , this implies for all . □