Skip to main content

2005 AIME I Problem 5

Problem 5 of 15EasierCombinatorics

Robert has 44 indistinguishable gold coins and 44 indistinguishable silver coins. Each coin has an engraving of a face on one side, but not on the other. He wants to stack the eight coins on a table into a single stack so that no two adjacent coins are face to face. Find the number of possible distinguishable arrangements of the 88 coins.

Your answer

Integer from 0 to 999
Show solution

Solution

Choose the coin orientations and the gold/silver positions independently. Record the orientations from bottom to top as a string of UU (engraved face up) and DD (engraved face down). Two adjacent coins are face to face exactly when the lower coin’s engraved side faces up and the upper coin’s engraved side faces down — that is, exactly when a UU is immediately followed by a D.D. A string of UU’s and DD’s avoids the pattern UDUD exactly when every DD precedes every U,U, so the string is DiU8−i\text{D}^i\text{U}^{8-i} for some i=0,1,…,8:i = 0, 1, \ldots, 8: there are 99 allowable orientation strings. Independently, the gold coins occupy 44 of the 88 positions in (84)=70\binom{8}{4} = 70 ways. The total is 9⋅70=630.9 \cdot 70 = 630.
AoPS wiki

Tagged: arrangements with restrictions · combinations · multiplication principle

More practice