(n-1)^3+n^3+(n+1)^3
=3n^3+6n
=3n(n^2+2)
=9n+3(n-1)n(n+1)