OFFSET
0,3
COMMENTS
Hankel transform of A045621(n+1).
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,-2,0,-1).
FORMULA
a(n) = (-1)^binomial(n,2) * ( 2*floor(n/2)+1 ).
a(n) = (n + 1 - (n mod 2))*(-1)^floor(n/2). [Wesley Ivan Hurt, Jun 30 2013]
G.f.: 1/(G(0) - x), where G(k) = x*(2*k+1) - (2*k-1)/( 1 + x/( 1 - x*(2*k+3)/G(k+1) )); (continued fraction ). - Sergei N. Gladkovskii, Dec 27 2013
MATHEMATICA
CoefficientList[Series[(1+x-x^2-x^3)/(1+x^2)^2, {x, 0, 100}], x] (* or *) LinearRecurrence[{0, -2, 0, -1}, {1, 1, -3, -3}, 100] (* Harvey P. Dale, Nov 18 2020 *)
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Barry, Jan 20 2007
STATUS
approved