math calculator
Extended Euclidean GCD Solver
Compute GCD of two numbers and find Bézout coefficients using the Extended Euclidean algorithm.
Inputs
Results
Greatest Common Divisor (GCD)
2
Euclidean Division Steps
Extended Euclidean Steps
Initialize Extended coefficients:
\(s_0 = 1, \; s_1 = 0, \; t_0 = 0, \; t_1 = 1\).
Step 1: coefficient updates using quotient \(q = 5\):
Step 2: coefficient updates using quotient \(q = 4\):
Step 3: coefficient updates using quotient \(q = 1\):
Step 4: coefficient updates using quotient \(q = 1\):
Step 5: coefficient updates using quotient \(q = 2\):
Bézout\'s Identity check: \[(-9) \times 240 + (47) \times 46 = 2\]
Formula
Euclidean GCD & Bézout Formulas
a = q \cdot b + r, \quad ax + by = \gcd(a, b)The standard algorithm computes the remainder r repeatedly until r=0. The Extended algorithm solves for x and y coefficients backward.
Step by step
How the calculation works
- 1Enter two positive integers (a and b) to calculate their Greatest Common Divisor.
- 2The division list shows the dividend, quotient, and remainder for each step.
- 3The extended steps display the Bézout coefficients s and t to solve the linear combination.
Related guides
Learn more about this calculation
Guide
Fraction Operations Guide: Add, Subtract, Multiply, Divide
Learn the rules for adding, subtracting, multiplying, and dividing fractions, with simplification steps and live DTC calculator workflows.
Site Guide
How to Use Do The Calculation Calculators: A Practical Step-by-Step Guide
Learn the fastest reliable workflow for using Do The Calculation calculators, reading results, checking formulas, and using save, print, share, and export actions correctly.
Factorization
Prime Factorization
Factor numbers to find GCD and LCM.
Long Division
Long Division
Solve step-by-step divisions with remainders.