MathematicsCore20 min read

Permutations and Combinations

Counting arrangements and selections without listing them

This topic appears in:

01

Two counting rules do almost everything

Definition

Factorial — n! = n × (n−1) × (n−2) × … × 2 × 1, the number of ways of arranging n distinct objects in a row. By convention 0! = 1, which is what makes the formulae below work at their edges.

Before any formula, two principles. The multiplication rule: if one task can be done in m ways and a second, independent task in n ways, then the pair can be done in m × n ways. The addition rule: if you must choose either one option from m or one from n, and the two sets do not overlap, there are m + n choices.

In practice: "and" means multiply, "or" means add. A meal of one starter from 4 and one main from 6 offers 24 meals; a single dish chosen from 4 starters or 6 mains offers 10 choices.

02

Permutation or combination? Ask whether order matters

This one question decides which formula to use, and almost every lost mark in the chapter comes from answering it wrongly.

A permutation is an arrangement: order matters. Choosing a president and a secretary from a committee, or arranging books on a shelf, or forming a three-digit number. A combination is a selection: order does not matter. Choosing a team of three, or a hand of cards, or which five questions to answer.

The question saysOrder matters?Use
arrange, order, line up, seatyesⁿPᵣ
form a number, form a wordyesⁿPᵣ
president and secretary (distinct roles)yesⁿPᵣ
choose, select, a team, a committeenoⁿCᵣ
a hand of cards, a group of friendsnoⁿCᵣ
ⁿPᵣ = n! / (n − r)!(arrangements — order matters)ⁿCᵣ = n! / [r!(n − r)!](selections — order does not)ⁿPᵣ = r! × ⁿCᵣⁿCᵣ = ⁿCₙ₋ᵣa permutation is a combination that has then been arranged, which is where the extra r! comes from

Why ⁿCᵣ = ⁿCₙ₋ᵣ

Choosing which 3 people to take from 10 is exactly the same act as choosing which 7 to leave behind. So ¹⁰C₃ = ¹⁰C₇ = 120. Use it to save work: computing ²⁰C₁₈ directly is unpleasant, but it equals ²⁰C₂ = 190, which is two lines.

03

Arrangements with repeated objects, and in a circle

Two variations appear regularly and both are corrections to the plain n! count.

When some objects are identical, arrangements that merely swap identical items are not different arrangements, so the total is divided by the factorial of each repeat count. The word MISSISSIPPI has 11 letters with four S, four I and two P, giving 11!/(4!4!2!) distinct arrangements.

When objects are arranged in a circle, there is no first position — rotating the whole ring gives the same arrangement. Fixing one object and arranging the rest around it gives (n − 1)!.

distinct arrangements of n objects with repeats p, q, … = n! / (p! q! …)circular arrangements of n objects = (n − 1)!circular arrangements when clockwise = anticlockwise = (n − 1)! / 2the last case covers beads on a necklace, which can be turned over
Worked example

How many arrangements of the letters of the word COMMITTEE are there? In how many of them do the two Ts stay together?

  1. COMMITTEE has 9 letters, with M twice, T twice and E twice.Count the repeats before anything else; missing one is the usual error.
  2. Total arrangements = 9!/(2!2!2!) = 362880/8 = 45 360.Divide by 2! once for each pair of identical letters.
  3. For the Ts together, glue them into one block. There are now 8 items: [TT], C, O, M, M, I, E, E.Treating a required group as a single object is the standard technique.
  4. These arrange in 8!/(2!2!) = 40320/4 = 10 080 ways.M and E are still repeated; the two Ts inside the block are identical, so the block has only one internal order.

45 360 arrangements in all; 10 080 with the two Ts together

04

The strategies that unlock the hard questions

Three techniques cover almost every awkward counting question on the paper.

  • Glue it together. If certain items must be adjacent, treat them as one block, arrange everything, then multiply by the internal arrangements of the block (if the items inside are distinct).
  • Count the opposite. "At least one" and "not all together" are far quicker as total − unwanted. Items never adjacent = all arrangements minus the ones where they are adjacent.
  • Place the fussy ones first. If a restriction affects certain positions — a number must be even, a particular seat must be filled — satisfy that restriction before counting anything else.

Do not multiply when you should add

A committee of 3 from 5 men and 4 women containing at least one woman is not one calculation. Split into cases — exactly 1, exactly 2, exactly 3 women — compute each with ⁿCᵣ and add them. Or take the complement: all committees minus the all-male ones, ⁹C₃ − ⁵C₃ = 84 − 10 = 74, which is one line.

Before you leave this chapter

  1. "And" multiplies, "or" adds. 0! = 1.
  2. Order matters → ⁿPᵣ. Order does not → ⁿCᵣ. Decide this before writing a formula.
  3. ⁿPᵣ = r! × ⁿCᵣ, and ⁿCᵣ = ⁿCₙ₋ᵣ.
  4. Identical objects: divide n! by the factorial of each repeat count.
  5. Circular arrangements: (n − 1)!, because rotating the ring changes nothing.
06

When repetition is allowed

The ⁿPᵣ formula assumes each object is used at most once. Some situations do not work that way: a four-digit PIN may repeat digits, a coin may land heads twice, a number plate may reuse a letter.

When repetition is permitted the counting is simpler, not harder. Each of the r positions has the full n choices available, independently of the others, so the multiplication rule gives straight away.

with repetition: nʳwithout repetition: ⁿPᵣ = n!/(n − r)!selections with repetition: ⁿ⁺ʳ⁻¹Cᵣnʳ is much larger than ⁿPᵣ — a 4-digit PIN has 10 000 possibilities, but only 5040 with distinct digits
Worked example

How many 3-letter codes can be made from the 26 letters (a) if letters may repeat, (b) if they may not?

  1. (a) Each of the three positions has all 26 letters available: 26 × 26 × 26 = 26³.The choices are independent, so the multiplication rule applies directly.
  2. = 17 576 codes.
  3. (b) Now each letter used removes one option: 26 × 25 × 24.This is ²⁶P₃ — order matters, since a code is an arrangement.
  4. = 15 600 codes.Fewer, as expected: the repeated-letter codes such as AAB have been excluded.

(a) 17 576 (b) 15 600

Row n of Pascal's triangle lists ⁿC₀ through ⁿCₙ — every possible selection size from a set of n. Notice the symmetry: ⁿCᵣ equals ⁿCₙ₋ᵣ, because choosing what to take is the same as choosing what to leave.

Practice questions

6 questions · 20 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

3 · 6 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
Distinguish between a permutation and a combination.
Model answer

A permutation is an arrangement in which the order matters, counted by ⁿPᵣ. A combination is a selection in which order is irrelevant, counted by ⁿCᵣ. Since each selection of r objects can be arranged in r! ways, ⁿPᵣ = r! ⁿCᵣ.

Examiner tip. The relationship between the two formulae is often the second mark. It also tells you which is larger — always the permutation.

SQ2[2 marks]
Evaluate ⁸C₃ and ⁸P₃.
Model answer

⁸C₃ = 8!/(3!5!) = 56 and ⁸P₃ = 8!/5! = 8 × 7 × 6 = 336. Note that 336 = 3! × 56.

Examiner tip. For ⁿPᵣ just multiply r descending factors starting at n. Writing out the full factorials wastes time and invites arithmetic slips.

SQ3[2 marks]
In how many ways can 7 people be seated around a circular table?
Model answer

(7 − 1)! = 6! = 720. One person is fixed to remove the rotations, and the remaining six are arranged around them.

Examiner tip. State the reason for the n − 1. "Because there is no fixed first position in a circle" is what the mark scheme wants.

Solved numericals

2 · 8 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[4 marks]
How many different arrangements are there of the letters of the word STATISTICS?
Full working
  1. 10 letters in total[1]
  2. Repeats: S three times, T three times, I twiceA and C appear once each[1]
  3. 10! / (3! 3! 2!)one factorial for each repeated letter[1]
  4. = 3 628 800 / 72 = 50 400[1]

50 400

Examiner tip. List every letter and its count before writing the fraction. Missing a repeat inflates the answer by a factor of at least 2 and costs every mark after the first.

N2[4 marks]
A committee of 5 is to be chosen from 6 men and 4 women. In how many ways can this be done if the committee must contain at least 3 women?
Full working
  1. Order does not matter, so combinations are useda committee is a selection[1]
  2. Case 3 women: ⁴C₃ × ⁶C₂ = 4 × 15 = 60choose the women, then the men to fill the rest[1]
  3. Case 4 women: ⁴C₄ × ⁶C₁ = 1 × 6 = 6there are only 4 women, so this is the last case[1]
  4. Total = 60 + 6 = 66add the cases, never multiply them[1]

66

Examiner tip. Within one case you multiply (choose women AND choose men); between cases you add (3 women OR 4 women). Getting that pattern right is most of the chapter.

Long questions

1 · 6 marks

Theory and numerical together, as they appear in the long-question section.

LQ1[6 marks]
Six students, including Ali and Sara, are to be arranged in a row for a photograph.
  1. In how many ways can they be arranged?
  2. In how many of these are Ali and Sara standing next to each other?
  3. In how many are they NOT next to each other?
Mark scheme
  1. Six distinct people in a row: 6! = 720order matters, and nothing is repeated[1]
  2. Treat Ali and Sara as one block, giving 5 items to arrange: 5! = 120the glue technique[1]
  3. Ali and Sara can swap within the block: × 2! = 2the internal arrangement is easy to forget[1]
  4. Together in 120 × 2 = 240 ways[1]
  5. Not together = total − togethercounting the complement is far quicker than counting directly[1]
  6. = 720 − 240 = 480[1]

(a) 720 (b) 240 (c) 480

Examiner tip. Never try to count "not adjacent" directly — it needs a case for every possible gap. Subtracting the adjacent count from the total is one line and always works.