The answer will be : #x^3 - 3x^2 + 7x + 2 = (x-1)(x^2 - 2x - 5) + 7#
Explanation:
You basically divide #x^3 - 3x^2 + 7x + 2# by #x-1# by using the euclidean method, just like you would do it if you were dividing a natural number a by another number b : you will here try to delete the 3rd degree terms, then the 2nd degree terms, then the 1st degree terms.