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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesSet Operations: Union, Intersection, and ComplementProof by CasesProving by Cases and ExhaustionVacuous Truth and Trivial CasesProof by Cases (Proof by Exhaustion)Mathematical InductionDivisibility and Greatest Common DivisorThe Fundamental Theorem of ArithmeticDivisibility Theory (Formal Treatment)Fundamental Theorem of Arithmetic (Rigorous Proof)Arithmetic Functions and MultiplicativityDirichlet Series and L-FunctionsPrimes in Arithmetic Progressions (Dirichlet's Theorem)Distribution of PrimesIntroduction to the Riemann Zeta FunctionDirichlet Series and L-FunctionsPrimes in Arithmetic Progressions (Dirichlet's Theorem)Wilson's TheoremFermat's Little TheoremCarmichael Function and Carmichael NumbersModular Arithmetic and CongruencesThe Euclidean Algorithm and Greatest Common DivisorThe Chinese Remainder Theorem and Its ApplicationsLinear Congruences and the Chinese Remainder TheoremSimultaneous 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.