OFFSET
0,4
FORMULA
EXAMPLE
First six rows:
1
1....1
3....1....2
9....1....4....4
27...1....6....12...8
81...1....8....24...32...16
MATHEMATICA
z = 10; a = 1; b = 2;
p[n_, x_] := (a*x + b)^n
q[n_, x_] := 1 + x^n ; q[n_, 0] := q[n, x] /. x -> 0;
t[n_, k_] := Coefficient[p[n, x], x^k]; t[n_, 0] := p[n, x] /. x -> 0;
w[n_, x_] := Sum[t[n, k]*q[n + 1 - k, x], {k, 0, n}]; w[-1, x_] := 1
g[n_] := CoefficientList[w[n, x], {x}]
TableForm[Table[Reverse[g[n]], {n, -1, z}]]
Flatten[Table[Reverse[g[n]], {n, -1, z}]] (* A193788 *)
TableForm[Table[g[n], {n, -1, z}]]
Flatten[Table[g[n], {n, -1, z}]] (* A193789 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Aug 05 2011
STATUS
approved