Logic and brainteasers · School lockers · difficulty 2 of 5
The locker hallway
A hallway has 100 closed lockers, numbered 1 to 100. Student 1 opens every locker. Student 2 toggles every 2nd locker (closing it if open, opening it if closed), student 3 toggles every 3rd, and so on up to student 100. How many lockers are open at the end?
Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.
More logic and brainteaser puzzles
- A home-and-away league · A sports league
- Breaking a chocolate bar · A chocolate bar
- Handshakes at a party · A party
- Lily pads cover the lake · A pond
- Machines making widgets · A factory
- Matches in a knockout · A tennis tournament
All logic and brainteaser puzzles · All puzzles · Market making game