Maths Olympiad Prep

Track / Stage 2 / 182 of 320 #502 of 2604

Problem 502

Combinatorics Difficulty 2.4 Multiple choice CEMC Fermat · Canada · 2025

Twelve lightbulbs are in a row. All lightbulbs are initially
turned off. Angie flips the switch for every 2nd lightbulb. Then Bilal
flips the switch for every 3rd lightbulb. Finally, Chenxhui flips the
switch for every 4th lightbulb. At the end of this process, how many
lightbulbs are turned on?

Pick one

Next problem →

Official solution

In the chart that follows, we number the lightbulbs 11 to 1212 and represent those that are on with a
11 and those that are off with a
00.

1\boldsymbol{1}2\boldsymbol{2}3\boldsymbol{3}4\boldsymbol{4}5\boldsymbol{5}6\boldsymbol{6}7\boldsymbol{7}8\boldsymbol{8}9\boldsymbol{9}10\boldsymbol{10}11\boldsymbol{11}12\boldsymbol{12}
At the start (all lightbulbs are off):000000000000000000000000
After Angie flips every 2nd switch:001100110011001100110011
After Bilal flips every 3rd switch:001111110000001111110000
After Chenxhui flips every 4th switch: 001111000000000011110011

At the end of the process, the lightbulbs numbered 22, 33, 99, 1010, and 1212 are on, and so 55 lightbulbs are on.

Source: CEMC, University of Waterloo, licensed CC-BY-NC-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.