I am trying to solve the recurrence relation
$$p_k=\frac{1}{2}p_{k+1} + \frac{1}{2}p_{k-1}.$$
The context of this recurrence relation is as follows: if I start with \$20, and I win \$1 for every head and lose \$1 for every tail, I obtain the above recurrence relation for $p$. I lose the overall game if I lose all my money, and win the overall game if I accumulate \$100.
Now, I understand that substituting $p_k = p^k$ is the usual approach, which gives $p=1$. While clearly this is a solution, in the context of this above game something’s not right – where in my logic have I gone wrong? Thank you!