OFFSET
0,1
LINKS
Indranil Ghosh, Table of n, a(n) for n = 0..4771
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (1,1).
FORMULA
G.f.: (3+9*x)/(1-x-x^2). - Philippe Deléham, Nov 19 2008
a(n) = ((2^(-n-1)/5)*((15+21*sqrt(5))*(1+sqrt(5))^n + (15-21*sqrt(5))*(1-sqrt(5))^n). - Bogart B. Strauss, Oct 27 2013
a(n) = 3*A000285(n). - R. J. Mathar, Jan 08 2020
MATHEMATICA
a[0]=3; a[1] = 12; a[n_]:= a[n-1] + a[n-2]; Table[a[n], {n, 0, 30}] (* or *) LinearRecurrence[{1, 1}, {3, 12}, 31] (* Indranil Ghosh, Feb 19 2017 *)
Table[-(3/2)(Fibonacci[n]-3*LucasL[ n]), {n, 40}] (* Harvey P. Dale, Aug 22 2019 *)
PROG
(Magma) [-(3/2)*(Fibonacci(n+1)-3*Lucas(n+1)): n in [0..40]]; // Vincenzo Librandi, Jan 09 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved