In a hallway, 100 closed lockers numbered 1 to 100 undergo 100 passes. On pass 1, every locker is toggled (opened). On pass 2, every 2nd locker is toggled. On pass 3, every 3rd locker is toggled, continuing this pattern until pass 100 where only locker 100 is toggled. After all passes, which lockers remain open?
Lockers 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100 (all perfect squares).
A locker ends up open if it is toggled an odd number of times. A locker's number is toggled once for every factor it has. Most numbers have factors in pairs (even count), but perfect square numbers have an odd number of factors because one factor pairs with itself (e.g., 9 has factors 1, 3, 9).
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Hard. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
The carrot is smaller than the rabbit, and the rabbit is smaller than the basket. Which one is the biggest?
You have two identical hourglasses. One measures exactly 7 minutes, and the other measures exactly 11 minutes. Neither has any markings on the glass. Using only these two hourglasses, how can you measure a precise duration of 15 minutes?
Four books are stacked on a shelf from top to bottom: History, Math, Science, and Art. - The Math book is somewhere above the Art book. - The History book is immediately above the Science book. - The Art book is not at the very bottom. Wait, if the original stack is History (top), Math, Science, Art (bottom), check which book is second from the top.
If you swap my first and last letters, I am a unit of time. If you remove my middle letter, I am a type of tree. What am I?
Three runners—X, Y, and Z—wear shirts numbered 1, 2, and 3, though not necessarily in that order. Runner X is not wearing shirt 1. Runner Y is wearing shirt 3. Runner Z is not wearing shirt 2. What number is Runner X wearing?
If you multiply my age three years from now by my age three years ago, the resulting product is exactly 72. How old am I today?

