OFFSET
0,5
COMMENTS
a(n)=A186358(n,0).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
E. Deutsch and S. Elizalde, Cycle up-down permutations, arXiv:0909.5199v1 [math.CO].
FORMULA
E.g.f.=(1-sin z)/(1-z).
a(2m-1)=(2m-1)!*Sum((-1)^j/(2j-1)!, j=2..m).
a(2m)=(2m)!*Sum((-1)^j/(2j-1)!, j=2..m).
a(n) ~ n! * (1-sin(1)). - Vaclav Kotesovec, Oct 02 2013
EXAMPLE
a(4)=4 because we have (1432), (1342), (1243), and (1234).
MAPLE
g := (1-sin(z))/(1-z): gser := series(g, z = 0, 25): seq(factorial(n)*coeff(gser, z, n), n = 0 .. 22);
MATHEMATICA
CoefficientList[Series[(1-Sin[x])/(1-x), {x, 0, 20}], x]* Range[0, 20]! (* Vaclav Kotesovec, Oct 02 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Feb 28 2011
STATUS
approved