Word & Logic · Number Theory

100 Lockers & The Square-Number Rule

Toggle 100 closed school lockers on multiples 1 through 100 and predict which exact lockers stay open at the end.

The Challenge Number Theory

100 closed lockers sit in a hallway. Student 1 opens every locker. Student 2 toggles every 2nd locker (2, 4, 6...). Student 3 toggles every 3rd locker, all the way through Student 100 toggling locker #100. At the end, WHICH lockers remain open?

Hint 1: Locker K gets toggled once for each of its positive divisors! To finish OPEN (starting from closed), K must have an ODD number of divisors.
Hint 2: Most numbers have pairs of divisors (e.g., 12 has 1×12, 2×6, 3×4). Which numbers have an unpaired middle divisor?
Full Solution: Only the 10 PERFECT SQUARES: 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100! Every non-square integer has an even count of factors, returning it to closed, whereas square numbers have one unpaired square-root divisor—leaving them open!
Advertisement

Why This Puzzle Matters: Intuition vs. Proof

This beloved number-theory gem turns an intimidating 100-pass simulation into a crisp property of factor pairs. Next time someone asks how many lockers stay open out of 10,000, you can answer '100' (since √10,000 = 100) in two seconds flat!

Takeaway Pattern for Similar Teasers

Pause before calculating blindly when reading paradoxes like 100 Lockers & The Square-Number Rule. Check hidden invariants, information asymmetries, and edge boundaries—the exact habits that turn tough riddles into clear insights.