Write the variance of first n natural numbers.
Variance = ∑x2/n−(∑x/n)2
But ∑x=1+2+3+...+n=n(n+12)
∑x2=n(n+1)(2n+1)6
Substituting these values we get
variance = n2−112