OFFSET
0,2
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-8,5,-1).
FORMULA
For n>0, a(n) = Fibonacci(2n+6) - Fibonacci(2n+2) - 6n - 7.
From Colin Barker, Feb 17 2016: (Start)
a(n) = 5*a(n-1)-8*a(n-2)+5*a(n-3)-a(n-4) for n>4.
G.f.: (1+11*x^2-7*x^3+x^4) / ((1-x)^2*(1-3*x+x^2)).
(End)
MATHEMATICA
LinearRecurrence[{5, -8, 5, -1}, {1, 5, 28, 98, 291}, 30] (* Harvey P. Dale, Aug 08 2019 *)
PROG
(PARI) Vec((1+11*x^2-7*x^3+x^4)/((1-x)^2*(1-3*x+x^2)) + O(x^40)) \\ Colin Barker, Feb 17 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
a(22) - a(25) from Vincenzo Librandi, Apr 18 2011
STATUS
approved
