I have $50$ dollars and I’m gambling on a series of coin flips. For each head I win $2$ dollars and for each tail I lose $1$ dollar. What’s the probability that I will run out of money?
Hint: Suppose we have $x$ dollars, then the probability of ruin satisfies the recursive equation
$$p(x+2) - p(x) = p(x) - p(x-1)$$
Find function $p(x)$.
We only need find the probability $r$ that you lose 1 dollar since the probability that you lose 50 dollars is $r^{50}$ since you must lose 1 dollar 50 times. We can write $$ r = 0.5 + 0.5r^3 $$
since half the time we lose on the first flip, and half the time we win on the first flip, thereby increasing our 1 dollar bankroll to 3 dollars, at which point our risk of ruin becomes $r^3$ since we must now lose 1 dollar 3 times. This has solutions $r = (\sqrt{5}-1)/2$ and $r = 1$. We obviously want the first of these since we have the advantage, and our opponent's $r$ is 1. So $$ P(lose \: 50) = \left(\frac{\sqrt{5}-1}{2}\right)^{50} $$ or about $3.55e^-11$.