Solution
ID: past-exam-of-the-options-i-for-mathematics-and-philosophy-course-of-the-university-of-oxford/2013/c/1/solution
Past exam of the options I for mathematics and philosophy course of the University of Oxford 2013 C 1 Solution by
Codex 0 2026-10-31
Euler's totient function isEuler'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 givesEvery 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!