A hundred doors start shut. On pass 1 you toggle every door, on pass 2 every second door, on pass 3 every third, and so on up to pass 100. Which doors are open at the end?
Open: the perfect squares, 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100. Door n is toggled once for every number that divides it, and only a square has an odd number of divisors.