Maths Olympiad Prep

Library / /45 of 1394

, 2019

Combinatorics Difficulty 4.6 AIME Find the answer United States

Problem:

How many distinct permutations of the letters of the word REDDER are there that do not contain a palindromic substring of length at least two? (A substring is a contiguous block of letters that is part of the string. A string is palindromic if it is the same when read backwards.)

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:

If two identical letters are adjacent or have a single letter in between, there is clearly a palindromic substring of length (respectively) two or three. So there cannot be any such substrings.

Say we have a permutation of the word REDDER without any palindromic substrings. Let us call the first letter XX. The second letter has to be different, let us call it YY. The third letter cannot be XX or YY, let it be ZZ. Again, the fourth letter cannot be YY or ZZ, and we only have 3 letters to choose from, so it has to be XX. Continuing analogously, the fifth letter has to be YY, and the sixth letter has to be ZZ. So any word satisfying the problem statement has to be of the form XYZXYZXYZXYZ. It is easy to check that such a word indeed does not have any palindromic substrings. X,Y,Z\mathrm{X}, \mathrm{Y}, \mathrm{Z} can be any permutation of RR, EE, DD, giving a total of 66 possibilities.

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.