OFFSET
0,4
COMMENTS
|a(n)| = number of even alternating permutations on n letters (offset 1). - Vladeta Jovovic, May 20 2007
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..250
FORMULA
G.f.: (1+x/(1+x^2))/2 + 1/2/Q(0) where Q(k) = 1 + (k+1)*x - x^2*(k+1)*(k+2)/2 /Q(k+1) ; (continued fraction). - Sergei N. Gladkovskii, Mar 12 2013
a(n) ~ n! * n * (-1)^n * (2/Pi)^(n+2). - Vaclav Kotesovec, Jan 22 2015
MATHEMATICA
CoefficientList[Series[(1 + (1 + Sin[x])^2)/(2*(1 + Sin[x])), {x, 0, 20}], x] * Range[0, 20]! (* Vaclav Kotesovec, Jan 22 2015 *)
PROG
(PARI) x='x+O('x^30); Vec(serlaplace(cosh(log(1+sin(x))))) \\ G. C. Greubel, Jul 26 2018
(Magma) m:=30; R<x>:=PowerSeriesRing(Rationals(), m); b:=Coefficients(R!(Cosh(Log(1+Sin(x))))); [Factorial(n-1)*b[n]: n in [1..m]]; // G. C. Greubel, Jul 26 2018
CROSSREFS
KEYWORD
sign,easy
AUTHOR
EXTENSIONS
Extended with signs by Olivier GĂ©rard, Mar 15 1997
STATUS
approved