OFFSET
0,2
LINKS
Peter Kagey, Table of n, a(n) for n = 0..1000
Code Golf Stack Exchange user Bubbler, Counting King's Hamiltonian Paths through 3-by-N grid
FORMULA
a(n) = 7*a(n-1) + 6*a(n-2) - 39*a(n-3) + 29*a(n-4) + 28*a(n-5) - 26*a(n-6) - 10*a(n-7) + 6*a(n-8) for n >= 8.
EXAMPLE
For n = 1, the a(1) = 2 paths are (0,0)->(1,1)->(1,0)->(1,-1)->(2,0) and (0,0)->(1,-1)->(1,0)->(1,1)->(2,0).
An example of one of the a(2) = 28 paths is (0,0)->(1,1)->(2,1)->(2,0)->(1,-1)->(1,0)->(2,-1)->(3,0).
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Peter Kagey, Oct 25 2020
STATUS
approved