DR.WANG Mathematics中文
AMC 10 / AIME · Foundation · Original practice

When exactly one light flashes

At each positive multiple of 8 seconds a green light flashes. At each positive multiple of 12 seconds a blue light flashes. Among seconds 1 through 180 inclusive, at how many seconds does exactly one light flash?

Hint

At a common multiple, both lights flash and the time should contribute zero.

Show answer and methods 2 methods

Answer

23

Method 1 Count individual and shared flashes

There are 22 multiples of 8 and 15 multiples of 12. The common flashes occur at multiples of 24, of which there are 7. Each common time was counted twice and must be removed twice. The required count is 22 + 15 - 14 = 23.

Method 2 Count full cycles

In each interval of 24 successive seconds starting just after a multiple of 24, the single flashes occur at offsets 8, 12, and 16. Seven full cycles contribute 21. In the remaining 12 seconds, offsets 8 and 12 contribute two more.