Skip to main content

AMC 12 Mock Exam 7 Problem 25

Problem 25 of 25

A one-way street has 88 parking spaces, numbered 11 through 88 in the direction of travel. Six cars arrive one at a time. Each driver has a favorite space from 11 to 88 (favorites may repeat), drives to it, and parks there if it is empty; otherwise the driver parks in the first empty space beyond it, or leaves if there is none. For how many of the 868^6 possible lists of favorites (in order of arrival) do all six cars park?

Answer choices

Show solution

Solution

Add a ninth space and join the end of the street to its beginning, making a loop of spaces 1,2,…,91,2,\dots,9. Now let each driver's favorite be any of 1,…,91,\dots,9, and let a driver whose favorite is taken keep driving around the loop to the first empty space. On the loop every car parks, and exactly 33 of the 99 spaces end up empty.

Good lists are exactly the loop lists that leave space 99 empty. If a loop list leaves space 99 empty, then space 99 was empty the whole time, so no driver had favorite 99 and no driver ever reached space 99; hence nobody drove past space 88, and the loop process is exactly the street process, in which everyone parks. Conversely, for a good street list, the loop process runs exactly like the street process and never uses space 99.

Counting by rotation. Adding jj (mod 99) to every favorite rotates the whole loop process by jj spaces, so it rotates the set of empty spaces by jj. For a fixed list with empty set SS (∣S∣=3|S|=3), space 99 is empty after rotating by jj exactly when the space 9−j9-j (read modulo 99, with 00 meaning 99) lies in SS, which happens for exactly 33 of the 99 values of jj. The 969^6 loop lists split into groups of 99 rotations of each other (a nonzero rotation changes every favorite, so the 99 rotations are distinct), and in each group exactly 33 lists leave space 99 empty. Therefore the number of good lists is 39⋅96=3⋅95=311=177147.\frac{3}{9}\cdot9^6=3\cdot9^5=3^{11}=\boxed{177147}. (With nn cars and nn spaces the same argument gives the classical count (n+1)n−1(n+1)^{n-1}. The choice 262144=86262144=8^6 counts all lists, and 117649=76117649=7^6 and 59049=9559049=9^5 come from misapplying the classical formula.)

Tagged: parking functions with extra spaces (circular symmetry argument)