The discrete random variable \[\mathrm{X}\] can take all possible integer values from 1 to \[\mathrm{k}\], each with a probability \[\frac{1}{\mathrm{k}}\], then its variance is
Show Hint
Use the sums of the first k integers and their squares to find E(X) and E(X^2).