OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-17,17,-6).
FORMULA
G.f.: (2-10*x+17*x^2-11*x^3)/((1-2*x)*(1-3*x)*(1-x)^2). - Vincenzo Librandi, Feb 06 2013
From Elmo R. Oliveira, Mar 07 2025: (Start)
E.g.f.: exp(x)*(exp(2*x) + exp(x) - x).
a(n) = 7*a(n-1) - 17*a(n-2) + 17*a(n-3) - 6*a(n-4). (End)
MATHEMATICA
CoefficientList[Series[(2 - 10 x + 17 x^2 - 11 x^3)/((1 - 2 x) (1 - 3 x) (1 - x)^2), {x, 0, 30}], x] (* Vincenzo Librandi, Feb 06 2013 *)
PROG
(Magma) [2^n+3^n-n: n in [0..30]]; // Vincenzo Librandi, Feb 06 2013
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Mohammad K. Azarian, Aug 18 2006
EXTENSIONS
Edited by Ray Chandler, Sep 06 2006
STATUS
approved