Starting with any -tuple , , of symbols from , , , we define a sequence , according to the following rule: If , then , where if (taking ) and is the symbol other than if . Find all positive integers for which there exists some integer such that .
Solution
Replace , , by , , . Then . We first show that such an does not exist for even as seen from the following -tuple
Next we show that exists when is odd. Since the total number of tuples that can be formed is , there exist indices such that . Without loss of generality, we may assume that is the only term in the sequence from to that is the same as . If we can show that for any , can be obtained from , then the sequence going backwards from is the same as the sequence going backwards from . Since going backwards from , we can get , then going backwards from , before reaching , we can get an -tuple which is the same as . In other words, there is an index , , such that and we are done.
To show that the sequence can be reversed, all we need to show is if two -tuples and give rise to the same -tuple, then they are in fact the same. We have from the given rule:
Summing up, we get and therefore . Repeat this starting with the index pair , we can show that . Continuing this way, we have :