OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (12,7).
FORMULA
G.f.: x/(1 - 12*x - 7*x^2). - Vincenzo Librandi, Nov 22 2012
MATHEMATICA
Join[{a=0, b=1}, Table[c=12*b+7*a; a=b; b=c, {n, 60}]] (* Vladimir Joseph Stephan Orlovsky, Jan 31 2011 *)
CoefficientList[Series[x/(1 - 12x - 7x^2), {x, 0, 30}], x] (* or *) LinearRecurrence[{12, 7}, {0, 1}, 30] (* Vincenzo Librandi, Nov 22 2012 *)
PROG
(Sage) [lucas_number1(n, 12, -7) for n in range(0, 18)] # Zerinvary Lajos, Apr 29 2009
(Magma) [n le 2 select n-1 else 12*Self(n-1) + 7*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 22 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-12*x-7*x^2))) \\ G. C. Greubel, Dec 30 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved