OFFSET
0,2
LINKS
FORMULA
a(n) = [x^n] (x^3 + x^2 - 2*x - 1) / (x^2 + x - 1).
From Stefano Spezia, Jun 10 2024: (Start)
a(n) = 2^(-n-1)*((1 - sqrt(5))^n*(sqrt(5) - 3) + (1 + sqrt(5))^n*(sqrt(5) + 3))/sqrt(5) for n <> 1.
E.g.f.: x + exp(x/2)*(5*cosh(sqrt(5)*x/2) + 3*sqrt(5)*sinh(sqrt(5)*x/2))/5. (End)
MATHEMATICA
CoefficientList[Series[x - 1/(x - 1/(x + 1)), {x, 0, 38}], x] (* Michael De Vlieger, Jun 10 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Luschny, Jun 10 2024
STATUS
approved