Skip to main content

2003 AIME II Problem 3

Problem 3 of 15EasierCombinatorics

Define a good word as a sequence of letters that consists only of the letters A,A, B,B, and CC — some of these letters may not appear in the sequence — and in which AA is never immediately followed by B,B, BB is never immediately followed by C,C, and CC is never immediately followed by A.A. How many seven-letter good words are there?

Your answer

Integer from 0 to 999
Show solution

Solution

Each letter rules out exactly one successor (AA forbids B,B, BB forbids C,C, CC forbids AA), so whatever letter has just been written, exactly 22 of the 33 letters may come next. With 33 choices for the first letter and 22 for each of the remaining six positions, the number of seven-letter good words is 3⋅26=192.3 \cdot 2^6 = 192.
AoPS wiki

Tagged: arrangements with restrictions · multiplication principle

More practice