You are here:

- Home
- Science
- Math for Kids
- Basic Math
- Locker problem

Advertisement

This puzzle is great - it really makes you think!

I read an even more detailed answer here as well:

http://www.programmerinterview.com/index.php/puzzles/lockers-puzzle/

Good explanation of reasoning, but the answer is incorrect for *this* question. The response assumes the initial state of the lockers is open, yet the problem clearly states they are initially shut. Honest mistake, I'm sure. The first student then opens all of them including our first perfect square, locker number one, which will be left open, never to be touched again.

The correct answer is that all of the lockers will be closed, except those that are perfect squares.

I can answer questions in basic algebra and any grade school math.

Love math, currently helping my nephew get through Intermediate Algebra.**Education/Credentials**

I majored in Math Ed in college (but decided not to teach), so have over 40 credits of math.