If a coin is flipped 25 times with eight tails occurring, what is the probability that no run of six (or more) consecutive heads occur?
Wasn't sure how to approach this and am quite positive my generating function is incorrect. My attempted work:
Consider $e_H,e_T$ s.t $e_H$ denotes the number of times our coin lands on heads and $e_T$ is the number of times our coin lands on tails. We want the number of integer solutions to: $$e_H+e_T=25$$ where $e_H \in [9,25]$ and $e_T=8$. It follows that our generating function $h$ is $$h(x)=(x^9+x^{10}+...x^{25})x^8$$ where we want to find the coefficient of $x^{25}$.
Now, observe that $h$ can re-written as $$h(x)=x^{17}(1+x+...x^{16})$$ where we want to find the coefficient of $x^{16}$ now. Using the formula for finite geometric series, we see that $h$ becomes $$h(x)=x^{17}(\frac{1-x^{17}}{1-x})$$ $$=x^{17}(1-x^{17})(\frac{1}{1-x})$$ where using the formula for infinite geometric series gives us $$x^{17}(1-x^{17})(1+x+...+x^n+...)$$ Finally, using the formula $h(x)=f(x)g(x)=c_0 + c_1x+...+c_rx^r+...$ where $c_r=a_0b_r+a_1b_{r-1}+...a_rb_0$, we find $$f(x)=(1-x^{17}),g(x)=(1+x+...)$$ $$\implies a_0b_16=1*1=1$$ so it follows that the coefficient attached to $x^{16}$ is 1.
Can someone help lead me down the right path? If my work is actually correct, where do I proceed from here?