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 m is a Carmichael number if and only if a m a ( mod m ) for all integers a .

Answers

Proof. Let m > 1 be a composite number.

Suppose that a m a ( mod m ) for all integers a .

If a m = 1 , then m a ( a m 1 1 ) , therefore m a m 1 1 , so a m 1 1 ( mod m ) . This shows that m is a Carmichael number.

Conversely suppose that m is a Carmichael number. Then

a m 1 1 ( mod m ) ,  if  a m = 1 . (1)

By Problem 26, m is square-free, so that

m = p 1 p 1 p l ,

where p 1 , p 2 , , p l are distinct primes such that p i 1 m 1 for all indices i .

We can write a under the form

a = λ p 1 a 1 p 2 a 2 p l a l , λ m = 1 , a i 0 , 1 i l .

Since λ m = 1 , (1) shows that λ m 1 1 ( mod m ) , thus, multiplying by λ ,

λ m λ ( mod m ) . (2)

Moreover, using Fermat’s Theorem, since p 1 a 1 p i = 1 for i = 2 , 3 , , l ,

( p 1 a 1 ) p i 1 1 ( mod p i ) , i = 2 , 3 , , l

Since p i 1 m 1 for all i ,

( p 1 a 1 ) m 1 1 ( mod p i ) , i = 2 , 3 , , l .

Multiplying by p 1 a 1 ,

( p 1 a 1 ) m p 1 a 1 ( mod p i ) , i = 2 , 3 , , l .

Moreover, ( p 1 a 1 ) m p 1 a 1 0 ( mod p 1 ) , thus

( p 1 a 1 ) m p 1 a 1 ( mod p i ) , i = 1 , 2 , 3 , , l .

Since p 1 , p 2 , , p l are distinct, and m = p 1 p 2 p l ,

( p 1 a 1 ) m p 1 a 1 ( mod m ) ,

and similarly, for all k [ [ 1 , l ] ] ,

( p k a k ) m p k a k ( mod m ) . (3)

Then, using (2) and (3),

a m = ( λ p 1 a 1 p 2 a 2 p l a l ) m = λ m ( p 1 a 1 ) m ( p 2 a 2 ) m ( p l a l ) m λ p 1 a 1 p 2 a 2 p l a l = a ( mod m )

So, for all integers a ,

a m a ( mod m ) .

This proves that a composite m is a Carmichael number if and only if a m a ( mod m ) for all integers a . □

User profile picture
2024-09-18 08:31
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 n > 1 be an integer. The following conditions are equivalent.

(i)
n is square-free, and p 1 n 1 for every prime factor p of n ;
(ii)
a n a ( mod n ) for every integer a ;
(iii)
a n 1 1 ( mod n ) for every integer a such that a n = 1 .

Proof. Here n > 1 .

( i ) ( ii ) . Let p be a prime factor of n , and let a be any integer.

  • If p a , by Fermat’s Theorem, a p 1 1 ( mod p ) . Since p 1 n 1 , a n 1 1 ( mod p ) . Multiplying by a , we obtain a n a ( mod p ) .
  • If p a , a n 0 a ( mod p ) .

This shows that for every prime factor p of n ,

a n a ( mod p ) .

Since n is square-free, n = p 1 p 2 p l , where p 1 , p 2 , , p l are distinct prime. Therefore a n a ( mod p 1 p 2 p n ) , so

a n a ( mod n ) .

( ii ) ( iii ) . If a n = 1 , then n a ( a n 1 1 ) , therefore n a n 1 1 , so a n 1 1 ( mod n ) .

( iii ) ( i ) . Suppose now that a n 1 1 ( mod n ) for every integer a prime to n .

Assume for contradiction that n is not square-free, so that n = p 2 m for some prime p and some integer m . Take a = 1 + pm . By the binomial formula,

a p = ( 1 + pm ) p = 1 + ( p 1 ) pm + ( p 2 ) p 2 m 2 + + ( p p ) p p m p 1 ( mod p 2 m ) ,

so a p 1 ( mod n ) . Moreover a 1 ( mod n ) , otherwise p 2 m pm , and p 1 . Therefore the order of a modulo n is p .

But by(iii), a n 1 1 ( mod n ) . Therefore p n 1 = p 2 m 1 , thus p 1 . This is a contradiction, which proves that n is square-free.

We can write n = p 1 p 2 p l , where p 1 , p 2 , , p l are distinct primes. Let a i be a primitive root modulo p i for each index i . By the Chinese Remainder Theorem, there is some integer a such that a a i ( mod p i ) for all i . By (iii), a n 1 1 ( mod n ) . A fortiori, a n 1 1 ( mod p i ) . Therefore a i n 1 1 ( mod p i ) . Since the order of a i is p i 1 , this implies p i 1 n 1 for all i . □

User profile picture
2024-09-19 08:30
Comments