A cubic polynomial $f(x)=ax^3+bx^2+cx+d$ gives remainders $-3x+3$ and $4x-1$ when divided by $x^2+x+1$ and $x^2+2x-4$. Find the value of $a,b,c,d$.
I know it’s easy but i wanna use Chinese Remainder Theorem(and Euclidean Algorithm) to solve it. A hint or a detailed answer would be much appreciated
Not sure about the usage of the formulas, one obvious way is to write
$$ax^3+cx^2+cx+d$$
$$=(ax+e)(x^2+x+1)+(-3x+3)$$
$$=(ax+f)(x^2+2x-4)+(4x-1)$$
Compare the coefficients of the different exponents of $x$ to find the unknowns
As for example, comparing the constants,
$$d=e+3=-4f-1$$