Maths Olympiad Prep

Track / Stage 4 / 115 of 340 #855 of 2444

Problem 855

AMC 12 late, AIME early
Combinatorics Difficulty 4.6 Find the answer HMMT February · United States · 2019

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.

Next problem →

Official 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.

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