Exercise

Divide the polynomial f = 4 - X + 2X2 + 3X3 - X4 in Z/7Z[X] by g = 1 - X + X2. Then the quotient and the remainder are respectively:

-2X4 + 2X3 + X2    and    0.

-X2 + 2X - 2    and    2X - 1.

4X2 + 2X    and    2X + 4.