Bézout's Identity
For any integers and there are integers and with ; they are found with the extended Euclidean algorithm. It is used to compute modular inverses and to solve linear Diophantine equations.
LaTeX
ax+by=\gcd(a,b)\ \ \text{for some integers}\ x,\ yVariables
- integers, not both zero
- Bézout coefficients
Example
Find with .
- The Euclidean algorithm gives .
- Back-substitution yields .
- Check: .
Answer: .