Solution

ID: past-exam-of-the-chemistry-course-of-the-year-4-of-the-natural-sciences-course-of-the-university-of-cambridge/2022/paper-1/5/e/i/solution

Each visit to corresponds to two steps, one out of and one out of . Hence a successful path with visits contains steps. Taking its expectation over the geometric distribution gives
The last pair is ; it contributes two steps just like each previous excursion.

New to topics? Read the docs here!