OFFSET
1,6
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..5000
EXAMPLE
First 7 rows:
1
1 1
1 1 2 1 1
1 2 4 4 4 2
1 3 7 10 12 10 6
1 4 11 20 29 32 28 16
1 5 16 35 60 81 89 76 44
MATHEMATICA
z = 12; t[n_, 0] = 1; t[1, 1] = 1; t[2, 2] = 2; t[2, 3] = 1; t[2, 4] = 1; t[n_, 1] := t[n, 1] = n - 1; t[n_, k_] := t[n, k] = Which[2 <= k <= n + 1, t[n - 1, k - 2] + t[n - 1, k - 1] + t[n - 1, k], k == n + 2, t[n - 1, k - 2] + t[n - 1, k - 1]]; u = Join[{{1}}, {{1, 1}}, Table[t[n, k], {n, 2, z}, {k, 0, n + 2}]]; TableForm[u] (* A026148 array *)
Flatten[u] (* A026148 sequence *) (* Clark Kimberling, Aug 28 2014 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
EXTENSIONS
Definition clarified and Example by Clark Kimberling, Aug 28 2014
STATUS
approved