OFFSET
0,3
FORMULA
G.f. A(x) satisfies: A(x) = (2 - x + x * A(2*x/(1 - x))) / (2 * (1 - x)).
MAPLE
a:= proc(n) option remember; 1+add(a(k)*
binomial(n-1, k)*2^(k-1), k=1..n-1)
end:
seq(a(n), n=0..16); # Alois P. Heinz, Jun 19 2022
MATHEMATICA
a[n_] := a[n] = 1 + Sum[Binomial[n - 1, k] 2^(k - 1) a[k], {k, 1, n - 1}]; Table[a[n], {n, 0, 16}]
nmax = 16; A[_] = 0; Do[A[x_] = (2 - x + x A[2 x/(1 - x)])/(2 (1 - x)) + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jun 19 2022
STATUS
approved