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