|
Problem 5.
|
||
| Solution:
Consider the first few reversals. Initially the door to every cell is locked. First reversal: The doors of all cells are unlocked. Second reversal (every second cell reversed): 1, 3, 5, 7, 9, 11, 13, 15, 17, ... are open. Third reversal (every third reversed): 1, 5, 6, 7, 11, 12, 13, 17, 18, ... are open. Fourth reversal (every fourth reversed): 1, 4, 5, 6, 7, 8, 11, 13, 16, 17, 18,... are open. Fifth reversal (every fifth reversed): 1, 4, 6, 7, 8, 10, 11, 13, 15, 16, 17, 18,... are open. Sixth reversal (every sixth reversed): 1, 4, 7, 8, 10, 11, 12, 13, 15, 16, 17, ... are open. Seventh reversal (every seventh reversed): 1, 4, 8, 10, 11, 12, 13, 14, 15, 16, 17, ... are open. Eighth reversal (every eighth reversed): 1, 4, 10, 11, 12, 13, 14, 15, 17, ... are open. Ninth reversal (every ninth reversed): 1, 4, 9, 10, 11, 12, 13, 14, 15, 15, 17, 18, ... are open. Notice in the ninth reversal that the first three terms are perfect squares. The solution to the problem hinges (Dr. Kendis' pun) on the factors of each number. Every number except perfect squares has an even number of factors, and so each of those cells will ultimately remain locked. Only the cell numbers which are perfect squares (1, 4, 9, 16, 25,...) will remain unlocked. |