OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,7).
FORMULA
G.f.: 1/(1 - 9*x - 7*x^2). - Zerinvary Lajos, Dec 20 2008
MAPLE
a:=proc(n) option remember: if n=0 then 0 elif n=1 then 1 else 9*procname(n-1)+7*procname(n-2) fi: end; seq(a(n), n=0..22); # Muniru A Asiru, Jul 15 2018
MATHEMATICA
Join[{a=0, b=1}, Table[c=9*b+7*a; a=b; b=c, {n, 60}]] (* Vladimir Joseph Stephan Orlovsky, Jan 27 2011 *)
LinearRecurrence[{9, 7}, {0, 1}, 30] (* Vincenzo Librandi, Nov 15 2012 *)
PROG
(Sage) [lucas_number1(n, 9, -7) for n in range(0, 19)] # Zerinvary Lajos, Apr 26 2009
(Magma) [n le 2 select n-1 else 9*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(1/(1-9*x-7*x^2))) \\ G. C. Greubel, Jan 06 2018
(GAP) a:=[0, 1];; for n in [3..22] do a[n]:=9*a[n-1]+7*a[n-2]; od; a; # Muniru A Asiru, Jul 15 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Extended by T. D. Noe, May 23 2011
STATUS
approved