\(a^2+b^2=a^3+b^3=a^4+b^4\)
\(\Rightarrow\left(a^3+b^3\right)^2=\left(a^2+b^2\right)\left(a^4+b^4\right)\)
\(\Rightarrow a^6+b^6+2a^3b^3=a^6+b^6+a^2b^4+a^4b^2\)
\(\Rightarrow2a^3b^3=a^2b^2\left(a^2+b^2\right)\)
\(\Rightarrow2ab=a^2+b^2\)
\(\Rightarrow\left(a-b\right)^2=0\)
\(\Rightarrow a=b\)
Thế vào \(a^2+b^2=a^3+b^3\)
\(\Rightarrow a^2+a^2=a^3+a^3\Rightarrow2a^3=2a^2\Rightarrow a=b=1\)
\(\Rightarrow a+b=2\)