Feels like the end is nigh
logic puzzle 10

A school has exactly one thousand lockers, numbered from 1–1000, as well as one thousand students. Each year, the principal has closing ceremonies on the last day of school, during which she enlists the help of her students to close up the school’s lockers.
She assigns each student a number, and asks him or her to help her one by one. These are the instructions she gives each of the students
Student #1: Go to every locker and open it.
Student #2: Go to every second locker and close it.
Student #3: Go to every third locker. If it is closed, open it, and if it is open, close it.
Student #4: Go to every fourth locker. If it is closed, open it, and if it is open, close it.
This goes on until Student #1000 is finished.
After the closing ceremonies are finished, the principal walks through the school and closes each locker that is left open. How many lockers will the principal close?
btw answer is 31

A school has exactly one thousand lockers, numbered from 1–1000, as well as one thousand students. Each year, the principal has closing ceremonies on the last day of school, during which she enlists the help of her students to close up the school’s lockers.
She assigns each student a number, and asks him or her to help her one by one. These are the instructions she gives each of the students
Student #1: Go to every locker and open it.
Student #2: Go to every second locker and close it.
Student #3: Go to every third locker. If it is closed, open it, and if it is open, close it.
Student #4: Go to every fourth locker. If it is closed, open it, and if it is open, close it.
This goes on until Student #1000 is finished.
After the closing ceremonies are finished, the principal walks through the school and closes each locker that is left open. How many lockers will the principal close?
Why would the principal do this work? He has the janitors. And even if he does have to close the lockers it will be 500 lockers

A school has exactly one thousand lockers, numbered from 1–1000, as well as one thousand students. Each year, the principal has closing ceremonies on the last day of school, during which she enlists the help of her students to close up the school’s lockers.
She assigns each student a number, and asks him or her to help her one by one. These are the instructions she gives each of the students
Student #1: Go to every locker and open it.
Student #2: Go to every second locker and close it.
Student #3: Go to every third locker. If it is closed, open it, and if it is open, close it.
Student #4: Go to every fourth locker. If it is closed, open it, and if it is open, close it.
This goes on until Student #1000 is finished.
After the closing ceremonies are finished, the principal walks through the school and closes each locker that is left open. How many lockers will the principal close?
Why would the principal do this work? He has the janitors. And even if he does have to close the lockers it will be 500 lockers
Its just 31 lockers.... what about student one who does 1000 lockers...
If you need help, please contact our Help and Support team.
dooG