n*(n+1)=n*n+n
1*1+2*2+...n*n= n(n+1)(2n+1)/6
原式=(1+2+.+n)+(1*1+2*2+...n*n)
=n(n+1)(2n+1)/6 + n(n+1)/2