Cambridge IGCSE · Topic 11.2
IGCSE Add Maths 0606 / Topic 11 / IGCSE

Fill the boxes, multiply the choices.

How many ways can six books stand on a shelf, or three medals go to ten runners? Draw one box for each position, write how many choices are left for it, and multiply. That single idea gives \(n!\), the permutation formula \({}^{n}P_{r}\) and every arrangement with a restriction.

The key idea

If one choice can be made in \(m\) ways and then a second in \(n\) ways, the two together can be made in \(m \times n\) ways. So \(n\) different items can be arranged in a row in \(n! = n(n - 1)(n - 2) \cdots 3 \times 2 \times 1\) ways, with \(0! = 1\), and \(r\) of them can be chosen and arranged in order in \({}^{n}P_{r} = \dfrac{n!}{(n - r)!}\) ways. Deal with restrictions FIRST: fill the restricted boxes, glue items that must be together into one block, and count 'not together' as total minus together.

A 4-digit code from the digits 1 to 9, no digit used twice 9 8 7 6 × × × 1st digit 2nd digit 3rd digit 4th digit any of 9 1 used, 8 left 2 used, 7 left 3 used, 6 left 9 × 8 × 7 × 6 = 3024 = ⁹P₄ = 9! ÷ 5! each box holds the number of choices still left for that position
Fig. 1: the box method. Each position gets a box holding the number of choices left for it; with no repetition the numbers fall by 1 from box to box, and the answer is their product, 9 × 8 × 7 × 6 = 3024 = 9P4
Section 01

Boxes, choices and n factorial.

Counting arrangements one by one is hopeless beyond tiny cases. Instead draw a box for each position, write in it how many choices are still available, and multiply (Fig. 1). Arranging ALL \(n\) different items in a row fills \(n\) boxes with \(n, n - 1, \dots, 1\), so there are \(n!\) ('\(n\) factorial') arrangements. Factorials grow fast: \(5! = 120\), \(8! = 40\,320\), \(10! = 3\,628\,800\).

Worked example Books on a shelf and a code
(a) In how many ways can 6 different books be arranged in a row on a shelf? (b) A code is made from 4 different digits chosen from 1 to 9. How many codes are possible?
  1. (a) Six boxes: \(6 \times 5 \times 4 \times 3 \times 2 \times 1 = 6! = 720\).
  2. (b) Four boxes (Fig. 1): 9 choices for the first digit, then 8, then 7, then 6.
  3. \(9 \times 8 \times 7 \times 6 = 3024\).
Answer: (a) \(720\)   (b) \(3024\)
Worked example Simplify factorial expressions
Simplify (a) \(\dfrac{10!}{8!}\) (b) \(\dfrac{(n + 1)!}{(n - 1)!}\) (c) \(\dfrac{n!}{(n - 2)!} + \dfrac{n!}{(n - 1)!}\)
  1. (a) \(10! = 10 \times 9 \times 8!\), so \(\dfrac{10!}{8!} = 10 \times 9 = 90\).
  2. (b) \((n + 1)! = (n + 1) \times n \times (n - 1)!\), so the \((n - 1)!\) cancels to leave \(n(n + 1)\).
  3. (c) \(\dfrac{n!}{(n - 2)!} = n(n - 1)\) and \(\dfrac{n!}{(n - 1)!} = n\).
  4. \(n(n - 1) + n = n^{2} - n + n = n^{2}\).
Answer: (a) \(90\)   (b) \(n(n + 1) = n^{2} + n\)   (c) \(n^{2}\)
Your turn
Evaluate \(\dfrac{7!}{4! \times 3!}\) without a calculator.
Examiner trap

Factorials do not cancel like ordinary numbers: \(\dfrac{6!}{3!}\) is \(6 \times 5 \times 4 = 120\), NOT \(2!\), and \((2n)!\) is not \(2 \times n!\). Also \(0! = 1\), not 0, so \(\dfrac{5!}{0!} = 120\).

Section 02

Choose some, arrange them: nPr.

Often you arrange only some of the items. Choosing and ordering \(r\) items from \(n\) different ones fills \(r\) boxes with \(n, n - 1, \dots, n - r + 1\). Multiplying by \(\dfrac{(n - r)!}{(n - r)!}\) turns that product into a neat formula. Order matters in a permutation: gold to Ana and silver to Ben is different from gold to Ben and silver to Ana.

\[ {}^{n}P_{r} = n(n - 1)(n - 2) \cdots (n - r + 1) = \frac{n!}{(n - r)!}, \qquad 0 \le r \le n \]
Worked example Medals in a race
Ten runners take part in a race. In how many different ways can the gold, silver and bronze medals be awarded? (No ties.)
  1. Order matters (gold, silver, bronze are different), so this is \({}^{10}P_{3}\).
  2. \({}^{10}P_{3} = \dfrac{10!}{7!} = 10 \times 9 \times 8\).
Answer: \(720\)
Worked example Solve a permutation equation
Find the value of \(n\) for which \({}^{n}P_{2} = 56\).
  1. \({}^{n}P_{2} = \dfrac{n!}{(n - 2)!} = n(n - 1)\), so \(n(n - 1) = 56\).
  2. \(n^{2} - n - 56 = 0\), so \((n - 8)(n + 7) = 0\).
  3. \(n = 8\) or \(n = -7\); \(n\) counts items, so it must be a positive whole number.
  4. Check: \(8 \times 7 = 56\).
Answer: \(n = 8\)
Your turn
Solve \({}^{n}P_{3} = 6 \times {}^{n}P_{2}\).
Examiner trap

The formula is \(\dfrac{n!}{(n - r)!}\), not \(\dfrac{n!}{r!}\): \({}^{7}P_{3} = \dfrac{7!}{4!} = 210\), whereas \(\dfrac{7!}{3!} = 840\). And always reject the negative root of an equation like \(n(n - 1) = 56\): there is no such thing as \(-7\) runners.

Stage 1 · Learn

Check your understanding

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Evaluate \(5!\).

Quick check+10 XP

Evaluate \({}^{7}P_{3}\).

Quick check+10 XP

What is the value of \(0!\)?

Quick check+10 XP

Five people stand in a row. In how many arrangements do two particular people, A and B, stand next to each other?

Section 03

Arrangements with restrictions.

Most exam questions add a condition. The golden rule: deal with the restriction FIRST, then let the remaining items fill the remaining places freely. Four standard tricks cover almost everything at this level (the syllabus never repeats an object or seats people round a circle).

ConditionMethod
Certain items must be togetherglue them into one block; arrange the block with the others, then multiply by the arrangements inside the block
Two items must not be togethertotal arrangements minus the arrangements with them together
Fixed ends or positionsfill the restricted boxes first, then the rest
Numbers from digits (even, odd, greater than)fill the last box (even/odd) or the first box (size) first; split into cases if both are restricted; 0 can never be the first digit
Worked example Together and apart
The letters of the word PENCIL are arranged in a row. Find the number of arrangements in which (a) P and E are next to each other (b) P and E are not next to each other.
  1. The six letters are all different, so there are \(6! = 720\) arrangements in total.
  2. (a) Glue P and E into one block [PE]. Now arrange 5 items: [PE], N, C, I, L in \(5! = 120\) ways.
  3. Inside the block, PE or EP: \(2! = 2\) ways. Together: \(120 \times 2 = 240\).
  4. (b) Not together \(=\) total \(-\) together \(= 720 - 240\).
Answer: (a) \(240\)   (b) \(480\)
Worked example Digits with two restrictions
Four-digit numbers are formed from the digits 1, 2, 3, 4, 5, 6, with no digit used more than once. How many of them are (a) even (b) greater than 4000 (c) both even and greater than 4000?
  1. (a) Last box first: 2, 4 or 6, so 3 choices. The other three boxes: \(5 \times 4 \times 3 = 60\). Even: \(3 \times 60 = 180\).
  2. (b) First box first: 4, 5 or 6, so 3 choices; the rest \(5 \times 4 \times 3 = 60\). Greater than 4000: \(180\).
  3. (c) Both ends are restricted and they compete for the digits 4 and 6, so split on the first digit.
  4. First digit 4 or 6 (2 ways): the last digit is one of the 2 even digits left, middle \(4 \times 3\): \(2 \times 2 \times 12 = 48\).
  5. First digit 5 (1 way): the last digit is 2, 4 or 6 (3 ways), middle \(4 \times 3\): \(1 \times 3 \times 12 = 36\).
  6. Total \(48 + 36 = 84\).
Answer: (a) \(180\)   (b) \(180\)   (c) \(84\)
Your turn
The 7 letters of FORMULA are arranged in a row. How many arrangements begin and end with a vowel?
Examiner trap

Two classic slips. First, forgetting the arrangements INSIDE the block: 'P and E together' is \(5! \times 2!\), not \(5!\). Second, 'not together' for THREE items is not total minus all-three-together: for six letters, A, B, C not all in one block gives \(720 - 144 = 576\), but 'no two of A, B, C next to each other' is only \(144\). Read which one the question means.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Additional Mathematics Paper 1 and Paper 2 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Find the value of \(n\) for which \({}^{n}P_{2} = 90\).

Exam style+20 XP

Simplify \(\dfrac{(n + 1)!}{(n - 1)!}\).

Exam style+20 XP

Four-digit numbers are made from the digits 1, 2, 3, 4, 5, 6, 7, with no digit repeated. How many of them are even?

Exam style+20 XP

The 7 letters of the word FORMULA are arranged in a row. How many arrangements have the three vowels O, U, A all next to each other?

Skill unlocked

Boxes filled, restrictions first.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Factorial and \({}^{n}P_{r}\) values, numbers formed from digits including zero, a permutation equation, people in a row together and apart, odd numbers above 5000, and restrictions on the letters of EQUATION.