Counting: permutations and combinations

Counting techniques find how many ways something can happen without listing every possibility. Multiply the choices at each stage. Use permutations when the order matters and combinations when it does not.

Key facts

  • Product rule: m ways for one choice and n ways for the next give m × n ways together.
  • There are n! = n × (n − 1) × … × 1 ways to arrange n different items in a line. Also, 0! = 1.
  • Permutations (order matters): nPr = (n!)/((n − r)!).
  • Combinations (order does not matter): nCr = (n!)/(r!(n − r)!).
  • Arrangements with identical items: (n!)/(a! b! …).
  • n people round a circular table: (n − 1)! arrangements.
  • “At least one” = total − “none”.

Worked examples

Example 1

Alex has 4 shirts, 3 pairs of trousers and 2 pairs of shoes. How many outfits are possible?

  1. Each shirt goes with any of the 3 pairs of trousers. 4 × 3 = 12
  2. Each of those goes with either pair of shoes. 12 × 2 = 24

Answer: 24

Example 2

10 runners are in a race. In how many ways can gold, silver and bronze be awarded? In how many ways can 3 runners be chosen to go through to the next round?

  1. Medals: order matters. 10P3 = 10 × 9 × 8 = 720
  2. Going through: order does not matter. 10C3 = 120

Answer: 720 and 120

Example 3

A team of 4 is chosen from 6 boys and 5 girls. How many teams include at least one girl?

  1. All teams: 11C4 = 330
  2. Teams with no girls: 6C4 = 15
  3. Subtract. 330 − 15 = 315

Answer: 315

Example 4

In how many ways can 4 different books be arranged on a shelf?

  1. There are 4 choices for the first place, then 3, then 2, then 1.
  2. Multiply. 4 × 3 × 2 × 1 = 24

Answer: 24

Example 5

How many 3-digit codes can be made from the digits 0 to 9 if digits may repeat?

  1. There are 10 choices for each digit.
  2. Multiply. 10 × 10 × 10 = 1,000

Answer: 1,000