OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..285
Ivana Jovović and Branko Malešević, Some enumerations of non-trivial composition of the differential operations and the directional derivative, Notes on Number Theory and Discrete Mathematics, Vol. 23, 2017, No. 1, 28-38.
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
a(0) = 4, a(1) = 5, a(n) = a(n - 2) + a(n - 1) - 4. - Reinhard Zumkeller, Jul 30 2013
G.f.: (4 - 3*x - 5*x^2)/((1 - x)*(1 - x - x^2)). - Stefano Spezia, Jul 21 2024
MATHEMATICA
Fibonacci[Range[0, 50]]+4 (* Harvey P. Dale, Jun 17 2011 *)
PROG
(Magma) [ Fibonacci(n) + 4: n in [0..40] ]; // Vincenzo Librandi, Apr 24 2011
(PARI) a(n)=fibonacci(n)+4 \\ Charles R Greathouse IV, Jul 02 2013
(Haskell)
a157727 = (+ 4) . a000045
a157727_list = 4 : 5 : map (subtract 4)
(zipWith (+) a157727_list $ tail a157727_list)
-- Reinhard Zumkeller, Jul 30 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 26 2010
STATUS
approved