0

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.

N. F. Taussig
  • 76,571

2 Answers2

0

Algebraic way: Consider the function $f(x)=(x+1)^n=\sum_{k=0}^{n}{{n\choose k}}x^k$. Note that $f(1)=2^n$.

Now we differentiate twice: $$f’(1)=n(1+1)^{n-1}= \sum_{k=1}^{n}{k{n\choose k}} $$ and $$f’’(1)=n(n-1)(1+1)^{n-2}= \sum_{k=2}^{n}{(k^2-k){n\choose k}}$$ $$= f’’(1)=n(n-1)2^{n-2}= \sum_{k=2}^{n}{k^2{n\choose k}}-\sum_{k=2}^{n}{k{n\choose k}}$$ $$n(n-1)2^{n-2}= \sum_{k=2}^{n}{k^2{n\choose k}}-f’(1)+n$$ Can you take it from here?

DINEDINE
  • 6,081
0

Hint: A combinatorial approach is mentioned in a comment. Here is a hint, try to use:

$$\binom{n}{k}=\frac{n}{k}\binom{n-1}{k-1}$$

tarit goswami
  • 3,009
  • 1
  • 12
  • 27