OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
A100035(a(n)) = 5 for n>3.
From G. C. Greubel, Jul 15 2017: (Start)
G.f.: (7 - 17 x + 6 x^2)/(-1 + x)^3.
E.g.f.: (2*x^2 + 3*x - 7)*exp(x). (End)
MATHEMATICA
Table[2*n^2 + n - 7, {n, 0, 50}] (* G. C. Greubel, Jul 15 2017 *)
LinearRecurrence[{3, -3, 1}, {-7, -4, 3}, 50] (* Harvey P. Dale, Mar 25 2021 *)
PROG
(PARI) a(n)=2*n^2+n-7 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Reinhard Zumkeller, Oct 31 2004
STATUS
approved