A discrete random variable $X$ takes value $0,1,2, \ldots n$ with frequency $\binom{n}{0}, \binom{n}{1}, \ldots, \binom{n}{n}$. Find the variance.
I have calculated the mean as such $$\mathbb{P}(X)= \binom{n}{x}/2^n$$ Therefore, $$\begin{split} \mathbb{E}(X) &= \binom{n}{1}/2^n+ \binom{n}{2}/2^n + \ldots + \binom{n}{n}/2^n\\ &= \frac{\binom{n}{1} + \binom{n}{2} + \ldots + \binom{n}{n}}{2^n}\\ &= \frac{n \cdot 2^{n-1}}{2^n}\\ &= n/2 \end{split} $$ But $$\mathbb{E}(X^2) = \binom{1}{1}/2^n+ \binom{4}{2}/2^n + \ldots $$
I am not able to get an algebraic expression for this series. I know the answer is $n/4$.