返回题库

AIME 1995 · 第 15 题

AIME 1995 — Problem 15

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let pp_{} be the probability that, in the process of repeatedly flipping a fair coin, one will encounter a run of 55 heads before one encounters a run of 22 tails. Given that pp_{} can be written in the form m/nm/n where mm_{} and nn_{} are relatively prime positive integers, find m+nm+n.

解析

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 successful sequences are composed of blocks of 11 to 44 H's separated by T's and end with 55 H's. Since the probability that the sequence starts with TH is 1/41/4, the total probability is that 3/23/2 of the probability given that the sequence starts with an H.

The answer to the problem is then the sum of all numbers of the form 32(12a1212b1212c)(12)5\frac 32 \left( \frac 1{2^a} \cdot \frac 12 \cdot \frac 1{2^b} \cdot \frac 12 \cdot \frac 1{2^c} \cdots \right) \cdot \left(\frac 12\right)^5, where a,b,ca,b,c \ldots are all numbers 141-4, since the blocks of H's can range from 141-4 in length. The sum of all numbers of the form (1/2)a(1/2)^a is 1/2+1/4+1/8+1/16=15/161/2+1/4+1/8+1/16=15/16, 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 32((1516)n(12)n)(132)=364(1532)n\frac 32\left( \left(\frac {15}{16}\right)^n \cdot \left(\frac 12\right)^n \right) \cdot \left(\frac 1{32}\right)=\frac 3{64}\left(\frac{15}{32}\right)^n, where nn ranges from 00 to \infty, 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 3/641(15/32)=334\frac{3/64}{1-(15/32)}=\frac{3}{34}, so the answer is 037\boxed{037}.

Solution 2

Let pH,pTp_H, p_T respectively denote the probabilities that a string beginning with H's(H-string) and T's(T-string) are successful. Notice that a T-string is just a T followed by an H-string. Thus,

pT=12pH.p_T = \frac 12p_H.

A successful string can either be the string HHHHH, start with 1 to 4 H's and then revert to a T, start with a T and then continue with a string starting with H (as there cannot be 22 T's in a row).

There is a 125=132\frac{1}{2^5} = \frac{1}{32} probability we roll HHHHH. On the other hand, there is a 1516\frac{15}{16} probability we roll a H, HH, HHH, or HHHH, and then a probability of pTp_T to follow that up with a string starting with T. Thus,

pH=(1516)(12)pH+132pH=117.p_H = \left(\frac{15}{16}\right) \cdot \left(\frac 12\right) p_H + \frac{1}{32} \Longrightarrow p_H = \frac{1}{17}.

The answer is pH+pT=32pH=334p_H + p_T = \frac{3}{2}p_H = \frac{3}{34}, and m+n=037m+n = \boxed{037}.

Solution 3

For simplicity, let's compute the complement, namely the probability of getting to 22 tails before 55 heads.

Let hih_{i} denote the probability that we get 22 tails before 55 heads, given that we have ii consecutive heads. Similarly, let tit_{i} denote the probability that we get 22 tails before 55 heads, given that we have ii consecutive tails. Specifically, h5=0h_{5} = 0 and t2=1t_{2} = 1. If we can solve for h1h_{1} and t1t_{1}, we are done; the answer is simply 1/2(h1+t1)1/2 * (h_{1} + t_{1}), since on our first roll, we have equal chances of getting a string with "1 consecutive head" or "1 consecutive tail."

Consider solving for t1t_{1}. 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:

t1=12t2+12h1t_{1} = \frac{1}{2} t_{2} + \frac{1}{2} h_{1}

Applying similar logic, we get the equations:

h1=12h2+12t1h2=12h3+12t1h3=12h4+12t1h4=12h5+12t1\begin{aligned} h_{1} &= \frac{1}{2} h_{2} + \frac{1}{2} t_{1}\\ h_{2} &= \frac{1}{2} h_{3} + \frac{1}{2} t_{1}\\ h_{3} &= \frac{1}{2} h_{4} + \frac{1}{2} t_{1}\\ h_{4} &= \frac{1}{2} h_{5} + \frac{1}{2} t_{1} \end{aligned} Since h5=0h_{5} = 0, we get h4=12t1h_{4} = \frac{1}{2} t_{1} h3=34t1\Rightarrow h_{3} = \frac{3}{4} t_{1} h2=78t1\Rightarrow h_{2} = \frac{7}{8} t_{1} h1=1516t1\Rightarrow h_{1} = \frac{15}{16} t_{1} t1=12t2+121516t1=12+1532t1t1=1617\Rightarrow t_{1} = \frac{1}{2} t_{2} + \frac{1}{2} \cdot \frac{15}{16} t_{1} = \frac{1}{2} + \frac{15}{32} t_{1} \Rightarrow t_{1} = \frac{16}{17} h1=15161617=1517\Rightarrow h_{1} = \frac{15}{16} \cdot \frac{16}{17} = \frac{15}{17}.

So, the probability of reaching 22 tails before 55 heads is 12(h1+t1)=3134\frac{1}{2} (h_{1} + t_{1}) = \frac{31}{34}; we want the complement, 334\frac{3}{34}, yielding an answer of 3+34=0373 + 34 = \boxed{037}.

Note: The same approach still works if we tried solving the original problem rather than the complement; we would have simply used h5=1h_{5} = 1 and t2=0t_{2} = 0 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 132,164,14,18,116,132,164\frac{1}{32},\frac{1}{64},\frac{1}{4},\frac{1}{8},\frac{1}{16},\frac{1}{32},\frac{1}{64} respectively. The ones where there is five heads are AAAAA and BAAAAA. The sum of these probabilities are 364\frac{3}{64}. The sum of all these endgame outcomes are 3464\frac{34}{64}, hence the desired probability is 334\frac{3}{34}, and in this case m=3,n=34m=3,n=34 so we have m+n=037m+n=\boxed{037} -vsamc

Solution 5

There can be 1-4 heads and 1 tails in any grouping, so we write h5,th5,hnth5,thnth5,h_5,th_5,h_nth_5,th_nth_5,… etc., where 1n41\leq n\leq 4 and subscript nn means there are nn of that state in a row. We see that this gives us 2 geometric sequences: one with first term 125\frac{1}{2^5} and common ratio 12(1/2+1/4+1/8+1/16)\frac{1}{2}*\left(1/2+1/4+1/8+1/16\right) and one with first term 126\frac{1}{2^6} and the same common ratio. Therefore we get 334\frac{3}{34} or 037\fbox{037} ~joeythetoey

Video solution

https://www.youtube.com/watch?v=Vo-4w5Cor9w&t