I have problem with proving following equation:
$$ \binom{n}{0}0^2+\binom{n}{1}1^2+\binom{n}{2}2^2+...\binom{n}{n}n^2=n(1+n) \cdot 2^{2n-2} $$
Thanks for any help!
I have problem with proving following equation:
$$ \binom{n}{0}0^2+\binom{n}{1}1^2+\binom{n}{2}2^2+...\binom{n}{n}n^2=n(1+n) \cdot 2^{2n-2} $$
Thanks for any help!
On
Let $f(x)=(1+x)^n=\sum_{k=0}^n \binom{n}{k}x^k$. Derive and multiply by $x$ to get $xf'(x)=\sum_{k=1}^n \binom{n}{k}kx^k$. Derive again and get $(xf'(x))'=\sum_{k=1}^n \binom{n}{k}k^2x^{k-1}\mid_{x=1}=\sum_{k=1}^n \binom{n}{k}k^2$. $$(xf'(x))'=f'(x)+xf''(x)=n(1+x)^{n-1}+xn(n-1)(1+x)^{n-2}\mid_{x=1}=n2^{n-1}+n(n-1)2^{n-2}=n\cdot 2\cdot 2^{n-2}+n(n-1)2^{n-2}=n(n+1)2^{n-2}$$
HINT: Use the identity $\binom{n}kk=\binom{n-1}{k-1}n$ a couple of times. I’ll get you started:
$$\begin{align*} \sum_k\binom{n}kk^2&=n\sum_k\binom{n-1}{k-1}k\\ &=n\sum_k\binom{n-1}k(k+1)\\ &=n\sum_k\binom{n-1}kk+n\sum_k\binom{n-1}k \end{align*}$$
Now repeat the process to simplify the first summation, and evaluate the last one as it is.
I’ve added a combinatorial argument in the spoiler-protected block below.