Math 2.0

Number theory Proof

Proof of the Chinese remainder theorem

Builds on Congruence modulo nDivisibilityCoprime integersBézout's identityCongruence is compatible with multiplicationCongruence is compatible with additionGeneralized Euclid's lemma

Proof

We first build a solution, and then prove uniqueness modulo NN by induction.

  1. Let n1,…,nkn_1, \dots, n_k be pairwise coprime positive integers, let N=n1n2⋯nkN = n_1 n_2 \cdots n_k, and let a1,…,aka_1, \dots, a_k be integers.
  2. Fix an index ii. For each j≠ij \ne i, we have gcd⁡(ni,nj)=1\gcd(n_i, n_j) = 1. By Bézout's identity, there are integers uju_j and vjv_j with ujni+vjnj=1u_j n_i + v_j n_j = 1.
  3. Let ei=∏j≠ivjnje_i = \prod_{j \ne i} v_j n_j. If k=1k = 1, this is the empty product, so e1=1e_1 = 1.
  4. For j≠ij \ne i, step 2 gives 1−vjnj=ujni1 - v_j n_j = u_j n_i. So nin_i divides 1−vjnj1 - v_j n_j, that is, vjnj≡1(modni)v_j n_j \equiv 1 \pmod{n_i} by the definition of congruence.
  5. Multiply the congruences of step 4 over all j≠ij \ne i, by compatibility with multiplication. This gives ei≡1(modni)e_i \equiv 1 \pmod{n_i}. If k=1k = 1, then e1=1e_1 = 1 and this holds directly.
  6. For l≠il \ne i, the factor vlnlv_l n_l appears in eie_i, so nln_l divides eie_i. That is, ei≡0(modnl)e_i \equiv 0 \pmod{n_l}.
  7. Let x=∑i=1kaieix = \sum_{i=1}^{k} a_i e_i. Fix an index ll.
  8. By step 5 and compatibility with multiplication, alel≡al(modnl)a_l e_l \equiv a_l \pmod{n_l}. By step 6, aiei≡0(modnl)a_i e_i \equiv 0 \pmod{n_l} for each i≠li \ne l.
  9. By step 8 and compatibility with addition, applied term by term to the sum xx, we get x≡al(modnl)x \equiv a_l \pmod{n_l}. So xx is a solution.
  10. Now let xx and yy be two solutions. For each ii, nin_i divides x−aix - a_i and y−aiy - a_i. So nin_i divides their difference x−yx - y.
  11. We prove by induction on jj, for 1≤j≤k1 \le j \le k, that n1⋯njn_1 \cdots n_j divides x−yx - y. The case j=1j = 1 is step 10.
  12. Assume that x−y=n1⋯njtx - y = n_1 \cdots n_j t for an integer tt, with j<kj < k. By step 10, nj+1n_{j+1} divides n1⋯njtn_1 \cdots n_j t.
  13. For r=1,…,jr = 1, \dots, j in turn, suppose nj+1n_{j+1} divides nr(nr+1⋯njt)n_r (n_{r+1} \cdots n_j t). Since gcd⁡(nj+1,nr)=1\gcd(n_{j+1}, n_r) = 1, the generalized Euclid's lemma gives that nj+1n_{j+1} divides nr+1⋯njtn_{r+1} \cdots n_j t.
  14. After the step r=jr = j in step 13, we get that nj+1n_{j+1} divides tt. Write t=nj+1t′t = n_{j+1} t' with an integer t′t'.
  15. Then x−y=n1⋯nj+1t′x - y = n_1 \cdots n_{j+1} t', which completes the induction step.
  16. By step 11 with j=kj = k, NN divides x−yx - y. So x≡y(modN)x \equiv y \pmod N.
  17. By steps 9 and 16, a solution exists, and two solutions are congruent modulo NN.

Idea

For each ii, Bézout's identity builds a number eie_i that is 11 modulo nin_i and 00 modulo every other nln_l. Then ∑aiei\sum a_i e_i hits every target at once. For uniqueness, the coprimality lets us peel off one modulus at a time from a common multiple.

Reading path

To understand this page from the ground up, read these 30 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of strong induction from ordinary induction, Proof that congruence is compatible with addition, Proof that congruence is compatible with multiplication, Proof of the well-ordering principle from strong induction, Proof of the division algorithm.

Show the path as a graph
Definition by recursion, concept, no evidence levelDefinition by recursi…conceptDivisibility, definition, no evidence levelDivisibilitydefinitionMathematical induction, concept, no evidence levelMathematical inductionconceptNatural numbers, object, no evidence levelNatural numbersobjectPeano axioms, concept, no evidence levelPeano axiomsconceptCongruence modulo n, definition, no evidence levelCongruence modulo ndefinitionGreatest common divisor, definition, no evidence levelGreatest common divis…definitionSuccessor function, definition, no evidence levelSuccessor functiondefinitionProof that congruence is compatible with addition, proof, no evidence levelProof that congruence…proofProof that congruence is compatible with multiplication, proof, no evidence levelProof that congruence…proofCoprime integers, definition, no evidence levelCoprime integersdefinitionAddition of natural numbers, definition, no evidence levelAddition of natural n…definitionThe successor function is injective, statement, no evidence levelThe successor functio…statementZero is not a successor, statement, no evidence levelZero is not a success…statementCongruence is compatible with addition, statement, no evidence levelCongruence is compati…statementCongruence is compatible with multiplication, statement, no evidence levelCongruence is compati…statementProof of the commutativity of addition by induction, proof, no evidence levelProof of the commutat…proofOrder on the natural numbers, definition, no evidence levelOrder on the natural …definitionCommutativity of addition, statement, no evidence levelCommutativity of addi…statementProof of strong induction from ordinary induction, proof, no evidence levelProof of strong induc…proofStrong induction, statement, no evidence levelStrong inductionstatementProof of the well-ordering principle from strong induction, proof, no evidence levelProof of the well-ord…proofWell-ordering principle, statement, no evidence levelWell-ordering princip…statementProof of the division algorithm, proof, no evidence levelProof of the division…proofDivision algorithm, statement, no evidence levelDivision algorithmstatementProof of Bézout's identity, proof, no evidence levelProof of Bézout's ide…proofBézout's identity, statement, no evidence levelBézout's identitystatementProof of the generalized Euclid's lemma, proof, no evidence levelProof of the generali…proofGeneralized Euclid's lemma, statement, no evidence levelGeneralized Euclid's …statementProof of the Chinese remainder theorem, proof, no evidence levelProof of the Chinese …proof
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Definition by recursion concept
  2. Divisibility definition
  3. Mathematical induction concept
  4. Natural numbers object
  5. Peano axioms concept
  6. Congruence modulo n definition
  7. Greatest common divisor definition
  8. Successor function definition
  9. Proof that congruence is compatible with addition proof
  10. Proof that congruence is compatible with multiplication proof
  11. Coprime integers definition
  12. Addition of natural numbers definition
  13. The successor function is injective statement
  14. Zero is not a successor statement
  15. Congruence is compatible with addition statement
  16. Congruence is compatible with multiplication statement
  17. Proof of the commutativity of addition by induction proof
  18. Order on the natural numbers definition
  19. Commutativity of addition statement
  20. Proof of strong induction from ordinary induction proof
  21. Strong induction statement
  22. Proof of the well-ordering principle from strong induction proof
  23. Well-ordering principle statement
  24. Proof of the division algorithm proof
  25. Division algorithm statement
  26. Proof of Bézout's identity proof
  27. Bézout's identity statement
  28. Proof of the generalized Euclid's lemma proof
  29. Generalized Euclid's lemma statement
  30. Proof of the Chinese remainder theorem proof

Where this leads

12 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Chinese_remainder_theorem, Proof
About this page
Tag3SPSJ2P5X7
URIm2://3SPSJ2P5X7
Kindproof
WritingW0 stub
MSC11A07
ProvesChinese remainder theorem
UsesCongruence modulo n, Divisibility, Coprime integers, Bézout's identity, Congruence is compatible with multiplication, Congruence is compatible with addition, Generalized Euclid's lemma
MethodsConstructive proof, Mathematical induction
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.