login
A215144
a(n) = 19*n + 1.
2
1, 20, 39, 58, 77, 96, 115, 134, 153, 172, 191, 210, 229, 248, 267, 286, 305, 324, 343, 362, 381, 400, 419, 438, 457, 476, 495, 514, 533, 552, 571, 590, 609, 628, 647, 666, 685, 704, 723, 742, 761, 780, 799, 818, 837, 856, 875, 894, 913, 932, 951, 970, 989
OFFSET
0,2
FORMULA
From G. C. Greubel, Apr 19 2018: (Start)
a(n) = 2*a(n-1) - a(n-2).
G.f.: (1+18*x)/(1-x)^2.
E.g.f.: (1+19*x)*exp(x). (End)
MATHEMATICA
Range[1, 1000, 19]
19*Range[0, 60]+1 (* Harvey P. Dale, Nov 14 2014 *)
LinearRecurrence[{2, -1}, {1, 20}, 50] (* G. C. Greubel, Apr 19 2018 *)
PROG
(PARI) for(n=0, 50, print1(19*n + 1, ", ")) \\ G. C. Greubel, Apr 19 2018
(Magma) I:=[1, 20]; [n le 2 select I[n] else 2*Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Apr 19 2018
CROSSREFS
First differences of A051873.
Sequence in context: A132606 A054288 A238245 * A352108 A333234 A040380
KEYWORD
nonn,easy
AUTHOR
Jeremy Gardiner, Aug 04 2012
STATUS
approved