When a polynomial $f(x)$ is divided by $x-5$ or $x-3$ or $x-2$ it leaves a remainder of $1$. Which of the following would be the polynomial?
a. $ x^3 - 10x^2 + 31x + 31$
b. $x^3 - 10x^2 + 31x - 31 $
c. $ x^3 - 10x^2 + 31x - 29$
d. $x^3 - 10x^2 + 31x + 29$
It would be $$ (x-5)(x-3)(x-2)+1=x^3 - 10x^2 + 31x - 29. $$