The Chinese Remainder Theorem (CRT) is a fundamental result in number theory that provides a method to solve systems of simultaneous congruences with pairwise coprime moduli. Here's a structured explanation:
Statement of the Theorem
Given a system of congruences:
[
\begin{cases}
x \equiv a_1 \pmod{m_1} \
x \equiv a_2 \pmod{m_2} \
\vdots \
x \equiv a_n \pmod{m_n}
\end{cases}
]
where ( m_1, m_2, \ldots, m_n ) are pairwise coprime (i.e., (\gcd(m_i, m_j) = 1) for all (i \neq j)), there exists a unique solution modulo ( M = m_1 m_2 \cdots m_n ).
Key Steps and Proof Outline
-
Existence of a Solution:
- Compute ( M = m_1 m_2 \cdots m_n ).
- For each modulus ( m_i ), define ( M_i = \frac{M}{m_i} ). Since ( m_i ) divides ( M ), ( M_i ) is an integer.
- Because ( m_i ) and ( M_i ) are coprime (as ( M_i ) is the product of the other moduli, which are coprime to ( m_i )), there exists an integer ( y_i ) such that:
[
M_i y_i \equiv 1 \pmod{m_i}
]
(This ( y_i ) is the modular inverse of ( M_i ) modulo ( m_i )).
- The solution is given by:
[
x \equiv \sum_{i=1}^n a_i M_i y_i \pmod{M}
]
This works because each term ( a_i M_i y_i ) is congruent to ( a_i ) modulo ( m_i ) and ( 0 ) modulo all other ( m_j ).
-
Uniqueness:
- Suppose ( x ) and ( x' ) are two solutions. Then ( x \equiv x' \pmod{m_i} ) for all ( i ), implying ( x - x' ) is divisible by each ( m_i ).
- Since the ( m_i ) are pairwise coprime, their least common multiple is ( M ), so ( x \equiv x' \pmod{M} ). Thus, the solution is unique modulo ( M ).
Example
Solve:
[
\begin{cases}
x \equiv 2 \pmod{3} \
x \equiv 3 \pmod{5}
\end{cases}
]
- ( M = 3 \times 5 = 15 ).
- ( M_1 = 5 ), ( M_2 = 3 ).
- Find inverses:
- ( 5y_1 \equiv 1 \pmod{3} \Rightarrow y_1 = 2 ) (since ( 5 \times 2 = 10 \equiv 1 \mod 3 )).
- ( 3y_2 \equiv 1 \pmod{5} \Rightarrow y_2 = 2 ) (since ( 3 \times 2 = 6 \equiv 1 \mod 5 )).
- Solution:
[
x \equiv 2 \times 5 \times 2 + 3 \times 3 \times 2 = 20 + 18 = 38 \equiv 8 \pmod{15}
]
Verification: ( 8 \equiv 2 \mod 3 ) and ( 8 \equiv 3 \mod 5 ).
Generalization to Non-Coprime Moduli
If the moduli ( m_1, m_2, \ldots, m_n ) are not pairwise coprime, a solution exists only if the congruences are compatible:
- For all ( i \neq j ), ( a_i \equiv a_j \pmod{\gcd(m_i, m_j)} ).
- If compatible, the solution exists modulo ( \text{lcm}(m_1, m_2, \ldots, m_n) ).
Applications
- Cryptography: Accelerates RSA decryption using CRT to split computations modulo prime factors of ( N ).
- Number Theory: Solving equations and analyzing periodic phenomena.
- Computer Science: Efficient algorithms for large integer arithmetic.
Summary
The Chinese Remainder Theorem guarantees a unique solution to systems of congruences with coprime moduli, enabling the decomposition of complex problems into simpler ones. Its constructive proof and wide applicability make it a cornerstone of modular arithmetic.