Chinese Remainder
Theorem
Discover how to solve systems of modular equations simultaneously: one of the most elegant results in number theory.
What Is Modular Arithmetic?
Modular arithmetic studies the remainder after division. When we write \( a \equiv r \pmod{m} \), we mean that \( a \) divided by \( m \) leaves remainder \( r \).
Systems of Congruences
A system of congruences asks: can we find a single number \( x \) that satisfies multiple remainder conditions at once?
Does such an \( x \) exist? If so, is it unique? The Chinese Remainder Theorem answers both questions.
Visualizing Remainders on a Number Line
The Chinese Remainder Theorem
What Does Pairwise Coprime Mean?
Two integers are coprime (or relatively prime) if their greatest common divisor is \( 1 \). A set of moduli is pairwise coprime when every pair in the set is coprime.
CRT vs. Single Congruence
| Single Congruence | CRT (System) | |
|---|---|---|
| Form | \( x \equiv a \pmod{m} \) | Multiple congruences at once |
| Solution Space | Infinitely many, spaced by \( m \) | Unique modulo \( M = \prod m_i \) |
| Requirement | None on \( m \) | Moduli must be pairwise coprime |
| Example | \( x \equiv 2 \pmod{5} \) | \( x \equiv 2 \pmod{3},\; x \equiv 3 \pmod{5} \) |
How to Solve a CRT System
Step-by-Step Checklist
Example 1: Two Congruences
Example 2: Three Congruences
Example 3: Larger Moduli
CRT Construction Diagram
Why Does the Construction Work?
Common Mistakes
Summary at a Glance
| Component | Definition / Formula | Purpose |
|---|---|---|
| \( M \) | \( m_1 m_2 \cdots m_k \) | Combined modulus |
| \( M_i \) | \( M / m_i \) | Partial product for the \( i \)-th equation |
| \( y_i \) | \( M_i y_i \equiv 1 \pmod{m_i} \) | Modular inverse of \( M_i \) |
| \( x \) | \( \sum a_i M_i y_i \pmod{M} \) | The unique solution |
Question 1 of 5
What is the key requirement for the Chinese Remainder Theorem to guarantee a unique solution?
Question 2 of 5
Solve: \( x \equiv 1 \pmod{3} \) and \( x \equiv 2 \pmod{5} \). What is \( x \pmod{15} \)?
Question 3 of 5
For the system \( x \equiv 2 \pmod{3} \), \( x \equiv 3 \pmod{5} \), \( x \equiv 2 \pmod{7} \), what is \( M \)?
Question 4 of 5
Can CRT be directly applied to: \( x \equiv 1 \pmod{6} \) and \( x \equiv 3 \pmod{4} \)?
Question 5 of 5
In the CRT formula, what is the role of the modular inverse \( y_i \)?