Maths Olympiad Prep

Library / /738 of 740

, 2019

Combinatorics Difficulty 6.0 National Olympiad Prove it United States

Problem:

James is standing at the point (0,1)(0,1) on the coordinate plane and wants to eat a hamburger. For each integer n0n \geq 0, the point (n,0)(n, 0) has a hamburger with nn patties. There is also a wall at y=2.1y=2.1 which James cannot cross. In each move, James can go either up, right, or down 1 unit as long as he does not cross the wall or visit a point he has already visited.

Every second, James chooses a valid move uniformly at random, until he reaches a point with a hamburger. Then he eats the hamburger and stops moving. Find the expected number of patties that James eats on his burger.

Proposed by: Joey Heerens

Solution

Solution:

Note that we desire to compute the number of times James moves to the right before moving down to the line y=0y=0. Note also that we can describe James's current state based on whether his yy-coordinate is 00 or 11 and whether or not the other vertically adjacent point has been visited. Let E(1,N)E(1, N) be the expected number of times James will go right before stopping if he starts at a point with yy-coordinate 11 and the other available point with the same xx-coordinate has not been visited. Define E(1,Y)E(1, Y), E(2,N)E(2, N), and E(2,Y)E(2, Y) similarly. Then we can construct equations relating the four variables:
E(1,N)=13E(2,Y)+13(E(1,N)+1) E(1, N)=\frac{1}{3} E(2, Y)+\frac{1}{3}(E(1, N)+1)
as James can either go up, right, or down with probability 1/31/3 each if he starts in the state (1,N)(1, N). Similarly, we have
E(2,N)=12E(1,Y)+12(E(2,N)+1),E(1,Y)=12(E(1,N)+1) E(2, N)=\frac{1}{2} E(1, Y)+\frac{1}{2}(E(2, N)+1), \quad E(1, Y)=\frac{1}{2}(E(1, N)+1)
and E(2,Y)=E(2,N)+1E(2, Y)=E(2, N)+1. Solving these equations, we get E(1,N)=73E(1, N)=\frac{7}{3}, which is our answer, as James starts in that state having gone left 00 times.

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.