OFFSET
0,2
LINKS
Paul D. Hanna, Table of n, a(n) for n = 0..500
FORMULA
E.g.f.: 2 - exp(1) + Sum_{n>=1} exp(2*x^n) / n!.
EXAMPLE
E.g.f.: A(x) = 1 + 2*x + 6*x^2/2! + 10*x^3/3! + 42*x^4/4! + 34*x^5/5! + 786*x^6/6! +...
where
A(x) = 2 - exp(2) + 2*exp(x) + 2^2*exp(x^2)/2! + 2^3*exp(x^3)/3! + 2^4*exp(x^4)/4! + 2^5*exp(x^5)/5! +...
A(x) = 2 - exp(1) + exp(2*x) + exp(2*x^2)/2! + exp(2*x^3)/3! + exp(2*x^4)/4! + exp(2*x^5)/5! +...
PROG
(PARI) {a(n) = local(A=1); A = 2-exp(2) + sum(m=1, n, 2^m/m!*exp(x^m +x*O(x^n))); if(n==0, 1, n!*polcoeff(A, n))}
for(n=0, 30, print1(a(n), ", "))
(PARI) {a(n) = local(A=1); A = 2-exp(1) + sum(m=1, n, 1/m!*exp(2*x^m +x*O(x^n))); if(n==0, 1, n!*polcoeff(A, n))}
for(n=0, 30, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jun 20 2015
STATUS
approved