Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 30 1 c Solution Created 2026-10-03 Updated 2026-10-07
Count partially directed self-avoiding walks using north, east and west steps. Within one horizontal level, a self-avoiding walk must move consistently east or consistently west. It can change horizontal direction only after a north step. Conversely, these rules guarantee self-avoidance: every visited horizontal level is new, and its horizontal run is monotone.
Let count these walks, including . A horizontal run has generating functionEvery walk decomposes uniquely into an initial horizontal run followed by zero or more pairs consisting of a north step and a horizontal run. Therefore the generating function isComparing coefficients yields , , and for . Solving this linear recurrence relation givesThese are a subset of all self-avoiding walks, so andAllowing either horizontal direction at successive heights gives the strict gain over the north-east-only family.