\(f\left(x\right)=\left(x^4+x\right)+\left(3x^3+3\right)+x^2-5x+4=x\left(x^3+1\right)+3\left(x^3+1\right)+x^2-5x+4\)
Để dư bằng 0 thì \(x^2-5x+4=0\)
\(\Rightarrow x\left(x-4\right)-\left(x-4\right)=0\)
\(\Rightarrow\left(x-4\right)\left(x-1\right)=0\Rightarrow\orbr{\begin{cases}x=4\\x=1\end{cases}}\)