Problem:
Anastasia is taking a walk in the plane, starting from . Each second, if she is at , she moves to one of the points , , , and , each with probability. She stops as soon as she hits a point of the form . What is the probability that is divisible by when she stops?
, 2020
Solution
Solution:
The key idea is to consider , where is where Anastasia walks on. Then, the first and second coordinates are independent random walks starting at , and we want to find the probability that the first is divisible by when the second reaches for the first time. Let be the th Catalan number. The probability that the second random walk first reaches after steps is
and the probability that the first is divisible by after steps is
(by letting be the number of steps). We then need to compute
By a standard root of unity filter,
Letting
be the generating function for the Catalan numbers, we find that the answer is
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.