返回题库

AIME 2023 I · 第 6 题

AIME 2023 I — Problem 6

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Alice knows that 33 red cards and 33 black cards will be revealed to her one at a time in random order. Before each card is revealed, Alice must guess its color. If Alice plays optimally, the expected number of cards she will guess correctly is mn,\frac{m}{n}, where mm and nn are relatively prime positive integers. Find m+n.m+n.

解析

Solution 1 (Casework)

We break the problem into stages, one for each card revealed, then further into cases based on the number of remaining unrevealed cards of each color. Since expected value is linear, the expected value of the total number of correct card color guesses across all stages is the sum of the expected values of the number of correct card color guesses at each stage; that is, we add the probabilities of correctly guessing the color at each stage to get the final answer (See https://brilliant.org/wiki/linearity-of-expectation/)

At any stage, if there are aa unrevealed cards of one color and bb of the other color, and aba \geq b, then the optimal strategy is to guess the color with aa unrevealed cards, which succeeds with probability aa+b.\frac{a}{a+b}.

Stage 1:

There are always 33 unrevealed cards of each color, so the probability of guessing correctly is 12\frac{1}{2}.

Stage 2:

There is always a 33-22 split (33 unrevealed cards of one color and 22 of the other color), so the probability of guessing correctly is 35\frac{3}{5}.

Stage 3:

There are now 22 cases:

  • The guess from Stage 2 was correct, so there is now a 22-22 split of cards and a 12\frac{1}{2} probability of guessing the color of the third card correctly.
  • The guess from Stage 2 was incorrect, so the split is 33-11 and the probability of guessing correctly is 34\frac{3}{4}.

Thus, the overall probability of guessing correctly is 3512+2534=35\frac{3}{5} \cdot \frac{1}{2} + \frac{2}{5} \cdot \frac{3}{4} = \frac{3}{5}.

Stage 4:

This stage has 22 cases as well:

  • The guesses from both Stage 2 and Stage 3 were incorrect. This occurs with probability 2514=110\frac{2}{5} \cdot \frac{1}{4} = \frac{1}{10} and results in a 33-00 split and a certain correct guess at this stage.
  • Otherwise, there must be a 22-11 split and a 23\frac{2}{3} probability of guessing correctly.

The probability of guessing the fourth card correctly is therefore 1101+91023=710\frac{1}{10} \cdot 1 + \frac{9}{10} \cdot \frac{2}{3} = \frac{7}{10}.

Stage 5:

Yet again, there are 22 cases:

  • In Stage 4, there was a 22-11 split and the guess was correct. This occurs with probability 91023=35\frac{9}{10} \cdot \frac{2}{3} = \frac{3}{5} and results in a 11-11 split with a 12\frac{1}{2} chance of a correct guess here.
  • Otherwise, there must be a 22-00 split, making a correct guess certain.

In total, the fifth card can be guessed correctly with probability 3512+251=710\frac{3}{5} \cdot \frac{1}{2} + \frac{2}{5} \cdot 1 = \frac{7}{10}.

Stage 6:

At this point, only 11 card remains, so the probability of guessing its color correctly is 11.

In conclusion, the expected value of the number of cards guessed correctly is

12+35+35+710+710+1=5+6+6+7+7+1010=4110,\frac{1}{2} + \frac{3}{5} + \frac{3}{5} + \frac{7}{10} + \frac{7}{10} + 1 = \frac{5+6+6+7+7+10}{10} = \frac{41}{10}, so the answer is 41+10=051.41 + 10 = \boxed{051}.

~OrangeQuail9

Solution 2 (Casework)

At any point in the game, Alice should guess whichever color has come up less frequently thus far (although if both colors have come up equally often, she may guess whichever she likes); using this strategy, her probability of guessing correctly is at least 12\frac{1}{2} on any given card, as desired.

There are (63)=20{6 \choose 3} = 20 possible orderings of cards, all equally likely (since any of the 6!=7206! = 720 permutations of the cards is equally likely, and each ordering covers 3!2=62=363!^2 = 6^2 = 36 permutations).

Each of the 1010 orderings that start with red cards corresponds with one that starts with a black card; the problem is symmetrical with respect to red and black cards, so we can, without loss of generality, consider only the orderings that start with red cards.

We then generate a tally table showing whether Alice's guesses are correct for each ordering; for a given card, she guesses correctly if fewer than half the previously shown cards were the same color, guesses incorrectly if more than half were the same color, and guesses correctly with probability 12\frac{1}{2} if exactly half were the same color.

In this table, \mid denotes a correct guess, \-\-- denotes an incorrect guess, and // denotes a guess with 12\frac{1}{2} probability of being correct.

AIME diagram

Now we sum the tallies across orderings, obtaining 4141, and finally divide by the number of orderings (1010) to obtain the expected number of correct guesses, 4110\frac{41}{10}, which yields an answer of 41+10=051.41 + 10 = \boxed{051}.

~IndigoEagle108

Solution 3 (Dynamic Programming)

Denote by N(a,b)N \left( a, b \right) the optimal expected number of cards that Alice guesses correctly, where the number of red and black cards are aa and bb, respectively.

Thus, for a,b1a, b \geq 1, we have

N(a,b)=max{aa+b(1+N(a1,b))+ba+bN(a,b1),aa+bN(a1,b)+ba+b(1+N(a,b1))}.\begin{aligned} N \left( a, b \right) & = \max \left\{ \frac{a}{a+b} \left( 1 + N \left( a - 1 , b \right) \right) + \frac{b}{a+b} N \left( a , b - 1 \right) , \right. \\ & \hspace{1cm} \left. \frac{a}{a+b} N \left( a - 1 , b \right) + \frac{b}{a+b} \left( 1 + N \left( a , b - 1 \right) \right) \right\} . \end{aligned} For a=0a = 0, Alice always guesses black. So N(0,b)=bN \left( 0 , b \right) = b.

For b=0b = 0, Alice always guesses red. So N(a,0)=aN \left( a , 0 \right) = a.

To solve this dynamic program, we can also exploit its symmetry that N(a,b)=N(b,a)N \left( a , b \right) = N \left( b , a \right).

By solving this dynamic program, we get N(1,1)=32N \left( 1, 1 \right) = \frac{3}{2}, N(1,2)=73N \left( 1, 2 \right) = \frac{7}{3}, N(1,3)=134N \left( 1 , 3 \right) = \frac{13}{4}, N(2,2)=176N \left( 2 , 2 \right) = \frac{17}{6}, N(2,3)=185N \left( 2 , 3 \right) = \frac{18}{5}, N(3,3)=4110N \left( 3, 3 \right) = \frac{41}{10}.

Therefore, the answer is 41+10=(051) 41 + 10 = \boxed{\textbf{(051) }}.

~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)

Solution 4 (Simplification of Solution 3)

Denote by Ni,jN_{i,j} the optimal expected number of cards that Alice guesses correctly, where the number of cards are ii and ji.j \ge i.

If i=0i = 0 then Alice guesses correctly all cards, so N0,j=j.N_{0,j} = j.

If j=ij = i then Alice guesses next card with probability 12    Ni,i=12+Ni1,i.\frac {1}{2} \implies N_{i,i} = \frac {1}{2} + N_{i-1,i}.

If j=i+1j = i+1 then Alice guesses next card with probability i+12i+1    Ni,i+1=i+12i+1(1+Ni,i)+i2i+1Ni1,i+1.\frac {i+1}{2i+1} \implies N_{i,i+1} = \frac {i+1}{2i+1} (1+ N_{i,i}) + \frac{i}{2i+1} N_{i-1,i+1}.

If j=i+2j = i+2 then Alice guesses next card with probability i+22i+2    Ni,i+2=i+22i+2(1+Ni,i+1)+i2i+2Ni1,i+2.\frac {i+2}{2i+2} \implies N_{i,i+2} = \frac {i+2}{2i+2} (1+ N_{i,i+1}) + \frac{i}{2i+2} N_{i-1,i+2}.

One can find consistently: N1,1=12+N0,1=32,N_{1,1} = \frac {1}{2} + N_{0,1} = \frac {3}{2},

N1,2=23(1+N1,1)+13N0,2=73.N_{1,2} = \frac {2}{3} (1 + N_{1,1}) + \frac {1}{3} N_{0,2} = \frac {7}{3}. N2,2=12+N1,2=176.N_{2,2} = \frac {1}{2} + N_{1,2} = \frac {17}{6}. N1,3=34(1+N1,2)+14N0,3=134.N_{1,3} = \frac {3}{4} (1 + N_{1,2}) + \frac {1}{4} N_{0,3} = \frac {13}{4}. N2,3=35(1+N2,2)+25N1,3=185.N_{2,3} = \frac {3}{5} (1 + N_{2,2}) + \frac {2}{5} N_{1,3} = \frac {18}{5}. N3,3=12+N2,3=4110.N_{3,3} = \frac {1}{2} + N_{2,3} = \frac {41}{10}. Therefore, the answer is 41+10=(051) 41 + 10 = \boxed{\textbf{(051) }}.

vladimir.shelomovskii@gmail.com, vvsss

Solution 5 (Pseudo-recursion)

Denote EnE_n the expected number of cards Alice guesses correctly given nn red cards and nn black cards. We want to find E3E_3.

Alice has a 12\frac{1}{2} chance of guessing the first card. WLOG assume the first card color is red. For the next card, Alice has a 35\frac{3}{5} chance of guessing the card if she chooses black; if they guess right, there's one less red and black card, so the expected number of cards Alice guesses from here is E2E_2. If Alice does not guess correctly (which occurs with probability 25\frac{2}{5}), this means that there's 3 black cards and 1 red card left, so Alice should guess black next with a 34\frac{3}{4} chance of being right. If Alice is wrong (with probability 14\frac{1}{4}), there are only 3 black cards left, so Alice can guess these with certainty; if Alice is right, there are 2 blacks and 1 red left, so Alice should again guess black. If Alice is right (with probability 23\frac{2}{3}), there is now 1 black and red card each, so the expected number of cards guessed is E1E_1; if she is wrong (with probability 13\frac{1}{3}), there are 2 black cards left, so Alice can guess these with certainty.

Summing this up into a formula:

E3=12+35(1+E2)+25(14(3)+34(1+23(1+E1)+13(2)))E_3 = \frac{1}{2} + \frac{3}{5} \left(1 + E_2 \right) + \frac{2}{5} \left( \frac{1}{4}(3) + \frac{3}{4}\left(1 + \frac{2}{3}\left(1 + E_1 \right) + \frac{1}{3}(2)\right) \right) We can apply similar logic to compute E2E_2 and get

E2=12+23(1+E1)+13(2)E_2 = \frac{1}{2} + \frac{2}{3}(1 + E_1) + \frac{1}{3}(2) To compute E1E_1, we know that Alice can guess the last card with certainty, and there's a 12\frac{1}{2} chance they get the first card as well, so E1=32E_1 = \frac{3}{2}.

Thus, E2=176E_2 = \frac{17}{6}, and after long computation, we get E3=4110E_3 = \frac{41}{10}. The requested answer is 41+10=5141 + 10 = \boxed{51}.

~ adam_zheng

Solution 6 (non-recursive)

There's a beautiful observation that for any particular game path, the expected number of correct guesses is purely dependent on how often we are in a neutral state (i.e. there are the same number of red and black cards remaining in the deck). For example, given path BRRBBRBRRBBR we are in a neutral state once in the beginning when no cards have been flipped, after the second card has been flipped, after the 4th card has been flipped, and finally a 4th time at the very end of the game. Call the number of times a given path is in the neutral state nn. Then the expected number of correct guesses equals:

E=3+n12E = 3 + \frac{n-1}{2} Since this problem is small, we could just could just count them (noting that the problem is symmetric between reds and blacks):

PathNeutral StatesERRRBBB23.5RRBRBB23.5RRBRBB34RRBBBR34RBRRBB34RBRBRB44.5RBRBBR44.5RBBRRB44.5RBBRBR44.5RBBBRR34\begin{array}{|c|c|c|} \hline \textbf{Path} & \textbf{Neutral States} & \textbf{E}\\ \hline \text{RRRBBB} & 2 & 3.5\\ \text{RRBRBB} & 2 & 3.5 \\ \text{RRBRBB} & 3 & 4 \\ \text{RRBBBR} & 3 & 4 \\ \text{RBRRBB} & 3 & 4 \\ \text{RBRBRB} & 4 & 4.5 \\ \text{RBRBBR} & 4 & 4.5 \\ \text{RBBRRB} & 4 & 4.5 \\ \text{RBBRBR} & 4 & 4.5 \\ \text{RBBBRR} & 3 & 4 \\ \hline \end{array} Using linearity of expectation, the expected number of correct guesses is:

E=3.5+3.5+4+4+4+4.5+4.5+4.5+4.5+410=4110, thus 41+10=51E=\frac{3.5+3.5+4+4+4+4.5+4.5+4.5+4.5+4}{10}=\frac{41}{10}, \text{ thus } 41 + 10 = \boxed{51} Note that if we call the total number of neutral states across all (63)=20{6 \choose 3}=20 paths NN, this would be equivalent to:

E=3+N2012E=3 + \frac{\frac{N}{20}-1}{2} We can compute NN directly. Let the index mm be a point where we've seen mm red cards and mm black cards. There are (2mm)\binom{2m}{m} paths that lead up to that point. After which there are 62m6-2m cards remaining, 3m3-m of which are red and 3m3-m of which are black. Summing up over all possible values of mm gives us:

AIME diagram

and as before:

E=3+N2012=3+642012=3+1110=4110E=3 + \frac{\frac{N}{20}-1}{2}=3 + \frac{\frac{64}{20}-1}{2}=3+\frac{11}{10}=\frac{41}{10} ~proloto

Video Solution 1 by TheBeautyofMath

https://youtu.be/ITjbRKWbQeI

~IceMatrix