Greatest Common Divisor is expressible as a linear combination of its arguments
See greatest common divisor
For any nonzero integers , there exist integers such that .
Furthermore, is the smallest possible integer of this form.
Proof
Let
nb
By the well-ordering principle, has a least element
Claim:
By Division Algorithm 1, , with
Suppose , then
Therefore ,
but the least element of , so either or ,
and by construction ,
so
so
Similarly, .
Let another divisor of and .
Then and for some
Therefore
So
but
so
so
QED