AMC 12 Mock Exam 7 Problem 25
Problem 25 of 25
A one-way street has parking spaces, numbered through in the direction of travel. Six cars arrive one at a time. Each driver has a favorite space from to (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 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 . Now let each driver's favorite be any of , 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 of the spaces end up empty.
Good lists are exactly the loop lists that leave space empty. If a loop list leaves space empty, then space was empty the whole time, so no driver had favorite and no driver ever reached space ; hence nobody drove past space , 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 .
Counting by rotation. Adding (mod ) to every favorite rotates the whole loop process by spaces, so it rotates the set of empty spaces by . For a fixed list with empty set (), space is empty after rotating by exactly when the space (read modulo , with meaning ) lies in , which happens for exactly of the values of . The loop lists split into groups of rotations of each other (a nonzero rotation changes every favorite, so the rotations are distinct), and in each group exactly lists leave space empty. Therefore the number of good lists is (With cars and spaces the same argument gives the classical count . The choice counts all lists, and and come from misapplying the classical formula.)
Tagged: parking functions with extra spaces (circular symmetry argument)