If 4-digit numbers greater than 5,000 are randomly formed from the digits 0, 1, 3, 5 and 7, what is the probability of forming a number divisible by 5 when (i) the digits are repeated and (ii) repetition of digits is not allowed?
The available digits are 0, 1, 3, 5 and 7.
(i) With repetition allowed, the first digit must be 5 or 7. This gives 2 × 5 × 5 × 5 = 250 numbers, but 5000 is not greater than 5,000. So there are 249 admissible numbers.
A number is divisible by 5 if its last digit is 0 or 5. There are 2 × 5 × 5 × 2 = 100 such numbers, including 5000. Excluding 5000 leaves 99 favourable numbers.
Thus, the probability is 99/249 = 33/83.
(ii) Without repetition, there are 4 × 3 × 2 = 24 numbers starting with 5 and 24 starting with 7. All are greater than 5,000, so there are 48 admissible numbers.
If the first digit is 5, the last digit must be 0, giving 3 × 2 = 6 favourable numbers. If the first digit is 7, the last digit can be 0 or 5, giving 6 + 6 = 12 favourable numbers. Hence there are 18 favourable numbers.
Thus, the probability is 18/48 = 3/8.