Subcontests
(4)word distance problem, number of digits words are different
Given the natural n. We shall call word sequence from n letters of the alphabet, and distance ρ(A,B) between words A=a1a2…an and B=b1b2…bn , the number of digits in which they differ (that is, the number of such i, for which ai=bi). We will say that the word C lies between words A and B , if ρ(A,B)=ρ(A,C)+ρ(C,B). What is the largest number of words you can choose so that among any three, there is a word lying between the other two?