OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..250
FORMULA
a(n) = Sum_{k=1..n/2} (-1)^(k)*Sum_{i=2*k..n} binomial(n,i)*(Stirling1(i,2*k)*(2*k)^(n-i)*(-1)^(n-i)), n > 0, a(0)=1. - Vladimir Kruchinin, Jun 29 2011
MATHEMATICA
With[{nn=20}, CoefficientList[Series[Cos[Log[1+x]/Exp[x]], {x, 0, nn}], x] Range[0, nn]!] (* Harvey P. Dale, Sep 14 2014 *)
PROG
(Maxima)
a(n):=if n=0 then 1 else (sum((-1)^(k)*sum(binomial(n, i)*(stirling1(i, 2*k)*(2*k)^(n-i)*(-1)^(n-i)), i, 2*k, n), k, 1, n/2)); /* Vladimir Kruchinin, Jun 29 2011 */
(PARI) x='x+O('x^30); Vec(serlaplace(cos(log(1+x)/exp(x)))) \\ G. C. Greubel, Jul 22 2018
(Magma) m:=30; R<x>:=PowerSeriesRing(Rationals(), m); b:=Coefficients(R!(Cos(Log(1+x)/Exp(x)))); [Factorial(n-1)*b[n]: n in [1..m]]; // G. C. Greubel, Jul 22 2018
CROSSREFS
KEYWORD
sign,easy
AUTHOR
EXTENSIONS
Extended with signs by Olivier Gérard, Mar 15 1997
STATUS
approved