Vol. 6 · A microscope for numbers

Divisibility, Congruences and Diophantine Equations

A companion to 《整除、同余与不定方程》 by Feng Zhigang · 12 stops ·

Vol. 1Vol. 2Vol. 3Vol. 4Vol. 5Vol. 6Vol. 7Vol. 8

  1. §1.1Divisibility: Definitions and Basic PropertiesPut n dots in rows of d. A full rectangle means d divides n.Concept
  2. §1.2Primes and CompositesSieve out multiples round by round; what is left is prime. Stop at √N.ConceptM13
  3. §1.3Greatest Common Divisor and Least Common MultipleKeep cutting the biggest square off a rectangle. The last side is the gcd.SkillM20
  4. §1.4The Fundamental Theorem of ArithmeticEach integer above 1 has one prime barcode: gcd takes min, lcm takes max.ConceptM13
  5. §2.1Congruences: Definitions and Basic PropertiesOn an m-hour clock, numbers that differ by a multiple of m are congruent.ConceptM14
  6. §2.2Residue Systems and Their UsesOne number per class is a complete residue system. Coprime a just reorders it.ConceptM14M16
  7. §2.3Fermat's Little Theorem and Its UsesMod a prime p, keep multiplying 1 by a: after p−1 steps you are back at 1.ConceptM23
  8. §2.4Odd and Even NumbersFind a parity no move can change. If start and goal disagree, it can't be done.MethodM12M17
  9. §2.5Perfect SquaresSquares never leave some remainders mod 3, 4, 8. Pick the right modulus.ConceptM13M14
  10. §3.1Linear Diophantine Equations (and Systems)ax+by=c hits lattice points iff gcd(a,b) | c, and then they are evenly spaced.Skill
  11. §3.2Common Methods for Diophantine EquationsFactoring, estimation and congruences each cut infinitely many cases to a few.MethodM6M14M15M18
  12. §3.3The Pythagorean EquationRational-slope lines through (−1,0) hit the unit circle at Pythagorean triples.ConceptM15M19