AMC 12 Mock Exam 5 Problem 22
Problem 22 of 25
A movie theater sells tickets for each. Ten people wait in line: five of them each have a single bill, and the other five each have a single bill. Each person buys one ticket, and whenever someone pays with a bill, the cashier must immediately give back a bill as change. The cashier starts with exactly one 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 patterns are equally likely. Let be the number of bills in the register after customers; , a customer adds , a customer subtracts , and . The cashier succeeds iff for all , i.e., the path never reaches .
Reflection. For a path from height to height that reaches , reflect the part before the first visit to across the level . This gives a bijection with all paths of steps from height to height . Such a path has up-steps and down-steps, so there are of them.
So patterns succeed, and the probability is . (With an empty register the answer would be the Catalan count .)
Tagged: ballot problem, reflection principle