Maths Olympiad Prep

Library / /1213 of 1394

, 2020

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:
Anastasia is taking a walk in the plane, starting from (1,0)(1,0). Each second, if she is at (x,y)(x, y), she moves to one of the points (x1,y)(x-1, y), (x+1,y)(x+1, y), (x,y1)(x, y-1), and (x,y+1)(x, y+1), each with 14\frac{1}{4} probability. She stops as soon as she hits a point of the form (k,k)(k, k). What is the probability that kk is divisible by 33 when she stops?

Solution

Solution:
The key idea is to consider (a+b,ab)(a+b, a-b), where (a,b)(a, b) is where Anastasia walks on. Then, the first and second coordinates are independent random walks starting at 11, and we want to find the probability that the first is divisible by 33 when the second reaches 00 for the first time. Let CnC_{n} be the nnth Catalan number. The probability that the second random walk first reaches 00 after 2n12n-1 steps is
Cn122n1, \frac{C_{n-1}}{2^{2n-1}},
and the probability that the first is divisible by 33 after 2n12n-1 steps is
122n1inmod3(2n1i) \frac{1}{2^{2n-1}} \sum_{i \equiv n \bmod 3} \binom{2n-1}{i}
(by letting ii be the number of 1-1 steps). We then need to compute
n=1(Cn142n1inmod3(2n1i)). \sum_{n=1}^{\infty} \left( \frac{C_{n-1}}{4^{2n-1}} \sum_{i \equiv n \bmod 3} \binom{2n-1}{i} \right).
By a standard root of unity filter,
inmod3(2n1i)=4n+26. \sum_{i \equiv n \bmod 3} \binom{2n-1}{i} = \frac{4^{n} + 2}{6}.
Letting
P(x)=21+14x=n=0Cnxn P(x) = \frac{2}{1 + \sqrt{1-4x}} = \sum_{n=0}^{\infty} C_{n} x^{n}
be the generating function for the Catalan numbers, we find that the answer is
16P(14)+112P(116)=13+11221+34=333. \frac{1}{6} P\left(\frac{1}{4}\right) + \frac{1}{12} P\left(\frac{1}{16}\right) = \frac{1}{3} + \frac{1}{12} \cdot \frac{2}{1 + \sqrt{\frac{3}{4}}} = \frac{3-\sqrt{3}}{3}.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.