a3 + b3 + c3 - 3abc
= (a3 + 3a2b + 3ab2 + b3 ) + c3 - 3abc - 3a2b - 3ab2
=[(a+b)3 + c3 ]- (3abc+3a2b+3ab2)
=(a+b+c)[(a+b)2 - (a+b)c + c2 ] - 3ab(c+a+b)
=(a+b+c)(a2+2ab+b2-ac-bc+c2)-3ab(a+b+c)
=(a+b+c)(a2+2ab+b2-ac-bc+c2-3ab)
=(a+b+c)(a2+b2+c2-ab-bc-ca)