OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = a(n-1) + 99 with a(1) = 1.
a(0) = 1, a(1) = 100, a(n) = 2*a(n-1) - a(n-2). - Harvey P. Dale, Apr 09 2012
From G. C. Greubel, Apr 26 2022: (Start)
G.f.: (1 + 98*x)/(1-x)^2.
E.g.f.: (1 + 99*x)*exp(x). (End)
MATHEMATICA
99*Range[0, 50] + 1 (* or *) LinearRecurrence[{2, -1}, {1, 100}, 50] (* Harvey P. Dale, Apr 09 2012 *)
PROG
(Magma) [99*n+1: n in [0..50]]; // G. C. Greubel, Apr 26 2022
(SageMath) [99*n+1 for n in (0..50)] # G. C. Greubel, Apr 26 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mark Dols, Jan 28 2010
EXTENSIONS
Offset corrected by Harvey P. Dale, Apr 09 2012
STATUS
approved