OFFSET
1,9
EXAMPLE
First five rows:
1 0 0
1 1 1 0
1 2 3 2 1
1 3 6 7 6 3
1 4 10 16 19 16 0
MATHEMATICA
t[0, 0] = 1; t[0, 1] = 0; t[0, 2] = 0; t[1, 0] = 1; t[1, 1] = 1;
t[1, 2] = 1; t[1, 3] = 0;
t[n_, 0] := 1; t[n_, 1] := t[n - 1, 0] + t[n - 1, 1];
t[n_, k_] := t[n - 1, k - 2] + t[n - 1, k - 1] + t[n - 1, k] /; 2 <= k && k <= n + 1;
t[n_, k_] := t[n - 1, k - 2] + t[n - 1, k - 1] /; k == n + 2;
u = Table[t[n, k], {n, 0, 12}, {k, 0, n + 2}];
TableForm[u] (*A026323 array*)
v = Flatten[u] (*A026323 sequence*)
(* Clark Kimberling, Aug 21 2014 *)
CROSSREFS
KEYWORD
nonn,tabf,easy
AUTHOR
EXTENSIONS
Beginning of sequence changed from 1,0,0,1,1,1,1,2,3,2,1,1,3,6,7,6,3 by N. J. A. Sloane (7/98).
STATUS
approved