Toolkit 17

Vandermonde's Identity

(m0)(nk)+(m1)(nk1)+(m2)(nk2)++(mk)(n0)=(m+nk)\binom{m}{0}\binom{n}{k}+\binom{m}{1}\binom{n}{k-1}+\binom{m}{2}\binom{n}{k-2}+\cdots+\binom{m}{k}\binom{n}{0}=\binom{m+n}{k}

Proof

Consider a group of mm girls and nn boys. We want to select kk people from the entire group.

The total number of ways to do this is

(m+nk).\binom{m+n}{k}.

We can also count the selections according to the number of girls chosen.

If we choose jj girls, then we must choose kjk-j boys. The number of such selections is

(mj)(nkj).\binom{m}{j}\binom{n}{k-j}.

Considering all possible values of jj, from 00 to kk, gives

(m0)(nk)+(m1)(nk1)++(mk)(n0).\binom{m}{0}\binom{n}{k}+\binom{m}{1}\binom{n}{k-1}+\cdots+\binom{m}{k}\binom{n}{0}.

Both expressions count the same set of selections. Therefore,

(m0)(nk)+(m1)(nk1)++(mk)(n0)=(m+nk).\binom{m}{0}\binom{n}{k}+\binom{m}{1}\binom{n}{k-1}+\cdots+\binom{m}{k}\binom{n}{0}=\binom{m+n}{k}. \quad\square