OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-11,5).
FORMULA
G.f.: (1+3*x-24*x^2)/((1-x)^2*(1-5*x)).
a(n) = 7*a(n-1) - 11*a(n-2) + 5*a(n-3).
a(n) = A176916(n) - 1.
a(n) = 5*A362555(n) for n > 0. - Hugo Pfoertner, Mar 01 2024
E.g.f.: exp(x)*(exp(4*x) + 5*x). - Elmo R. Oliveira, Sep 10 2024
MATHEMATICA
Table[(5^n + 5 n), {n, 0, 30}] (* or *) CoefficientList[Series[(1 + 3 x - 24 x^2)/((1 - x)^2 (1 - 5 x)), {x, 0, 30}], x]
LinearRecurrence[{7, -11, 5}, {1, 10, 35}, 30] (* Harvey P. Dale, Jul 23 2013 *)
PROG
(Magma) [5^n + 5*n: n in [0..30]]; /* or */ I:=[1, 10, 35]; [n le 3 select I[n] else 7*Self(n-1)-11*Self(n-2)+5*Self(n-3): n in [1..30]];
(PARI) a(n)=5^n+5*n \\ Charles R Greathouse IV, Apr 18 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 02 2013
STATUS
approved