Number System

Chinese Remainder Theorem

Two circular schedules line up at a shared position.

Chinese Remainder Theorem definition

The Chinese remainder theorem combines congruences with pairwise coprime moduli into one solution class.

In Spanish
teorema chino del resto
Topic
Number theory

Chinese Remainder Theorem in a picture

Chinese Remainder Theorem diagramFind a number that has both specified remainders.x ≡ 2 (mod 3)Candidates: 2, 5, 8, 11, …x ≡ 3 (mod 5)8 has remainder 3x ≡ 8 (mod 15)All solutions repeat every 15
Find a number that has both specified remainders.

How it works

If the positive moduli are pairwise coprime, every system of specified remainders has a solution, and it is unique modulo the product of the moduli. For small numbers, list candidates that fit one condition and test the others. Larger systems can use modular inverses to construct the solution.

Worked examples

Solve x ≡ 1 (mod 2), x ≡ 2 (mod 3).

x ≡ 5 (mod 6).

Why are moduli 4 and 9 allowed in the standard theorem?

Their gcd is 1.

For moduli 3, 5, and 7, what is the solution modulus?

3 × 5 × 7 = 105.

Common mistake

Check pairwise coprimality before applying the standard guarantee. With shared factors, the requested remainders may be incompatible.

Quick check

Does the theorem give one integer or a whole residue class?

Show answer

A whole residue class.

What determines the combined modulus?

Show answer

The product of the pairwise coprime moduli.

Is 23 a solution to the pictured example?

Show answer

Yes. It is 8 + 15.

Sources

Flashcard

Chinese Remainder Theorem

Reveal the definition

The Chinese remainder theorem combines congruences with pairwise coprime moduli into one solution class.

Effortless Math. “Chinese Remainder Theorem.” Math Dictionary.