P(x)= x^2017 - 2018x^2016+ 2018x^2015+...-2018x^2 + 2018x-1
=> P(x)= x^2017 -2017x^2016-x^2016 + 2017x^2015 + x^2015+..-2017x^2-x^2 + 2017x+x-1
=> P(x)= x^2016(x-2017) -x^2015(x-2017)+...- x(x -2017)+ x-1
thay x=2017 vào p(x) ta được
p(2017)= 2016