Paper 4, Section II, G

Number Theory
Part II, 2018

(a) State and prove the Fermat-Euler theorem. Let pp be a prime and kk a positive integer. Show that bkb(modp)b^{k} \equiv b(\bmod p) holds for every integer bb if and only if k1(modp1)k \equiv 1(\bmod p-1).

(b) Let N3N \geqslant 3 be an odd integer and bb be an integer with (b,N)=1(b, N)=1. What does it mean to say that NN is a Fermat pseudoprime to base bb ? What does it mean to say that NN is a Carmichael number?

Show that every Carmichael number is squarefree, and that if NN is squarefree, then NN is a Carmichael number if and only if N1(modp1)N \equiv 1(\bmod p-1) for every prime divisor pp of NN. Deduce that a Carmichael number is a product of at least three primes.

(c) Let rr be a fixed odd prime. Show that there are only finitely many pairs of primes p,qp, q for which N=pqrN=p q r is a Carmichael number.

[You may assume throughout that (Z/pnZ)\left(\mathbb{Z} / p^{n} \mathbb{Z}\right)^{*} is cyclic for every odd prime pp and every integer n1.]n \geqslant 1 .]