Maths Olympiad Prep

Library / Danube Mathematical Competition /18 of 28

Danube Mathematical Competition, 2014

Combinatorics Difficulty 5.8 AIME, harder Prove it Romania

A succession of letters l1l2…ln‾\overline{l_1l_2\dots l_n}, where n≥1n \ge 1, is called a word. A word l1l2…ln‾\overline{l_1l_2\dots l_n} is called a palindrome, if lk=ln−k+1l_k = l_{n-k+1}, for each k∈{1,2,…,n}k \in \{1, 2, \dots, n\}.
Consider a two-letter word X=l1l2…l2014‾X = \overline{l_1l_2\dots l_{2014}}, with letters AA and/or BB. Prove that XX can be obtained by writing one next to another at most 806 palindromes.

Solution

Let us split XX into groups of 5 consecutive letters; this way we obtain 402 groups of 5 letters and another incomplete group of 4 letters.

Consider a 5 letter-word YY, written only with AA's and BB's, whose first letter is AA. So YY is one of the sixteen words of the form A∗∗∗∗A * * * *. It is easy to check that all of these words either are palindromes or can be formed by joining two palindromes. Switching AA with BB, a similar observation stands if a 5 letter-word YY starts with BB.

Hence, we can concatenate at most 2⋅402=8042 \cdot 402 = 804 palindromes to cover the first 2010 letters of XX. For the last 4 letters we need at most two palindromes, so 806 is the maximum number of palindromes we need.

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

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