Page 1 of 9 · Overview

Lesson 6 of 8 · Number Theory

The Chinese Remainder Theorem

A system of "n leaves remainder r₁ mod m₁, and remainder r₂ mod m₂, ..." always has a solution when the moduli are pairwise coprime — and finding it is just a sequence of small searches, not an intimidating theorem to memorize. When the moduli aren't coprime, one extra compatibility check tells you whether a solution exists at all.

Mark your status for this lesson:

Learning objectives

  • Solve a system of two or three simultaneous congruences by successive substitution.
  • Combine congruences step by step: solve the first pair, then bring in each additional congruence.
  • Check compatibility when moduli share a common factor, and recognize when no solution exists.
  • Recognize the "all remainders equal" shortcut that reduces a CRT system to a pure lcm question.