Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/ii/paper-4/11h/b/solution

For the plain pseudoprime assertion use the Fermat primality test. In the finite group of units modulo an integer, let
It is the kernel of a group homomorphism, because the unit group is an abelian group. The given witness makes a proper subgroup. By Lagrange's theorem for finite groups, . Thus at least half of all units fail the test. Removing base one removes a passing base, so among the permitted there remain failures out of bases, still at least half.
The same argument works for the Euler–Jacobi test: its passing bases form the kernel of . One must not assert that strong-test passing bases form a subgroup; the kernel argument above concerns the Fermat statement requested here.

New to topics? Read the docs here!