Extended Euclidean Algorithm Calculator — Find gcd(a,b) and Bézout Coefficients
Our Extended Euclidean Algorithm Calculator finds not just gcd(a, b), but also integers x and y — the Bézout coefficients — satisfying the identity a×x + b×y = gcd(a, b), computed with BigInt precision for arbitrarily large inputs. It's the direct engine behind the site's Modular Multiplicative Inverse Calculator and countless other number-theoretic algorithms.
Quick Answer
This calculator finds gcd(a, b) plus integers x and y satisfying a×x + b×y = gcd(a, b), using the extended Euclidean algorithm with exact BigInt precision.
How to Use the Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients
- 1
Enter two integers, a and b.
- 2
Click 'Calculate' to find gcd(a, b) and the Bézout coefficients x and y.
- 3
Verify the result: a × x + b × y always equals the computed gcd.
Why Use Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients?
The ordinary Euclidean algorithm finds gcd(a, b) by repeated division, but the extended version tracks extra bookkeeping at each step so that, by the time it finishes, it has also expressed that gcd as a linear combination of the original a and b — integers x and y with a×x + b×y = gcd(a, b), a result guaranteed to exist by Bézout's identity. This isn't just a mathematical curiosity: those coefficients are exactly what's needed to compute modular multiplicative inverses, solve linear Diophantine equations, and implement RSA key generation.
Frequently Asked Questions
Related Tools
Modular Multiplicative Inverse Calculator — Solve ax ≡ 1 (mod m)
Find the modular multiplicative inverse of a modulo m using the extended Euclidean algorithm. Free calculator with BigInt precision and existence check.
Chinese Remainder Theorem Calculator — Solve Modular Systems
Solve a system of congruences x ≡ aᵢ (mod mᵢ) for pairwise-coprime moduli using the Chinese Remainder Theorem. Free calculator with BigInt precision.
Modular Exponentiation Calculator — Fast bᵉ mod m Online
Calculate bᵉ mod m for arbitrarily large exponents using fast square-and-multiply exponentiation. Free calculator with BigInt precision, essential for cryptography.
Continued Fraction Calculator — Expand & Evaluate Online
Expand any decimal number or fraction into its continued fraction terms [a₀; a₁, a₂, ...] and see every convergent. Free calculator with exact BigInt precision.