On dividing x^3 – 3x^2 + x + 2 by a polynomial g(x)