a^2+a-1=0
a^2+a=1
2a^3+4a^2+1999
=2a^3+2a^2+2a^2+2a-2a+1999
=2a(a^2+a)+2(a^2+a)-2a+1999
=2a+2-2a+1999
=2+1999
=2001