Maybe there's some trick. I am not aware of a repeated use of the reminder theorem. My current knowledge of maths is limited mostly to what I taught my son when he sat for A/L , but it's a quite while now.
If P(x) is a polynomial with a degree of m, then the remainder when divided by (x-a)^n...