OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2, -1).
FORMULA
From G. C. Greubel, Dec 07 2018: (Start)
G.f.: (31*x - 30)/(1-x)^2
E.g.f.: (x - 30)*exp(x).
a(n) = 2*a(n-1) - a(n-2). (End)
MATHEMATICA
Range[-30, 59] (* Alonso del Arte, Dec 06 2018 *)
PROG
(PARI) vector(30, n, n--; n-30) \\ G. C. Greubel, Dec 07 2018
(Magma) [n-30: n in [0..30]]; // G. C. Greubel, Dec 07 2018
(Sage) [n-30 for n in range(30)] # G. C. Greubel, Dec 07 2018
(GAP) List([0..30], n -> n-30); # G. C. Greubel, Dec 07 2018
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved