TOPICS
Search

Extended Greatest Common Divisor


The extended greatest common divisor of two integers m and n consists of their greatest common divisor g=GCD(m,n) together with integers r and s satisfying g=rm+sn. The coefficients r and s are computed by the extended Euclidean algorithm. The extended greatest common divisor is used in solving linear Diophantine equations, and is implemented in the Wolfram Language as ExtendedGCD[m, n].


See also

Bézout's Identity, Extended Euclidean Algorithm, Greatest Common Divisor

Related Wolfram sites

https://functions.wolfram.com/IntegerFunctions/ExtendedGCD/

Explore with Wolfram|Alpha

Cite this as:

Weisstein, Eric W. "Extended Greatest Common Divisor." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ExtendedGreatestCommonDivisor.html

Subject classifications