OFFSET
0,2
COMMENTS
Hankel transform of A165205.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-11,6,-1).
FORMULA
G.f.: (1-9*x+4*x^2-x^3)/(1-3*x+x^2)^2 = (1-x)/(1-3*x+x^2) - 5*x/(1-3*x+x^2)^2.
MATHEMATICA
Table[(3-4n)Fibonacci[2n-2]+(4-7n)Fibonacci[2n-1], {n, 0, 30}] (* or *) LinearRecurrence[{6, -11, 6, -1}, {1, -3, -25, -112}, 30] (* Harvey P. Dale, Aug 25 2013 *)
PROG
(PARI) vector(30, n, n--; f=fibonacci; (3-4*n)*f(2*n-2)+(4-7*n)*f(2*n-1)) \\ G. C. Greubel, Jul 18 2019
(Magma) F:=Fibonacci; [(3-4*n)*F(2*n-2)+(4-7*n)*F(2*n-1): n in [0..30]]; // G. C. Greubel, Jul 18 2019
(Sage) f=fibonacci; [(3-4*n)*f(2*n-2)+(4-7*n)*f(2*n-1) for n in (0..30)] # G. C. Greubel, Jul 18 2019
(GAP) F:=Fibonacci;; List([0..30], n-> (3-4*n)*F(2*n-2)+(4-7*n)*F(2*n-1) ); # G. C. Greubel, Jul 18 2019
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Sep 07 2009
STATUS
approved