Complete · 60 Days8 / 188
MediumBrain TeasersAcceptance 63%
100 Lockers
GoogleTwo Sigma
100 lockers start closed. Person i (for i = 1…100) toggles every locker that is a multiple of i. After all 100 people pass, how many lockers are open?
Approach
How many times is locker n toggled?
Which numbers have an odd number of divisors?
Answer
Show the final answer
The answer is 10. Sign in free for the full worked solution and to check your own answer.
Related problems
Two Eggs, 100 FloorsMediumHorse Race — Top 3MediumPoisoned WineMedium12 Balls, One OddHardBridge CrossingMediumWater JugsMedium
More in Brain Teasers.