You flip a coin $n > 11$ times. What is the probability that you have at least 1 sequence with 6 heads followed by 6 tails.
I am completely lost on how to solve this in an elegant way. The approach that I am thinking of would involve the inclusion-exclusion principle. We'd examine the feasibility of each location in the sequence NOT being the start of the said sequence.
We can define $a_i$ to be the event that the said sequence does not begin at the $i$-th location. Then the probability we're looking for is
$$ 1 - P\left(\bigcup_{i=1}^{N - 11}a_i \right) $$.
To find $P\left(\bigcup_{i=1}^{N - 11}a_i \right)$, I believe I would need to invoke the inclusion-exclusion principle, and this will get pretty messy. Is there a simpler approach?
Suppose the $n$ coin flips end up with $k$ such runs of 12 coin flips. Collapse each run into one slot so that you are thinking in terms of $n-11k$ slots, where $k$ of the slots will expand to be that kind of run of 12. (Note that the runs-of-12 cannot overlap. This problem would need a different solution if, say, we were looking at runs of
THTthat can overlap.)If $12\leq n<24$, then it's only possible for $k$ to be $1$. You choose which slot to expand, and let the rest be coin flips that fall where they may: $$\frac{\binom{n-11}{1}2^{n-12}}{2^n}$$
Now if $24\leq n<35$, use the same formula, but with inclusion-exclusion to account for when there are two runs of 12 like this: $$\frac{\binom{n-11}{1}2^{n-12}}{2^n}-\frac{\binom{n-22}{2}2^{n-24}}{2^n}$$
Notice that second term is zero for $12\leq n<24$, so its actually a valid formula for $12\leq n<24$ as well.
EDIT
The above line is false, I was wrong. For example, something like $\binom{-2}{3}$ is nonzero. It equals $\frac{(-2)(-3)(-4)}{3!}=-4$. So what follows is edited from earlier versions.
Continue in this way with inclusion-exclusion to find $$\sum_{k=1}^{\lfloor n/12\rfloor}(-1)^{k-1}\frac{\binom{n-11k}{k}2^{n-12k}}{2^n}=\sum_{k=1}^{\lfloor n/12\rfloor}(-1)^{k-1}{\binom{n-11k}{k}}2^{-12k}$$
You can even extend this to work for $0\leq n<12$, and simplify to:
$$1-\sum_{k=0}^{\lfloor n/12\rfloor}\left(-2^{-12}\right)^k{\binom{n-11k}{k}}$$