Euclidean algorithm yields gcd and Bézout identity

In a Euclidean domain, the Euclidean algorithm computes a gcd and expresses it as a linear combination.
Euclidean algorithm yields gcd and Bézout identity

Euclidean algorithm yields gcd and Bézout identity: Let RR be a Euclidean domain and let a,bRa,b\in R be not both zero. The Euclidean algorithm produces dRd\in R and x,yRx,y\in R such that d=gcd(a,b)d=\gcd(a,b) and d=ax+byd=ax+by. Equivalently, (a,b)=(d)(a,b)=(d) as ideals.

In a , the algorithm computes a and simultaneously shows that the ideal by aa and bb is a . This is the core input for .