OFFSET
0,2
COMMENTS
Binomial transform of A097135.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-4,1).
FORMULA
G.f.: (1-2*x^2) / ((1-x)*(1-3*x+x^2)).
a(n) = 4*a(n-1) - 4*a(n-2) + a(n-3).
a(n) = 1 + 3*((3+sqrt(5))/2)^n/sqrt(5) - 3*((3-sqrt(5))/2)^n/sqrt(5).
E.g.f.: cosh(x) + sinh(x) + 6*exp(3*x/2)*sinh(sqrt(5)*x/2)/sqrt(5). - Stefano Spezia, Sep 29 2025
MATHEMATICA
Table[3*Fibonacci[2n]+1, {n, 0, 30}] (* or *) LinearRecurrence[{4, -4, 1}, {1, 4, 10}, 30] (* Harvey P. Dale, May 25 2018 *)
PROG
(PARI) Vec((1-2*x^2)/((1-x)*(1-3*x+x^2)) + O(x^30)) \\ Colin Barker, Nov 02 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Jul 26 2004
STATUS
approved
