OFFSET
0,12
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..9999 (rows 0..99 of triangle, flattened)
Jean-Luc Baril and José L. Ramírez, Knight's paths towards Catalan numbers, Univ. Bourgogne Franche-Comté (2022).
FORMULA
T(0, 0) = 1; T(1, 2) = 1; for n >= 2, T(n, 0) = T(n-2, 1)+T(n-1, 2), T(n, 1) = T(n-2, 0)+T(n-2, 2)+T(n-1, 3); for k >= 2, T(n, k) = T(n-2, k-1)+T(n-2, k+1)+T(n-1, k-2)+T(n-1, k+2).
EXAMPLE
Rows:
1
0 0 1
1 1 0 0 1
0 1 2 2 0 0 1
...
T(3,2) counts these paths: (0,0)-(1,2)-(2,0)-(3,2) and (0,0)-(1,2)-(2,4)-(3,2).
MATHEMATICA
A096587list[rowmax_]:=Module[{T}, T[0, 0]=1; T[n_, k_]:=T[n, k]=If[0<=k<=2n, T[n-1, k-2]+T[n-2, k-1]+T[n-1, k+2]+T[n-2, k+1], 0]; Table[T[n, k], {n, 0, rowmax}, {k, 0, 2n}]]; A096587list[10] (* Generates 11 rows *) (* Paolo Xausa, May 22 2023 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Clark Kimberling, Jun 28 2004
EXTENSIONS
Offset changed to 0 by Paolo Xausa, May 22 2023
STATUS
approved