Paper 4, Section II, G
(a) State and prove the Fermat-Euler theorem. Let be a prime and a positive integer. Show that holds for every integer if and only if .
(b) Let be an odd integer and be an integer with . What does it mean to say that is a Fermat pseudoprime to base ? What does it mean to say that is a Carmichael number?
Show that every Carmichael number is squarefree, and that if is squarefree, then is a Carmichael number if and only if for every prime divisor of . Deduce that a Carmichael number is a product of at least three primes.
(c) Let be a fixed odd prime. Show that there are only finitely many pairs of primes for which is a Carmichael number.
[You may assume throughout that is cyclic for every odd prime and every integer