\(a^2+b^2+c^2-ab-bc-ac=0\)
\(\Rightarrow2a^2+2b^2+2c^2-2ab-2bc-2ac=0\)
\(\Rightarrow\left(a-b\right)^2+\left(b-c\right)^2+\left(a-c\right)^2=0\) (1)
Mà: \(\left(a-b\right)^2+\left(b-c\right)^2+\left(a-c\right)^2\ge0\)
Nên PT (1) \(\Leftrightarrow\left\{{}\begin{matrix}\left(a-b\right)^2=0\\\left(b-c\right)^2=0\\\left(a-c\right)^2=0\end{matrix}\right.\)
=> a = b = c
\(P=\left(a-b\right)^{2020}+\left(b-c\right)^{2021}+\left(c-a\right)^{2022}\)
\(=\left(a-a\right)^{2020}+\left(b-b\right)^{2021}+\left(c-c\right)^{2022}\)
= 0