$ 5 . 10 people are standing in line to buy a ticket, which, five of them have a $ 5 bill, four have a $ 1 0 bill and one has a $ 2 0 bill. Considering that in the box office there is no money in the cashier initially, how many ordered sets can be formed with these 10 people in a way that there is always change for each person who buys a ticket in the box office?
In a movie theater, tickets costConsider there is 1 0 ( 4 9 ) ways to arrange them without restriction, in other words, if two people have the same bill, then they're equal.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let us first analise the queue replacing the person with the $ 2 0 bill by a $ 1 0 bill.
Now consider the following queue: F F T F T F F T T T where F represents a person with a $ 5 bill and T a $ 1 0 dollar bill. From left to right, the above is a "good" queue, because the box office will always have change. Now, if we take, for example, the fourth person in the queue above and change all the people behind her with the people in front of her, in the same order, we get: T F F T T T F F F T , wich is a "bad" queue. If we do that for each letter F for each "good" queue we get a "bad" one, and since all "good" and "bad" queues formed with this process are differente from one another, there are 5 "bad" queues for each "good" queue.
The total number , x , of possible queues is given by ( 5 1 0 ) . So x = 2 5 2 . The number of "good" queues is given by N = 6 x = 4 2 .
Now we just have to replace one $ 1 0 bill by a $ 2 0 bill. There are 5 people with a $ 1 0 dollar bill, but only the last four in the queue can be replaced, so there is change available. So, our final answer is 4 2 × 4 = 1 6 8 .
The number of configuration that satisfy the above conditions is equal to 4 × C 5 where C n represents the n t h Catalan Number.
We know that C 5 = 42. Therefore the number of ways to arrange them in such a way that they satisfy the above condition is 4 × C 5 = 1 6 8 ways.
Can you explain this, I mean why 4 × C 5 ?
Problem Loading...
Note Loading...
Set Loading...
Define X t to be the number of the first t people in the queue who have $5; and define Y t = X t − ( t − X t ) the difference between this number and the number of the first t people who do not have $5. Then we need (i) Y t > = 0 for all t = 1 , 2 , . . , 1 0 , and (ii) the first of the people without the $5 to have a $10 bill.
So if we can count the number, N , of orders of the people with/without a $5 bill that satisfy (i), then for each of these there are 4 places for the person with $20 that satisfy (ii), so the answer is 4 N .
Now to find N we can use the reflection principle for a simple random walk. The number of orderings of the people is 10-choose-5 (we have 10 people, 5 with $5 bills). The number of these orderings that do not satisfy Y t > = 0 for all t = 1 , . . , 1 0 is just the number of ways of moving from Y 0 = − 2 to Y 1 0 = 0 as there is a 1-to-1 mapping between the paths from Y 0 = 0 to Y 1 0 = 0 that hit the value − 1 and that paths Y 0 = − 2 to Y 1 0 = 0 *. This is 10-choose-6.
So N is the difference of these: 10-choose-5 minus 10-choose-6; which is 42.
Hence the answer is 4 times 42, i.e. 168.
[*This mapping is obtained by reflecting the paths between time 0 and the time they first hit -1 about the line y = − 1 .]