login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Expansion of x/(1 - 7*x - 4*x^2).
3

%I #34 Dec 30 2023 23:41:32

%S 0,1,7,53,399,3005,22631,170437,1283583,9666829,72802135,548282261,

%T 4129184367,31097419613,234198674759,1763780401765,13283257511391,

%U 100037924186797,753398499353143,5673941192219189,42731182342946895

%N Expansion of x/(1 - 7*x - 4*x^2).

%H Vincenzo Librandi, <a href="/A015561/b015561.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (7,4).

%F a(n) = 7*a(n-1) + 4*a(n-2).

%t Join[{a=0,b=1},Table[c=7*b+4*a;a=b;b=c,{n,100}]] (* _Vladimir Joseph Stephan Orlovsky_, Jan 17 2011 *)

%t LinearRecurrence[{7, 4}, {0, 1}, 30] (* _Vincenzo Librandi_, Nov 14 2012 *)

%o (Sage) [lucas_number1(n,7,-4) for n in range(0, 21)] # _Zerinvary Lajos_, Apr 24 2009

%o (Magma) [n le 2 select n-1 else 7*Self(n-1) + 4*Self(n-2): n in [1..30]]; // _Vincenzo Librandi_, Nov 14 2012

%o (PARI) x='x+O('x^30); concat([0], Vec(x/(1-7*x-4*x^2))) \\ _G. C. Greubel_, Dec 30 2017

%K nonn,easy

%O 0,3

%A _Olivier Gérard_