Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2019/ib/paper-2/20h/a/solution

Until the walk first reaches , it is the simple random walk on a path of length with reflection at the endpoint . If is the expected hitting time of from the vertex at distance from , then
Solving this second-difference equation gives . Therefore

New to topics? Read the docs here!