Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Join our platform to connect with experts ready to provide precise answers to your questions in various areas. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

a new school has exactly 1,000 lockers and exactly 1,000 students. on the first day of school, the students meet outside the building and agree on the following plan: the first student will enter the school and open all the lockers. the second student will then enter the school and close every locker with an even number (2, 4, 6, 8, etc.). the third student will then reverse every third locker (3, 6, 9, 12, etc.). that is if the locker is closed, he or she will open it; if it is open, he or she will close it. the fourth student will then reverse every fourth locker, and so on until all 1000 students in turn have entered the building and reversed the proper lockers. which lockers will finally remain open?