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

The Chinese Remainder Theorem and Its Applications

College Depth 90 in the knowledge graph ☐ I know this ☆ Set as goal
4topics build on this
405prerequisites beneath it
See this on the map →
The Euclidean Algorithm and Greatest Common DivisorBézout's Identity+2 more→→Linear Congruences and the Chinese Remainder TheoremQuadratic Congruences+1 more
number-theory crt

Core Idea

If n₁, n₂, …, nₖ are pairwise coprime, the system x ≡ a₁ (mod n₁), x ≡ a₂ (mod n₂), … has a unique solution modulo n₁n₂⋯nₖ. The CRT enables efficient computation by reducing large moduli to smaller ones and has applications in cryptography and parallel computation.

Explainer

The Chinese Remainder Theorem is, at its heart, a statement about independence. From your work with the Euclidean algorithm, you know what it means for two numbers to be coprime — their greatest common divisor is 1, meaning they share no prime factors. When two moduli are coprime, knowing a number's remainder mod one gives you absolutely no information about its remainder mod the other. This independence is the key insight: if you can freely specify remainders for each modulus separately, then every combination of remainders can be achieved by some number.

The concrete statement is this: if n₁, n₂, …, nₖ are pairwise coprime (every pair has gcd 1), then the system x ≡ a₁ (mod n₁), x ≡ a₂ (mod n₂), … always has a solution, and that solution is unique modulo N = n₁n₂⋯nₖ. Think of it as a coordinate system: the remainders (a₁, a₂, …, aₖ) uniquely identify x among all integers from 0 to N−1, just as (x, y) coordinates uniquely identify a point in the plane.

The constructive proof gives you an algorithm. For each modulus nᵢ, define Mᵢ = N/nᵢ — the product of all the other moduli. Since nᵢ and Mᵢ are coprime (nᵢ shares no factors with any other modulus), the Euclidean algorithm finds an inverse yᵢ such that Mᵢyᵢ ≡ 1 (mod nᵢ). Then the solution is x = a₁M₁y₁ + a₂M₂y₂ + ⋯ + aₖMₖyₖ (mod N). Each term aᵢMᵢyᵢ contributes exactly aᵢ in the i-th congruence and zero in all others, because Mᵢ is divisible by every nⱼ with j ≠ i.

Applications of CRT appear wherever you want to reduce a hard computation modulo a large number to easier computations modulo smaller numbers. In cryptography, RSA implementations use CRT to speed up modular exponentiation by working modulo p and q separately and combining results. In computer arithmetic, CRT underpins residue number systems, where integers are represented as tuples of small remainders and arithmetic is done component-wise in parallel. Whenever you see a system of simultaneous modular constraints, CRT tells you whether a solution exists and how to find it — turning what looks like a global constraint satisfaction problem into independent local problems.

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

Longest path: 91 steps · 405 total prerequisite topics

Prerequisites (4)

Leads To (3)