Difference between revisions of "2020 AMC 12B Problems/Problem 16"

(Solution 4)
Line 32: Line 32:
  
 
Then we start can with <math>dp[1][1] = 1</math> and try to compute <math>dp[3][3]</math>. The answer is <math>\boxed{\textbf{(B)}\ \frac{1}{5}}</math>.
 
Then we start can with <math>dp[1][1] = 1</math> and try to compute <math>dp[3][3]</math>. The answer is <math>\boxed{\textbf{(B)}\ \frac{1}{5}}</math>.
 +
 +
(Solution by CircleOO)
  
 
==See Also==
 
==See Also==

Revision as of 09:08, 8 February 2020

Problem

An urn contains one red ball and one blue ball. A box of extra red and blue balls lie nearby. George performs the following operation four times: he draws a ball from the urn at random and then takes a ball of the same color from the box and returns those two matching balls to the urn. After the four iterations the urn contains six balls. What is the probability that the urn contains three balls of each color? $\textbf{(A)}\ \frac{1}{6} \qquad\textbf{(B)}\ \frac{1}{5} \qquad\textbf{(C)}\ \frac{1}{4} \qquad\textbf{(D)}\ \frac{1}{3} \qquad\textbf{(E)}\ \frac{1}{2}$

Solution

Let the probability that the urn ends up with more red balls be denoted $P(R)$. Since this is equal to the probability there are more blue balls, the probability there are equal amounts is $1-2P(R)$. $P(R) =$ the probability no more blues are chosen plus the probability only 1 more blue is chosen. The first case, $P(\text{no more blues}) = \frac{1}{2}*\frac{2}{3}*\frac{3}{4}*\frac{4}{5}=\frac{1}{5}$.

The second case, $P(\text{1 more blue}) = 4*\frac{1*1*2*3}{2*3*4*5} = \frac{1}{5}$. Thus, the answer is $1-2(\frac{1}{5}+\frac{1}{5})=1-\frac{4}{5}=\boxed{\textbf{(B)}\ \frac{1}{5}}$.

~JHawk0224

Solution 2

By conditional probability after 4 rounds we have 5 cases: RRRBBB, RRRRBB, RRBBBB, RRRRRB and RBBBBB. Thus the probability is $\frac{1}{5}$. Put $\boxed{B}$.

~FANYUCHEN20020715

Edited by Kinglogic

Solution 3

Here X stands for R or B, and Y for the remaining color. After 3 rounds one can either have a 4+1 configuration (XXXXY), or 3+2 configuration (XXXYY). The probability of getting to XXXYYY from XXXYY is $\frac{2}{5}$. Observe that the probability of arriving to 4+1 configuration is \[\frac{2}{3} \cdot \frac{3}{4} = \frac{1}{2}\] ($\frac{2}{3}$ to get from XXY to XXXY, $\frac{3}{4}$ to get from XXXY to XXXXY). Thus the probability of arriving to 3+2 configuration is also $\frac{1}{2}$, and the answer is \[\frac{1}{2} \cdot \frac{2}{5} = \boxed{\textbf{(B)}\ \frac{1}{5}}.\]

Solution 4

We can try to use dynamic programming to solve this problem. (Informatics Olympiad hahaha)

We let $dp[i][j]$ be the probability that we end up with $i$ red balls and $j$ blue balls. Notice that there are only two ways that we can end up with $i$ red balls and $j$ blue balls: one is by fetching a red ball from the urn when we have $i - 1$ red balls and $j$ blue balls and the other is by fetching a blue ball from the urn when we have $i$ red balls and $j - 1$ blue balls.

Then we have $dp[i][j] = \frac{i - 1}{i - 1 + j} dp[i - 1][j] + \frac{j - 1}{i - 1 + j} dp[i][j - 1]$

Then we start can with $dp[1][1] = 1$ and try to compute $dp[3][3]$. The answer is $\boxed{\textbf{(B)}\ \frac{1}{5}}$.

(Solution by CircleOO)

See Also

2020 AMC 12B (ProblemsAnswer KeyResources)
Preceded by
Problem 15
Followed by
Problem 17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
All AMC 12 Problems and Solutions

The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. AMC logo.png