I have the following problem.
We have $N$ steps and one variable $Y$, whose initial value is $Y_0=2$. We start from $Y_0=2$, and at every step, there is a probability of $1/2$ that $Y$ increases or decreases by 2. What is the probability that the state $Y=0$ is never visited within $N$ steps?
I want to approach this problem by using Markov Chains. In particular, I call $p(k,n)$ the probability that we never reach $Y=0$ if we are on the state $Y=k$ at the $n-th$ step. Therefore, we have the following recursion relation
$$ p(k,n) = \frac{1}{2}p(k-2,n+1) + \frac{1}{2}p(k+2,n+1) $$
with the boundary condition $p(0,n) = 0$. Is this the right way to approch this problem in terms of a Markov Chain? How do I get a closed form expression of the probability?