∵x^2+5x-990=0,
∴x^3+6x^2-985x+1019
=x^3+5x^2-990x+x^2+5x-990+990+1019
=x(x^2+5x-990)+(x^2+5x-990)+2009
=x*0+0+2009
=2009