[tex]f = X^3+2X^2-4X+a \\ \\ f\,\,\vdots\,\, (X-1) \Rightarrow f=C(X)\cdot (X-1) +0 \Rightarrow \\ \\ \Rightarrow f(1) = C(1)\cdot (1-1) \Rightarrow f(1) = 0 \Rightarrow 1+2-4+a = 0 \Rightarrow \\ \\ \Rightarrow \boxed{a = 1}[/tex]
De aici cred că te descurci.