Brain Teaser🔴 hardMath

There are 100 lockers in a hallway, all closed. 100 students walk by one at a time. The first student opens every locker. The second student closes every 2nd locker. The third student toggles every 3rd locker. This continues for all 100 students. Which lockers are open at the end?

Share:

Common Wrong Answers

All lockers are open

This is incorrect because the toggling process means many lockers will be closed after the students pass, specifically those that are not perfect squares.

Only the odd numbered lockers are open

This is wrong because the pattern of opening and closing the lockers does not depend solely on whether a locker number is odd or even, but rather on the number of times each locker is toggled, which is determined by its divisors.

Lockers 1 to 50 are open

This guess is incorrect because, while some lockers within that range may be open, many will be closed due to the toggling pattern, and specifically, only perfect squares remain open.