Take any 3 balls

A bag contains a blue ball, some red balls, and some green balls.
You reach into​ the bag and pull out three balls at random.
The probability you pull out one of each color is exactly 3%.
How many balls were initially in the bag?


More probability questions

Photo credit: www.figurerealm.com


The answer is 50.

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

Geoff Pilling
Jun 7, 2016

Let P ( R , G , B ) = P(R,G,B) = The probability of choosing 3 3 different colors if there are R R reds, G G greens, and B B blues.

P ( R , G , B ) = R × G × B ( R + G + B 3 ) P(R,G,B) = \frac{R \times G \times B}{\binom{R+G+B}{3}}

For B = 1 B = 1 , this becomes,

P ( R , G , 1 ) = R × G ( R + G + 1 3 ) P(R,G,1) = \frac{R \times G}{\binom{R+G+1}{3}}

This only equals . 03 .03 if R = 21 R=21 and G = 28 G=28 or R = 28 R=28 and G = 21 G=21 .

So the total number of balls in the bag in the beginning was 21 + 28 + 1 = 50 21 + 28 + 1 = \boxed{50}

Nice question. I guess the trickiest part is to find a 'clean' way of solving the equation

200 R G = ( R + G ) 3 ( R + G ) 200RG = (R + G)^{3} - (R + G) for positive integers R , G R,G . (I resorted to WolframAlpha.)

Brian Charlesworth - 5 years ago

Log in to reply

First show that by rational root theorem that if R = G R=G is a solution, then the cubic equation yields no solution, so R G R\ne G .

WLOG R > G > 0 R > G> 0 , then by AM-GM inequality , we have R G < R + G 2 R G < ( R + G ) 2 4 200 R G < 50 ( R + G ) 2 . \sqrt{RG} < \tfrac{R+G}2 \quad \Leftrightarrow \quad RG < \tfrac{(R+G)^2}4 \quad \Leftrightarrow \quad 200RG < 50 (R+G)^2 \; .

Let Y = R + G 1 + 1 = 2 Y = R+G\geq 1+1=2 , then we want to find the integer solution for 50 Y 2 > Y 3 Y 50Y^2 > Y^3- Y , factoring out the linear factor and solving the quadratic inequality by quadratic formula gives

2 Y < 25 + 626 50.02 (1) 2 \leq Y < 25 + \sqrt{626} \approx 50.02 \tag{1}

Now consider a quadratic equation with roots R R and G G , by Vieta's formula - forming quadratics , we have

X 2 Y X + Y 3 Y 200 = 0 X^2 - YX + \tfrac{Y^3-Y}{200} = 0

Since Y = R + G Y=R+G is an integer, then the quadratic discriminant of the equation above is a perfect square:

Y 2 4 ( Y 3 Y 200 ) = M 2 Y 3 Y 0 ( m o d 50 ) R + G = Y 0 , ± 1 ( m o d 25 ) ( 2 ) Y^2 - 4 \left( \tfrac{Y^3-Y}{200} \right) = M^2 \: \Leftrightarrow \: Y^3 - Y \equiv 0 \pmod{50} \: \Leftrightarrow \: R+G = Y \equiv 0, \pm1 \pmod{25} \qquad (2)

Hence, the possible values of Y = R + G Y=R+G boils down to { 24 , 25 , 26 , 49 , 50 } . \{ 24,25,26,49,50 \} .

Now just plug in these 5 possible solutions and with enough patience, we can show that R + G = 49 R+G = 49 is the only solution.

Pi Han Goh - 5 years ago

Log in to reply

Nice write up, @Pi Han Goh !

Geoff Pilling - 5 years ago

Hey thanks, Brian! Yeah, proving that this is the solution gets kinda tedious... Oh well, glad you liked it! :)

Geoff Pilling - 5 years ago

boiling down to 200r(t-r-1)=t(t-1)(t-2); r=reds; t=total

wolframalpha solveinteger 200r(t-r-1)=t(t-1)(t-2), r>0, t>0

3 solutions red=1; total=2; green=0 contradiction

red=21; t=50; green=28

red=28; t=50; green=21 *)

Harout G. Vartanian - 4 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...