editing
approved
editing
approved
3^Range[0, 30]-5 (* Harvey P. Dale, Sep 12 2022 *)
approved
editing
(MAGMAMagma) I:=[-4, -2]; [n le 2 select I[n] else 4*Self(n-1)-3*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Jul 06 2012
proposed
approved
editing
proposed
a(n) = 3^n - 5.
<a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (4,-3).
a(n) = 3*a(n-1) + 10 with a(0)=-4.
G.f.: 2*(7*x - 2)/((1-x)*(1-3*x)). - Vincenzo Librandi, Jul 06 2012
a(n) = 4*a(n-1) - 3*a(n-2). - Vincenzo Librandi, Jul 06 2012
a(n) = 2*A116970(n) + 2 with A116970(0)=-3, A116970(1)=-2. - Bruno Berselli, Jul 06 2012
E.g.f.: exp(3*x) - 5*exp(x). - G. C. Greubel, Jul 27 2016
LinearRecurrence[{4, -3}, {-4, -2}, 25] (* G. C. Greubel, Jul 27 2016 *)
approved
editing
<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (4,-3).
<a href="/index/Rec#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (4,-3).
<a href="/Sindx_Rea.htmlindex/Rec#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (4,-3).
proposed
approved