A238818
Number of Hamiltonian cycles on 2n X 2n grid with at least the symmetries of two reflections and 180-degree rotation.
Original entry on oeis.org
1, 2, 6, 40, 488, 13782, 757626, 95835196, 24236840344, 13996574799274
Offset: 1
A363577
Number of inequivalent Hamiltonian paths starting in the lower left corner of an n X n grid graph (paths differing only by rotations and reflections are regarded as equivalent).
Original entry on oeis.org
1, 1, 3, 23, 347, 10199, 683227, 85612967, 25777385143, 14396323278040, 19799561204761862, 50351228336401026361, 319210377672595552740369, 3736517399241599771428011100, 109790442395888863208285555153329, 5952238893391106787883489313797219949
Offset: 1
There are 3 paths for n=3:
+--+--+ +--+--+ +--+ +
| | | | | | |
+ + + + +--+ + + +
| | | | | | | |
+ +--+ + +--+ + +--+
A fourth path:
+--+--+
|
+--+ +
| | |
+ +--+
is the same as the second one in the row above after a 90-degree rotation.
All paths starting E are the same as the corresponding ones starting N after reflection in the forward diagonal.
A380451
Number of disjoint-path coverings for 2 X n rectangular grids, admitting zero-length paths.
Original entry on oeis.org
2, 15, 95, 604, 3835, 24349, 154594, 981531, 6231827, 39566420, 251210695, 1594958889, 10126534850, 64294264119, 408209961239, 2591761096236, 16455320099427, 104476280613925, 663329132764770, 4211535247894499, 26739409243687915, 169770870862086564, 1077890252944724559, 6843620413168932241, 43450750418785228802
Offset: 1
For n = 1 the a(1) = 2 solutions are
* * *-*
For n = 2 the a(2) = 15 solutions are
* *
* *
*-* * * * * * *
| |
* * *-* * * * *
*-* *-* * * * * *-* * *
| | | | | |
* * * * *-* *-* *-* * *
*-* *-* * * *-*
| | | | | |
* * *-* *-* *-*
- R. P. Stanley, Enumerative Combinatorics, Cambridge University Press (2012).
-
a:=n->`if`(n<5,[2,15,95,604][n],7*a(n-1)-4*a(n-2)-a(n-3)+a(n-4));
-
a[n_]:=LinearRecurrence[{7,-4,-1,1},{2,15,95,604},n][[-1]]
-
from functools import reduce;
a=lambda n:reduce(lambda s,_:s+[7*s[-1]-4*s[-2]-s[-3]+s[-4]],range(4,n),[2,15,95,604])[n-1]
Comments