\(\frac{a^3+b^3+c^3-3abc}{a^2+b^2+c^2-ab-bc-ca}\)
\(=\frac{\left(a+b\right)^3+c^3-3a^2b-3ab^2-3abc}{a^2+b^2+c^2-ab-bc-ca}\)
\(=\frac{\left(a+b+c\right)^3\left[\left(a+b\right)^2-\left(a+b\right)c+c^2\right]-3ab\left(a+b\right)-3abc}{a^2+b^2+c^2-ab-bc-ca}\)
\(=\frac{\left(a+b+c\right)\left(a^2+b^2+2ab-ac-bc-c^2\right)-3ab\left(a+b+c\right)}{a^2+b^2+c^2-ab-bc-ca}\)
\(=\frac{\left(a+b+c\right)\left(a^2+b^2+2ab-ac-bc-c^2-3ab\right)}{a^2+b^2+c^2-ab-bc-ca}\)
\(=\frac{\left(a+b+c\right)\left(a^2+b^2+c^2-ab-bc-ca\right)}{a^2+b^2+c^2-ab-bc-ca}\)
\(=a+b+c\)