"At first, all the lockers are closed. A person walks by, and opens every other locker, starting from locker 2. Thus lockers 2, 4, 6, ... 998, 1000 are open. Another person walks by, and changes the "state" (open or closed) of every third locker. Another person changes the state of every fourth locker, and so on."
I have figured out the answer to this question - lockers whose numbers are perfect squares will be closed (1, 4, 9, 16, 25, and so on). It's simple once you think about it; the number of factors a number has is how many times its "state" has been changed. If we look at 6, it can be broken into 1 x 6 and 2 x 3. Disregarding 1 (because nobody went around changing all the closed lockers to open), the state has been changed 3 times leaving it open. Now take 25. Breaking it apart into its factors, we get 1 * 25 and 5 * 5. We can't include 5 twice, so there are an even number of state changes leaving it closed.
So I understand this problem, but how can I prove it?
2007-09-02
06:12:50
·
2 answers
·
asked by
Anonymous
in
Science & Mathematics
➔ Mathematics