n∑i=0i2=(n2+n)(2n+1)6n∑i=0i2=(n2+n)(2n+1)6
The sum of (n-1) terms of 1+(1+3)+(1+3+5)+.............is