A343962 Number of self-avoiding walks that escape an n X n square lattice starting at a given corner.
4, 14, 106, 2142, 124150, 21231450, 10794801654, 16397345136778, 74754715306888786, 1026191624073867290710, 42506394853041064742716162, 5320474615969510569494723118086, 2014671515857822813610223858063766522
Offset: 1
Examples
For n=1, every direction will immediately result in escaping the board, so a(1) = 4. For n=2, there are two ways to escape from the starting corner. Otherwise, any of the three remaining corners can be escaped from in two ways, and each corner can be reached from two different directions (clockwise and counterclockwise). Therefore a(2) = 2 + 3*2*2 = 14.
Crossrefs
Cf. A341269.
Extensions
a(7)-a(13) from Andrew Howroyd, May 05 2021
Comments