If the general term of a sequence is given by (n2+n)n , then the sum of first n terms of the sequence is given by