Maths Olympiad Prep

Library / /411 of 740

, 2015

Combinatorics Difficulty 5.0 AIME, harder Prove it United States

Problem:
Call a string of letters SS an almost palindrome if SS and the reverse of SS differ in exactly two places.
Find the number of ways to order the letters in HMMTTHEMETEAM to get an almost palindrome.

Solution

Solution:
Answer: 21602160
Note that TT, EE, AA are used an odd number of times. Therefore, one must go in the middle spot and the other pair must match up. There are 32(6!2!)=21603 \cdot 2 \left(\frac{6!}{2!}\right) = 2160 ways to fill in the first six spots with the letters TT, HH, EE, MM, MM and a pair of different letters. The factor of 33 accounts for which letter goes in the middle.

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.