AMC 10 Step by Step

2002 AMC 10B Problem 9

P1-10~2 minPrint

Using the letters AA , MM , OO , SS , and UU , we can form five-letter "words". If these "words" are arranged in alphabetical order, then the "word" USAMOUSAMO occupies position

Log in to save your progress.
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 A,M,O,S,UA, M, O, S, U. The plan is to count how many words come before USAMOUSAMO, then add 11.

  1. Words starting with an earlier letter than UU. The first letter can be AA, MM, OO or SS (44 choices). The other four letters can then be arranged in 4×3×2×1=244 \times 3 \times 2 \times 1 = 24 ways. That is 4×24=964 \times 24 = 96 words.
  2. Words starting with UU whose second letter is earlier than SS. The second letter can be AA, MM or OO (33 choices), and the last three letters can be arranged in 3×2×1=63 \times 2 \times 1 = 6 ways. That is 3×6=183 \times 6 = 18 words.
  3. Words starting with USUS. The last three letters are AA, MM, OO. The first such word puts them in alphabetical order: USAMOUSAMO itself.
  4. So 96+18=11496 + 18 = 114 words come before USAMOUSAMO, and USAMOUSAMO is word number 115115.

The answer is (D) 115\boxed{\textbf{(D)}\ 115}.

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 5×4×3×2×1=1205 \times 4 \times 3 \times 2 \times 1 = 120 words in total. The ones after USAMOUSAMO all start with USUS and put A,M,OA, M, O in a later order: USAOMUSAOM, USMAOUSMAO, USMOAUSMOA, USOAMUSOAM, USOMAUSOMA. That is 55 words, so USAMOUSAMO is number 120−5=115120 - 5 = 115.

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 A<M<O<S<UA < M < O < S < U. Count how many words are listed before USAMOUSAMO.

First letter earlier than UU: any of A,M,O,SA, M, O, S, followed by any arrangement of the other four letters. That is 4⋅4!=964 \cdot 4! = 96 words.

First letter UU, second letter earlier than SS: the second letter is AA, MM or OO, then any arrangement of the remaining three. That is 3⋅3!=183 \cdot 3! = 18 words.

First two letters USUS: the remaining letters A,M,OA, M, O in alphabetical order spell AMOAMO, so USAMOUSAMO is the first word in this block.

So 96+18=11496 + 18 = 114 words precede USAMOUSAMO, and it sits in position 115115.

The answer is (D) 115\boxed{\textbf{(D)}\ 115}.

Review in the AoPS books

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.