Ta có:\(x=18\Rightarrow\hept{\begin{cases}x+1=19\\-x-1=-19\end{cases}}\)
Thay vào BT D ta được:
\(D=x^{12}+\left(-x-1\right)x^{11}+\left(x+1\right)x^{10}+\left(-x-1\right)x^9+...+\left(x+1\right)x^2+\left(-x-1\right)x+1\)
\(=x^{12}-x^{12}-x^{11}+x^{11}+x^{10}-x^{10}-x^9+...+x^3+x^2-x^2-x+1\)
\(=1-x\)