OFFSET
1,2
FORMULA
u(n,x)=u(n-1,x)+v(n-1,x), v(n,x)=u(n-1,x)+2x*v(n-1,x)+1,
where u(1,x)=1, v(1,x)=1.
EXAMPLE
First five rows:
1
2
4....2
7....6....4
12...14...12...8
MATHEMATICA
u[1, x_] := 1; v[1, x_] := 1; z = 16;
u[n_, x_] := u[n - 1, x] + v[n - 1, x]
v[n_, x_] := u[n - 1, x] + 2 x*v[n - 1, x] + 1
Table[Factor[u[n, x]], {n, 1, z}]
Table[Factor[v[n, x]], {n, 1, z}]
cu = Table[CoefficientList[u[n, x], x], {n, 1, z}];
TableForm[cu]
Flatten[%] (* A207612 *)
Table[Expand[v[n, x]], {n, 1, z}]
cv = Table[CoefficientList[v[n, x], x], {n, 1, z}];
TableForm[cv]
Flatten[%] (* A207613 *)
PROG
(Python)
from sympy import Poly
from sympy.abc import x
def u(n, x): return 1 if n==1 else u(n - 1, x) + v(n - 1, x)
def v(n, x): return 1 if n==1 else u(n - 1, x) + 2*x*v(n - 1, x) + 1
def a(n): return Poly(u(n, x), x).all_coeffs()[::-1]
for n in range(1, 13): print(a(n)) # Indranil Ghosh, May 28 2017
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Clark Kimberling, Feb 19 2012
STATUS
approved