Browse · MathNet
PrintTeam Selection Test
Turkey counting and probability
Problem
The Retired Linguist (R.L.) in his first move writes a word consisting of distinct letters to his notebook. Thereafter in each move he writes a new word to the notebook which is obtained by reversing the longest sub-word (starting from the first letter) of the last added word provided the word is not written to the notebook beforehand. Show that R.L. will write words to his notebook.
Solution
Let the first written word be . By induction on we prove that the number of written words is .
If then R.L. starts with and then reverses it and writes .
Suppose that for the words are written to the notebook.
Consider the sequence of words in the case . We will use the notation . Let us divide the sequence above into blocks each consisting of consecutive words. We show that the -th block is Indeed, the first block starts with and ends with , the second block starts with and ends with , ..., the last block starts with and ends with .
Inside each block each numbered word of the block is obtained from numbered word of the same block by shortest counter-clockwise rotation and each numbered word of the block is obtained from numbered word of the same block by shortest clockwise rotation. Therefore, all words inside each block are different and each block is closed under the operation of rotation. Since all words in the sequence above are different all words in the new sequence also will be different.
By induction hypothesis there are terms in the previous sequence. Therefore, there are blocks in the new sequence and the sequence consists of distinct words. We are done.
If then R.L. starts with and then reverses it and writes .
Suppose that for the words are written to the notebook.
Consider the sequence of words in the case . We will use the notation . Let us divide the sequence above into blocks each consisting of consecutive words. We show that the -th block is Indeed, the first block starts with and ends with , the second block starts with and ends with , ..., the last block starts with and ends with .
Inside each block each numbered word of the block is obtained from numbered word of the same block by shortest counter-clockwise rotation and each numbered word of the block is obtained from numbered word of the same block by shortest clockwise rotation. Therefore, all words inside each block are different and each block is closed under the operation of rotation. Since all words in the sequence above are different all words in the new sequence also will be different.
By induction hypothesis there are terms in the previous sequence. Therefore, there are blocks in the new sequence and the sequence consists of distinct words. We are done.
Final answer
n!
Techniques
Recursion, bijectionInduction / smoothingEnumeration with symmetryCounting two ways