Mathlify H1

Navigation

Permutations & Combinations

  • 2023 Q7
  • 2022 Q8
  • 2021 Q7
  • 2020 Q8
  • 2019 Q6
  • 2018 Q7
  • 2017 Q8
  • 2024 Q7
  • 2025 Q8
← All TYS solutions

Solution — 2017 Question 8 Permutations & Combinations

(a)
Number of codes=(63)×3!×(83)×3!=40320∎
(b)

With repetitions allowed, total number of codes =63×83

(i)

For the digit 5 to appear exactly once, one of the choices must be 5 (1 way) and we fill the remaining 2 digit positions with any of the 5 other digits. There are 3 ways to rearrange these digits (5XX, X5X, XX5)

For the letter H to appear exactly twice, H must appear twice (1 way) and we fill the remaining letter position with any of the 7 other letters. There are also 3 ways to rearrange these letters (HHX, HXH, XHH)

P(5 exactly once and H exactly twice)=(3×52)×(3×7)63×83=17512288∎=0.0142 (to 3 s.f.)∎
(ii)

Case 1: 2 is the first character but H is not the sixth character

Number of ways=1×62×82×7=16128

Case 2: H is the sixth character but 2 is not the first character

Number of ways=1×62×82×7=11520 P(required)=16128+1152063×83=14∎
Next 2024 Q7 Previous 2018 Q7

Parts

  • Part (a)
  • Part (b)