Worked solution from the Permutations and combinations Paper 5 Probability & Statistics 1 booklet, Part 2 of 2.
HAPPINESS has 9 letters with P repeated twice and S repeated twice.
9!2! × 2! = 90720 [1]
Use: all arrangements − arrangements where the first and last letters are the same. They can only be the same if both are P or both are S.
Both ends P: arrange the other 7 letters (H, A, I, N, E, S, S): 7!2! = 2520 [1]
Both ends S: arrange the other 7 letters (H, A, P, P, I, N, E): 7!2! = 2520 [1]
Number = 90720 − 2520 − 2520 = 85680 [1]
The two Ps are glued into one block PP. Exactly two letters lie between the two Ss. Split into two cases by where PP sits.
Case 1: PP is between the Ss, so S PP S is one block. With the other 5 letters H, A, I, N, E there are 6 objects: 6! = 720 [1]
Case 2: PP is not between the Ss. The two letters between the Ss come from H, A, I, N, E in order: 5 × 4 = 20 ways [1]
Now S _ _ S is one block. With PP and the 3 remaining letters there are 5 objects: 5! = 120 ways [1]
Case 2 = 5! × 5 × 4 = 2400, so the total is 720 + 2400 = 3120 [1]
Total ways to choose the group of 5: 9C5 = 126. Count the ways with the Ps together in one group and the Ss together in the other.
PP in the group of 5 and SS in the group of 4: the group of 5 is PP plus 3 of the 5 other letters, 5C3 = 10 ways.
SS in the group of 5 and PP in the group of 4: the group of 4 is PP plus 2 of the 5 other letters, 5C2 = 10 ways.
Favourable ways = 5C3 + 5C2 = 10 + 10 = 20 [1]
Total ways to choose the group of 5 = 9C5 = 126 [1]
Probability = 20126 = 1063 (0.159) [1]
▶ Starts at Q6 (1:03:17)
Starts at Q6 (1:03:17) · by Ci Xiang Ng. 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.