Sn=a1+a2+.+an
=(1/4*1^2-1)+(1/4*2^2-1)+(1/4*3^2-1)+.+(1/4*n^2-1)
=1/4*(1^2+2^2+.+n^2)-n
=1/4*1/2*n(n-1)(2n-1)-n
=1/4n^3-3/8n^2-7/8n
Sn=a1+a2+.+an
=(1/4*1^2-1)+(1/4*2^2-1)+(1/4*3^2-1)+.+(1/4*n^2-1)
=1/4*(1^2+2^2+.+n^2)-n
=1/4*1/2*n(n-1)(2n-1)-n
=1/4n^3-3/8n^2-7/8n