Consider a random walk on $\mathbb{N}_0$, starting in $0$ with transition probabilities $$p(0,1)=1 \ \text{ and }\ p(n,n-1)=p(n,n+1)=0.5 \ \text{ for }\ n>0.$$
What is the expected time $\mathbb{E}[T_{100}]$ before hitting the value $100$?
I have trouble solving this question. Other questions on this website cover e.g. the hitting times of hitting either boundary when starting in a point in the middle.. But the hard part here is that the left boundary bounces off but does not absorb. How to solve this problem?
Here's a nice method that doesn't require setting up $100$ equations.
Let $\mu_i$ be the mean number of steps to reach state $i+1$ after reaching state $i$ for the first time, so we want $\sum_{i=0}^{99}\mu_i$. By the Markov property, $$\mu_i=1+\frac{1}{2}(\mu_{i-1}+\mu_i)\implies\mu_i=2+\mu_{i-1}.$$ Now $\mu_0=1$, so $\mu_i=2i+1$, hence the expected time to reach $100$ is $$\sum_{i=0}^{99}(2i+1)=100^2.$$