Learn/Number Theory/Bézout's Identity
Number Theory • Topic 12

Bézout's Identity

Bézout's Identity provides the theoretical foundation for linear Diophantine equations.

Statement

Theorem (Bézout's Identity)
Let and be integers with greatest common divisor . The set of all linear combinations (where ) is exactly the set of multiples of .

Corollary: is the smallest positive integer that can be written as .

Linear Diophantine Equations

The equation has integer solutions if and only if . If is one particular solution, the general solution is:
for any integer .

Chicken McNugget Theorem (Frobenius Coin Problem)

For coprime positive integers :
  • The largest number that cannot be written as (with ) is .
  • There are exactly non-representable positive integers.

Practice Problems

Exercise (Problem 1)
Find the general solution to .
Exercise (Problem 2)
What is the largest amount of money that cannot be paid using only 5-cent and 7-cent coins?
Exercise (Problem 3)
Prove that if , then is 1 or 2. (Use Bézout linear combinations).