OFFSET
0,2
LINKS
PROG
(Python)
# Using graphillion
from graphillion import GraphSet
import graphillion.tutorial as tl
def A333580(n, k):
if n == 1 or k == 1: return 1
universe = tl.grid(n - 1, k - 1)
GraphSet.set_universe(universe)
start, goal = 1, k * n
paths = GraphSet.paths(start, goal, is_hamilton=True)
return paths.len()
def A333585(n):
return A333580(10, 2 * n + 1)
print([A333585(n) for n in range(7)])
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 27 2020
EXTENSIONS
Terms a(7) and beyond from Andrew Howroyd, Jan 30 2022
STATUS
approved