The binomial coefficient and nCr

We start with a definition:

Definition 1

Consider two natural numbers (including 00) nn and rr, where nrn\geq r. The binomial coefficient of nn and rr, denoted by

(nr)\left(\begin{array}{lll} n \\ r\end{array}\right)

is defined as

(nr)=n!r!(nr)!\left(\begin{array}{lll} n \\ r\end{array}\right)=\frac{n!}{r!\cdot(n-r)!}

(say "n choose r").

Another notation for the binomial coefficient is nCrnCr (say "n c r"). You can find this key on the calculator as well. In the last section we have seen the following:

Theorem 1

Consider nn objects arranged in a row, where rr objects are identical, and also the remaining nrn-r objects are identical. The number of possible permutations of these objects that can be formed by rearranging the order of the objects in the row is

(nr)\left(\begin{array}{lll} n \\ r\end{array}\right)
Example 1

The number of words that can be formed by rearranging the letters of the word HHHTTHT is

(74)=7!4!(74)!=7!4!3!=35\left(\begin{array}{lll} 7 \\ 4\end{array}\right)=\frac{7!}{4!\cdot (7-4)!}=\frac{7!}{4!\cdot 3!}=35

because the number of letters is n=7n=7 and there are k=4k=4 Hs. Of course we could also argue that there are k=3k=3 Ts, and then we would get

(73)=7!3!(73)!=7!3!4!=35\left(\begin{array}{lll} 7 \\ 3\end{array}\right)=\frac{7!}{3!\cdot (7-3)!}=\frac{7!}{3!\cdot 4!}=35

and indeed we get the same number of possibilities. Nothing else would make sense.

Here are some further properties of binomial coefficients:

Theorem 2
  1. (n0)=1\left(\begin{array}{lll} n \\ 0\end{array}\right)=1
  2. (nn)=1\left(\begin{array}{lll} n \\ n\end{array}\right)=1
  3. (n1)=n\left(\begin{array}{lll} n \\ 1\end{array}\right)=n
  4. (nn1)=n\left(\begin{array}{lll} n \\ n-1\end{array}\right)=n
  5. (nr)=(nnr)\left(\begin{array}{lll} n \\ r\end{array}\right)=\left(\begin{array}{lll} n \\ n-r\end{array}\right)
Exercise 1

Prove the statements above in two ways. First by using the definition of the binomial coefficient, and second by finding the corresponding number of permutations of a word with nn letters.

Solution

Using the definition of the binomial coefficient

  1. (n0)=n!0!(n0)!=n!n!=1\left(\begin{array}{lll} n \\ 0\end{array}\right)=\frac{n!}{0!(n-0)!}=\frac{n!}{n!}=1
  2. (nn)=n!n!(nn)!=n!n!=1\left(\begin{array}{lll} n \\ n\end{array}\right)=\frac{n!}{n!(n-n)!}=\frac{n!}{n!}=1
  3. (n1)=n!1!(n1)!=n!(n1)!=n\left(\begin{array}{lll} n \\ 1\end{array}\right)=\frac{n!}{1!(n-1)!}=\frac{n!}{(n-1)!}=n
  4. (nn1)=n!(n1)!(n(n1))!=n!(n1)!=n\left(\begin{array}{lll} n \\ n-1\end{array}\right)=\frac{n!}{(n-1)!(n-(n-1))!}=\frac{n!}{(n-1)!}=n
  5. (nr)=n!r!(nr)!\left(\begin{array}{lll} n \\ r\end{array}\right)=\frac{n!}{r!(n-r)!}\, and (nnr)=n!(nr)!(n(nr))!=n!(nr)!r!\,\left(\begin{array}{lll} n \\ n-r\end{array}\right)=\frac{n!}{(n-r)!(n-(n-r))!}=\frac{n!}{(n-r)!\cdot r!}\, so the two expressions are the same!

Using number of permutations of a word with nn letters

For example, the word consists of the letters H and T, and let denote the number of H by rr.

  1. r=0r=0, so no H, so all letters are the same, TTTTT. By rearranging the letters, we always get the same word. Thus, (n0)=1\left(\begin{array}{lll} n \\ 0\end{array}\right)=1

  2. r=nr=n, so only Hs, so again all letters are the same, HHHHH. Thus, (nn)=1\left(\begin{array}{lll} n \\ n\end{array}\right)=1

  3. r=1r=1, so one letter H, e.g. HTTTT. By rearranging the letters, we get nn possibilities (there are nn positions where we can place the HH: HTTTT, THTTT, TTHTT, ...). So (n1)=n\left(\begin{array}{lll} n \\ 1\end{array}\right)=n

  4. r=n1r=n-1, so n1n-1 letter H, e.g. HHHHT. Again, we get (nn1)=n\left(\begin{array}{lll} n \\ n-1\end{array}\right)=n.

  5. (nr)\left(\begin{array}{lll} n \\ r\end{array}\right): number of words that can be formed if there are rr Hs in the word, and nrn-r Ts.

    (nnr)\left(\begin{array}{lll} n \\ n-r\end{array}\right): number of words that can be formed if there are nrn-r Hs in the word, and rr Ts.

    These are different words (e.g. HHTTT and HHHTT), but clearly in both cases the number of possible permutations has to be the same (simply rename in the second case the letter H to T and the letter T to H).

There is a close relationship between the permutations of words consisting of two different letters and trees. Consider a word made of two letters, such as AABB. We already know that there are

(42)=6\left(\begin{array}{lll} 4 \\ 2\end{array}\right)=6

permutations of the word. But what are these words? To find out, it is helpful to draw a tree as follows: As there are 44 letters in the word, we draw 44 generations of the tree, where on left the branch is always A and on the right branch is always B (or vice versa, it does not matter):

Every path from top to bottom traces out a word. If we follow all paths, we get all possible 44-letter words that can be formed with the letters A and B. There are 24=162^4=16 such words (or paths).

Following the paths containing 22 A and 22 B, we can find out all the permutations of AABB (see figure above). There are

(42)=6\left(\begin{array}{lll} 4 \\ 2\end{array}\right)=6

such words (or paths).

Or if we follow the paths containing 11 A and 33 B, we can find out all the permutations of ABBB. There are (41)=4\left(\begin{array}{lll} 4 \\ 1\end{array}\right)=4 such words (or paths). And so on.