M^3+3M^2+3M+2=0,
(M+1)^3+1=0
M+1=-1,
(M+1)^2007+(M+1)^2008+(M+1)^2009
=(-1)^2007+(-1)^2008+(-1)^2009
=-1+1-1
=-1