OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature(3,-2).
FORMULA
a(n) = 2*a(n-1) + 5.
G.f. (9*x - 4)/((x-1)*(2*x-1)). - R. J. Mathar, Feb 22 2012
a(n) = 3*a(n-1) - 2*a(n-2). - Vincenzo Librandi, Sep 19 2013
E.g.f.: exp(2*x) - 5*exp(x). - G. C. Greubel, Jul 27 2016
MATHEMATICA
Table[2^n-5, {n, 0, 5!}] (* Vladimir Joseph Stephan Orlovsky, Nov 22 2010 *)
CoefficientList[Series[(9 x - 4)/((x - 1) (2 x - 1)), {x, 0, 60}], x] (* Vincenzo Librandi, Sep 19 2013 *)
LinearRecurrence[{3, -2}, {-4, -3}, 40] (* Harvey P. Dale, Oct 15 2014 *)
PROG
(Magma) [2^n-5: n in [0..40]]; // Vincenzo Librandi, Sep 19 2013
(PARI) a(n)=2^n-5 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Vincenzo Librandi, Dec 01 2009
EXTENSIONS
Formula and examples edited to use correct offset by Jon E. Schoenfield, Jun 19 2010
STATUS
approved