Show the method used to evaluate $\displaystyle\sum\limits_{k=1}^{12} {12\choose{k}}k^2$
The answer is $159744.$
Show the method used to evaluate $\displaystyle\sum\limits_{k=1}^{12} {12\choose{k}}k^2$
The answer is $159744.$
\begin{align} f(x)&=(1+x)^n=\sum_{k=0}^n{n \choose k}x^k\\ f'(x)&=n(1+x)^{n-1}=\sum_{k=1}^n{n \choose k}kx^{k-1}\\ xf'(x)&=nx(1+x)^{n-1}=\sum_{k=1}^n{n \choose k}kx^{k}\\ (xf'(x))'&=n(1+x)^{n-1}+(n-1)n(1+x)^{n-2}=\sum_{k=1}^n{n \choose k}k^2x^{k-1}\\ x&\leftarrow 1\\ \therefore \sum_{k=1}^n{n \choose k}k^2&=n2^{n-1}+(n-1)n2^{n-2}=n(n+1)2^{n-2}\\ \end{align}
Another approach:
$$\sum_{k=1}^{12} {12 \choose k} k^2 = \sum_{k=2}^{12} {12 \choose k} k(k-1) + \sum_{k=1}^{12} {12 \choose k} k \\ = \sum_{k=2}^{12} \frac{12!}{(k-2)!(12-k)!} + \sum_{k=1}^{12} \frac{12!}{(k-1)!(12-k)!} \\ = \sum_{k=2}^{12} \frac{12!}{(k-2)!(10-(k-2))!} + \sum_{k=1}^{12} \frac{12!}{(k-1)!(11-(k-1))!} \\ = 12 \cdot 11 \sum_{k=2}^{12} {10 \choose k-2} + 12 \sum_{k=1}^{12} {11 \choose k-1}.$$
Can you finish from here? Note that this approach generalizes straightforwardly (albeit tediously) to any sum of the form $\sum_{k=0}^N {n \choose k} k^\ell$.