The Gumball Proposition

Suppose there are two gumball machines outside a grocery store, each initially containing 100 100 gumballs. Each machine has an equal chance of being chosen by people wanting a gumball, with each machine dispensing one gumball at a time.

Now the gumball containers are such that no one can tell how many gumballs are left in a machine until someone tries to buy a gumball only to find that that machine is empty. On the first occasion that someone discovers that one of the machines is empty, the probability that there are (strictly) more than 5 5 gumballs left in the other machine is S . S.

Find 10000 S . \lfloor 10000*S \rfloor.


The answer is 6675.

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.

1 solution

In general, let there initially be n n gumballs in each machine. We want to find the probability that, after it is first discovered that one of the machines is empty, there are k k gumballs still left in the other machine, where k k can be any integer value from 0 0 to n . n. (Note that it could be the case that both machines have been emptied, so that when the next person tries to buy a gumball and comes up empty, it is in fact the case that both are empty, i.e., k k can equal 0. 0. )

Now this "discovery" can happen in one of two ways:

  • (i) for the first combined 2 n k 2n - k gumballs bought from the machines, n n have been bought from one machine, call it A A , and n k n - k have been bought from the other machine, call it B B . On the ( 2 n k + 1 ) (2n - k + 1) th purchase, the unfortunate shopper tries to buy a gumball from A A only to come up empty;

  • (ii) same as (i) except the roles of machines A A and B B are reversed.

Both scenarios then have a probability of ( 2 n k n ) 1 2 2 n k 1 2 \dbinom{2n - k}{n} * \dfrac{1}{2^{2n - k}} * \dfrac{1}{2} of happening, and so the probability P ( k ) P(k) that the "other" machine has k k gumballs left in it is

P ( k ) = ( 2 n k n ) 1 2 2 n k . P(k) = \dbinom{2n - k}{n} * \dfrac{1}{2^{2n - k}}.

In this case we have n = 100 n = 100 and k = 6 , 7 , . . . . . , 100. k = 6, 7, ....., 100. It will be easier to calculate using the complement, i.e.,

S = 1 k = 0 5 ( 200 k 100 ) 1 2 200 k = 0.667546.... S = 1 - \displaystyle\sum_{k=0}^{5} \dbinom{200 - k}{100} * \dfrac{1}{2^{200 - k}} = 0.667546....

Thus 10000 S = 6675 . \lfloor 10000*S \rfloor = \boxed{6675}.

With the binomial term I guess you mean the order in which the gumballs are taken from the machine.( If you take one everyday then it matters from which machine you took it. Hence n days are chosen on which you take the gumball from Machine "A" out of '2n-k' days.) Is it ?

Vishal Yadav - 4 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...