2002 AMC 10B Problem 9
Using the letters , , , , and , we can form five-letter "words". If these "words" are arranged in alphabetical order, then the "word" occupies position
Show solution without answering
Key insight
Count the words that come before USAMO in blocks: first all words starting with A, M, O or S, then the words starting UA, UM or UO. USAMO is next.
Solution
In alphabetical order the letters go . The plan is to count how many words come before , then add .
- Words starting with an earlier letter than . The first letter can be , , or ( choices). The other four letters can then be arranged in ways. That is words.
- Words starting with whose second letter is earlier than . The second letter can be , or ( choices), and the last three letters can be arranged in ways. That is words.
- Words starting with . The last three letters are , , . The first such word puts them in alphabetical order: itself.
- So words come before , and is word number .
The answer is .
Why this works
Alphabetical order sorts by the first letter, then breaks ties with the second letter, and so on. So the words before a target come in blocks, one block for each smaller letter you could have put in each position. Each block has size "number of arrangements of the letters still unused." Remember the last step: words before it plus one gives its position.
Alternative approach
Count from the end. There are words in total. The ones after all start with and put in a later order: , , , , . That is words, so is number .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Alphabetically the letters are . Count how many words are listed before .
First letter earlier than : any of , followed by any arrangement of the other four letters. That is words.
First letter , second letter earlier than : the second letter is , or , then any arrangement of the remaining three. That is words.
First two letters : the remaining letters in alphabetical order spell , so is the first word in this block.
So words precede , and it sits in position .
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques
- Introduction to Counting & Probability, Chapter 4: Committees and Combinations
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.