OFFSET
0,4
LINKS
J. Roberts, Lure of the Integers, Annotated scanned copy of pp. 81, 86 with notes.
FORMULA
a(n) = [n mod 4 > 0] * (-1)^(n+1+[n/4]) * n!/2^[n/2]. - Ralf Stephan, Mar 06 2004
E.g.f.: sin(x)/exp(x) = x-x^2/(G(0)+x); G(k)=2k+1-x+x*(2k+1)/(4k+3-x+x^2*(4k+3)/( (2k+2)*(4k+5)-x^2+x*(2k+2)*(4k+5)/G(k+1))); (continued fraction). - Sergei N. Gladkovskii, Nov 20 2011
MAPLE
a:= n-> (p-> `if`(p=0, 0, 1/p))(coeff(series(sin(x)/exp(x), x, n+1), x, n)):
seq(a(n), n=0..30); # Alois P. Heinz, Nov 17 2017
MATHEMATICA
1/CoefficientList[Sin[x]/Exp[x] + O[x]^26, x] /. ComplexInfinity -> 0 // Quiet (* Jean-François Alcover, Feb 26 2019 *)
CROSSREFS
Absolute values are essentially the same as A046979, where zeros are replaced by ones.
KEYWORD
sign
AUTHOR
STATUS
approved