I need to prove the identity $$\sum_{k = 0}^{n} k^2\binom{n}{k} = n(n - 1)2^{n - 2} + n2^{n - 1}$$ in two ways : in algebraic way and combinatorial way.
About the algebraic way - I tried to find a formula to be placed in the identity that could help me solve the problem but without success. Combinatorial way - I couldn't find a "story" that is proof of identity.