Ta có: \(a^3+b^3+c^3=3abc\)
\(\Leftrightarrow\left(a+b\right)^3-3ab\left(a+b\right)+c^3-3abc=0\)
\(\Leftrightarrow\left[\left(a+b\right)^3+c^3\right]-3ab\left(a+b+c\right)=0\)
\(\Leftrightarrow\left(a+b+c\right)\left[\left(a+b\right)^2-\left(a+b\right)c+c^2-3ab\right]=0\)
\(\Leftrightarrow\left(a+b+c\right)\left(a^2+b^2+c^2-ab-bc-ca\right)=0\)
\(\Leftrightarrow\frac{1}{2}\left(a+b+c\right)\left(2a^2+2b^2+2c^2-2ab-2bc-2ca\right)=\)\(0\)
\(\Leftrightarrow\frac{1}{2}\left(a+b+c\right)\left[\left(a-b\right)^2+\left(b-c\right)^2+\left(c-a\right)^2\right]=0\)
\(\Leftrightarrow\left[{}\begin{matrix}a+b+c=0\\a=b=c\end{matrix}\right.\)
đến đây bạn tự thay vào tính P nhé P được \(2\) giá trị là \(-1\)hoặc\(8\)