Maths Olympiad Prep

Library / /736 of 1394

, 2023

Combinatorics Difficulty 5.3 AIME, harder Prove it United States

Problem:

Richard starts with the string HHMMMMTTHHMMMMTT. A move consists of replacing an instance of HMHM with MHMH, replacing an instance of MTMT with TMTM, or replacing an instance of THTH with HTHT. Compute the number of possible strings he can end up with after performing zero or more moves.

Solution

Solution:

The key claim is that the positions of the MMs fully determines the end configuration. Indeed, since all HHs are initially left of all TTs, the only successful swaps that can occur will involve MMs. So, picking (84)=70\binom{8}{4} = 70 spots for MMs and then filling in the remaining 4 spots with HHs first and then TTs gives all possible arrangements.

It is not hard to show that all of these arrangements are also achievable; just greedily move MMs to their target positions.

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.