OFFSET
0,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..285
K.-W. Chen, Greatest Common Divisors in Shifted Fibonacci Sequences, J. Int. Seq. 14 (2011) # 11.4.7
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
G.f.: -(1+x)*(3*x-2) / ( (x-1)*(x^2+x-1) ). - R. J. Mathar, Aug 08 2012
a(0) = 2, a(1) = 3, a(n) = a(n - 2) + a(n - 1) - 2. - Reinhard Zumkeller, Jul 30 2013
MATHEMATICA
Fibonacci[Range[0, 50]] + 2 (* or *)
LinearRecurrence[{2, 0, -1}, {2, 3, 3}, 50] (* Paolo Xausa, Jul 28 2024 *)
PROG
(Magma) [ Fibonacci(n) + 2: n in [0..40] ]; // Vincenzo Librandi, Apr 24 2011
(PARI) a(n)=fibonacci(n)+2 \\ Charles R Greathouse IV, Jul 02 2013
(Haskell)
a157725 = (+ 2) . a000045
a157725_list = 2 : 3 : map (subtract 2)
(zipWith (+) a157725_list $ tail a157725_list)
-- Reinhard Zumkeller, Jul 30 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 26 2010
STATUS
approved