Skip to main content

2019 AIME I Problem 5

Problem 5 of 15EasierCombinatoricsProbability & Statistics

A moving particle starts at the point (4,4)(4, 4) and moves until it hits one of the coordinate axes for the first time. When the particle is at the point (a,b),(a, b), it moves at random to one of the points (a−1,b),(a - 1, b), (a,b−1),(a, b - 1), or (a−1,b−1),(a - 1, b - 1), each with probability 13,\frac{1}{3}, independently of its previous moves. The probability that it will hit the coordinate axes at (0,0)(0, 0) is m3n,\frac{m}{3^n}, where mm and nn are positive integers, and mm is not divisible by 3.3. Find m+n.m + n.

Your answer

Integer from 0 to 999
Show solution

Solution

Coordinates never increase, so the first axis point reached is (0,0)(0,0) exactly when the particle reaches (1,1)(1, 1) and then takes the diagonal step. Every path from (4,4)(4,4) to (1,1)(1,1) automatically stays off the axes, since its coordinates remain at least 1.1. A path from (4,4)(4,4) to (1,1)(1,1) with dd diagonal steps also has 3−d3 - d left steps and 3−d3 - d down steps, for 6−d6 - d steps in all, and there are (6−d)!d! (3−d)! (3−d)!\frac{(6-d)!}{d!\,(3-d)!\,(3-d)!} orderings: 20,20, 30,30, 12,12, 11 for d=0,d = 0, 1,1, 2,2, 3.3. Since a path with 6−d6 - d steps has probability (13)6−d,\left(\frac{1}{3}\right)^{6-d}, the probability of reaching (1,1)(1,1) and then stepping to (0,0)(0,0) is 13(2036+3035+1234+133)=13⋅20+90+108+2736=24537. \begin{aligned} &\frac{1}{3}\left(\frac{20}{3^6} + \frac{30}{3^5} + \frac{12}{3^4} + \frac{1}{3^3}\right) \\ &= \frac{1}{3} \cdot \frac{20 + 90 + 108 + 27}{3^6} \\ &= \frac{245}{3^7}. \end{aligned} Since 245=5⋅72245 = 5 \cdot 7^2 is not divisible by 3,3, we get m+n=245+7=252.m + n = 245 + 7 = 252.
AoPS wiki

Tagged: lattice paths · basic probability · multiset permutations

More practice