A078527 Number of maximally 2-constrained walks on square lattice trapped after n steps.
0, 1, 9, 7, 3, 36, 26, 13, 1, 100, 54, 19, 7, 247, 147, 68, 27, 12, 552, 294, 151
Offset: 7
Examples
a(7)=0 because the unique shortest possible self-trapping walk has no constrained steps. Of the A077482(10)=25 self-trapping walks of length n=10, there are A078528(10)=5 unconstrained walks (9 steps with free choice of direction). a(10)=7 walks are maximally 2-constrained containing 2 steps with k=2. Among the remaining 13 walks there are 11 walks having 1 step with k=2 and 2 walks have 1 forced step k=1. An illustration of all unconstrained and all maximally 2-constrained 10-step walks is given in the first link under "5 Unconstrained and 7 maximally 2-constrained walks of length 10". a(15)=1 is a unique ("perfectly constrained") walk visiting all lattice points of a 4*4 square, see "Examples for walks with the maximum number of constrained steps" provided at the given link.
Links
- Hugo Pfoertner, Results for the 2D Self-Trapping Random Walk
Programs
-
Fortran
c Program provided at given link
Extensions
a(24)-a(27) from Sean A. Irvine, Jul 04 2025
Comments