Solution

ID: past-exam-of-the-options-i-for-mathematics-and-philosophy-course-of-the-university-of-oxford/2013/c/1/solution

Euler's totient function is
Euler's theorem states that implies . For , let be the invertible residue classes modulo . Multiplication by permutes these classes, since it has an inverse modulo . Multiplying the resulting congruences gives
Every factor is a unit, so the product can be cancelled, proving the theorem. The case is immediate. For distinct prime numbers , removing multiples of either prime from gives
For the RSA cryptosystem, choose distinct large primes , put , and choose coprime to . Compute with . The public key is ; the private exponent is retained secretly. Represent a message by , encrypt by , and decrypt by .
To prove correct decryption even for messages not coprime to , write . Modulo , if then ; otherwise Fermat's little theorem gives . The same reasoning holds modulo . The Chinese remainder theorem therefore gives , and the chosen representative recovers . Thus decryption works for every message residue, not merely the units.

New to topics? Read the docs here!