Discord

INAIO Guide Stage 1 7Combinatorics and Discrete Reasoning

7.2 Permutations and combinations

Decide whether order matters, then count ordered assignments or unordered selections without duplication.

Choosing people for ranked positions differs from choosing a group. In the first task, swapping two people changes the outcome; in the second, it does not. Permutations and combinations encode that single distinction and save you from listing every arrangement.

This is intermediate counting. Begin with OpenStax's permutation examples and then its combination examples. Module 7.1 counted successive choices by multiplying; here we decide when different orders of those choices represent the same outcome.

A basic idea: does swapping count?

Selecting Ari and Bela for first and second place gives two possibilities: Ari first or Bela first. Selecting Ari and Bela for a two-person team gives just one team. The people are the same; the meaning of the outcome determines the count.

Two panels compare A then B with B then A. In ranked slots they are shown as two different outcomes; inside an unranked team box they are shown as one group.Two panels compare A then B with B then A. In ranked slots they are shown as two different outcomes; inside an unranked team box they are shown as one group.
Swapping two names creates a new ordered assignment but not a new unordered group.

A quick tour of formulas

The number of ways to arrange nn distinct objects in a row is n!=n(n−1)⋯2⋅1n!=n(n-1)\cdots2\cdot1, with 0!=10!=1 by convention. If rr of them (0≤r≤n0\le r\le n) are chosen in order, without replacement,

P(n,r)=n(n−1)⋯(n−r+1)=n!(n−r)!.P(n,r)=n(n-1)\cdots(n-r+1)=\frac{n!}{(n-r)!}.

If only the chosen set matters, each set of rr objects appears in r!r! different orders above. Divide those repeats away:

(nr)=P(n,r)r!=n!r!(n−r)!,0≤r≤n.\binom{n}{r}=\frac{P(n,r)}{r!} =\frac{n!}{r!(n-r)!},\qquad 0\le r\le n.

The symmetry (nr)=(nn−r)\binom{n}{r}=\binom{n}{n-r} says choosing rr objects is equivalent to choosing which n−rn-r are left out. These formulas assume distinct objects and no replacement. Repetition or extra restrictions require a new count.

Application 1: medal positions

Six runners finish a race. How many possible ordered gold, silver, and bronze results are there if ties are impossible?

  1. Identify ordered roles. Gold and silver swapped is a different result, so use a permutation.
  2. Count stage by stage. There are 66 choices for gold, 55 remaining for silver, and 44 for bronze.
  3. Multiply. P(6,3)=6⋅5⋅4=120P(6,3)=6\cdot5\cdot4=120.

The factorial formula gives the same result: 6!/3!=1206!/3!=120.

Application 2: selecting features

A small model has 88 distinct candidate features. How many groups of 33 features can be selected if their order in a list has no meaning?

  1. Count ordered picks first. P(8,3)=8⋅7⋅6=336P(8,3)=8\cdot7\cdot6=336.
  2. Remove duplicate orderings. Each selected group appears in 3!=63!=6 orders.
  3. Divide. (83)=336/6=56\binom{8}{3}=336/6=56 groups.

The calculation says nothing about which group is best for the model. It only counts the possible choices.

Resources

SourceTitleWhy read it
OpenStaxPermutationsLearn to count ordered selections and role assignments.
OpenStaxCombinationsLearn to count groups when their internal order does not matter.

Finished this module? Mark it done.

Comments

Stuck on something, spotted a mistake, or found a resource that helped you? Tell us below.

Loading comments