Learn/Number Theory/Chinese Remainder Theorem
Number Theory • Topic 15

Chinese Remainder Theorem

The Chinese Remainder Theorem (CRT) allows us to solve systems of congruences with coprime moduli. It bridges local properties (modulo ) to global properties (modulo ).

Statement

Theorem (Chinese Remainder Theorem)
Let be pairwise coprime positive integers. Let . For any integers , the system of congruences:
has a solution , and this solution is unique modulo .

Construction Algorithm

To find :
  1. Let .
  2. Find the modular inverse of modulo (i.e., ).
  3. The solution is:

Garner's Algorithm

An alternative method useful for computer implementation, solving two at a time iteratively.

Practice Problems

Exercise (Problem 1)
Find the smallest positive integer such that:
Exercise (Problem 2)
Solve the system and . (Be careful: Moduli not coprime!).
Exercise (Problem 3)
A number leaves a remainder of 1 when divided by 2, 3, 4, 5, and 6. What is the smallest such number greater than 1?