=x^4+2007x^2+2007x-x+2007
=(x^4-x)+(2007x^2+2007x+2007)
=x(x^3-1)+2007(x^2+x+1)
=x(x-1)(x^2+x+1)+2007(x^2+x+1)
=(x^2+x+1)(x(x-1)+2007)
=(x^2+x+1)(x^2-x+2007)
x4 + 2007x2 + 2006x + 2007
=x4-x3+2007x2+2017x+2017
=x.(x-1)(x2+x+1)+2007.(x2+x+1)
=(x2+x+1)(x2-x+2007)
x^4-x+2007*(x^2+x+1)=x*(x-1)*(x^2+x+1)+2007*(x^2+x+1)=(x^2+x+1)*(x^2-x+2007)