Browse · MathNet
PrintSILK ROAD MATHEMATICS COMPETITION XVII
counting and probability
Problem
Given a positive integer . Let us call by a word any sequence of letters of an alphabet. Define the distance between the words and as the number of positions in which they differ (i.e. the number of indices for which ). We say that the word lies in between the words and if . What is the largest number of words can be chosen so that among every three of them there is a word that lies in between the other two?
Solution
Answer: for and for . For , take all words consisting only of letters and , in which each letter to the left of each letter , and for the words .
Let us prove that more words can not be chosen. Consider two selected words and , located at the largest distance . Suppose that the selected word is from at a distance . Then is equal to the sum or difference of and and does not exceed , hence . Now, if some selected word is also from at distance , we can assume without loss of generality (otherwise, we can swap and ). The distance between and can not be equal to , therefore, it is equal to , and hence .
So, we have that for each , , except, perhaps, for , among the selected words no more than one, located from at distance . The selected words, which are at a distance of from , are no more than 2 (we showed that the distance between any two such words is , therefore none of the three words lies between the two others).
It remains to check that if and two words are chosen at a distance from , then there are at most 4 words. Indeed, let , and we have chosen some other word . As in the previous argument, we can assume without loss of generality that . Then and (the distance between and can not be equal to the sum , so it is equal to
the difference ). It turns out that among the three distances , the words are not equal to the sum of the other two, a contradiction. This proves the estimate: if , then for each there is at most one selected word at a distance of from , and there are no more than words in total, and if or , then there are no more than 4 words.
Let us prove that more words can not be chosen. Consider two selected words and , located at the largest distance . Suppose that the selected word is from at a distance . Then is equal to the sum or difference of and and does not exceed , hence . Now, if some selected word is also from at distance , we can assume without loss of generality (otherwise, we can swap and ). The distance between and can not be equal to , therefore, it is equal to , and hence .
So, we have that for each , , except, perhaps, for , among the selected words no more than one, located from at distance . The selected words, which are at a distance of from , are no more than 2 (we showed that the distance between any two such words is , therefore none of the three words lies between the two others).
It remains to check that if and two words are chosen at a distance from , then there are at most 4 words. Indeed, let , and we have chosen some other word . As in the previous argument, we can assume without loss of generality that . Then and (the distance between and can not be equal to the sum , so it is equal to
the difference ). It turns out that among the three distances , the words are not equal to the sum of the other two, a contradiction. This proves the estimate: if , then for each there is at most one selected word at a distance of from , and there are no more than words in total, and if or , then there are no more than 4 words.
Final answer
n+1 for n ≠ 2; 4 for n = 2
Techniques
Coloring schemes, extremal arguments