Skip to main content

100 lockers, all closed. Student 1 opens every locker.…

A free strategy puzzle for Architects, ages 12–14, difficulty 8 of 10. Try it below, use Hint 1 and Hint 2 if you get stuck, and open “Show answer” for the full explanation.

Strategy

100 lockers, all closed. Student 1 opens every locker. Student 2 toggles every 2nd locker (closes it if open, opens it if closed). Student 3 toggles every 3rd, and so on, up to Student 100. How many lockers are open at the end?

lockers
Show answer

Answer: Between 10 and 10 lockers

Explanation: Divisors usually come in pairs, so most lockers are toggled an even number of times. Only perfect squares (1, 4, 9 … 100) have an odd number, so 10 stay open.

More puzzles like this