Flip the coins, the expected time to get HHT
Anonymous
Let x_i be the probability a random infinite binary sequence has its first HHT ending at position i. Clearly x_i =0 for i=1,2 and x_i=1/8 for i=3,4,5 and we can deduce the recurrence x_i=1/8(1-x_{i-3}-...-x_1) for i>=3. Since the sum of all x_i is 1 we can write x_i = 1/8(x_{i-2}+x_{i-1}+x_i+...) so x_3+x_4+x_5+... = 1/8 (x_1+2x_2+3x_3+...) so multiplying both sides by 8 we get that the expected number of flips is 8.
Check out your Company Bowl for anonymous work chats.