OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-5).
FORMULA
G.f.: (3-11*x)/((1-x)*(1-5*x)).
a(n) = 6*a(n-1) - 5*a(n-2) for n > 1.
From Elmo R. Oliveira, Dec 04 2023: (Start)
a(n) = A000351(n) + 2.
a(n) = 5*a(n-1) - 8 with a(0) = 3.
E.g.f.: exp(5*x) + 2*exp(x). (End)
MATHEMATICA
Table[5^n + 2, {n, 0, 30}] (* or *) CoefficientList[Series[(3 - 11 x)/((1 - x) (1 - 5 x)), {x, 0, 30}], x]
LinearRecurrence[{6, -5}, {3, 7}, 30] (* Harvey P. Dale, Jun 30 2022 *)
PROG
(Magma) [5^n+2: n in [0..30]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, May 13 2014
STATUS
approved