Skip to main content
OlympiadHQ

Browse · MathNet

Print

Estonian Math Competitions

Estonia counting and probability

Problem

Every term of the sequence is either or . It is known that both and occur at least times among every consecutive terms of the sequence. May one be sure that the sequence is periodic from some place on, i.e., there exist positive integers and such that for every natural number ?
Solution
Consider the tuples and . Concatenating infinitely many instances of these tuples in any order produces a sequence that satisfies the conditions of the problem. Indeed, consider any segment of consecutive terms of such sequence. As any two consecutive full blocks of zeros or ones contain at least terms in total, the segment under consideration contains terms of at most three such blocks. If it contains terms of three blocks then it contains the middle block fully. If the segment contained only two partial blocks of zeros or ones, it could contain at most terms in total. Hence the segment under consideration must contain one full block even if it contains only terms of two consecutive blocks. In any case, the digit of the full block occurs either or times and the other digit must occur either or times, respectively. Combining the tuples defined at the beginning of the solution according to some non-periodic pattern (e.g., ), the resulting sequence is not periodic from any place on. Indeed, suppose the contrary; let the length of the period be . We can find a pattern of length starting from the place where periodicity starts, containing the tuples defined at the beginning of the solution a full number of times. But the middle term of these tuples is not repeating periodically, implying that the entire pattern also cannot be periodic. Consequently, there exist non-periodic sequences that satisfy the conditions of the problem.
Final answer
No

Techniques

Coloring schemes, extremal argumentsOther