hi, i've got the question:

the polynomials f(x) and g(x) are defined by $\displaystyle f(x) = x^3 + px^2 - x + 5$, $\displaystyle g(x) = x^3 - x^2 + px + 1$ where p is a constant. when f(x) and g(x) are divided by x - 2 the remainder is R in each case. find the values of p and R

i got it down to

R = f(2) = 8 + 4p - 2 + 5 = 11 + 4p and

R = g(2) = 8 - 4 + 2p + 1 = 5 + 2p but i'm not sure if either of those are right.

can someone show me the way to do it please? thanks