3

I was given this formular, and am now tasked to use double counting to prove it:

$\sum_{k=1}^{n} k \binom{n}{k} = n \cdot 2^{n-1}$

Quite frankly, I have no clue on how to work this out. Of course, you could start out by looking at the numbers this produces:

n     result
1     1
2     4
3     12
4     32
5     80
6     192
7     448
8     1024
9     2304
10    5120

As far as I've understood double counting, there's two ways you can use it.

The first way is to imagine a matrix where you either put a tick into a field, or you leave it empty. Then counting the ticks in the rows and the columns individually must lead to the same result. Unfortunately, I see no way to apply this concept to this particular task.

The second way is to look for an intuitional problem that can be solved by either of the two ways shown in the equation. Again, I fail to come up with anything that makes sense; especially with the fact, that the sum in the left term makes everything even more complicated.

Do you have any ideas on how to solve this problem?

2 Answers2

5

One nice way of counting that is to think of it like this, suppose you want to choose a subset of a population of size $n$, and from this set select a leader. There are basically 2 ways of doing so, you can first choose the set of people and then choose a leader among it, if your subset is of size $k$, there are $k$ ways of choosing the leader and there are ${n\choose k}$ ways of choosing a subset of size $k$. Hence you get $\sum_{k=0}^n k {n\choose k}$.

The other-way of choosing that is to select a leader from the population ($n$ ways of doing it) and then choosing the rest of the subset among the rest of the population (there $n-1$ remaining people to choose from), which accounts for $2^{n-1}$ possibilities when you fix the leader.

In conclusion $$\sum_{k=0}^n k {n\choose k}=n 2^{n-1}$$

P. Quinton
  • 6,031
  • I can see that it doesn't matter whether you begin the sum with $k=0$ or $k=1$ (the latter being the case in my question) since with $k=0$ that part of the sum will be $0$ anyway.

    Still, why do you even use a sum here? Do I understand you correctly: We want to choose only one single subset, and from this subset we want only one leader? If so, the number of possibilities for Population $n$ and subset-size $k$ should be: $\binom{n}{k} \cdot \binom{k}{1}$. Why are we summing up things here?

    I'll assume the second part of your explanation will make more sense after I understand this.

    – StckXchnge-nub12 Nov 24 '18 at 17:17
  • Well you want to count the amount of ways you can do that, and of course the subset can have any size going from $0$ to $n$ (but for 0 there is no leader) so you need to sum for all $k$ – P. Quinton Nov 24 '18 at 17:21
  • I see. And the $2^{n-1}$ leftover possibilities after having chosen the leader first are because, for every next person you look at, there's exactly two possibilities: either they are in our subset, or they aren't in our subset. Thank you! – StckXchnge-nub12 Nov 24 '18 at 17:27
3

$\sum_{k=0}^{n}k\binom{n}{k}=\sum_{k=0}^{n}\left(n-k\right)\binom{n}{k}$ so that $$\sum_{k=0}^{n}k\binom{n}{k}=\frac{1}{2}\left[\sum_{k=0}^{n}k\binom{n}{k}+\sum_{k=0}^{n}\left(n-k\right)\binom{n}{k}\right]=\frac{1}{2}n\sum_{k=0}^{n}\binom{n}{k}=\frac{1}{2}n2^{n}=n2^{n-1}$$

drhab
  • 151,093
  • This looks more like a direct proof than a proof by double counting. Still, I'm interested: why is $\sum_{k=0}^{\infty} \binom{n}{k} = 2^n$, and would this also hold for $n$ instead of $\infty$ as the upper bound? – StckXchnge-nub12 Nov 24 '18 at 18:00
  • Actually it does not hold for $\infty$ but for $n$. Sorry, sloppy writing. I repaired. It appears if you work out $(1+1)^n $ with binomial coefficients. – drhab Nov 24 '18 at 18:15