There are several variations of this Drunk man (or a monkey) at the cliff problem.
I wonder what will be the expected sum of rewards if the drunk man gets paid while he stays alive.
The setup is like this.
At period zero, a man is standing at $n$ step from the edge of a cliff. In each period from period $1$, he takes independent steps; $k_1$ steps forward with probability $p$, $k_2$ steps backward with probability $q$, and he doesn't move with probability $1-p-q$. We assume $k_1,k_2>0$.
So, in each period, the random walk takes value of $-k_1$ w/p $p$, $k_2$ w/p $q$ and $0$ w/p $1-p-q$.
At the end of each period, if he's still alive, he gets paid \$1 as a reward. The future payoff is discounted by $\delta$. So, if he is expected to fall off the cliff after 3 periods, his sum of expected rewards is $$1+\delta+\delta^2.$$
My question is what is the sum of the expected rewards?
There are some relevant questions and answers. Here Q1, Q2, Q3,... but because of the discount factor and the unequal step sizes, I can't figure out how to apply the identity... Any other approach or an answer?