Euclidean algorithm
The extended Euclidean algorithm can find a series of polynomials of the form