OFFSET
1,2
COMMENTS
The polynomial p(n,x) is the numerator of the rational function given by f(n,x) = x + (2*n - 1)/f(n-1,x), where f(1,x) = 1.
FORMULA
a(n) = a(n-1) + (2*n-1)*a(n-2), a(0) = a(1) = 1. - Michael Somos, Oct 27 2022
EXAMPLE
MATHEMATICA
z = 11; p[n_, x_] := x + (2 n - 1)/p[n-1, x]; p[1, x_] = 1;
t = Table[Factor[p[n, x]], {n, 1, z}]
u = Numerator[t]; v = u /. x -> 1 (* A249101 *)
a[ n_] := (a[n] = If[n<2, Boole[n>=0], a[n-1] + (2*n-1)*a[n-2]]); (* Michael Somos, Oct 27 2022 *)
PROG
(PARI) {a(n) = if(n<2, n>=0, a(n-1) + (2*n-1)*a(n-2))}; /* Michael Somos, Oct 27 2022 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 21 2014
STATUS
approved