Find a polynomial with the smallest degree , with real coefficients such that it is divisible by $x-1$ and $(x-i)^2$ and dividing by $x+1$ gives a remainder $8$.
Lets say this polynomial is $p(x)$, since it is divisible with $x-1$ and $(x-i)^2$ then it must be of the shape: $p(x)=(x-1)(x-i)^2p_1(x)$ and also because of Complex conjugate root theorem. I know that $x+i$ must also be a root. What I don't know is, since $x-i$ is a root to the second degree, does this mean that $x+i$ is also a root to the second degree?
Either way, I have trouble finishing up, since I have $p(x)=(x-1)(x-i)^2(x+i)p_1(x)$ and $$p(x)=q(x)(x+1)+8$$ how do I go about finding $p(x)$ completely?