If and are integers not both equal to 0, then there exist integers and such that
where is the greatest common divisor of and .
If and are integers not both equal to 0, then there exist integers and such that
where is the greatest common divisor of and .
Weisstein, Eric W. "Bézout's Identity." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/BezoutsIdentity.html