OFFSET
0,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
From Elmo R. Oliveira, Apr 04 2024: (Start)
G.f.: 9*(2+15*x)/(x-1)^2.
E.g.f.: 9*exp(x)*(2 + 17*x).
a(n) = 9*(A008599(n) + 2).
a(n) = 2*a(n-1) - a(n-2) for n >= 2. (End)
MATHEMATICA
153*Range[0, 40]+18 (* or *) LinearRecurrence[{2, -1}, {18, 171}, 40] (* Harvey P. Dale, May 25 2016 *)
PROG
(Magma) [9*(17*n + 2): n in [0..50]]; // Vincenzo Librandi, Jul 23 2011
(PARI) a(n)=153*n+18 \\ Charles R Greathouse IV, Oct 05 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, May 21 2008
STATUS
approved