★ The Chinese Remainder Theorem [00I2]
- July 16, 2026
Warm-up [00I3]
- July 16, 2026
Chinese Remainder Theorem [00I4]
- July 16, 2026
For all a,b \in \Z , if \gcd (m,n) = 1 then the system of equivalences \begin {align*} x &\equiv _m a \\ x &\equiv _n b \end {align*} has a unique solution modulo mn.
Proof.
- July 16, 2026
Remark Chinese Remainder Theorem with more than two equivalences [00I5]
- July 16, 2026
One way to understand the Chinese Remainder Theorem is that it gives us a way to replace any two equations x \equiv _m a and x \equiv _n b with a single equation x \equiv _{mn} c (as long as m and n share no common factors). If we have more than two equations, we can simply iterate this process.
Example [00I6]
- July 16, 2026
Solve the system of equivalences \begin {align*} x &\equiv _5 1 \\ x &\equiv _6 2 \\ x &\equiv _7 3. \end {align*}
The first step is to solve the first two equivalences, combining them into a single equivalence. We can verify that 5 and 6 are indeed relatively prime, and 5(-1) + 6(1) = 1. Then according to the Chinese Remainder Theorem proof, we can combine the first two equivalences into a single equivalence x \equiv _{5 \cdot 6} 2 \cdot 5 \cdot (-1) + 1 \cdot 6 \cdot 1 = -4 \equiv _{30} 26.
At this point we can verify that 26 \equiv _5 1 and 26 \equiv _6 2, as required. So now we are down to a system of two equations: \begin {align*} x &\equiv _{30} 26 \\ x &\equiv _7 3. \end {align*} We can repeat the process to combine this into a single solution. First, we can use the extended Euclidean algorithm to compute that 30(-3) + 7(13) = 1. The solution for x is thus x \equiv _{30 \cdot 7} 3 \cdot 30 \cdot (-3) + 26 \cdot 7 \cdot 13 = 2096 \equiv _{210} 206. Hence the final solution for x is x \equiv _{210} 206, and we can verify that this satisfies each of the original three equivalences.