The remainder theorem states that, if a polynomial $P(x)$ is divided by a linear factor $x-b$ , then the remainder of the division is $ P(b)$. I am looking for a more general result of what would be the outcome if the dividing factor was some general factor instead of a linear one.. i.e:
$$ P(x) = R(x) + Q(x) J(x)$$
Where, $ R(x)$ is the remainder, $J(x)$ is the dividing polynomial which has degree less then $P(x)$ and $Q(x)$ is the divisor. I have previously derived this result for factor of the form See here:
$$J(x) = (x-a)^n$$
but suppose I had some irreducible polynomial of the form( as an example):
$$J= x^2 + x +1$$
Then what would be the remainder?