OFFSET
1,3
LINKS
Ed Wynn, Table of n, a(n) for n = 1..89
PROG
(Python)
# Using graphillion
from graphillion import GraphSet
import graphillion.tutorial as tl
def A271592(n, k):
if k == 1: return 1
universe = tl.grid(k - 1, n - 1)
GraphSet.set_universe(universe)
start, goal = 1, n
paths = GraphSet.paths(start, goal, is_hamilton=True)
return paths.len()
def A333604(n):
return A271592(8, n)
print([A333604(n) for n in range(1, 9)])
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 28 2020
EXTENSIONS
More terms from Ed Wynn, Jun 25 2023
STATUS
approved