Using the letters , , , , and , we can form five-letter "words". If these "words" are arranged in alphabetical order, then the "word" occupies position
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Count the words before USAMO block by block: 4 choices of an earlier first letter give 4*24, then UA, UM, UO give 3*6, and USAMO is the very next word.
Solution
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 .
Why this works
Alphabetical order is a nested sort: all words with a smaller first letter come first, then within a tie, all with a smaller second letter, and so on. Counting the words that precede a target is therefore a sum of blocks, each block being (number of smaller letters available at that slot) times (arrangements of the letters left). Add at the end to convert "words before" into "position."
Alternative approach
Count from the back. There are words, and after come exactly the -words with the tail bigger than : , five of them. So is number .
The trap
Reporting 114, the number of words that come before USAMO, instead of its position 115; or sorting the letters in the order U, S, A, M, O rather than alphabetically.
Common mistakes
- Reporting 114, the number of words that come before USAMO, instead of its position 115; or sorting the letters in the order U, S, A, M, O rather than alphabetically.
- Forgetting the second block (the words , , ) and answering .
Techniques
Set up the equation/formula and compute; no special trick needed