JMO 2019 B5
B5. My 24-hour digital clock displays hours and minutes only.
How many displayed times in a 24-hour period contain at least one occurrence of the digit 5?
Junior Mathematical Olympiad 2019, Question B5. © UK Mathematics Trust. Original paper on ukmt.org.uk
Answer: 450
There are 24 hours in any given 24-hour period.
There are only 2 hours in the period with a ‘5’ in the hours display (05:00-05:59 and 15:00-15:59). During these times, every minute shows a ‘5’ in the display and, therefore, there are 60 times to count per hour.
In the remaining 22 hours, in each hour at ‘05’, ‘15’, ‘25’, ‘35’, ‘45’ and ‘50’ to ‘59’ minutes past the hour, there is at least one occurrence of a ‘5’ and hence there are 15 times in each of these 22 hours where at least one digit 5 occurs.
Therefore, the total number of different times displaying at least one occurrence of the digit ‘5’ is
\[2 \times 60 + 22 \times 15 = 450.\]
Solution © UK Mathematics Trust, from the JMO 2019 solutions.