\(\left(a+b+c\right)^3-a^3-b^3-c^3\)
\(=\left(a+b+c-a\right)\left[\left(a+b+c\right)^2+a\left(a+b+c\right)+a^2\right]-\left(b+c\right)\left(b^2-bc+c^2\right)\)
\(=\left(b+c\right)\left(3a^2+3ab+3bc+3ac\right)\)
\(=3\left(a+b\right)\left(b+c\right)\left(a+c\right)\)