4

What should be the strategy to find

$$\sum_{k=0}^{n}k^2\binom{n}{k}$$

Can this be done by making a series of $x$ and integrating?

Jack D'Aurizio
  • 353,855
Archisman Panigrahi
  • 2,156
  • 2
  • 19
  • 30

3 Answers3

6

Interesting question..... I know you'll get the traditional replies, which will probably help you solve the problem. However, if you get time, try to think of it this way:

Consider $n$ players. You want to make a team out of these $n$ players. Note that the team can have any number of players! (This would explain the $^nC_0 + ^nC_1 + ...$.)

Now consider that you have two positions up for take: Captain, and Vice-Captain. You need a player to fill in for those positions. Any player can fill for that position. Not only that, a single player can also occupy both positions! (This is for the coefficient, $0^2 , 1^2 , 2^2 , etc.$)

Now... Think of it in the reverse. For the first case, suppose you have to chose a single person to become captain and vice captain: $n$ choices. Now, we have $n-1$ players to distribute.. So: $2^{n-1}$. Total is: $n2^{n-1}$

For the second case, consider you have to chose two different players for captain and vice-captain. So number of choices: $n(n-1)$. Now we have $n-2$ players remaining to distribute: $2^{n-2}$. Total is: $n(n-1)2^{n-2}$

Thus, the total number of ways of doing something like this is: $$n2^{n-1} + n(n-1)2^{n-2}$$

Gummy bears
  • 3,408
5

Hint

Start with $$(1+x)^n = \sum_{k=0}^n \binom{n}{k}x^k$$ Differentiate, multiply by $x$ and differentiate again. What do you get?

Archisman Panigrahi
  • 2,156
  • 2
  • 19
  • 30
N. S.
  • 132,525
  • 3
    Sorry for pointing.. but is derivate a word? – Gummy bears Sep 11 '15 at 16:31
  • Well, it is now ;-) – Simpson17866 Sep 11 '15 at 16:33
  • @Gummybears As far as I know it is used as a verb in mathematics. – N. S. Sep 11 '15 at 16:37
  • 2
    @N.S.: Not in my experience, except perhaps by people for whom English is a second language. The English verb is differentiate. – Brian M. Scott Sep 11 '15 at 17:34
  • @N.S. It's fine. Just seemed strange to me. Conveys the message anyhow so... – Gummy bears Sep 12 '15 at 04:31
  • @N.S. How to find $$\sum_{k=0}^{n}k^r\binom{n}{k}$$. Should I make this a new question? In these type of problems, how do you find when to differenciate and when to multiply with $x$? Is it a matter of practicing or something? – Archisman Panigrahi Sep 12 '15 at 12:31
  • 1
    @ArchismanPanigrahi The point is that if you don't multiply by $x$ you get $\sum_{k=0}^n k(k-1) \binom{n}{k}$. You can fix this either the way I did, or alternately by splitting $k(k-1)\binom{n}{k}=k^2\binom{n}{k}-k\binom{n}{k}$ and observe that you calculated the second before. – N. S. Sep 13 '15 at 15:55
  • 1
    @ArchismanPanigrahi For the general question, you can either alternate between differentiation and multiplication by $x$. Or if you just differentiate $r$ times you get $\sum_{k=0}^{n}k(k-1)(k-2)..(k-r+1)\binom{n}{k}$. If you pen the bracket, you get a recurrence of the form: $$ \sum_{k=0}^{n}k^r\binom{n}{k} -A \sum_{k=0}^{n}k^{r-1}\binom{n}{k}+B \sum_{k=0}^{n}k^{r-2}\binom{n}{k}+..=\mbox{something}$$ I find multiplication easier. – N. S. Sep 13 '15 at 15:57
1

Let $$\displaystyle S=\sum^{n}_{k=0}k^2 \binom{n}{k} \;,$$ Now using $\displaystyle \bullet \; \binom{n}{k} = \frac{n}{k}\cdot \binom{n-1}{k-1}$

So we get $$\displaystyle S = \sum^{n}_{k=0}k^2 \cdot \frac{n}{k}\binom{n-1}{k-1}\;,$$ Again using $\displaystyle \bullet \; \binom{n-1}{k-1} = \frac{n-1}{k-1}\cdot \binom{n-2}{k-2}$

So $$\displaystyle S = n\sum^{n}_{k=1}k\binom{n-1}{k-1} = n\sum^{n}_{k=0}[(k-1)+1]\binom{n-1}{k-1}$$

So we get $$\displaystyle S=n\sum^{n}_{k=1}(k-1)\binom{n-1}{k-1}+n\sum^{n}_{k=1} \binom{n-1}{k-1}$$

So we get $$\displaystyle S=n\sum^{n}_{k=2}(k-1)\cdot \frac{n-1}{k-1}\cdot \binom{n-2}{k-2}+n\sum^{n}_{k=1}\binom{n-1}{k-1}$$

So we get $$\displaystyle S=n(n-1)\sum^{n}_{k=0}\binom{n-2}{k-2}+n\sum^{n}_{k=0}\binom{n-1}{k-1}$$

Now Using $\displaystyle \bullet\; \sum^{n}_{k=0}\binom{n}{k} = 2^{k}$

So we get $$\displaystyle S = n(n-1)\cdot 2^{n-2}+n\cdot 2^{n-1}$$

juantheron
  • 53,015
  • I think the limits should be changed in this too. "So we get $$\displaystyle S=n(n-1)\sum^{n}{k=0}\binom{n-2}{k-2}+n\sum^{n}{k=0}\binom{n-1}{k-1}$$" $ k=2$ to $n$ . Also when we change the lower limit, are not we discarding $k= 0$ and $1$ terms? – Archisman Panigrahi Sep 12 '15 at 12:27