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
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.
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?
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.
Free strategy puzzle for ages 3–5
Free strategy puzzle for ages 6–8
Free strategy puzzle for ages 9–11
Free deductive puzzle for ages 12–14