Skip to main content

AMC 12 Mock Exam 5 Problem 22

Problem 22 of 25

A movie theater sells tickets for $5\$5 each. Ten people wait in line: five of them each have a single $5\$5 bill, and the other five each have a single $10\$10 bill. Each person buys one ticket, and whenever someone pays with a $10\$10 bill, the cashier must immediately give back a $5\$5 bill as change. The cashier starts with exactly one $5\$5 bill in the register. If the ten people are lined up in a uniformly random order, what is the probability that the cashier is always able to give change?

Answer choices

Show solution

Solution

Only the pattern of bill types matters, and all (105)=252\binom{10}{5}=252 patterns are equally likely. Let hjh_j be the number of $5\$5 bills in the register after jj customers; h0=1h_0=1, a $5\$5 customer adds 11, a $10\$10 customer subtracts 11, and h10=1h_{10}=1. The cashier succeeds iff hj≥0h_j\ge0 for all jj, i.e., the path never reaches −1-1.

Reflection. For a path from height 11 to height 11 that reaches −1-1, reflect the part before the first visit to −1-1 across the level −1-1. This gives a bijection with all paths of 1010 steps from height −3-3 to height 11. Such a path has 77 up-steps and 33 down-steps, so there are (103)=120\binom{10}{3}=120 of them.

So 252−120=132252-120=132 patterns succeed, and the probability is 132252=1121\frac{132}{252}=\boxed{\tfrac{11}{21}}. (With an empty register the answer would be the Catalan count 42252=16\frac{42}{252}=\frac16.)

Tagged: ballot problem, reflection principle