Homework Statement
When rx^3 + gx^2 +4x + 1 is divided by x-1, the remainder is 12. When it is divided by x+3, the remainder is -20. Find the values of r and g.
Homework Equations
The Attempt at a Solution
r=f(1)
=r(1)^3 + g(1)^2 + 4(1) +5
=r + g +9
r=12
r+g+9=12
r+g= 3...