Bézout's Identity is a theorem of Number Theory and Algebra, which is named after the French mathematician, Étienne Bézout (31 March 1730 – 27 September 1783). The theorem states that the greatest common divisor,
of the integers,
and
can be written in the form,
where
and
are integers. Here,
and
are called Bézout coefficients for
.
Computing the pairs, 
There are infinite number of pairs of
which satisfies the equation
. A general formula can be developed to compute pairs as much as you want. To do that, first of all, it's required to calculate one pair of
. One simple way to calculate a pair is using the extended Euclidean algorithm.
Once you have one pair
you can apply the formula: where
, that means
is an integer.
Proof:
As
satisfies the equation
then,
Or,
Or,
Or,
Or,
Or,
Or,
Therefore, the coefficients of
are equal and the coefficients of
are also equal,
[Note: The formula only works when
. Also, as
, then
.]
Example: The greatest common divisor of
and
is
According to the identity, there exists integers
and
, so that
. If you try to solve the equation, you may soon come up with a pair of solutions like
. So,
. By using this formula, you may find pairs as much as you want.
Proof
Assume
where
and
are non zero integers. The set is not an empty set as it contains either
or
when
and
. Since
is not an empty set, by the well-ordering principle, the set has a minimum element
.
The Euclidean division for
may be written as
, where
,
and
.
Here,
Thus,
is in the form
, and hence
. But,
and
is the smallest positive integer in
. So,
must be
. Thus,
is a divisor of
.
as the remainder is zero and a is a non zero integer. Similarly,
is also a divisor of
. Therefore,
is a common divisor of
and
.
Assume
as any common divisor of
and
;
,
. Again,
Thus,
is a divisor of d. Since
. Therefore, any common divisor of
and
is less than or equals to
.
is the same as
and
can be expressed as
. [Proved]