A random variable \(\mathrm{X}\) assumes value \(1,2,3,\ldots \ldots .n\) with equal probabilities. If the ratio of variance of \(=\sum p_{i}x_{i}^{2}-(\sum p_{i}x_{i})^{2}\) to expected value of \(\mathrm{X}\) is equal to 4 , then the value of \(n\) is
Show Hint
Use the mean and variance of a variable taking the values 1 to n with equal probability.