OFFSET
0,7
LINKS
Johann Cigler, Some remarks and conjectures related to lattice paths in strips along the x-axis, arXiv:1501.04750 [math.CO], 2015-2016.
EXAMPLE
Triangle begins:
1
1 1 1
1 1 4 2 1
1 1 7 5 9 3 1
1 1 10 8 26 14 16 4 1
1 1 13 11 52 34 70 30 25 5 1
...
MAPLE
A247642 := proc(n, k)
option remember;
if k < 0 or k > 2*n then
return 0;
elif k = 0 then
return 1 ;
end if;
if type(k, 'odd') then
procname(n-1, k-2)+procname(n-1, k-1) ;
else
procname(n-1, k-2)+2*procname(n-1, k-1)+procname(n-1, k) ;
end if;
end proc: # R. J. Mathar, Oct 25 2014
MATHEMATICA
T[_, 0] = 1; T[n_, k_] /; 0 <= k <= 2n := T[n, k] = If[OddQ[k], T[n-1, k-2] + T[n-1, k-1], T[n-1, k-2] + 2*T[n-1, k-1] + T[n-1, k]]; T[_, _] = 0;
Table[T[n, k], {n, 0, 8}, {k, 0, 2n}] // Flatten (* Jean-François Alcover, Dec 03 2017 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
N. J. A. Sloane, Sep 23 2014
STATUS
approved