X^3+6X^2-985X+1014
=(X^3+5X^2-990X)+(X^2+5X-990)+2004
=X(X^2+5X-990)+(X^2+5X-990)+2004
=X*0+0+2004
=2004