One way to do is to write the first polynomial in terms of the second; this means find
so that
Expanding the right side and matching up coefficients of terms with the same power of
gives
So we have
and in particular we can see
divides this exactly, giving us
and expanding gives