OFFSET
1,3
LINKS
Seiichi Manyama, Antidiagonals n = 1..14, flattened
EXAMPLE
Square array T(n,k) begins:
1, 1, 1, 1, 1, 1, 1, ...
2, 2, 2, 2, 2, 2, 2, ...
4, 8, 16, 32, 64, 128, 256, ...
6, 14, 34, 80, 190, 450, 1066, ...
10, 38, 162, 650, 2728, 11250, 46984, ...
14, 74, 426, 2166, 12014, 62714, 340510, ...
PROG
(Python)
# Using graphillion
from graphillion import GraphSet
import graphillion.tutorial as tl
def A(start, goal, n, k):
universe = tl.grid(n - 1, k - 1)
GraphSet.set_universe(universe)
paths = GraphSet.paths(start, goal, is_hamilton=True)
return paths.len()
def A333571(n, k):
if n == 1: return 1
s = 0
for i in range(1, n + 1):
for j in range(k * n - n + 1, k * n + 1):
s += A(i, j, k, n)
return s
print([A333571(j + 1, i - j + 2) for i in range(11) for j in range(i + 1)])
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Seiichi Manyama, Mar 27 2020
STATUS
approved