Line Up!

There are 34 people in line to get into a theatre. Admission costs 50 cents. Of the 34 people, 28 of them have a 50-cent piece and 6 have a $1 bill. Suppose that the box office has an empty cash register, how many ways can the people line up so that change is available when needed?

Note: For this question, assume that the people are indistinguishable​.


The answer is 1066648.

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.

3 solutions

This is the same as finding the number of lattice paths from ( 0 , 0 ) (0,0) to ( 28 , 6 ) (28,6) that stay below and do not cross the line x = y x = y , (although they can touch this line). (By "lattice path" I mean a path that can only go up or to the right, one unit at a time.)

This is equivalent to finding the number of lattice paths from ( 1 , 0 ) (1,0) to ( 29 , 6 ) (29,6) that stay strictly below x = y x = y , (i.e., that do not touch this line), in which case the Ballot Theorem applies. With a = 29 , b = 6 a = 29, b = 6 and k = 1 k = 1 we have that the desired value is

29 6 29 + 6 ( 29 + 6 29 ) = 1066648 \dfrac{29 - 6}{29 + 6} \dbinom{29 + 6}{29} = \boxed{1066648} .

For the general formula where m n m \leq n , the number of ways that the people can line up is: n m + 1 n + 1 ( m + n m ) \dfrac{n-m+1}{n+1}\dbinom{m+n}{m} Can you prove why?

Does anyone know the latex sign for 'greater than or equal to'?

Marc Vince Casimiro - 6 years, 6 months ago

Log in to reply

To say that x x is greater than or equal to y y you would type x \ge y inside the the usual bracketing symbols. For x x less than or equal to y y it would be x \le y, and for x not equal to y it would be x \ne y.

I enjoyed solving "Line Up!"; it makes for a good introduction to an interesting and useful concept. :)

Brian Charlesworth - 6 years, 6 months ago

Visit here

Pranjal Jain - 6 years, 6 months ago

Log in to reply

See reflection method for the proof. This is B e r t r a n d B a l l o t T h e o r e m Bertrand\ Ballot\ Theorem .

Pranjal Jain - 6 years, 6 months ago

taking c=cent, d=dollar

i tried putting 6 c-s before 1st d =1 way

putting 5 c-s before 1st d and 1 c in any of the 5 places = 5 ways

putting 4 c-s before 1st d and 2 c-s in any of the 5 places, optimally= 4*5 +4 =24 ways

putting 3 c-s before 1st d and 3 c-s in any of the 5 places, optimally= 2 * 25 +5 * 5 = 75 ways

putting 2 c-s before 1st d and 4 c-s in any of the 5 places optimally= 5+5=10 ways

putting 1 c before 1st d and rest of the c-s optimally = 1+ 4 +3+2+1 = 11 ways

Thus the 6 c-s and 6 d-s can be placed in 126 ways folowing the condition

Now remaining 22 c-s can be places in 7 places in (22+7)C7 ways for each of the 126 ways = 126 * 1560780 =196658280

[had a calculation mistake.. corrected in this comment, yet it is different than the right answer. Can u please let me know where i m wrong?]

Ananya Aaniya - 4 years, 10 months ago
Andre Bourque
Jun 19, 2018

As mentioned in other solutions, we are counting lattice paths from (0,0) to (28,6) stay within the region x y x \geq y (why?). Instead, we can count the paths that do not stay within the region and subtract from the total. Call these bad paths.

It should be noticed that any bad path must intersect the line (but not necessarily cross) y = x + 1 y = x + 1 . Suppose for a given bad path, it first hits the line at the point P. Reflect the part of this path from (0,0) to P across the line. We now have a lattice path from (-1,1) to (28,6), and in fact, the bad paths are in bijection to these lattice paths. I will spare the details, but you should convince yourself that it is true.

Now for the calculation, we simply have

( 34 6 ) ( 34 5 ) = 1066648 . \dbinom{34}{6} - \dbinom{34}{5} = \boxed{1066648}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...