A high school has a strange principal. On the first day, he asks his students to perform an odd opening day ceremony:

There are one thousand lockers and one thousand students in the school.

The principal asks the first student to go to every locker and open it. Then he has the second student go to every second locker and close it. The third goes to every third locker and, if it is closed, he opens it, and if it is open, he closes it. The fourth student does this to every fourth locker, and so on.

After the process is completed with the thousandth student, how many lockers are open?

This problem is a part of the set brain games

×

Problem Loading...

Note Loading...

Set Loading...