The Light Switch Puzzle

How it works

  1. There are 30 lights in a row, numbered 1 to 30. They all start off.
  2. There are also 30 students, numbered 1 to 30. They take turns one at a time, in order: Student 1, then Student 2, then Student 3, and so on.
  3. On your turn, start at the light with your own number, then count by your number. Flip every light you land on, and walk past all the others without touching them.
  4. Flip means switch it: an off light turns on, and an on light turns off.
StudentStarts atCounts byFlips these lights
1light 11s1, 2, 3, 4, 5, … (every light)
2light 22s2, 4, 6, 8, 10, … (not light 1!)
3light 33s3, 6, 9, 12, 15, …
20light 2020sonly light 20, because 40 is past the end of the row

When every student has had a turn, which lights are on?

Questions people often ask
Does Student 2 start at light 1?
No. Every student starts at the light with their own number. Student 2’s first light is light 2, then 4, 6, 8, and so on.
What if a light is already on?
Then flipping it turns it off. A light can go on, off, on, off… many times during the game.
Does a student flip a light more than once?
No. Each student flips each of their lights exactly once, walking from the start of the row to the end.
What happens to the lights a student skips?
Nothing. They stay exactly as they were.
How many students are there?
The same as the number of lights. The last student, Student 30, flips just one light: light 30.
Why do the later students flip so few lights?
When you count by a big number, you run past the end of the row quickly. Every student after Student 15 flips only their own light.
In “Guess first”, what does “on afterwards” mean?
After this one student’s turn, not after the whole game.
How many lights?
Arrange as
Student 1
on (with sun rays) off each mark under a light = one flip your guess Tap any light to see who flips it ↓

Who flips light 12?

Each way to make a rectangle out of tiles gives a pair of partner students. Partners flip the light twice, and two flips cancel out: off → on → off.
Keyboard: space = next step · 1 / 2 / 3 = Line / Staircase / Square