OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..275
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
a(n) = F(n+9) - F(9) with F = A000045.
a(n) = a(n-1) + a(n-2) + 34 for n>1, a(0)=0, a(1)=21, and where 34 = F(9).
G.f.: x*(21 + 13*x)/((1 - x)*(1 - x - x^2)). - Ilya Gutkovskiy, Feb 24 2017
From Colin Barker, Feb 24 2017: (Start)
a(n) = (-34 + (2^(-n)*((1-sqrt(5))^n*(-38+17*sqrt(5)) + (1+sqrt(5))^n*(38+17*sqrt(5)))) / sqrt(5)).
a(n) = 2*a(n-1) - a(n-3) for n>2. (End)
MAPLE
nmax:=31: with(combinat): for n from 0 to nmax do a(n):=fibonacci(n+9)-fibonacci(9) od: seq(a(n), n=0..nmax);
MATHEMATICA
Fibonacci[9 +Range[0, 40]] -34 (* G. C. Greubel, Jul 13 2019 *)
LinearRecurrence[{2, 0, -1}, {0, 21, 55}, 40] (* Harvey P. Dale, Aug 24 2024 *)
PROG
(Magma) [Fibonacci(n+9) - Fibonacci(9): n in [0..40]]; // Vincenzo Librandi, Apr 24 2011
(PARI) concat(0, Vec(x*(21+13*x)/((1-x)*(1-x-x^2)) + O(x^40))) \\ Colin Barker, Feb 24 2017
(PARI) a(n) = fibonacci(n+9) - fibonacci(9) \\ Charles R Greathouse IV, Feb 24 2017
(Sage) [fibonacci(n+9)-34 for n in (0..40)] # G. C. Greubel, Jul 13 2019
(GAP) List([0..40], n-> Fibonacci(n+9)-34); # G. C. Greubel, Jul 13 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Johannes W. Meijer, Sep 21 2010
STATUS
approved