Number Theory / Modular arithmetic
Fermat, Euler and the Chinese Remainder Theorem
Three classical theorems that make modular exponentiation predictable and modular systems solvable.
Contents 3 sections
By the end you can
- Apply Fermat’s little theorem and Euler’s theorem
- Compute Euler’s totient function
- Solve simultaneous congruences
Helps to know: Modular Arithmetic
§1Fermat and Euler
§2The Chinese Remainder Theorem
A third-century puzzle asks for a number leaving remainder 2 when divided by 3, 3 when divided by 5, and 2 when divided by 7. The answer, 23, is unique modulo .
Check yourself
- Q1
- Q2