Exercise

Let f = X7 - 1 and g = X5 - 1 in R[X]. The polynomials a and b in af + bg = gcd(f,g) obtained by the extended Euclidean algorithm are:

X3 + X + 1    and    X2 - X2

-X3 - X    and    X5 + X3 + 1

-2X3    and    X5 - X3