Maths Olympiad Prep

Library / /357 of 383

, 2011

Combinatorics Difficulty 9.1 IMO level Prove it IMO

Let nn be a positive integer and let W=x1x0x1x2W = \ldots x_{-1} x_{0} x_{1} x_{2} \ldots be an infinite periodic word consisting of the letters aa and bb. Suppose that the minimal period NN of WW is greater than 2n2^{n}.

A finite nonempty word UU is said to appear in WW if there exist indices kk \leq \ell such that U=xkxk+1xU = x_{k} x_{k+1} \ldots x_{\ell}. A finite word UU is called ubiquitous if the four words UaU a, UbU b, aUa U, and bUb U all appear in WW. Prove that there are at least nn ubiquitous finite nonempty words.

Solution

Throughout the solution, all the words are nonempty. For any word RR of length mm, we call the number of indices i{1,2,,N}i \in \{1,2, \ldots, N\} for which RR coincides with the subword xi+1xi+2xi+mx_{i+1} x_{i+2} \ldots x_{i+m} of WW the multiplicity of RR and denote it by μ(R)\mu(R). Thus a word RR appears in WW if and only if μ(R)>0\mu(R) > 0. Since each occurrence of a word in WW is both succeeded by either the letter aa or the letter bb and similarly preceded by one of those two letters, we have
μ(R)=μ(Ra)+μ(Rb)=μ(aR)+μ(bR) \begin{equation*} \mu(R) = \mu(R a) + \mu(R b) = \mu(a R) + \mu(b R) \tag{1} \end{equation*}
for all words RR.

We claim that the condition that NN is in fact the minimal period of WW guarantees that each word of length NN has multiplicity 11 or 00 depending on whether it appears or not. Indeed, if the words xi+1xi+2xi+Nx_{i+1} x_{i+2} \ldots x_{i+N} and xj+1xj+Nx_{j+1} \ldots x_{j+N} are equal for some 1i<jN1 \leq i < j \leq N, then we have xi+a=xj+ax_{i+a} = x_{j+a} for every integer aa, and hence jij-i is also a period.

Moreover, since N>2nN > 2^{n}, at least one of the two words aa and bb has a multiplicity that is strictly larger than 2n12^{n-1}.

For each k=0,1,,n1k = 0, 1, \ldots, n-1, let UkU_{k} be a subword of WW whose multiplicity is strictly larger than 2k2^{k} and whose length is maximal subject to this property. Note that such a word exists in view of the two observations made in the two previous paragraphs.

Fix some index k{0,1,,n1}k \in \{0,1, \ldots, n-1\}. Since the word UkbU_{k} b is longer than UkU_{k}, its multiplicity can be at most 2k2^{k}, so in particular μ(Ukb)<μ(Uk)\mu\left(U_{k} b\right) < \mu\left(U_{k}\right). Therefore, the word UkaU_{k} a has to appear by (1). For a similar reason, the words UkbU_{k} b, aUka U_{k}, and bUkb U_{k} have to appear as well. Hence, the word UkU_{k} is ubiquitous. Moreover, if the multiplicity of UkU_{k} were strictly greater than 2k+12^{k+1}, then by (1) at least one of the two words UkaU_{k} a and UkbU_{k} b would have multiplicity greater than 2k2^{k} and would thus violate the maximality condition imposed on UkU_{k}.

So we have μ(U0)2<μ(U1)4<2n1<μ(Un1)\mu\left(U_{0}\right) \leq 2 < \mu\left(U_{1}\right) \leq 4 < \ldots \leq 2^{n-1} < \mu\left(U_{n-1}\right), which implies in particular that the words U0,U1,,Un1U_{0}, U_{1}, \ldots, U_{n-1} have to be distinct. As they have been proved to be ubiquitous as well, the problem is solved.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.