Read this lesson as text

CRT Applications

Number Theory · Axiom Academy

LESSON Applications of the Chinese Remainder Theorem Discover how CRT powers modern cryptography, calendar systems, and polynomial arithmetic 1. Cryptography: RSA Speedup via CRT In RSA cryptography, decryption requires computing m = c d mod n where n = pq (product of two large primes). This is computationally expensive for large n. CRT Optimization: Instead of working modulo n directly, we can: Compute m p = c d p mod p (where d p = d mod (p-1)) Compute m q = c d q mod q (where d q = d mod (q-1)) Use CRT to combine m p and m q to get m mod n Speedup: Modular exponentiation with smaller moduli (p and q instead of n) is approximately 4 times faster than working with n directly! CRT helps solve questions like: "What day of the week will it be 1000 days from now?" by working with different cycle lengths simultaneously. 2 days after Monday in a 7-day week cycle 15 days into a 28-day lunar cycle 100 days into a 365-day year cycle We solve the system of congruences: CRT gives us a unique solution modulo lcm(7, 28, 365). This technique generalizes to computing dates across different calendar systems (Gregorian, Hebrew, Islamic, etc.). 3. Solving Polynomial Congruences CRT enables us to solve polynomial equations modulo composite numbers by solving them modulo prime powers and recombining solutions. Since 15 = 3 × 5, we break this into: x² ≡ 1 (mod 3) → solutions: x ≡ 1, 2 (mod 3) x² ≡ 1 (mod 5) → solutions: x ≡ 1, 4 (mod 5) Using CRT, we combine each pair of solutions:

This is the written version of the interactive lesson above. See the full Number Theory course.