A succession of letters , where , is called a word. A word is called a palindrome, if , for each .
Consider a two-letter word , with letters and/or . Prove that can be obtained by writing one next to another at most 806 palindromes.
, 2014
Solution
Let us split 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 , written only with 's and 's, whose first letter is . So is one of the sixteen words of the form . It is easy to check that all of these words either are palindromes or can be formed by joining two palindromes. Switching with , a similar observation stands if a 5 letter-word starts with .
Hence, we can concatenate at most palindromes to cover the first 2010 letters of . 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.