Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A215145
a(n) = 20*n + 1.
6
1, 21, 41, 61, 81, 101, 121, 141, 161, 181, 201, 221, 241, 261, 281, 301, 321, 341, 361, 381, 401, 421, 441, 461, 481, 501, 521, 541, 561, 581, 601, 621, 641, 661, 681, 701, 721, 741, 761, 781, 801, 821, 841, 861, 881, 901, 921, 941, 961, 981
OFFSET
0,2
FORMULA
From G. C. Greubel, Apr 19 2018: (Start)
a(n) = 2*a(n - 1) - a(n - 2).
G.f.: (1 + 19*x)/(1 - x)^2.
E.g.f.: (20*x + 1)*exp(x). (End)
MATHEMATICA
Range[1, 1001, 20]
LinearRecurrence[{2, -1}, {1, 21}, 50] (* G. C. Greubel, Apr 19 2018 *)
PROG
(PARI) for(n=0, 50, print1(20*n + 1, ", ")) \\ G. C. Greubel, Apr 19 2018
(Magma) I:=[1, 21]; [n le 2 select I[n] else 2*Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Apr 19 2018
(Scala) (1 to 1001 by 20).toList // Alonso del Arte, Feb 20 2020
CROSSREFS
Sequence in context: A320775 A104393 A261522 * A154576 A173960 A147273
KEYWORD
nonn,easy
AUTHOR
Jeremy Gardiner, Aug 04 2012
STATUS
approved