OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (7,-11,5).
FORMULA
a(n) = 7*a(n-1) - 11*a(n-2) + 5*a(n-3).
G.f.: (1 - 3*x + 6*x^2)/((1-5*x)*(1-x)^2). - Vincenzo Librandi, Jun 16 2013
E.g.f.: exp(x)*(exp(4*x) - x). - Elmo R. Oliveira, Sep 10 2024
MAPLE
g:=1/(1-5*z): gser:=series(g, z=0, 43): seq(coeff(gser, z, n)-n, n=0..31); # Zerinvary Lajos, Jan 09 2009
MATHEMATICA
Table[5^n - n, {n, 0, 30}] (* or *) CoefficientList[Series[(1 - 3 x + 6 x^2) / ((1 - 5 x) (1 - x)^2), {x, 0, 30}], x] (* Vincenzo Librandi, Jun 16 2013 *)
LinearRecurrence[{7, -11, 5}, {1, 4, 23}, 30] (* Harvey P. Dale, Mar 03 2022 *)
PROG
(Magma) [5^n-n: n in [0..35]]; // Vincenzo Librandi, Jun 12 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved