login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A333606
Number of directed Hamiltonian walks from NW to SW corners of a 10 X n grid.
2
1, 1, 256, 1480, 117852, 1513468, 71154709, 1283569420, 47001928863, 1013346943033, 32440676063382, 771708613086275, 22928865477892898, 576390471202016758, 16424125813587374688, 425923820730159849603, 11854446538789342310672, 312866945593394069370317
OFFSET
1,3
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 A333606(n):
return A271592(10, n)
print([A333606(n) for n in range(1, 8)])
CROSSREFS
Row n=10 of A271592.
Cf. A333585.
Sequence in context: A237482 A237150 A237143 * A237974 A237967 A237142
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 28 2020
EXTENSIONS
More terms from Ed Wynn, Jun 28 2023
STATUS
approved