Math 2.0

Number theory Proof

Proof of cancellation in congruences

Builds on Congruence modulo nDivisibilityGreatest common divisorCoprime integersBézout's identityGeneralized Euclid's lemma

Proof

  1. Let nn be a positive integer, and let a,b,ca, b, c be integers with ca≡cb(modn)c a \equiv c b \pmod n. Let d=gcd⁡(c,n)d = \gcd(c, n) be their greatest common divisor.
  2. Since n≠0n \ne 0, cc and nn are not both 00. So dd is a positive integer that divides cc and nn.
  3. Write c=dc′c = d c' and n=dn′n = d n' with integers c′c' and n′n'. Since n>0n > 0 and d>0d > 0, n′=n/dn' = n / d is a positive integer.
  4. By the definition of congruence, nn divides ca−cb=c(a−b)c a - c b = c (a - b). So there is an integer kk with c(a−b)=nkc (a - b) = n k.
  5. By step 3, this reads dc′(a−b)=dn′kd c' (a - b) = d n' k. Since d≠0d \ne 0, we can divide by dd and get c′(a−b)=n′kc' (a - b) = n' k. So n′n' divides c′(a−b)c' (a - b).
  6. By Bézout's identity, there are integers xx and yy with cx+ny=dc x + n y = d.
  7. By step 3, this reads d(c′x+n′y)=dd (c' x + n' y) = d. Dividing by dd gives c′x+n′y=1c' x + n' y = 1.
  8. Let ee be a common divisor of c′c' and n′n'. By step 7, ee divides 11, so e=±1e = \pm 1. Hence gcd⁡(c′,n′)=1\gcd(c', n') = 1, and n′n' and c′c' are coprime.
  9. By steps 5 and 8 and the generalized Euclid's lemma, n′n' divides a−ba - b.
  10. Hence a≡b(modn/d)a \equiv b \pmod{n / d}.

Idea

Divide the relation n∣c(a−b)n \mid c (a - b) by the common factor dd of cc and nn. What is left of cc shares no factor with what is left of nn, so Euclid's lemma removes it.

Reading path

To understand this page from the ground up, read these 26 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 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 functiondefinitionCoprime 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…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 cancellation in congruences, proof, no evidence levelProof of cancellation…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. Coprime integers definition
  10. Addition of natural numbers definition
  11. The successor function is injective statement
  12. Zero is not a successor statement
  13. Proof of the commutativity of addition by induction proof
  14. Order on the natural numbers definition
  15. Commutativity of addition statement
  16. Proof of strong induction from ordinary induction proof
  17. Strong induction statement
  18. Proof of the well-ordering principle from strong induction proof
  19. Well-ordering principle statement
  20. Proof of the division algorithm proof
  21. Division algorithm statement
  22. Proof of Bézout's identity proof
  23. Bézout's identity statement
  24. Proof of the generalized Euclid's lemma proof
  25. Generalized Euclid's lemma statement
  26. Proof of cancellation in congruences proof

Where this leads

4 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Modular_arithmetic, Basic properties
About this page
TagYBT5E9YJPX
URIm2://YBT5E9YJPX
Kindproof
WritingW0 stub
MSC11A07
ProvesCancellation in congruences
UsesCongruence modulo n, Divisibility, Greatest common divisor, Coprime integers, Bézout's identity, Generalized Euclid's lemma
MethodsDirect proof
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.