login
A015594
a(n) = 11*a(n-1) + 3*a(n-2).
1
0, 1, 11, 124, 1397, 15739, 177320, 1997737, 22507067, 253570948, 2856801629, 32185530763, 362611243280, 4085280268369, 46025916681899, 518540924305996, 5842027917411653, 65817929864446171, 741523312261142840, 8354210224465909753
OFFSET
0,3
FORMULA
G.f.: x/(1 - 11*x - 3*x^2). - Zerinvary Lajos, Dec 20 2008
MAPLE
a:=proc(n) option remember; if n=0 then 0 elif n=1 then 1 else 11*a(n-1)+3*a(n-2); fi; end: seq(a(n), n=0..30); # Wesley Ivan Hurt, Jan 24 2017
MATHEMATICA
Join[{a=0, b=1}, Table[c=11*b+3*a; a=b; b=c, {n, 60}]] (* Vladimir Joseph Stephan Orlovsky, Jan 31 2011 *)
LinearRecurrence[{11, 3}, {0, 1}, 30] (* Vincenzo Librandi, Nov 22 2012 *)
PROG
(Sage) [lucas_number1(n, 11, -3) for n in range(0, 18)] # Zerinvary Lajos, Apr 27 2009
(Magma) [n le 2 select n-1 else 11*Self(n-1) + 3*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 22 2012
CROSSREFS
Sequence in context: A258843 A015593 A224816 * A376146 A209605 A362675
KEYWORD
nonn,easy
EXTENSIONS
Entries verified by Neven Juric (neven.juric(AT)apis-it.hr), Jan 28 2008
STATUS
approved