Find the GCD and Bézout coefficients (x, y) for two integers using the extended Euclidean algorithm.
Enter two integers, then click Calculate.
The extended Euclidean algorithm is an extension of the Euclidean algorithm that computes the greatest common divisor (GCD) of two integers a and b, and also finds the Bézout coefficients x and y such that a·x + b·y = GCD(a, b). This algorithm is fundamental in number theory and cryptography. It is used for solving linear Diophantine equations, computing modular inverses, and in the RSA encryption algorithm. The method works by repeated division and back-substitution. This calculator provides a step-by-step visualization of the algorithm, showing how the quotients and remainders are computed. Understanding the extended Euclidean algorithm is essential for advanced mathematics, computer science, and cybersecurity applications.
- Enter the first integer a.
- Enter the second integer b.
- Click Calculate to find the GCD and Bézout coefficients.
- The result shows the GCD, coefficients x and y, and a step-by-step calculation.
- Click Reset to restore default example values.