Maths Olympiad Prep

Library / /476 of 740

, 2013

Combinatorics Difficulty 5.1 AIME, harder Prove it United States

Problem:

A 24-hour digital clock shows times h:m:sh: m: s, where h,mh, m, and ss are integers with 0h230 \leq h \leq 23, 0m590 \leq m \leq 59, and 0s590 \leq s \leq 59. How many times h:m:sh: m: s satisfy h+m=sh+m=s?

Solution

Solution:

Answer: 11641164

We are solving h+m=sh+m=s in 0s590 \leq s \leq 59, 0m590 \leq m \leq 59, and 0h230 \leq h \leq 23.

If s24s \geq 24, each hh corresponds to exactly 1 solution, so we get 24(5923)=24(36)24(59-23)=24(36) in this case.

If s23s \leq 23, we want the number of nonnegative integer solutions to h+m23h+m \leq 23, which by lattice point counting (or balls and urns) is (23+22)=(23+2)(23+1)/2=2512\binom{23+2}{2}=(23+2)(23+1)/2=25 \cdot 12.

Thus our total is 12(72+25)=12(1003)=116412(72+25)=12(100-3)=1164.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.