Example. [00I6]

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.