Let $X_i$ be a sequence of iid Rademacher random variables (i.e. $\mathbf{P}(X_i = 1) = 1/2 = \mathbf{P}(X_i=-1)$, and let $S_n=\sum_{i=1}^n X_i$. Let $\tau = \inf \{n \geq 5 : S_n = S_{n-5}+5\}$ be the first time the random walk takes $5$ positive steps in a row.
I am interested in computing $\mathbf{E}\tau$.
As a first step, we know that $\tau=n$ is equivalent to the last $5$ steps being positive and (if $n\geq 5+1$), the $6th$ last step being negative, and not encountering 5 positive steps in a row at times $\leq n-6$. Thus, we have $$\mathbf{P}(\tau=n) = \frac{1}{64}\mathbf{P}(\tau\not<n-5)\\ = \frac{1}{64}(1- \mathbf{P}(\tau \geq n-5)).$$
I have been struggling with how to manipulate this expression to get a closed form expression either of $\mathbf{P}(\tau=n)$ or $\mathbf{P}(\tau \geq n)$. Any help is appreciated.