Number Theory
Math · Foundational · Lesson 5 of 9

Coins & Stamps

Which amounts can you make?

An interactive lesson with 6 steps, about 5 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.

What you’ll learn

  • Diophantine equations like ax+by=nax + by = n need whole-number solutions.
  • With coprime values aa, bb, the largest unreachable amount is ab−a−bab - a - b.
  • ax+byax + by can only reach multiples of gcd⁡(a,b)\gcd(a, b) (Bézout).

Steps

  1. A country with two coins
  2. The last gap
  3. Postage
  4. A formula
  5. When it fails
  6. Chicken nuggets