Math 2.0

Number theory Proof

Proof of the Frobenius coin problem for two coins

Builds on Coprime integersGeneralized Euclid's lemmaBézout's identityDivision algorithm

Proof

Let a>1a > 1 and b>1b > 1 be coprime integers. Put N=ab−a−bN = ab - a - b. Here "natural number" includes 00.

Part 1: NN is not of the form ax+byax + by.

  1. Suppose N=ax+byN = ax + by with natural numbers xx and yy. Then ab=a(x+1)+b(y+1)ab = a(x + 1) + b(y + 1).
  2. So b(y+1)=a(b−x−1)b(y + 1) = a(b - x - 1), and aa divides b(y+1)b(y + 1).
  3. Since aa and bb are coprime, the generalized Euclid's lemma gives a∣y+1a \mid y + 1. As y+1≥1y + 1 \ge 1, this forces y+1≥ay + 1 \ge a.
  4. In the same way, a(x+1)=b(a−y−1)a(x + 1) = b(a - y - 1), so b∣x+1b \mid x + 1 and x+1≥bx + 1 \ge b.
  5. Then ab=a(x+1)+b(y+1)≥ab+ab=2abab = a(x + 1) + b(y + 1) \ge ab + ab = 2ab. This is false, since ab>0ab > 0. So no such xx and yy exist.

Part 2: every integer n>Nn > N is of the form ax+byax + by.

  1. By Bézout's identity, there are integers uu and vv with au+bv=1au + bv = 1. So au≡1(modb)a u \equiv 1 \pmod b.
  2. Let n>Nn > N be an integer. By the division algorithm, there is an xx with 0≤x≤b−10 \le x \le b - 1 and x≡nu(modb)x \equiv nu \pmod b.
  3. Then ax≡anu≡n(modb)ax \equiv anu \equiv n \pmod b, so y=(n−ax)/by = (n - ax)/b is an integer, and n=ax+byn = ax + by.
  4. Since x≤b−1x \le b - 1, we get n−ax≥n−a(b−1)>N−ab+a=−bn - ax \ge n - a(b - 1) > N - ab + a = -b.
  5. So by=n−ax>−bby = n - ax > -b, and y>−1y > -1. As yy is an integer, y≥0y \ge 0.
  6. So xx and yy are natural numbers with n=ax+byn = ax + by.

Idea

For the first part, a representation of ab−a−bab - a - b would force x+1≥bx + 1 \ge b and y+1≥ay + 1 \ge a by divisibility, which overshoots abab. For the second part, choose xx in {0,…,b−1}\set{0, \dots, b - 1} to make n−axn - ax divisible by bb. The bound n>ab−a−bn > ab - a - b is exactly what makes the remaining yy nonnegative.

Reading path

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

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Coin_problem, n = 2
About this page
Tag7THCHQQM1A
URIm2://7THCHQQM1A
Kindproof
WritingW0 stub
MSC11D07
ProvesFrobenius coin problem
UsesCoprime integers, Generalized Euclid's lemma, Bézout's identity, Division algorithm
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.