Can you figure out this tricky math problem? (10 points to the first right answer! You must show logic behind answer.)
Lockers in a row are numbered 1, 2, 3, ..., 1000. At first all the lockers are closed. A person walks by, and opens every other locker, starting with locker #2. Thus lockers 2, 4, 6, ..., 998, 1000 are open. Another person walks by and changes the "state" (i.e.,closes a locker if it is open, opens a locker if it is closed) of every third locker starting with #3: 3, 6, 9... Then another person changes the state of every 4th locker. The process conintues until no more lockers can be altered. Which lockers will be closed?
2007-09-22
14:11:38
·
2 answers
·
asked by
Eric and Alex K.
1
in
Mathematics