Grade by GradeEssential student suppliesSign in
C. Content · Foundations of Mathematics 12 Content

Combinatorics: The Fundamental Counting Principle and Permutations

BC FOM 12: combinatorics BC FOM 12: permutationsAbout 70 minutes
Learning goals
  • I can use the fundamental counting principle and tree diagrams to count outcomes.
  • I can use factorial notation and nPr to count arrangements where order matters.
  • I can count arrangements with identical items and with conditions, such as items that must be together.

Words to know

fundamental counting principle
If one task can be done in m ways and a second in n ways, the two together can be done in m × n ways.
factorial
n! = n × (n - 1) × ... × 2 × 1. By definition 0! = 1.
permutation
An arrangement of objects in which order matters.
nPr
The number of permutations of r objects chosen from n different objects: n! ÷ (n - r)!.

Counting without listing

The fundamental counting principle says: multiply the number of choices at each step. With 2 shirts and 3 pairs of pants, there are 2 × 3 = 6 outfits. A tree diagram shows why: each shirt branches into 3 pants.

startshirt 1jeanskhakisshortsshirt 2jeanskhakisshorts2 × 3 = 6 outfits
A tree diagram: each of the 2 shirts can go with each of the 3 pants, giving 2 × 3 = 6 outfits.

Permutations

When order matters, each arrangement is a permutation.

  • n different objects in a row: n! ways. Five friends in a row of seats: 5! = 5 × 4 × 3 × 2 × 1 = 120.
  • r objects chosen from n and arranged: nPr = n! ÷ (n - r)!. Gold, silver and bronze for 8 runners: 8P3 = 8 × 7 × 6 = 336.
  • Identical objects: if some of the n objects are alike, divide by the factorial of each repeat: n! ÷ (a! b! ...).

Cases ("or") are added; steps ("and then") are multiplied.

nn!Meaning
01one way to arrange nothing
11
36ABC, ACB, BAC, BCA, CAB, CBA
5120
840 320
103 628 800grows very fast
Factorials grow faster than exponential functions.
Worked example

Example 1: Plates and PINs

(a) A made-up licence plate has 3 letters followed by 3 digits, repeats allowed. How many plates are possible? (b) How many 4-digit PINs have no repeated digit?

  1. (a) Each letter has 26 choices and each digit 10: 26 × 26 × 26 × 10 × 10 × 10 = 17 576 000.
  2. (b) Order matters and digits cannot repeat: 10 × 9 × 8 × 7 = 10P4 = 5040.

(a) 17 576 000 plates; (b) 5040 PINs (compared with 10⁴ = 10 000 if repeats are allowed).

Worked example

Example 2: Identical letters

How many different arrangements are there of the letters in OSOYOOS?

  1. There are 7 letters: O appears 4 times, S twice and Y once.
  2. If all were different: 7! = 5040.
  3. Divide by the arrangements of the identical letters: 5040 ÷ (4! × 2!) = 5040 ÷ 48 = 105.

105 different arrangements.

Worked example

Example 3: Conditions

Five friends, including Ava and Ben, sit in a row. In how many ways can they sit if (a) Ava and Ben sit together, (b) they do not sit together?

  1. (a) Treat Ava and Ben as one block. Now there are 4 units to arrange: 4! = 24 ways.
  2. Inside the block they can be Ava-Ben or Ben-Ava: 2! = 2 ways. Total 24 × 2 = 48.
  3. (b) All arrangements minus the together ones: 5! - 48 = 120 - 48 = 72.

(a) 48 ways; (b) 72 ways.

Fill the boxes first

Draw one box for each position and write the number of choices in each box, starting with the position that has a condition. Then multiply. This avoids most counting mistakes.

Hands-on activity

How many passwords?

Work out how many passwords are possible with (a) 4 lowercase letters, (b) 8 lowercase letters, (c) 8 characters chosen from 26 lowercase letters, 26 uppercase letters and 10 digits. If a computer could test one billion passwords a second, about how long would each take to try them all? Write a short recommendation for a strong password.

Just for fun

A standard deck of 52 cards can be shuffled into 52! orders, about 8 × 10^67. That is so many that a well-shuffled deck is almost certainly in an order that has never existed before.

Your turn

1

Evaluate 6! ÷ 4!.

2

In how many ways can a president, vice-president and treasurer be chosen from a club of 12?

3

How many arrangements are there of the letters in BANANA?

4

How many arrangements are there of the letters in SQUAMISH?

5

Seven different books go on a shelf with two particular books at the ends. How many arrangements?

6

A café offers 3 soups, 4 sandwiches and 2 drinks. How many lunches of one of each are possible?

More practice

1

Solve nP2 = 30.

2

How many 3-digit numbers can be made from 1, 2, 3, 4, 5 with no repeats?

3

Of those, how many are even?

4

How many ways can 6 people sit in a row if 3 particular people must sit together?

5

Why is 0! defined as 1?

Check your understanding

Quiz

1.

What is 8P3?

2.

How many arrangements are there of the letters in CANADA?

3.

A menu has 4 mains and 3 desserts. How many meals of one main and one dessert?

4.

In how many ways can 4 people stand in a line?

For parents and teachers

How to help: Everyday counting makes good practice: outfits from a closet, seating at dinner, codes on a bike lock. Ask your teen to estimate first, then calculate.

Common mistakes:

  • Adding when they should multiply (or the reverse).
  • Forgetting to divide by the repeats when letters are identical.
  • Not handling the restricted position first.
  • Using a permutation when order does not matter (that is a combination, the next lesson).