Maths Olympiad Prep

Library / /14 of 22

, 2014

Combinatorics Difficulty 5.8 AIME, harder Prove it Romania

A succession of letters l1l2ln\overline{l_1l_2\dots l_n}, where n1n \ge 1, is called a word. A word l1l2ln\overline{l_1l_2\dots l_n} is called a palindrome, if lk=lnk+1l_k = l_{n-k+1}, for each k{1,2,,n}k \in \{1, 2, \dots, n\}.
Consider a two-letter word X=l1l2l2014X = \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 AA * * * *. 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 2402=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,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.