James's Math Hub
Statistics & Probability

Lesson 8 / 13 · 10 min read

Permutations & Combinations

Counting arrangements when order matters — and when it doesn't.

Factorials

n!=n(n1)(n2)21n! = n \cdot (n-1) \cdot (n-2) \cdots 2 \cdot 1

By convention 0!=10! = 1. Examples: 5!=1205! = 120, 4!=244! = 24.

A factorial counts the ways to arrange nn distinct items in a row.

Permutations — when order matters

A permutation counts ordered arrangements. How many ways can you arrange rr items chosen from nn?

P(n,r)=n!(nr)!P(n, r) = \frac{n!}{(n-r)!}

Example. A class of 8 students picks a president, vice president, and treasurer (three different roles). How many ways?

P(8,3)=8!5!=876=336P(8, 3) = \frac{8!}{5!} = 8 \cdot 7 \cdot 6 = 336

Combinations — when order doesn't matter

A combination counts unordered selections. How many ways to choose rr items from nn, ignoring order?

C(n,r)=(nr)=n!r!(nr)!C(n, r) = \binom{n}{r} = \frac{n!}{r!\,(n - r)!}

The extra r!r! in the denominator divides out the duplicates created by reordering the chosen group.

Example. Same class of 8 picks a 3-person planning committee (no distinct roles).

(83)=8!3!5!=8766=56\binom{8}{3} = \frac{8!}{3! \cdot 5!} = \frac{8 \cdot 7 \cdot 6}{6} = 56

That's 336/6=56336 / 6 = 56 — exactly the permutation count divided by 3!=63! = 6, the number of ways to reorder 3 chosen people.

Quick test: order or no order?

  • "How many license plates?" → spots matter → permutation.
  • "How many 5-card poker hands?" → cards have no order → combination.
  • "How many ways to seat 5 people in 5 chairs?" → permutation (5!=1205! = 120).
  • "How many 3-topping pizzas from 10 toppings?" → combination.

Useful identities

(n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1 (nr)=(nnr)\binom{n}{r} = \binom{n}{n-r} (n1)=n\binom{n}{1} = n

Key takeaways

  • Permutations count ordered arrangements; combinations count unordered selections.
  • Combinations divide out the r!r! reorderings of the chosen group.
  • Decide by asking: "does swapping two items give a different outcome?"