OFFSET
0,2
COMMENTS
a(3n) is even if n>0. - Robert G. Wilson v, Sep 06 2002
3 divides a(8n+1) and a(8n-1). - Enrique PĂ©rez Herrero, Dec 29 2010
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-1,-2).
FORMULA
G.f. (1-3*x^2)/((1-x-x^2)*(1-2*x)).
MATHEMATICA
Table[f=Fibonacci[n]; 2^n+f, {n, 1, 40, 1}] (* Vladimir Joseph Stephan Orlovsky, Jul 23 2008 *)
CoefficientList[Series[(1-3x^2)/((1-x-x^2)(1-2x)), {x, 0, 35}], x] (* Vincenzo Librandi, Nov 02 2014 *)
PROG
(Haskell)
a117591 n = a117591_list !! n
a117591_list = zipWith (+) a000079_list a000045_list
-- Reinhard Zumkeller, Aug 15 2013
(Magma) [2^n+Fibonacci(n): n in [0..40]]; // Vincenzo Librandi, Nov 02 2014
(PARI) a(n)=2^n + fibonacci(n) \\ Charles R Greathouse IV, Oct 07 2016
(Sage) [2^n +fibonacci(n) for n in (0..40)] # G. C. Greubel, Jul 05 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Franklin T. Adams-Watters, Apr 04 2006
STATUS
approved