OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..402
FORMULA
a(n) ~ c * n! * 2^n * n^(7/4), where c = 0.1758027947... - Vaclav Kotesovec, May 14 2020
MAPLE
b:= proc(x, y, i) option remember; (l-> `if`(min(x, y)<0, 0,
`if`(max(x, y)=0, [1$2], add(`if`({i, j} in {{1, 2}, {3, 5},
{4, 5}}, 0, (p-> p+[0, p[1]])(b(x-l[j][1], y-l[j][2], j))),
j=1..5))))([[-1, 1], [1, -1], [1, 1], [1, 0], [0, 1]])
end:
a:= n-> b(n, 0$2)[2]:
seq(a(n), n=0..20);
MATHEMATICA
b[x_, y_, i_] := b[x, y, i] = With[{l = {{-1, 1}, {1, -1}, {1, 1}, {1, 0}, {0, 1}}}, If[Min[x, y] < 0, {0, 0}, If[Max[x, y] == 0, {1, 1}, Sum[If[ MemberQ[{{1, 2}, {3, 5}, {4, 5}}, Sort@{i, j}], {0, 0}, Function[p, p + {0, p[[1]]}][b[x - l[[j]][[1]], y - l[[j]][[2]], j]]], {j, 5}]]]];
a[n_] := b[n, 0, 0][[2]];
a /@ Range[0, 20] (* Jean-François Alcover, May 14 2020, after Maple *)
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Alois P. Heinz, Oct 22 2018
STATUS
approved