OFFSET
1,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 2*a(n-1) - a(n-2).
G.f.: 180*x*(649+3401*x)/(1-x)^2.
E.g.f.: 180*(3401 - (3401 - 4050*x)*exp(x)). - G. C. Greubel, Jan 28 2022
MATHEMATICA
LinearRecurrence[{2, -1}, {116820, 845820}, 40]
PROG
(Magma) I:=[116820, 845820]; [n le 2 select I[n] else 2*Self(n-1)-Self(n-2): n in [1..40]];
(PARI) a(n)=729000*n-612180 \\ Charles R Greathouse IV, Dec 23 2011
(Sage) [180*(4050*n - 3401) for n in (1..30)] # G. C. Greubel, Jan 28 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 17 2009
STATUS
approved