girgit.org

Permutations and Combinations

The formula for nCr

The big ideaEvery group of \( r \) things can be lined up in \( r! \) orders, so \( {}^nP_r = {}^nC_r \times r! \), which gives \( {}^nC_r = \dfrac{n!}{r!\,(n-r)!} \).

In simple words

Counting groups directly is hard, but counting line-ups is easy. So count the line-ups first. Then notice that each group shows up in the line-ups many times, once for every way of putting its members in order. A group of 3 can stand in 6 orders. So divide the number of line-ups by 6, and you have the number of groups.

Four friends, Anu, Bala, Charu and Dinesh, want to choose 3 of them to go in an auto. The groups are ABC, ABD, ACD and BCD: \( {}^4C_3 = 4 \). Now suppose the three seats are different (front, back left, back right). Each group of 3 can sit in \( 3! = 6 \) ways, so there are \( 4 \times 6 = 24 \) seatings. But seatings are permutations: \( {}^4P_3 = 4 \times 3 \times 2 = 24 \). The two counts agree.

The same reasoning works for any \( n \) and \( r \) (Theorem 5). Each of the \( {}^nC_r \) groups can be ordered in \( r! \) ways, and that gives every permutation exactly once:

\[ {}^nP_r = {}^nC_r \times r!, \qquad 0 \lt r \le n \]

Divide by \( r! \) and use \( {}^nP_r = \dfrac{n!}{(n-r)!} \):

\[ {}^nC_r = \frac{{}^nP_r}{r!} = \frac{n!}{r!\,(n-r)!}, \qquad 0 \le r \le n \]

Here \( n \) is how many different objects there are, \( r \) is how many you select, and \( n - r \) is how many you leave behind.

See it: all the line-ups, sorted so that each row is one group.

Special values

  • \( {}^nC_n = \dfrac{n!}{n!\,0!} = 1 \): there is one way to take everything.
  • \( {}^nC_0 = 1 \), by definition: there is one way to select nothing, which is to leave everything behind. The formula gives \( \dfrac{n!}{0!\,n!} = 1 \) too, so it works for \( r = 0 \).
  • \( {}^nC_1 = n \): choose any one of the \( n \).

Guess first: choosing who plays or who sits out

A coach has 15 players. Which has more possible answers: choosing the 11 who play, or choosing the 4 who sit out? Most people guess "choosing 11", because it is the bigger group. Decide, then open.

See what happens
They are equal. Every choice of 11 who play leaves exactly one group of 4 on the bench, and every bench of 4 leaves exactly one playing XI. So \( {}^{15}C_{11} = {}^{15}C_4 = \dfrac{15 \times 14 \times 13 \times 12}{4 \times 3 \times 2 \times 1} = 1365 \). Selecting is the same as rejecting the rest.

In symbols this is

\[ {}^nC_{n-r} = \frac{n!}{(n-r)!\,(n-(n-r))!} = \frac{n!}{(n-r)!\,r!} = {}^nC_r \]

Use it to save work: \( {}^{20}C_{18} = {}^{20}C_2 = \dfrac{20 \times 19}{2} = 190 \). It also gives a rule for equations: if \( {}^nC_a = {}^nC_b \), then either \( a = b \) or \( a + b = n \).

Adding two neighbours: \( {}^nC_r + {}^nC_{r-1} = {}^{n+1}C_r \)

This result is Theorem 6. Here is the idea in words. A club of \( n + 1 \) people, one of whom is Meena, chooses a team of \( r \). Either Meena is in the team or she is not.

  • Meena out: all \( r \) come from the other \( n \): \( {}^nC_r \) teams.
  • Meena in: the other \( r - 1 \) come from the other \( n \): \( {}^nC_{r-1} \) teams.

These cases do not overlap and cover every team, so \( {}^nC_r + {}^nC_{r-1} = {}^{n+1}C_r \). The algebra agrees: put both fractions over the common denominator \( r!\,(n-r+1)! \) and the top becomes \( n!\,[(n - r + 1) + r] = (n+1)! \). Check with numbers: \( {}^5C_2 + {}^5C_1 = 10 + 5 = 15 = {}^6C_2 \).

Explore: every \( {}^nC_r \) up to \( n = 10 \), with the mirror rule and the adding rule lit up.

Worked examples

Worked example

  1. \( {}^{10}C_3 = \dfrac{10 \times 9 \times 8}{3 \times 2 \times 1} = 120 \). (Quick method: top has \( r \) factors counting down from \( n \), bottom is \( r! \).)
  2. If \( {}^nC_7 = {}^nC_5 \), find \( {}^nC_2 \). Since \( 7 \ne 5 \), we need \( 7 + 5 = n \), so \( n = 12 \) and \( {}^{12}C_2 = \dfrac{12 \times 11}{2} = 66 \).
  3. How many chords join 10 points on a circle? A chord is a pair of points, order not mattering: \( {}^{10}C_2 = 45 \).

From India. Indian mathematicians worked on counting very early. Jain scholars studied it as a subject of its own, called vikalpa, and Mahavira (around 850 CE) gave general rules for \( {}^nP_r \) and \( {}^nC_r \). The Sushruta Samhita notes that 6 tastes can be combined in 63 ways, taking them one, two, three or more at a time: \( {}^6C_1 + {}^6C_2 + \cdots + {}^6C_6 = 6 + 15 + 20 + 15 + 6 + 1 = 63 \). Pingala counted combinations of syllables in his Chhanda Sutra, and Bhaskaracharya treated the topic, as anka pasha, in his Lilavati.

Don't mix these up

  • \( {}^nC_r = \dfrac{n!}{r!\,(n-r)!} \) has two factorials at the bottom. \( {}^nP_r = \dfrac{n!}{(n-r)!} \) has one.
  • \( {}^nC_a = {}^nC_b \) does not force \( a = b \); \( a + b = n \) is the other possibility.
  • \( {}^nC_0 = {}^nC_n = 1 \), not 0.

Try it. (a) \( {}^8C_3 \). (b) \( {}^{25}C_{23} \). (c) If \( {}^nC_9 = {}^nC_6 \), find \( n \) and \( {}^nC_{14} \). (d) Check \( {}^7C_3 + {}^7C_2 = {}^8C_3 \).

Answer
(a) \( \dfrac{8 \times 7 \times 6}{6} = 56 \). (b) \( {}^{25}C_2 = \dfrac{25 \times 24}{2} = 300 \). (c) \( n = 15 \); \( {}^{15}C_{14} = {}^{15}C_1 = 15 \). (d) \( 35 + 21 = 56 = {}^8C_3 \).

Words to know

\( {}^nC_r = \dfrac{n!}{r!\,(n-r)!} \)
Ways to select \( r \) of \( n \) different things.
\( {}^nP_r = {}^nC_r \times r! \)
Select a group, then order it.
\( {}^nC_{n-r} = {}^nC_r \)
Choosing \( r \) to take is the same as choosing \( n - r \) to leave.
\( {}^nC_0 = 1 \)
One way to select nothing.
\( {}^nC_r + {}^nC_{r-1} = {}^{n+1}C_r \)
Split teams by whether one fixed person is in or out.

What is \( {}^{9}C_{7} \)?

  1. 72
  2. 36
  3. 63

If \( {}^nC_{10} = {}^nC_{4} \), what is \( n \)?

  1. 6
  2. 14
  3. 40

There are \( {}^6P_3 = 120 \) ways to give 3 different prizes to 3 of 6 students. How many ways to choose 3 of the 6 for a group photo?

  1. 120
  2. 40
  3. 20