OFFSET
0,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..500
FORMULA
Conjecture: G.f.: (1-3*x-x^2)*(1+3*x+x^2+x^3)/((1-x)*(1+x)*(1+x+x^2)*(1-11*x+x^2)).
Conjecture: a(n) = 10*a(n-1) + 10*a(n-2) - 10*a(n-4) - 10*a(n-5) + a(n-6) for n>5.
EXAMPLE
a(0) = 1;
S--+--E
a(1) = 10;
S--*--* S--*--* S--* S--* S--*
| | | | |
+--* *--+--* +--* + *--+
| | | | |
*--E *--*--E E *--E *--*--E
S *--* S *--* S S S
| | | | | | | | |
* + * *--+ * * +--* *--+--* *--+
| | | | | | | | |
*--* E E *--* E E *--E
a(2) = 101;
S--*--* S--*--* S--*--* S--*--* S--*--*
| | | | |
*--*--* *--*--* *--*--* *--*--* *--*--*
| | | | |
*--+--* *--+ *--+ *--+ * +--*
| | | | | | |
* *--* *--* * *--* *
| | | | |
E *--*--E E *--E E
... and so on.
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()
def A333686(n):
return A333685(n, 1)
print([A333686(n) for n in range(20)])
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Apr 02 2020
STATUS
approved