Skip to main content

2016 AIME I Problem 13

Problem 13 of 15HarderAlgebraProbability & Statistics

Freddy the frog is jumping around the coordinate plane searching for a river, which lies on the horizontal line y=24.y = 24. A fence is located at the horizontal line y=0.y = 0. On each jump Freddy randomly chooses a direction parallel to one of the coordinate axes and moves one unit in that direction. When he is at a point where y=0,y = 0, with equal likelihoods he chooses one of three directions where he either jumps parallel to the fence or jumps away from the fence, but he never chooses the direction that would have him cross over the fence to where y<0.y \lt 0. Freddy starts his search at the point (0,21)(0, 21) and will stop once he reaches a point on the river. Find the expected number of jumps it will take Freddy to reach the river.

Your answer

Integer from 0 to 999
Show solution

Solution

Horizontal jumps change nothing that matters, so let T(y)T(y) be the expected number of jumps to reach the river from height y.y. Then T(24)=0;T(24) = 0; for 1≤y≤231 \le y \le 23 each jump goes up, down, or sideways with probabilities 14,\frac{1}{4}, 14,\frac{1}{4}, 12,\frac{1}{2}, so T(y)=1+14T(y+1)+14T(y−1)+12T(y), \begin{aligned} T(y) &= 1 + \tfrac{1}{4}T(y + 1) \\ &\quad {}+ \tfrac{1}{4}T(y - 1) \\ &\quad {}+ \tfrac{1}{2}T(y), \end{aligned} which simplifies to 2T(y)=4+T(y−1)2T(y) = 4 + T(y - 1) +T(y+1).+ T(y + 1). At the fence the three equally likely moves give T(0)=1+23T(0)+13T(1),T(0) = 1 + \frac{2}{3}T(0) + \frac{1}{3}T(1), that is T(0)=3+T(1).T(0) = 3 + T(1). Summing 2T(y)=4+T(y−1)2T(y) = 4 + T(y - 1) +T(y+1)+ T(y + 1) over y=1,…,23y = 1, \ldots, 23 telescopes to T(1)+T(23)=92+T(0)T(1) + T(23) = 92 + T(0) +T(24).+ T(24). Substituting T(0)=3+T(1)T(0) = 3 + T(1) and T(24)=0T(24) = 0 yields T(23)=95.T(23) = 95. Now run the recurrence downward as T(y−1)=2T(y)−T(y+1)T(y - 1) = 2T(y) - T(y + 1) −4:- 4: from T(24)=0T(24) = 0 and T(23)=95,T(23) = 95, we get T(22)=2⋅95−0−4=186T(22) = 2 \cdot 95 - 0 - 4 = 186 and T(21)=2⋅186−95−4=273.T(21) = 2 \cdot 186 - 95 - 4 = 273. Freddy starts at height 21,21, so the answer is 273.273.
AoPS wiki

Tagged: expected value · random walk · recursion

More practice