P
piper_628
Guest
Imagine a row of lockers numbered 1 to 1000. Each locker is open. The first person passes by and closes each locker. The second then passes by and opens every licker with a multiple of 2 for its number, beginning with 2. The third passes by and changes each multiple of 3 locker number, opening it if it is closed and clsoing it if it was open.
After 1000 people follow this pattern, which lockers will be closed?
After 1000 people follow this pattern, which lockers will be closed?