OFFSET
2,2
LINKS
Seiichi Manyama, Rows n = 2..9, flattened
FORMULA
T(n,0) = A000891(n-2).
EXAMPLE
T(3,0) = 3;
+--*--* +--*--* +--*
| | | | | |
*--* * * * * *--*
| | | | | |
*--+ *--*--+ *--*--+
Triangle starts:
=======================================================================
n\k| 0 1 2 ... 4 ... 8 ... 12 ... 18
---|-------------------------------------------------------------------
2 | 1;
3 | 3;
4 | 20, 16, 6;
5 | 175, 420, 562, ... , 186;
6 | 1764, 8064, 21224, .......... , 1072;
7 | 19404, 138600, 569768, .................. , 230440;
8 | 226512, 2265120, 12922446, ............................ , 4638576;
PROG
(Python)
# Using graphillion
from graphillion import GraphSet
import graphillion.tutorial as tl
def A333667(n):
universe = tl.grid(n - 1, n - 1)
GraphSet.set_universe(universe)
cycles = GraphSet.cycles().including(1).including(n * n)
return [cycles.len(2 * k).len() for k in range(2 * n - 2, n * n // 2 + 1)]
print([i for n in range(2, 8) for i in A333667(n)])
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Seiichi Manyama, Apr 01 2020
STATUS
approved