OFFSET
0,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-1, 11, -4).
FORMULA
a(n) = 2*(-4)^(n+1) + (3/2+1/2*sqrt(5))^(n+1) + (3/2-1/2*sqrt(5))^(n+1).
G.f.: -(16*x^2-34*x+5) / ((4*x+1)*(x^2-3*x+1)). - Colin Barker, Jun 25 2014
EXAMPLE
a(4) = -1*559 + 11*(-110) - 4*(39) = -1925.
MATHEMATICA
CoefficientList[Series[-(16 x^2 - 34 x + 5)/((4 x + 1) (x^2 - 3 x + 1)), {x, 0, 30}], x] (* Vincenzo Librandi, Jun 26 2014 *)
LinearRecurrence[{-1, 11, -4}, {-5, 39, -110}, 30] (* Harvey P. Dale, Mar 02 2023 *)
PROG
(PARI) Vec(-(16*x^2-34*x+5)/((4*x+1)*(x^2-3*x+1)) + O(x^100)) \\ Colin Barker, Jun 25 2014
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Creighton Dement, Jan 02 2009
STATUS
approved