A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Simultaneous Congruences and Chinese Remainder Theorem

College Depth 92 in the knowledge graph ☐ I know this ☆ Set as goal
413prerequisites beneath it
See this on the map →
Linear Congruences and SolutionsThe Chinese Remainder Theorem and Its Applications+1 more→
number-theory congruences chinese-remainder

Core Idea

The Chinese Remainder Theorem (CRT) solves systems of linear congruences when moduli are pairwise coprime. The theorem guarantees a unique solution modulo the product of moduli and provides a constructive method for finding it, with applications in cryptography.

Explainer

From linear congruences, you know how to solve a single equation of the form ax ≡ b (mod m). The Chinese Remainder Theorem (CRT) lets you solve several such equations *simultaneously*. The classic ancient puzzle: find a number that leaves remainder 2 when divided by 3, remainder 3 when divided by 5, and remainder 2 when divided by 7. The pairwise coprime condition on the moduli (gcd of any two is 1) is what makes CRT work — when moduli share factors, the system may have no solution or infinitely many in an uncontrolled way.

The theorem's guarantee is striking: if the moduli m₁, m₂, …, mₖ are pairwise coprime, then any system of congruences x ≡ aᵢ (mod mᵢ) has exactly one solution modulo M = m₁m₂⋯mₖ. This means the solution space is not just nonempty — it is precisely one residue class within a predictable range. The constructive proof turns this existence claim into an algorithm. For each i, let Mᵢ = M/mᵢ (the product of all moduli except mᵢ). Because mᵢ and Mᵢ are coprime, the modular inverse of Mᵢ modulo mᵢ exists — and this is exactly where the Euclidean algorithm from your prerequisites enters. Call that inverse yᵢ. Then x = Σ aᵢMᵢyᵢ (mod M) is the unique solution.

Working through the puzzle: M = 3 × 5 × 7 = 105. For the first congruence (mod 3): M₁ = 35, and 35 ≡ 2 (mod 3), so the inverse of 2 mod 3 is 2 (since 2 × 2 = 4 ≡ 1). Contribution: 2 × 35 × 2 = 140. Repeat for the others and sum mod 105 to get 23. Verify: 23 = 7 × 3 + 2 ✓, 23 = 4 × 5 + 3 ✓, 23 = 3 × 7 + 2 ✓.

CRT is not just a number puzzle — it is a structural decomposition theorem. It says that computing modulo M = m₁m₂⋯mₖ (with coprime factors) is exactly equivalent to computing modulo each mᵢ independently and reassembling. This decomposition is the backbone of fast arithmetic in cryptography: rather than doing one giant modular multiplication, you do several smaller ones in parallel and combine. The theorem also appears in computer science (hash tables, polynomial interpolation) and signal processing, always carrying the same idea: a complicated global problem decomposes cleanly into independent local pieces when the right coprimality structure is present.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Divisibility and Greatest Common Divisor → The Fundamental Theorem of Arithmetic → Divisibility Theory (Formal Treatment) → Fundamental Theorem of Arithmetic (Rigorous Proof) → Arithmetic Functions and Multiplicativity → Dirichlet Series and L-Functions → Primes in Arithmetic Progressions (Dirichlet's Theorem) → Distribution of Primes → Introduction to the Riemann Zeta Function → Dirichlet Series and L-Functions → Primes in Arithmetic Progressions (Dirichlet's Theorem) → Wilson's Theorem → Fermat's Little Theorem → Carmichael Function and Carmichael Numbers → Modular Arithmetic and Congruences → The Euclidean Algorithm and Greatest Common Divisor → The Chinese Remainder Theorem and Its Applications → Linear Congruences and the Chinese Remainder Theorem → Simultaneous Congruences and Chinese Remainder Theorem

Longest path: 93 steps · 413 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.