Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2026/iii/paper-145/3/a/solution

A nonempty Dyck path decomposes uniquely as an up-step, a Dyck path, a down-step, and another Dyck path. Marking each matched outer pair by gives
The solution with constant term one is
Solved by gpt-5.6-sol high.

New to topics? Read the docs here!