login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A215137
a(n) = 17*n + 1.
3
1, 18, 35, 52, 69, 86, 103, 120, 137, 154, 171, 188, 205, 222, 239, 256, 273, 290, 307, 324, 341, 358, 375, 392, 409, 426, 443, 460, 477, 494, 511, 528, 545, 562, 579, 596, 613, 630, 647, 664, 681, 698, 715, 732, 749, 766, 783, 800, 817, 834, 851, 868, 885, 902, 919, 936, 953, 970
OFFSET
0,2
FORMULA
From G. C. Greubel, Apr 19 2018: (Start)
a(n) = 2*a(n-1) - a(n-2).
G.f.: (1+16*x)/(1-x)^2.
E.g.f.: (17*x + 1)*exp(x). (end)
MATHEMATICA
Range[1, 100, 17]
LinearRecurrence[{2, -1}, {1, 18}, 50] (* G. C. Greubel, Apr 19 2018 *)
PROG
(PARI) for(n=0, 50, print1(17*n + 1, ", ")) \\ G. C. Greubel, Apr 19 2018
(Magma) I:=[1, 18]; [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
KEYWORD
nonn,easy
AUTHOR
Jeremy Gardiner, Aug 04 2012
STATUS
approved