OFFSET
0,1
COMMENTS
Let F(x) = Product_{n>=0} (1 - x^(3*n+1))/(1 - x^(3*n+2)). This sequence is the simple continued fraction expansion of the real number 1 + F(-1/5) = 2.24761 97788 60361 46849 ... = 2 + 1/(4 + 1/(26 + 1/(124 + 1/(626 + ...)))). See A111317. - Peter Bala, Dec 26 2012
LINKS
FORMULA
G.f.: (2 - 4*x)/(1 - 4*x - 5*x^2).
a(n) = 5^n + (-1)^n.
From Elmo R. Oliveira, Aug 23 2024: (Start)
E.g.f.: exp(-x)*(exp(6*x) + 1).
a(n) = 2*A081340(n). (End)
MATHEMATICA
CoefficientList[Series[(2 - 4x)/(1 - 4x - 5x^2), {x, 0, 25}], x]
LinearRecurrence[{4, 5}, {2, 4}, 30] (* Harvey P. Dale, May 13 2022 *)
PROG
(Sage) [lucas_number2(n, 4, -5) for n in range(0, 22)] # Zerinvary Lajos, May 14 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Sep 01 2003
EXTENSIONS
a(22)-a(24) from Elmo R. Oliveira, Aug 23 2024
STATUS
approved