1. Mean
The first n natural numbers are 1,2,3,…,n. Their sum is
i=1∑nxi=2n(n+1)
xˉ=n1i=1∑nxi=2nn(n+1)=2n+1
2. Variance
σ2=n1i=1∑n(xi−xˉ)2=n1i=1∑n(xi−2n+1)2
Expand the square using (a−b)2=a2−2ab+b2 and take the sum term by term. The last term is the same for all n values of i, so its sum is n times it.
σ2=n1i=1∑nxi2−n2⋅2n+1i=1∑nxi+n1⋅n(2n+1)2
Now use ∑i=1nxi2=6n(n+1)(2n+1) and ∑i=1nxi=2n(n+1), and cancel n in each term.
σ2=6(n+1)(2n+1)−2(n+1)2+4(n+1)2
Combine the last two terms.
σ2=6(n+1)(2n+1)−4(n+1)2
Take out the common factor (n+1) over the common denominator 12.
σ2=12(n+1)[2(2n+1)−3(n+1)]
σ2=12(n+1)(n−1)=12n2−1
So, the mean is 2n+1 and the variance is 12n2−1.