Funadvice Logo

Can you solve this?

Home More advice Education & School

My math teacher gave me this problem can you help solve it?

Louise is walking through the hallway of her school past the row of lockers on the first day of school. The lockers are numbered from 1 to 100. When Louise gets up to the lockers, they all open. Absentmindedly, Louise closes all the even-numbered lockers-the multiples of 2-as she walks by.

A few minutes later, Jeremy comes by. He decides to touch only those lockers whose numbers are multiples of 3. If one of these lockers is open when he goes by, he closes it, and it it's closed he opens it.

Then another student comes by, and this student changes the doors on all the lockers whose numbers are multiples of 4. Then another student changes the doors on lockers whose multiples of 5, and so on, until finally a student comes by who changes only locker 100. The question is,

           Which lockers are open at the end of the process?

You should not only determine which lockers end up open but also fine an explanation for the result. Once you're done, explain which lockers would end up open if the locker numbers went up to 1000.