Geometry · Study guide

Chapter 12.2: Permutations & Combinations

Chapter 12 · Probability · Topic 12.2

Permutations & Combinations

Two counting questions look almost identical but give wildly different answers: how many ways to arrange items versus how many ways to choose them. The deciding question is always the same — does order matter?

§1 Arrangements vs Selections

Once a sample space gets large, listing it by hand is hopeless and even the Fundamental Counting Principle becomes clumsy when items cannot repeat. Two specialized counts handle the most common cases. A permutation counts arrangements — first place is different from second place, so $ABC$ and $BAC$ are two different outcomes. A combination counts selections — a committee of three has no internal ranking, so $\{A,B,C\}$ and $\{C,A,B\}$ are the same outcome.

Big picture

The single deciding question is: does order change the outcome? If yes — rankings, codes, finishing places, seat assignments — it is a permutation. If no — committees, teams, hands of cards, subsets — it is a combination. Everything else in this topic follows from that one decision.

§2 Factorial Notation

Both formulas are built from the factorial, written $n!$, which multiplies every whole number from $n$ down to $1$.

NotationMeaningValue
$n!$$n\times(n-1)\times\cdots\times 2\times 1$—
$5!$$5\times4\times3\times2\times1$$120$
$3!$$3\times2\times1$$6$
$1!$$1$$1$
$0!$defined to equal $1$$1$

Factorials grow explosively — $10! = 3{,}628{,}800$ — which is exactly why we need compact formulas rather than brute-force lists.

Nuance — why $0!=1$

It looks strange, but $0!=1$ is the value that keeps the formulas consistent. When you arrange all $n$ items, $P(n,n)=\dfrac{n!}{(n-n)!}=\dfrac{n!}{0!}$, and this only equals the expected $n!$ if $0!=1$. Treat it as a definition that makes everything else work.

§3 Permutations

A permutation of $n$ items taken $r$ at a time counts the ordered arrangements.

FormulaRead asExample
$P(n,r)=\dfrac{n!}{(n-r)!}$"$n$ permute $r$"$5$ runners, top-$3$ places
$P(5,3)=\dfrac{5!}{(5-3)!}=\dfrac{120}{2}=60$$60$ orderings

The denominator $(n-r)!$ cancels the arrangements of the items you did not pick — it removes the "leftovers" so you only count the $r$ chosen positions.

Figure 12.2a: With three letters there are $3!=6$ ordered permutations, but every one of them is the same set $\{A,B,C\}$, so there is just $1$ combination. Order is exactly what separates the two counts.

§4 Combinations

A combination of $n$ items taken $r$ at a time counts the unordered selections.

FormulaRead asExample
$C(n,r)=\dfrac{n!}{r!\,(n-r)!}$"$n$ choose $r$"$3$ people from $7$ for a committee
$C(7,3)=\dfrac{7!}{3!\cdot 4!}=\dfrac{5040}{6\cdot 24}=35$$35$ committees

The extra $r!$ in the denominator (compared with a permutation) divides out the $r!$ orderings of each chosen group, since order does not count here. A useful identity: $C(n,r)=C(n,\,n-r)$, because choosing which $r$ to include is the same as choosing which $n-r$ to leave out.

Watch out

The single most common error is reaching for a permutation when order does not matter (or the reverse). Always ask "does swapping two positions create a different outcome?" before picking a formula. A close second: calculator overflow on large factorials — cancel before multiplying, e.g. $\dfrac{8!}{4!}=8\cdot7\cdot6\cdot5$, rather than computing $8!$ and $4!$ separately.

Figure 12.2b: Each entry of Pascal's triangle is a combination $C(n,r)$, counting outward from $r=0$ in row $n$. The highlighted gold entry is $C(4,2)=6$ — the number of ways to choose $2$ items from $4$.

§5 Don't Confuse These

The two counts are linked by one clean relationship: $P(n,r)=r!\cdot C(n,r)$. Every combination of $r$ items can be arranged in $r!$ ways, so the permutation count is always $r!$ times larger.

FeaturePermutationCombination
OrderMatters — $ABC\ne BAC$.Does not matter — $\{A,B,C\}=\{C,A,B\}$.
Use forRankings, codes, sequences, seatings.Teams, committees, hands, subsets.
Formula$P(n,r)=\dfrac{n!}{(n-r)!}$$C(n,r)=\dfrac{n!}{r!(n-r)!}$
Relative sizeLarger — by a factor of $r!$.Smaller — divides out the $r!$ orderings.
Identity$P(n,n)=n!$$C(n,r)=C(n,n-r)$
Key distinction

Same numbers, very different answers. Choosing $3$ of $7$ for distinct roles (president, VP, treasurer) is $P(7,3)=210$. Choosing $3$ of $7$ for an unranked committee is $C(7,3)=35$. The committee is $3!=6$ times smaller because the $6$ orderings of any three people collapse to one.

§6 Worked Examples

For each, decide first whether order matters, then apply the matching formula.

Arranging books

How many ways can $4$ of $8$ books be arranged on a shelf?
Answer: Order matters: $P(8,4)=\dfrac{8!}{4!}=8\cdot7\cdot6\cdot5=\mathbf{1680}$.

Choosing books

How many ways can $4$ of $8$ books be chosen for a reading group?
Answer: Order doesn't matter: $C(8,4)=\dfrac{1680}{24}=\mathbf{70}$.

Finishing places

$10$ sprinters race for gold, silver, bronze. How many podiums?
Answer: $P(10,3)=10\cdot9\cdot8=\mathbf{720}$.

Lottery selection

Choose $5$ numbers from $20$, order irrelevant. How many tickets?
Answer: $C(20,5)=\dfrac{20!}{5!\,15!}=\mathbf{15{,}504}$.

Using the identity

Compute $C(9,7)$ the easy way.
Answer: $C(9,7)=C(9,2)=\dfrac{9\cdot8}{2}=\mathbf{36}$.

Linking the two

If $C(6,2)=15$, find $P(6,2)$.
Answer: $P=2!\cdot C=2\cdot15=\mathbf{30}$.

§7 Self-Check

Answer each before opening the explanations. The hardest part is choosing the right tool — decide "order or not?" first.

  1. Evaluate $5!$, $0!$, and explain why $0!$ is defined to be $1$.
  2. A code uses $3$ different digits from $0$–$9$. How many codes are possible? Is this a permutation or a combination?
  3. A pizza shop lets you choose $3$ toppings from $8$. How many topping selections are there?
  4. State the relationship between $P(n,r)$ and $C(n,r)$ and explain it in words.
  5. Use $C(n,r)=C(n,n-r)$ to compute $C(10,8)$ quickly.
  6. $5$ friends sit in a row of $5$ chairs. How many seating arrangements are possible?
Show Answers
  1. $5!=120$ and $0!=1$. It is defined so that $P(n,n)=\frac{n!}{0!}=n!$ stays consistent.
  2. A permutation (order matters in a code): $P(10,3)=10\cdot9\cdot8=720$ codes.
  3. A combination: $C(8,3)=\frac{8!}{3!\,5!}=56$ selections.
  4. $P(n,r)=r!\cdot C(n,r)$. Each unordered combination of $r$ items can be ordered $r!$ ways, so permutations outnumber combinations by a factor of $r!$.
  5. $C(10,8)=C(10,2)=\frac{10\cdot9}{2}=45$.
  6. $P(5,5)=5!=120$ arrangements.