Difference between revisions of "2018 AIME II Problems/Problem 13"
m (→Solution 1) |
m (→Solution 2 (Recursion)) |
||
Line 32: | Line 32: | ||
--DanDan0101 | --DanDan0101 | ||
− | ==Solution 2 ( | + | ==Solution 2== |
+ | Call the probability you win on a certain toss <math>f_n</math>, where <math>n</math> is the toss number. | ||
+ | Obviously, since the sequence has length 3, <math>f_1=0</math> and <math>f_2=0</math>. | ||
+ | Additionally, <math>f_3=\left(\frac{1}{6}\right)^3</math>. We can call this value <math>x</math>, to keep our further equations looking clean. | ||
+ | We can now write our general form for <math>f</math> as <math>f_n=x(1-\sum_{i=1}^{n-3}f_i)</math>. 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 <math>\sum_{i=1}^{\infty}f_i=1</math> since you'll win at some point. | ||
+ | An intermediate step here is figuring out <math>f_n-f_{n+1}</math>. This is equal to <math>x(1-\sum_{i=1}^{n-3}f_i)-x(1-\sum_{i=1}^{n-2}f_i)=x(\sum_{i=1}^{n-2}f_i-\sum_{i=1}^{n-3}f_i)=xf_{n-2}</math>. | ||
+ | Adding up all the differences, i.e. <math>\sum_{i=2}^{\infty}(f_{2n-1}-f_{2n})</math> 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 <math>\frac{1}{2}+\frac{1}{2}x\sum_{i=2}^{\infty}f_{2n-3}</math>. | ||
+ | Another way to find the odd probability is simply summing it up, which turns out to be <math>\sum_{i=1}^{\infty}f_{2n-1}</math>. Note the infinite sums in both expressions are equal; let's call it <math>P</math>. Equating them gives <math>\frac{1}{2}+\frac{1}{2}xP=P</math>, or <math>P=\frac{1}{2-x}</math>. | ||
+ | Finally, substituting <math>x=\frac{1}{216}</math>, we find that <math>P=\frac{216}{431}</math>, giving us a final answer of <math>216 + 431 = \boxed{647}</math>. | ||
+ | --DanDan0101 | ||
+ | |||
Let <math>S(n)</math> be the number of strings of length <math>n</math> containing the digits <math>1</math> through <math>6</math> that do not contain the string <math>123</math>. Then we have <math>S(n) = 6 \cdot S(n-1) - S(n-3)</math> because we can add any digit to end of a string with length <math>n-1</math> but we have to subtract all the strings that end in <math>123</math>. We rewrite this as | Let <math>S(n)</math> be the number of strings of length <math>n</math> containing the digits <math>1</math> through <math>6</math> that do not contain the string <math>123</math>. Then we have <math>S(n) = 6 \cdot S(n-1) - S(n-3)</math> because we can add any digit to end of a string with length <math>n-1</math> but we have to subtract all the strings that end in <math>123</math>. We rewrite this as | ||
<cmath>\begin{align*} | <cmath>\begin{align*} |
Revision as of 19:42, 14 April 2018
Problem
Misha rolls a standard, fair six-sided die until she rolls 1-2-3 in that order on three consecutive rolls. The probability that she will roll the die an odd number of times is where and are relatively prime positive integers. Find .
Solution 1
Let , with the subscript indicating an odd number of rolls. Then .
The ratio of is just .
We see that is the sum of ,,,... , while is the sum of , , ,... .
, the probability of getting rolls of 1-2-3 in exactly 3 rolls, is obviously .
We set this probability of aside, meaning we totally remove the chance of getting 1-2-3 in 3 rolls. Now the ratio of to should be equal to the ratio of , 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 , and also
So we have .
Finally, we get . Therefore, .
Call the probability you win on a certain toss , where is the toss number. Obviously, since the sequence has length 3, and . Additionally, . We can call this value , to keep our further equations looking clean. We can now write our general form for as . 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 since you'll win at some point. An intermediate step here is figuring out . This is equal to . Adding up all the differences, i.e. 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 . Another way to find the odd probability is simply summing it up, which turns out to be . Note the infinite sums in both expressions are equal; let's call it . Equating them gives , or . Finally, substituting , we find that , giving us a final answer of . --DanDan0101
Solution 2
Call the probability you win on a certain toss , where is the toss number. Obviously, since the sequence has length 3, and . Additionally, . We can call this value , to keep our further equations looking clean. We can now write our general form for as . 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 since you'll win at some point. An intermediate step here is figuring out . This is equal to . Adding up all the differences, i.e. 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 . Another way to find the odd probability is simply summing it up, which turns out to be . Note the infinite sums in both expressions are equal; let's call it . Equating them gives , or . Finally, substituting , we find that , giving us a final answer of . --DanDan0101
Let be the number of strings of length containing the digits through that do not contain the string . Then we have because we can add any digit to end of a string with length but we have to subtract all the strings that end in . We rewrite this as We wish to compute since the last three rolls are for the game to end. Summing over the recursion, we obtain Now shift the indices so that the inside term is the same: Note that and . Therefore, Solving for , we obtain . -Vfire
Solution 3 (Simple)
Let , with the subscript indicating an odd number of rolls. Then .
The ratio of is just .
We see that is the sum of ,,,... , while is the sum of , , ,... .
, the probability of getting rolls of 1-2-3 in exactly 3 rolls, is obviously .
We set this probability of aside, meaning we totally remove the chance of getting 1-2-3 in 3 rolls. Now the ratio of to should be equal to the ratio of , 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 , and also
So we have .
Finally, we get . Therefore, .
2018 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 12 |
Followed by Problem 14 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.