1.2.7. The Chinese Remainder Theorem
This section is based on parts of [BUR11, Sec. 4.4, Sec. 7.3].
Theorem 1.2.7.1.
Let be an integer and positive integers such that for . For integers , we consider the system of linear congruences
Then this system has a solution and this solution is unique modulo .
Proof.
We first prove that the system of linear congruences admits a solution. For this, for each , we construct a solution to the th congruence such that for . The integer
is then a solution of the system. Notice first that the integer is certainly a solution to the th congruence , but it need not be divisible by for . We modify the tautological solution as follows: consider the auxiliary integer and notice that
Moreover, since and the moduli are pairwise coprime, we have . Euler’s Theorem (Theorem 1.2.6.2) then yields the congruence
and hence, by Proposition 1.2.1.6(4),
The integer
thus has the required properties, which finishes the proof of existence.
We now show that the solution is unique modulo . Let be a solution to the system of congruences, that is,
Then for each . Since the moduli are pairwise coprime, a straightforward induction using Lemma 1.2.6.1 shows that . This finishes the proof. ∎
Remark 1.2.7.2.
Theorem 1.2.7.1 can also be proven using Bézout’s Identity (Theorem 1.1.3.7) and its corollaries, for instance. This yields alternative and typically more efficient methods for solving the corresponding linear systems. See the model solutions to the companion exercises.
We explain how to use the proof of the Chinese Remainder Theorem (Theorem 1.2.7.1) to solve a suitable system of linear congruences.
Example 1.2.7.3.
Consider the system of linear congruences
Since the moduli are distinct primes, they are pairwise coprime. We have
As shown in the proof of the Chinese Remainder Theorem (Theorem 1.2.7.1),
is a solution to the system of congruences. Here we use that , and . The integer , however, is very large. Since we are only interested in the solution of the system modulo , we may reduce the powers of the auxiliary integers by observing the following equalities:
Hence,
Consequently,
Thus, we may replace the solution by the integer
since . Finally, and hence we may replace by the integer
which is also a solution to the original system of congruences since
Indeed,
End of Lecture 9