\(P\left(x\right)=x^{100}+x^2+1=x^{100}-x^{99}+x^{98}+x^{99}-x^{98^{ }}+x^{97}-x^{97}+x^{96}-x^{95}+...+x^2-x+1\)
\(=x^{98}\left(x^2-x+1\right)+x^{97}\left(x^2-x+1\right)-x^{95}\left(x^2-x+1\right)-...+\left(x^2-x+1\right)\)
\(=\left(x^2-x+1\right)\left(x^{98}+x^{97}-x^{95}-...+1\right)\)=> đpcm