🔢 Riddle #8 of 20
Twenty lockers are all closed. Twenty students walk past in turn: student 1 opens every locker, student 2 changes every second locker, student 3 changes every third locker, and so on up to student 20. How many lockers are open at the end?
Think about it first. When you're ready:
4 lockers
A locker stays open only if it changes an odd number of times, which happens for perfect squares: 1, 4, 9 and 16.