Consider a random string of length $n<\infty$ where each digit can be between 0-9 with equal probability and a substring of length $k<n$ consisting of only zeros.
What is the probability of observing at least two occurrences of the substring?
Assumption: The same digit can be used in more than one substring. For example: Let the substring we are looking for be "$0000$". We observe somewhere in the string:
$\ldots59800000723\ldots$
and we will count this as two occurrences as
$\ldots 598\color{red}{0000}0723\ldots$ and $\ldots 5980\color{red}{0000}723\ldots$
My attempts at a solution: With $k=4$:
1) Instead of looking at it directly I have tried finding \begin{align} P(\text{"}0000\text{"} \text{ occurring }\geq 2) &= 1-P(\text{"}0000\text{"} \text{ occurring }<2)\\ &=1- P( \text{"}0000\text{"} \text{ not occuring}, \text{"}0000\text{"} \text{ occuring once}) \end{align} but as the occurrences overlap I'm not sure how to continue.
2) Consider a Markov chain with state probabilities \begin{align} p_{i,0} &= 0.9, \quad i=0,1,2,\ldots \\ p_{i,i+1} &= 0.1, \quad i= 1,2,\ldots \end{align} This is then the counting of the number of consecutive zeros. Finding the expected number of visits in state 4 and up I thought could lead me somewhere but a visit in state 5 implies a visit in state 4 so it would ... add one occurrence and not two.