I'm doing my math homework, but I'm stuck on this question. Can someone please help me?
A school hallway contains 50 lockers numbered 1 to 50. 1 student ensures they are closed. A second student opens every even-numbered locker. A third student changes the state of the lockers that are a multiple of 3, (To change the state of a locker means to close an opened locker or to open a closed locker.) A 4th student changes the state of all lockers that are a multiple of 4. This pattern continues for 50 students. After the last student, what is the sum of the numbers on the lockers that are closed?
A school hallway contains 50 lockers numbered 1 to 50. 1 student ensures they are closed. A second student opens every even-numbered locker. A third student changes the state of the lockers that are a multiple of 3, (To change the state of a locker means to close an opened locker or to open a closed locker.) A 4th student changes the state of all lockers that are a multiple of 4. This pattern continues for 50 students. After the last student, what is the sum of the numbers on the lockers that are closed?