$n(n+1)2^{n-2} = \sum_{i=1}^ni^2\binom{n}{i}$
I had proved this combinatorially but also trying to derive this identity using binomial theorem.
From the bionomial theorem, one could easily get $2^n = \sum_{k=0}^n\binom{n}{k}$
Using this LHS could be equated with$\binom{n+1}{2}{1\over2} \sum_{k=0}^n\binom{n}{k}$
I'd like to go further to make this form closer to $\sum_{i=1}^ni^2$ but it's hard to imagine where to go.
Any advice?
You already have $$(x+1)^n = \sum_{i=1}^n x^i{n\choose i},$$ $$n(x+1)^{n-1} = \sum_{i=1}^n i{n\choose i} x^{i-1}$$ $$nx(x+1)^{n-1} = \sum_{i=1}^n i{n\choose i} x^i$$ $$n(x+1)^{n-1} + n(n-1)x(x+1)^{n-2} = \sum_{i=1}^n i^2{n\choose i} x^{i-1}.$$
Now, taking $x=1$, you have $$n2^{n-1}+ n(n-1)2^{n-2} = \sum_{i=1}^ni^2{n \choose i}.$$