Skip to main content

2024 AMC 10A Problem 6

Problem 6 of 25EasierCounting & Probability

What is the minimum number of successive swaps of adjacent letters in the string ABCDEF that are needed to change the string to FEDCBA? (For example, 33 swaps are required to change ABC to CBA; one such sequence of swaps is ABC \to BAC \to BCA \to CBA.)

Answer choices

Show solution

Solution

Reversing all six letters flips the relative order of every pair, so all (62)=15\binom{6}{2} = 15 pairs end up inverted. Each adjacent swap fixes exactly one inversion. So we need at least 1515 swaps, and bubbling each letter into place hits 1515 exactly. Therefore, the answer is D.

More practice

Concepts: permutations · counting pairs · invariant

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.