Đáp án:
`a=-3;b=2`
Giải thích các bước giải:
`A(x)=x^3+ax+b`
`=x^3+x^2-x^2-2x-x+3x+ax+2+b-2`
`=x^3+x^2-2x-x^2-x+2+(a+3)x+b-2`
`=x(x^2+x-2)-(x^2+x-2)+(a+3)x+b-2`
`=(x^2+x-2)(x-1)+(a+3)x+b-2`
Để `A(x)=(x^2+x-2)(x-1)+(a+3)x+b-2` chia hết `B(x)=x^2+x-2`
`=>`$\begin{cases}a+3=0\\b-2=0\end{cases}$
`=>`$\begin{cases}a=-3\\b=2\end{cases}$
Vậy `a=-3;b=2` thì `A(x)` chia hết cho `B(x)`