返回题库

AIME 2018 II · 第 13 题

AIME 2018 II — Problem 13

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Misha rolls a standard, fair six-sided die until she rolls 1231-2-3 in that order on three consecutive rolls. The probability that she will roll the die an odd number of times is mn\dfrac{m}{n} where mm and nn are relatively prime positive integers. Find m+nm+n.

解析

Solution 0

Let PnP_n be the probability of getting consecutive 1,2,31,2,3 rolls in nn rolls and not rolling 1,2,31,2,3 prior to the nth roll.

Let x=P3+P5+...=1(P4+P6+..)x = P_3+P_5+...=1-(P_4+P_6+..). Following Solution 2, one can see that

Pn+1=PnPn263P_{n+1}=P_{n}-\frac{P_{n-2}}{6^3} for all positive integers n5n \ge 5. Summing for n=5,7,...n=5,7,... gives

(1x)163=x163x63(1-x)-\frac{1}{6^3}=x-\frac{1}{6^3}-\frac{x}{6^3}     x=mn=216431    m+n=216+431=647\implies x = \frac{m}{n} = \frac{216}{431} \implies m+n=216+431= \boxed{647}

Solution 1

Let Podd=mnP_{odd}=\frac{m}{n}, with the subscript indicating an odd number of rolls. Then Peven=1mnP_{even}=1-\frac{m}{n}.

The ratio of PoddPeven\frac{P_{odd}}{P_{even}} is just Podd1Podd\frac{P_{odd}}{1-P_{odd}}.

We see that PoddP_{odd} is the sum of P3P_3,P5P_5,P7P_7,... , while PevenP_{even} is the sum of P4P_4, P6P_6, P8P_8,... .

P3P_3, the probability of getting rolls of 1-2-3 in exactly 3 rolls, is obviously 1216\frac{1}{216}.

We set this probability of P3P_3 aside, meaning we totally remove the chance of getting 1-2-3 in 3 rolls. Now the ratio of P4+P6+P8+...P_4+P_6+P_8+... to P5+P7+P9+...P_5+P_7+P_9+... should be equal to the ratio of PoddPeven\frac{P_{odd}}{P_{even}}, because in this case the 1st roll no longer matters, so we can disregard the very existence of it in counting how many times of rolls, and thus, 4 rolls, 6 rolls, 8 rolls... would become an odd number of rolls (while 5 rolls, 7 rolls, 9 rolls... would become even number of rolls).

Notice P4+P6+P8+...=PevenP_4+P_6+P_8+...=P_{even}, and also P5+P7+P9+...=PoddP3=Podd1216P_5+P_7+P_9+...=P_{odd}-P_3=P_{odd}-\frac{1}{216}

So we have PevenPodd1216=PoddPeven\frac{P_{even}}{P_{odd}-\frac{1}{216}}=\frac{P_{odd}}{P_{even}}.

Finally, we get Podd=mn=216431P_{odd}=\frac{m}{n}=\frac{216}{431}. Therefore, m+n=647m+n = \boxed{647}.

Solution 2

Call the probability you win on a certain toss fnf_n, where nn is the toss number. Obviously, since the sequence has length 3, f1=0f_1=0 and f2=0f_2=0. Additionally, f3=(16)3f_3=\left(\frac{1}{6}\right)^3. We can call this value xx, to keep our further equations looking clean. We can now write our general form for ff as fn=x(1i=1n3fi)f_n=x\left(1-\sum_{i=1}^{n-3}f_i\right). This factors the probability of the last 3 rolls being 1-2-3, and the important probability that the sequence has not been rolled in the past (because then the game would already be over). Note that i=1fi=1\sum_{i=1}^{\infty}f_i=1 since you'll win at some point. An intermediate step here is figuring out fnfn+1f_n-f_{n+1}. This is equal to x(1i=1n3fi)x(1i=1n2fi)=x(i=1n2fii=1n3fi)=xfn2x\left(1-\sum_{i=1}^{n-3}f_i\right)-x\left(1-\sum_{i=1}^{n-2}f_i\right)=x\left(\sum_{i=1}^{n-2}f_i-\sum_{i=1}^{n-3}f_i\right)=xf_{n-2}. Adding up all the differences, i.e. i=2(f2n1f2n)\sum_{i=2}^{\infty}(f_{2n-1}-f_{2n}) will give us the amount by which the odds probability exceeds the even probability. Since they sum to 1, that means the odds probability will be half of the difference above one-half. Subbing in our earlier result from the intermediate step, the odd probability is equal to 12+12xi=2f2n3\frac{1}{2}+\frac{1}{2}x\sum_{i=2}^{\infty}f_{2n-3}. Another way to find the odd probability is simply summing it up, which turns out to be i=1f2n1\sum_{i=1}^{\infty}f_{2n-1}. Note the infinite sums in both expressions are equal; let's call it PP. Equating them gives 12+12xP=P\frac{1}{2}+\frac{1}{2}xP=P, or P=12xP=\frac{1}{2-x}. Finally, substituting x=1216x=\frac{1}{216}, we find that P=216431P=\frac{216}{431}, giving us a final answer of 216+431=647216 + 431 = \boxed{647}.

~First

Solution 3

Let S(n)S(n) be the number of strings of length nn containing the digits 11 through 66 that do not contain the string 123123. Then we have S(n)=6S(n1)S(n3)S(n) = 6 \cdot S(n-1) - S(n-3) because we can add any digit to end of a string with length n1n-1 but we have to subtract all the strings that end in 123123. We rewrite this as

S(n)=6S(n1)S(n3)=6(6S(n2)S(n4))(6(S(n4)S(n6))=36S(n2)12S(n4)+S(n6)\begin{aligned} S(n) &= 6 \cdot S(n-1) - S(n-3) \\ &= 6 \cdot (6 \cdot S(n-2) - S(n-4)) - (6 \cdot (S(n-4) - S(n-6)) \\ &= 36 \cdot S(n-2) - 12 \cdot S(n-4) + S(n-6) \end{aligned} We wish to compute P=n=0S(2n)62n+3P=\sum_{n=0}^\infty \frac{S(2n)}{6^{2n+3}} since the last three rolls are 123123 for the game to end. Summing over the recursion, we obtain

n=0S(2n)62n+3=36n=0S(2n2)62n+312n=0S(2n4)62n+3+n=0S(2n6)62n+3\sum_{n=0}^\infty \frac{S(2n)}{6^{2n+3}} =36 \cdot \sum_{n=0}^\infty \frac{S(2n-2)}{6^{2n+3}} - 12 \cdot \sum_{n=0}^\infty \frac{S(2n-4)}{6^{2n+3}}+ \sum_{n=0}^\infty \frac{S(2n-6)}{6^{2n+3}} Now shift the indices so that the inside term is the same:

n=3S(2n)62n+3=3662n=2S(2n)62n+31264n=1S(2n)62n+3+166n=0S(2n)62n+3(PS(0)63S(2)65S(4)67)=3662(PS(0)63S(2)65)1264(PS(0)63)+166P\begin{aligned} \sum_{n=3}^\infty \frac{S(2n)}{6^{2n+3}} &= \frac{36}{6^2} \cdot \sum_{n=2}^\infty \frac{S(2n)}{6^{2n+3}} - \frac{12}{6^4} \cdot \sum_{n=1}^\infty \frac{S(2n)}{6^{2n+3}} + \frac{1}{6^6} \cdot \sum_{n=0}^\infty \frac{S(2n)}{6^{2n+3}} \\ \left(P - \frac{S(0)}{6^3} - \frac{S(2)}{6^5} -\frac{S(4)}{6^7} \right) &= \frac{36}{6^2} \cdot \left( P - \frac{S(0)}{6^3} - \frac{S(2)}{6^5}\right) - \frac{12}{6^4} \cdot \left( P - \frac{S(0)}{6^3} \right) + \frac{1}{6^6} \cdot P \end{aligned} Note that S(0)=1,S(2)=36S(0) = 1, S(2) = 36 and S(4)=6426=1284S(4) = 6^4 - 2 \cdot 6 = 1284. Therefore,

(P1633665128467)=3662(P1633665)1264(P163)+166P\begin{aligned} \left(P - \frac{1}{6^3} - \frac{36}{6^5} -\frac{1284}{6^7} \right) = \frac{36}{6^2} \cdot \left( P - \frac{1}{6^3} - \frac{36}{6^5}\right) - \frac{12}{6^4} \cdot \left( P - \frac{1}{6^3} \right) + \frac{1}{6^6} \cdot P \end{aligned} Solving for PP, we obtain P=216431    m+n=647P = \frac{216}{431} \implies m+n = \boxed{647}.

-Vfire

Solution 4

Let A=16[5100411041010000]A=\frac{1}{6} \begin{bmatrix} 5 & 1 & 0 & 0 \\ 4 & 1 & 1 & 0 \\ 4 & 1 & 0 & 1 \\ 0 & 0 & 0 & 0 \\ \end{bmatrix}. AA is a transition matrix for the prefix of 1-2-3 matched so far. The state corresponding to a complete match has no outgoing probability mass. The probability that we roll the dice exactly kk times is (Ak)1,4(A^k)_{1,4}. Thus the probability that we roll the dice an odd number of times is 1(k=0A2k)1,4=1((IA2)1)1,4=2164311-\left(\sum_{k=0}^\infty A^{2k}\right)_{1,4} = 1-\left((I - A^2)^{-1}\right)_{1,4} = \frac{216}{431}. Thus the answer is 216+431=647216+431=\boxed{647}.

Solution 5 (quick cheat)

Consider it as a contest of Odd and Even. Let PoP_o and PeP_e be probability that Odd and Even wins, respectively. If we consider every 3 rolls as an atomic action, then we can have a simple solution. If the rolls is 1-2-3, Odd wins; otherwise, Odd and Even switch the odds of winning. Therefore, we have

Po=1216+215216PeP_o = \frac{1}{216} + \frac{215}{216}P_e Plug in Pe=1PoP_e = 1 - P_o and we can easily solve for Po=216431Po=\frac{216}{431}.

647\boxed{647}.

Of course this is not a rigorous solution. I think it works because the requirement is a strict sequence of pure random events.

-Mathdummy

Solution 6 (Markov Chain)

Main article: Markov Chains

Let PoP_o, PeP_e be the winning probabilities respectively. We call Odd "in position" when a new sequence of 1-2-3 starts at odd position, and likewise, call Even is "in position" when a new sequence starts at even position.

Now, consider the situation when the first roll is 1.1. The conditional probability for Odd or Even to eventually win out depends on whose is in position. So let's denote by Po(1),Pe(1)P_o(1), P_e(1) the probabilities of Odd and Even winning out, respectively, both when Odd is in position. Remember that the probabilities simply switch if Even is in position. Similarly, after 1-2 is rolled, we denote by Po(2),Pe(2)P_o(2), P_e(2) the conditional probabilities of Odd and Even winning out, when Odd is in position.

Consider the first roll. If it's not a 1, the sequence restarts, but Even is now in position; if it's a 1, then Odd's winning probability becomes Po(1)P_o(1). So,

Po=16Po(1)+56PeP_o = \frac{1}{6}P_o(1) + \frac{5}{6}P_e In the next roll, there are 3 outcomes. If the roll is 2, then Odd's winning probability becomes Po(2)P_o(2); if the roll is 1, then we stay in the sequence, but Even is now in position, so the probability of Odd winning now becomes Pe(1)P_e(1); if the rolls is any other number, then the sequence restarts, and Odd is still in position. So,

Po(1)=16Po(2)+16Pe(1)+46PoP_o(1) = \frac{1}{6}P_o(2) + \frac{1}{6}P_e(1) + \frac{4}{6}P_o In the next roll after a 1-2 sequence, there are 3 outcomes. If the roll is a 3, Odd wins; if it's a 1, we go back to the state when 1 is just rolled, and Odd is in position; if it's any other number, then the sequence restarts, and Even is in position. So,

Po(2)=16+16Po(1)+46PeP_o(2) = \frac{1}{6} + \frac{1}{6}P_o(1) + \frac{4}{6}P_e Plug in Pe=1PoP_e = 1-P_o and Pe(1)=1Po(1)P_e(1) = 1 - P_o(1), we have a 3-equation linear system which is not hard to solve. The final answer is Po=216431Po=\frac{216}{431}. 647\boxed{647}. (We want P_o because if it starts odd, it will also end odd)

-Mathdummy

Markov Chain Diagram

AIME diagram

mathboy282

LaTeX\LaTeX done by CrazyVideoGamez

Solution 7(Blocks)

Take a block of any three possible rolls. You have 636^3 different possibilities for a block and 6316^3 - 1 different possibilities to have a block without 1-2-3. This gives two probabilities of 63163\frac{6^3-1}{6^3} and 163\frac{1}{6^3}, respectively. To get an odd number of total rolls, we need an even number of blocks without a 1-2-3. Then, we can sum up the probabilities up to infinity to see the total probability of getting an even number of rolls.

163k=0(63163)2k\frac{1}{6^3}\sum_{k=0}^{\infty}\left(\frac{6^3-1}{6^3}\right)^{2k} =1631(63163)2=\frac{\frac{1}{6^3}}{1-\left(\frac{6^3-1}{6^3}\right)^2} Using difference of squares on the bottom half we can reduce it to (163163)(1+63163)=2×631(63)2\left(1-\frac{6^3-1}{6^3}\right)\left(1+\frac{6^3-1}{6^3}\right)=\frac{2\times 6^3 -1}{(6^3)^2}. Plugging this back in to the equation we get-

1632×631(63)2=632×631=216431\frac{\frac{1}{6^3}}{\frac{2\times 6^3 -1}{(6^3)^2}} = \frac{6^3}{2\times 6^3 - 1} = \frac{216}{431} Then, our answer is 647\boxed{647} -Mathiscool109

Solution 8 (Recursion)

Let the PoP_o be the probability that Misha will roll the die an odd number of times, PeP_e be the probability that Misha will roll the die an even number of times.

Let PnP_n be the probability Misha ends after rolling nn number of times.

Ending at nn has two requirements: The last three rolls are 1,2,31,2,3, and there can't exist any 1,2,31,2,3 in previous rolls, which causes Misha end at a k<nk < n.

Pn=(16)3(1k=1n3Pk)P_n = (\frac{1}{6})^3 \cdot (1-\sum\limits_{k=1}\limits^{n-3} P_k)

Substitute the values for

{P2n+1=1216(1k=12n2Pk)P2n=1216(1k=12n3Pk)\begin{cases} P_{2n+1} = \frac{1}{216} (1-\sum\limits_{k=1}\limits^{2n-2} P_k) \\ P_{2n} = \frac{1}{216} (1-\sum\limits_{k=1}\limits^{2n-3} P_k) \end{cases} P2n+1P2n=1216(P2n2)P_{2n+1}-P_{2n} = \frac{1}{216}(-P_{2n-2}) n=2P2n+1n=2P2n=1216(n=2P2n2)\sum\limits_{n=2}\limits^{\infty} P_{2n+1} - \sum\limits_{n=2}\limits^{\infty} P_{2n} = -\frac{1}{216}(\sum\limits_{n=2}\limits^{\infty} P_{2n-2}) (PoP3)Pe=1216Pe(P_o - P_3) - P_e = -\frac{1}{216} \cdot P_e

It is easy to see that P3=(16)3=1216P_3 = -(\frac{1}{6})^3 = \frac{1}{216} with only one case of 1,2,31,2,3. Also, PoandPeP_{o} and P_{e} should be complementary values. Therefore we get two equations for two unknown variables:

{Po1216=215216PePo+Pe=1\begin{cases} P_o - \frac{1}{216} = \frac{215}{216} P_e \\ P_o + P_e = 1 \end{cases} So 431216Pe=215216\frac{431}{216} \cdot P_e = \frac{215}{216}, and Pe=215431P_e = \frac{215}{431}

Po=1215431=216431P_o = 1-\frac{215}{431} = \frac{216}{431} 216+431=647216+431=\boxed{647}

-cassphe