\(x=2021\Leftrightarrow x+1=2022\\ \Leftrightarrow P=x^5-\left(x+1\right)x^4+\left(x+1\right)x^3-\left(x+1\right)x^2+\left(x+1\right)x-x\\ P=x^5-x^5-x^4+x^4+x^3-x^3-x^2+x^2+x-x\\ P=0\)
\(P=x^5-2022x^4+2022x^3-2022x^2+2022x-2021=x^4\left(x-2021\right)-x^3\left(x-2021\right)+x^2\left(x-2021\right)-x\left(x-2021\right)+\left(x-2021\right)\)
\(=\left(x-2021\right)\left(x^4-x^3+x^2-x+1\right)\)
\(=\left(2021-2021\right)\left(x^4-x^3+x^2-x+1\right)=0\)