At Mathville Middle School, there were 50 students and 50 lockers. Each year for Pi Day (March 14), the students lined up in alphabetical order and performed the following strange ritual. The first student opened every locker. The second student went to every second locker and closed it. The third student went to every third locker and changed it (i.e. if the locker was open, the student closed it; if the locker was closed, the student opened it). In a similar manner, the fourth, fifth, sixth, . . . student changed every fourth, fifth, sixth, . . . locker. After all 50 students had passed by the lockers, which lockers were left open?
HELP ASAP PLZZZ :C