OFFSET
0,2
COMMENTS
EXAMPLE
First five rows of the triangle P=p(n,k):
2
2...1
2...1...2
2...1...2...1
2...1...2...1...2
First five rows of A193631:
1
2....1
4....4....5
8....12...22...17
16...32...72...88...89
MATHEMATICA
p[n_, k_] := (3 + (-1)^k)/2;
Table[p[n, k], {n, 0, 7}, {k, 0, n}]
m[n_] := Table[If[i <= j, p[n + 1 - i, j - i], 0], {i, n}, {j, n + 1}]
TableForm[m[4]]
w[0, 0] = 1; w[1, 0] = p[1, 0]; w[1, 1] = p[1, 1];
v[0] = w[0, 0]; v[1] = {w[1, 0], w[1, 1]};
v[n_] := v[n - 1].m[n]
TableForm[Table[v[n], {n, 0, 6}]] (* A193631 *)
Flatten[Table[v[n], {n, 0, 8}]]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Aug 01 2011
STATUS
approved