Consider repeated independent trials of two outcomes S (success) or F (failure) with probabilities $p$ and $q$, respectively. Determine the distribution of the number of trials required for the first occurrence of totally 5 S and a consecutive 5S, which is a special case of totally $n$ S containing at least one $r$-consecutive S..
The total number of S is 5. And it must be a 5-consecutive. The trail pattern must be in the form of F...FSSSSS, i.e., a bunch of F followed by 5 S. Denote the desired random variable as $N$. Then Pr($N=k$) = $q^{k-5}p^5,k=5,6,...$. But it turns out that $\sum^\infty_{k=5}q^{k-5}p^5=p^5\sum^\infty_{k=5}q^{k-5}=p^5\sum^\infty_{k=0}q^k=p^5/(1-q)=p^4<1$.
This is weird. What is wrong here? Is the problem definition wrong or the calculation wrong? Actually I am considering the distribution of the number of trials required for the first occurrence of totally $n$ S containing at least one $r$-consecutive S. I just look at the special case of $n=5$ and $r=5$. I tried to solve this general problem in a recurrence way and the base case is $n=r$.