OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,11).
FORMULA
a(n) = 4*a(n-1) + 11*a(n-2).
MATHEMATICA
Join[{a=0, b=1}, Table[c=4*b+11*a; a=b; b=c, {n, 40}]] (* Vladimir Joseph Stephan Orlovsky, Mar 29 2011 *)
LinearRecurrence[{4, 11}, {0, 1}, 30] (* Vincenzo Librandi, Jun 19 2012 *)
PROG
(Sage) [lucas_number1(n, 4, -11) for n in range(0, 20)] # Zerinvary Lajos, Apr 23 2009
(Magma) I:=[0, 1]; [n le 2 select I[n] else 4*Self(n-1)+11*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Jun 19 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-4*x-11*x^2))) \\ G. C. Greubel, Jan 01 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved