In a coin tossing game, a fair coin is tossed over and over until there are $k$ consecutive tails where the game ends. I want to show that the probability of having at least $\log_2k$ consecutive heads before the game ends is greater than $1-\frac{1}{e}$.
I'm not sure how should I think about this problem. I've tried considering a smaller problem where there are $N$ trials before $k$ consecutive tails and estimate the probability of having at least $\log_2k$ consecutive head within $N$ trials. We have
- The streak starts at the first trial: $\leq2^{N-\lceil\log_2k\rceil}$ possible outcomes.
- The streak starts at elsewhere: $\leq (N-\lceil\log_2k\rceil)\cdot 2^{N-\lceil\log_2k\rceil-1}$ outcomes.
The inequalities are there since it is also possible that $N-\lceil\log_2k\rceil>\lceil\log_2k\rceil$ in which we might count the case where the streak occurs later. But this further complicates the problem and it seems not the right approach to me. Not to mention that I also have to consider the possibility of having $N+k$ trials before the game ends. Can you give me some hints or suggestions?