Grade by Grade
A. Counting and Probability · Permutations and Combinations

Permutations with Repetition and with Identical Objects

A2.1 A2.3About 65 minutes
Learning goals
  • I can count arrangements when repetition is allowed, using nʳ.
  • I can explain why identical objects reduce the number of distinct arrangements.
  • I can use n!/(a! b! c! …) to count arrangements with identical objects.
  • I can combine this formula with conditions such as fixed positions.

Words to know

repetition allowed
Each object can be used again, so every position has all n choices: nʳ arrangements of length r.
identical objects
Objects that cannot be told apart, such as the three A's in CANADA. Swapping them does not make a new arrangement.
distinguishable arrangement
An arrangement that looks different from every other one. Arrangements that differ only by swapping identical objects count once.
permutations with identical objects
n objects, of which a are alike, b are alike, and so on, can be arranged in n!/(a! b! …) distinguishable ways.

Two new twists

So far, every permutation used distinct objects, each used at most once. Two common situations break those rules:

  1. Repetition is allowed. A bike-lock code can be 7-7-3-7.
  2. Some objects are identical. The word CANADA has three A's. Swapping two of them does not create a new word.

Both situations are easy to handle once you see what changes.

Repetition allowed: nʳ

If each of r positions can be filled by any of n objects, and repeats are allowed, the multiplicative counting principle gives

n × n × … × n = nʳ

For example, 3-letter codes with repetition: 26³ = 17 576. Compare with no repetition: P(26, 3) = 26 × 25 × 24 = 15 600. Allowing repeats always gives at least as many arrangements.

You already used nʳ in lessons 1 and 2. The important skill is recognizing which situation you are in: read the problem for words like "may be repeated", "can be used more than once" or "different digits".

Identical objects: divide out the swaps

How many distinguishable arrangements does the word BOO have?

Pretend for a moment that the O's are different: B, O₁, O₂. Then there are 3! = 6 arrangements. But when the labels are erased, O₁O₂ and O₂O₁ look the same, so the 6 arrangements collapse in pairs. Each real arrangement was counted 2! times. So there are 6 ÷ 2! = 3: BOO, OBO, OOB.

Labelled: 3! = 6Identical O's: 6 ÷ 2! = 3BO₁O₂BO₂O₁O₁BO₂O₂BO₁O₁O₂BO₂O₁BBOOOBOOOB
Label the O's to make them different: 6 arrangements. Erase the labels and each pair becomes one word, so there are 3! ÷ 2! = 3 distinguishable arrangements.

The formula

The number of distinguishable arrangements of n objects, where a are alike of one kind, b are alike of another kind, c of another, and so on, is

n! / (a! × b! × c! × …)

Objects that appear only once contribute 1! = 1, so you can leave them out of the denominator.

CANADA: 6 letters with three A's: 6!/3! = 720/6 = 120.

This formula will return in lesson 11: every shortest route on a city grid is an arrangement of identical "west" and "south" moves.

Worked example

Example 1: An Ontario place name

How many distinguishable arrangements are there of the letters of MISSISSAUGA?

  1. Count the letters: M, I, S, S, I, S, S, A, U, G, A = 11 letters.
  2. Repeated letters: S appears 4 times, I appears 2 times, A appears 2 times. M, U and G appear once.
  3. 11!/(4! × 2! × 2!) = 39 916 800 / (24 × 2 × 2) = 39 916 800 / 96 = 415 800.

415 800 arrangements.

Worked example

Example 2: Flags on a pole

A signal is made by hanging 5 flags side by side on a rope: 3 identical green flags (G) and 2 identical yellow flags (Y). How many different signals are possible?

  1. 5 objects: 3 alike (G) and 2 alike (Y).
  2. 5!/(3! × 2!) = 120/(6 × 2) = 10.

10 signals. They are all drawn below.

1GGGYY2GGYGY3GGYYG4GYGGY5GYGYG6GYYGG7YGGGY8YGGYG9YGYGG10YYGGG3 identical G flags and 2 identical Y flags: 5!/(3! × 2!) = 10
All 10 signals. Each signal is fixed by choosing which 2 of the 5 places get Y flags; the other 3 get G.
Worked example

Example 3: Identical objects with a condition

How many distinguishable arrangements of TORONTO (a) are there in total, (b) begin with T, (c) begin and end with O?

  1. Letters: T × 2, O × 3, R, N (7 letters).
  2. (a) 7!/(2! × 3!) = 5040/12 = 420.
  3. (b) Put a T first. The other 6 letters are T, O, O, O, R, N: 6!/3! = 720/6 = 120.
  4. (c) Put an O at each end. The middle 5 letters are T, T, O, R, N: 5!/2! = 60.

(a) 420; (b) 120; (c) 60.

Worked example

Example 4: Coin flips

A coin is flipped 8 times. How many sequences of results contain exactly 3 heads?

  1. A sequence with exactly 3 heads is an arrangement of HHHTTTTT: 8 objects, 3 alike and 5 alike.
  2. 8!/(3! × 5!) = 40 320/(6 × 120) = 56.

56 sequences. Notice that this also counts the ways to choose which 3 of the 8 flips are heads. That is a combination, the subject of the next lesson.

Which formula?

Distinct objects, no repeats, r of them in order: P(n, r). Any of n choices in each of r positions (repeats allowed): nʳ. Arrange all n objects, some identical: n!/(a! b! …). If a question asks for only some of a set of letters with repeats (for example 4 letters from PEPPER), none of the formulas fit directly: split into cases by which letters are repeated.

Just for fun

MISSISSAUGA can be rearranged in 415 800 different ways, and only one of them gets you to the right city.

Hands-on activity

Erasing the labels

You need: 4 small squares of paper, a pencil and an eraser.

  1. Write B, O, O and K on the squares. Lightly add a small 1 and 2 under the two O's so they are O₁ and O₂.
  2. List all arrangements of B, O₁, O₂, K. (Work systematically: start with B first, then O₁ first, and so on.) How many are there?
  3. Erase the little numbers. Go through your list and circle each arrangement that now looks like one you already have. How many different-looking arrangements are left?
  4. Explain the connection between your two counts and 2!.
  5. Predict, then check by listing, the number of arrangements of the letters of NOON.

What to look for: 4! = 24 labelled arrangements, but only 24 ÷ 2! = 12 distinguishable ones, because each word appears twice (O₁ and O₂ swapped). NOON has two N's and two O's: 4!/(2! × 2!) = 6 (NOON, NONO, NNOO, ONON, OONN, ONNO).

Your turn

1

How many distinguishable arrangements are there of the letters of OTTAWA?

2

How many different 5-digit numbers can be made by arranging the digits 1, 1, 2, 2, 2?

3

How many distinguishable arrangements are there of the letters of TORONTO?

4

A coin is flipped 8 times. How many sequences have exactly 3 heads?

5

How many 3-letter codes can be made from the letters A, B, C, D and E if letters may be repeated?

6

How many distinguishable arrangements are there of MISSISSAUGA?

7

How many arrangements of TORONTO begin with T?

More practice: warm-up

1

How many distinguishable arrangements are there of AAB?

2

How many distinguishable arrangements are there of BOOK?

3

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

4

How many distinguishable arrangements are there of AAAB?

5

How many distinguishable arrangements are there of AABB?

More practice: on your own

1

How many arrangements of CANADA begin and end with A?

2

How many 5-digit numbers made by arranging 3, 3, 5, 5, 5 are greater than 50 000?

3

How many distinguishable arrangements are there of SASKATOON?

4

A 4-character password uses letters and digits (36 symbols, repeats allowed) and must start with a letter. How many passwords?

5

Seven flags are hung in a row: 4 identical green, 2 identical yellow and 1 blue. How many signals?

Challenge

1

How many distinguishable arrangements of BANANA have the two N's not next to each other?

2

How many distinguishable 4-letter arrangements can be made from the letters of PEPPER (P × 3, E × 2, R × 1)?

3

A 10-question true/false answer key has exactly 7 "true" answers. How many such keys are there? Explain why the answer also equals the number of ways to choose 7 questions out of 10.

Check your understanding

Quiz

1.

How many distinguishable arrangements are there of the letters of CANADA?

2.

Which expression counts the arrangements of n objects when a are alike and b are alike?

3.

How many 4-digit codes (0000 to 9999) are possible if digits may repeat?

4.

How many distinguishable arrangements are there of the letters of TORONTO?

5.

How many different rows can be made with 3 identical green flags and 2 identical yellow flags?

6.

When counting arrangements of CANADA, why do we divide 6! by 3!?

For parents and teachers

Big idea (A2.1, A2.3): with repetition allowed, multiply n by itself r times. With identical objects, count as if they were different (n!) and then divide by the number of ways to shuffle each group of identical objects. The A2.2 expectation itself is about distinct objects; this lesson extends it because identical-object arrangements are needed for grid routes (lesson 11) and connect directly to combinations (next lesson).

How to help: Use letter tiles from a word game or paper squares. Label identical letters, list arrangements, then erase the labels and watch the list shrink.

Common difficulties:

  • Miscounting the repeated letters. Write a tally (e.g. MISSISSAUGA: S 4, I 2, A 2) before using the formula.
  • Adding the factorials in the denominator instead of multiplying them.
  • Using P(n, r) when repetition is allowed.
  • Choosing only some letters from a word with repeats: no single formula works; split into cases.