Worked solution from the Permutations and combinations Paper 2 Calculator booklet, Part 2 of 2.
The first digit must be 5, 6, 7, 8 or 9, so 5 choices. The other four places use the remaining 8 digits in order.
5 × 8 × 7 × 6 × 5 [1]
= 8400 [1]
Put the 6 brown-haired people in a line first. That makes 7 gaps (one at each end and 5 between). Each of the 7 red-haired people takes a different gap, so none are next to each other.
Arrange the brown-haired people: 6! ways. Arrange the 7 red-haired people in the 7 gaps: 7! ways. Multiply: 7! × 6! [1]
= 5040 × 720 = 3 628 800 [1]
It is easier to subtract the selections with no brown hair (all 5 red) from all selections.
All selections: 13C5 = 1287. All red: 7C5 = 21. Setting up 13C5 − 7C5 [1]
1287 − 21 = 1266 [1]
▶ Whole paper
Video solution of the whole paper · by Shawn Hew (maths & sciences). Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.