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.
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.
For the general formula where m ≤ n , the number of ways that the people can line up is: n + 1 n − m + 1 ( m m + n ) Can you prove why?
Does anyone know the latex sign for 'greater than or equal to'?
Log in to reply
To say that x is greater than or equal to y you would type x \ge y inside the the usual bracketing symbols. For x less than or equal to 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. :)
Visit here
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 .
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?]
As mentioned in other solutions, we are counting lattice paths from (0,0) to (28,6) stay within the region x ≥ 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 . 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
( 6 3 4 ) − ( 5 3 4 ) = 1 0 6 6 6 4 8 .
Problem Loading...
Note Loading...
Set Loading...
This is the same as finding the number of lattice paths from ( 0 , 0 ) to ( 2 8 , 6 ) that stay below and do not cross the line 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 ) to ( 2 9 , 6 ) that stay strictly below x = y , (i.e., that do not touch this line), in which case the Ballot Theorem applies. With a = 2 9 , b = 6 and k = 1 we have that the desired value is
2 9 + 6 2 9 − 6 ( 2 9 2 9 + 6 ) = 1 0 6 6 6 4 8 .