Browse · MathNet
Print67th Romanian Mathematical Olympiad
Romania counting and probability
Problem
The people of an ancient tribe used a language in which the words were formed with two letters only: and . Researchers discovered that any two words of equal length differ in at least three positions. For instance, the words and differ in positions , and , that is, in three positions.
Let , . Prove that this language cannot contain more than words of length .
Let , . Prove that this language cannot contain more than words of length .
Solution
If we denote by the set of all possible words of length (not necessarily from the language), we have . If and are arbitrary words from , let be the number of positions at which the corresponding letters are different (the Hamming distance). Obviously, and . For each , we define the set . It is not difficult to see that .
If are words of length from the given language, then , hence .
Let be the set of all words of length from the language. Then , which implies . But , so that , therefore , and the conclusion follows.
If are words of length from the given language, then , hence .
Let be the set of all words of length from the language. Then , which implies . But , so that , therefore , and the conclusion follows.
Techniques
Pigeonhole principleCounting two waysColoring schemes, extremal arguments