\(a^{2013}+b^{2013}=a^{2012}+b^{2012}\Rightarrow a^{2012}\left(a-1\right)+b^{2012}\left(b-1\right)=0\) (1)
\(a^{2014}+b^{2014}=a^{2013}+b^{2013}\Rightarrow a^{2013}\left(a-1\right)+b^{2013}\left(b-1\right)=0\) (2)
Trừ vế cho vế của (2) cho (1):
\(\left(a-1\right)\left(a^{2013}-a^{2012}\right)+\left(b-1\right)\left(b^{2013}-b^{2012}\right)=0\)
\(\Leftrightarrow a^{2012}\left(a-1\right)^2+b^{2012}\left(b-1\right)^2=0\)
\(\Rightarrow\left\{{}\begin{matrix}a^{2012}\left(a-1\right)^2=0\\b^{2012}\left(b-1\right)^2=0\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}a-1=0\\b-1=0\end{matrix}\right.\) \(\Rightarrow a=b=1\) (do \(a;b>0\))
\(\Rightarrow P=1+1=2\)