\frac{1}{6}\Biggl(n^6+n^3+2n^2+2n\Biggr)