Difference between revisions of "1995 AIME Problems/Problem 15"
(→Solution 4(fast)) |
|||
Line 50: | Line 50: | ||
Consider what happens in the "endgame" or what ultimately leads to the end. Let A denote that a head has been flipped, and let B denote that a tail has been flipped. The endgame outcomes are AAAAA, BAAAAA, BB, ABB, AABB, AAABB, AAAABB. The probabilities of each of these are <math>\frac{1}{32},\frac{1}{64},\frac{1}{4},\frac{1}{8},\frac{1}{16},\frac{1}{32},\frac{1}{64}</math> respectively. The ones where there is five heads are AAAAA and BAAAAA. The sum of these probabilities are <math> \frac{3}{64}</math>. The sum of all these endgame outcomes are <math>\frac{34}{64}</math>, hence the desired probability is <math>\frac{3}{34}</math>, and in this case <math>m=3,n=34</math> so we have <math>m+n=\boxed{037}</math> | Consider what happens in the "endgame" or what ultimately leads to the end. Let A denote that a head has been flipped, and let B denote that a tail has been flipped. The endgame outcomes are AAAAA, BAAAAA, BB, ABB, AABB, AAABB, AAAABB. The probabilities of each of these are <math>\frac{1}{32},\frac{1}{64},\frac{1}{4},\frac{1}{8},\frac{1}{16},\frac{1}{32},\frac{1}{64}</math> respectively. The ones where there is five heads are AAAAA and BAAAAA. The sum of these probabilities are <math> \frac{3}{64}</math>. The sum of all these endgame outcomes are <math>\frac{34}{64}</math>, hence the desired probability is <math>\frac{3}{34}</math>, and in this case <math>m=3,n=34</math> so we have <math>m+n=\boxed{037}</math> | ||
-vsamc | -vsamc | ||
+ | |||
+ | |||
+ | =solution 5 (has lots of variables and steps, but it is very easy to think up)= | ||
+ | |||
+ | o the states are | ||
+ | (h=heads t=tails) | ||
+ | |||
+ | <math>h_1</math> which is the probability of having exactly 1 H in a row. | ||
+ | <math>h_2</math> which is the probability of having exactly 2 Hs in a row. | ||
+ | <math>h_3</math> which is the probability of having exactly 3 Hs in a row. | ||
+ | <math>h_4</math> which is the probability of having exactly 4 Hs in a row. | ||
+ | <math>h_5</math> which is the probability of having exactly 5 Hs in a row. | ||
+ | <math>t_1</math> which is the probability of having exactly 1 T in a row. | ||
+ | <math>t_2</math> which is the probability of having exactly 2 Ts in a row. | ||
+ | |||
+ | |||
+ | (1)it is easy to see that(if you dont get the skipped steps, just ask) <math>h_2 = \frac{h_1}{2}</math>, <math>h_3 = \frac{h_1}{4}</math>, <math>h_4 = \frac{h_1}{8}</math> and <math>h_5 = \frac{h_1}{16}</math> | ||
+ | |||
+ | (2)we can also see <math>h_1 = \frac{1}{2} + \frac{t_1}{2}</math> because the first move has probability <math>\frac{1}{2}</math> of landing heads, and any time there is tails, there is a <math>\frac{1}{2}</math> chance of getting a head. | ||
+ | |||
+ | (3)obviously <math>t_2 = \frac{t_1}{2}</math> | ||
+ | |||
+ | (4)we also have <math>t_1 = \frac{1}{2} + \frac{h_1}{2} +\frac{h_2}{2} +\frac{h_3}{2} + \frac{h_4}{2}</math> and by then by using (1), <math>t_1 = \frac{1}{2} + \frac{15h_1}{16}</math> | ||
+ | |||
+ | (5)so using (2) and (4) we can solve for <math>t_1</math> and <math>h_1</math>. so we will get <math>h_1 = \frac{24}{17}</math>, and <math>t_1 = \frac{31}{17}</math>. | ||
+ | |||
+ | so since <math>h_5 = \frac{h_1}{16}</math>, we now know <math>h_5 = \frac{3}{34}</math>, and since <math>t_2 = \frac{t_1}{2}</math>, <math>t_2 = \frac{31}{34}</math>. | ||
+ | |||
+ | what we are looking for is <math>\frac{h_5}{h_5+t_2}</math> which gives the answer <math>\frac{3}{34}</math> | ||
== See also == | == See also == |
Revision as of 12:36, 10 April 2020
Problem
Let be the probability that, in the process of repeatedly flipping a fair coin, one will encounter a run of heads before one encounters a run of tails. Given that can be written in the form where and are relatively prime positive integers, find .
Contents
Solution
Solution 1
Think of the problem as a sequence of H's and T's. No two T's can occur in a row, so the sequence is blocks of to H's separated by T's and ending in H's. Since the first letter could be T or the sequence could start with a block of H's, the total probability is that of it has to start with an H.
The answer to the problem is then the sum of all numbers of the form , where are all numbers , since the blocks of H's can range from in length. The sum of all numbers of the form is , so if there are n blocks of H's before the final five H's, the answer can be rewritten as the sum of all numbers of the form , where ranges from to , since that's how many blocks of H's there can be before the final five. This is an infinite geometric series whose sum is , so the answer is .
Solution 2
Let respectively denote the probabilities that a string beginning with H's and T's are successful. Thus,
A successful string can either start with 1 to 4 H's, start with a T and then continue with a string starting with H (as there cannot be T's in a row, or be the string HHHHH.
There is a probability we roll consecutive H's, and there is a probability we roll a T. Thus,
The answer is , and .
Solution 3
For simplicity, let's compute the complement, namely the probability of getting to tails before heads.
Let denote the probability that we get tails before heads, given that we have consecutive heads. Similarly, let denote the probability that we get tails before heads, given that we have consecutive tails. Specifically, and . If we can solve for and , we are done; the answer is simply , since on our first roll, we have equal chances of getting a string with "1 consecutive head" or "1 consecutive tail."
Consider solving for . If we have 1 consecutive tail, then (a) rolling a head gets us to 1 consecutive head and (b) rolling a tail gets us to 2 consecutive tails. So, we must have:
Applying similar logic, we get the equations:
Since , we get .
So, the probability of reaching tails before heads is ; we want the complement, , yielding an answer of .
Note: The same approach still works if we tried solving the original problem rather than the complement; we would have simply used and instead. The repeated back-substitution is cleaner because we used the complement.
Solution 4(fast)
Consider what happens in the "endgame" or what ultimately leads to the end. Let A denote that a head has been flipped, and let B denote that a tail has been flipped. The endgame outcomes are AAAAA, BAAAAA, BB, ABB, AABB, AAABB, AAAABB. The probabilities of each of these are respectively. The ones where there is five heads are AAAAA and BAAAAA. The sum of these probabilities are . The sum of all these endgame outcomes are , hence the desired probability is , and in this case so we have -vsamc
solution 5 (has lots of variables and steps, but it is very easy to think up)
o the states are (h=heads t=tails)
which is the probability of having exactly 1 H in a row. which is the probability of having exactly 2 Hs in a row. which is the probability of having exactly 3 Hs in a row. which is the probability of having exactly 4 Hs in a row. which is the probability of having exactly 5 Hs in a row. which is the probability of having exactly 1 T in a row. which is the probability of having exactly 2 Ts in a row.
(1)it is easy to see that(if you dont get the skipped steps, just ask) , , and
(2)we can also see because the first move has probability of landing heads, and any time there is tails, there is a chance of getting a head.
(3)obviously
(4)we also have and by then by using (1),
(5)so using (2) and (4) we can solve for and . so we will get , and .
so since , we now know , and since , .
what we are looking for is which gives the answer
See also
1995 AIME (Problems • Answer Key • Resources) | ||
Preceded by Problem 14 |
Followed by Last question | |
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.