Hey! Combinatorics + Inequality!

There are at most 2009 2009 balls, consisting of white balls and blue balls at random inside a locker. If two balls are taken randomly without returning, it is known that the probability which the two balls are both white or both blue are 1 2 \frac{1}{2} . Whay is the maximum number of white ball might be in the drawer so that the statement about the probability of still holds?

Details and Assumption! This problem is not original. I take it from OSN Matematika SMA year 2009 Problem 5 Day 2 (English: Senior High School National Science Olympiad in Mathematics Field yr. 2009 Problem 5 Day 2)


The answer is 990.

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.

2 solutions

Ivan Koswara
Jan 3, 2015

Let there be w w white balls and b b blue balls. The probability that both balls are of the same color is 1 2 \frac{1}{2} , so the complement event that both balls have different colors is 1 1 2 = 1 2 1 - \frac{1}{2} = \frac{1}{2} . But the probability that both balls have different colors is simply w b ( w + b 2 ) \dfrac{wb}{\binom{w+b}{2}} . Thus,

w b ( w + b 2 ) = 1 2 \dfrac{wb}{\binom{w+b}{2}} = \dfrac{1}{2}

w b ( w + b ) 2 ( w + b ) = 1 4 \dfrac{wb}{(w+b)^2 - (w+b)} = \dfrac{1}{4}

( w + b ) 2 ( w + b ) = 4 w b (w+b)^2 - (w+b) = 4wb

( w + b ) 2 4 w b = w + b (w+b)^2 - 4wb = w+b

( w b ) 2 = w + b (w-b)^2 = w+b

Clearly it's better to take w b 0 w-b \ge 0 to maximize w w (taking w b 0 w-b \le 0 maximizes b b instead), so w b = w + b w-b = \sqrt{w+b} instead of w + b -\sqrt{w+b} .

We want to maximize w = ( w + b ) + ( w b ) 2 = ( w + b ) + w + b 2 w = \frac{(w+b) + (w-b)}{2} = \frac{(w+b) + \sqrt{w+b}}{2} . Since the latter is a monotonically increasing function on w + b w+b , we need to maximize w + b w+b . But we are given that w + b 2009 w+b \le 2009 and that it is the square of an integer (namely the square of w b w-b ). Thus we obtain w + b = 4 4 2 = 1936 w+b = 44^2 = 1936 , as the next square is 4 5 2 = 2025 > 2009 45^2 = 2025 > 2009 , and so w = 1936 + 1936 2 = 990 w = \frac{1936 + \sqrt{1936}}{2} = \boxed{990} .

Edmund Berry
Oct 21, 2014

Let there be n n balls, of which w w are white and n w n-w are blue.

  • The probability of picking two white balls is P ( 2 W ) = w ( w 1 ) n ( n 1 ) P(2W) = \frac{w(w-1)}{n(n-1)}
  • The probability of picking two blue balls is P ( 2 B ) = ( n w ) ( n w 1 ) n ( n 1 ) P(2B) = \frac{(n-w)(n-w-1)}{n(n-1)}
  • The probability of picking two balls that are the same color is P = P ( 2 W ) + P ( 2 B ) = w ( w 1 ) + ( n w ) ( n w 1 ) n ( n 1 ) = 1 2 P = P(2W) + P(2B) = \frac{w(w-1) + (n-w)(n-w-1)}{n(n-1)} = \frac{1}{2}

We would like to express w w as a function of n n . The above expression simplifies:

  • 4 w 2 4 w n + n ( n 1 ) = 0 4w^{2} - 4w \cdot n + n\cdot(n-1) = 0

We can find acceptable values of w w by using the quadratic formula:

  • w = 4 n ± 16 n 2 16 n ( n 1 ) 8 w = \frac{4n \pm \sqrt{16n^{2} - 16n(n-1)}}{8}

The above expression simplifies:

  • w = n ± n 2 w = \frac{n\pm\sqrt{n}}{2}

This tells us two things:

  • The largest possible value for w w increases with increasing n n
  • n n must be a perfect square

Therefore, n must be the largest perfect square that is less than or equal to 2009. This is 4 4 2 = 1936 44^{2} = 1936 .

So:

  • n = 1936 n = 1936
  • w = n ± n 2 w = \frac{n\pm\sqrt{n}}{2} , so the largest possible value for w w is 990 \boxed{990}

Just to check our work, we can calculate the probability to pick two white balls or two blue balls under this configuration:

  • P = P ( 2 W ) + P ( 2 B ) = w ( w 1 ) + ( n w ) ( n w 1 ) n ( n 1 ) P = P(2W) + P(2B) = \frac{w(w-1) + (n-w)(n-w-1)}{n(n-1)}
  • P = 990 989 + 946 945 1936 1935 = 1 2 P = \frac{990\cdot 989 + 946\cdot945}{1936\cdot 1935} = \frac{1}{2}

Very Clear and Good Answer!!! Even the first time I carelessly answer this

Figel Ilham - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...