OFFSET
0,3
FORMULA
T(n,k) = T(k,n).
EXAMPLE
Triangle starts:
====================================================================
n\k| 0 1 2 3 4
---|----------------------------------------------------------------
0 | 1;
1 | 1, 10;
2 | 1, 101, 7056;
3 | 1, 1105, 610765, 462755440;
4 | 1, 12046, 53968755, 365962179700, 2593165016903538;
5 | 1, 131399, 4775133828, 294346514811753, ...
6 | 1, 1433341, 422813081886, 237970057189444731, ...
PROG
(Python)
# Using graphillion
from graphillion import GraphSet
import graphillion.tutorial as tl
def A333685(n, k):
if n == 0 or k == 0: return 1
universe = tl.grid(2 * n, 2 * k)
GraphSet.set_universe(universe)
start, goal = 1, (2 * n + 1) * (2 * k + 1)
paths = GraphSet.paths(start, goal).including((start + goal) // 2)
return paths.len()
print([A333685(n, k) for n in range(6) for k in range(n + 1)])
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Seiichi Manyama, Apr 02 2020
STATUS
approved