2026-03-18

Problem — 2026-03-18

Medium

Mediumprobability

You start with $3\$3. Each round you flip a fair coin: heads wins $1\$1, tails loses $1\$1. The game ends when you reach $0\$0 or $5\$5. What is the probability you finish with $5\$5?

Express as a fraction

Show solution
Let pkp_k be the probability of reaching $5\$5 starting from $k\$k. We have p0=0p_0 = 0, p5=1p_5 = 1, and pk=12pk1+12pk+1p_k = \frac{1}{2}p_{k-1} + \frac{1}{2}p_{k+1}. This recurrence has the general solution pk=A+Bkp_k = A + Bk. From p0=0p_0 = 0: A=0A = 0. From p5=1p_5 = 1: B=15B = \frac{1}{5}. So p3=35p_3 = \frac{3}{5}.