The question:
Let $x^{17}+ax+b$ be a polynomial over $\mathbb{Z}_{3}$. For which values of $a$ and $b$ will $x^{2}+2$ be a factor?
I know that I can find a solution by a brute force technique, but is there a more efficient way to solve this problem? Thanks.
If $x^2+2$ is a factor of that polynomial p, then every root of $x^2+2$ will be a root of p. $\mathbb{Z}_{3}$ only has 3 elements. Check which ones are roots of $x^2+2$. Then those same roots need to be roots of the polynomial. So $p(x_1)=0$ and $p(x_2)=0$. You get two equations with two unknowns, so you can solve for a and b.