OFFSET
0,2
LINKS
Karl V. Keller, Jr., Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 29*n + 1.
G.f.: (1+28*x)/(1-x)^2. - Vincenzo Librandi, Oct 26 2014 [corrected by Georg Fischer, May 24 2019]
E.g.f.: (1 + 29*x)*exp(x). - G. C. Greubel, May 24 2019
EXAMPLE
For n = 5, 29n + 1 = 145 + 1 = 146.
MATHEMATICA
29Range[0, 60] + 1 (* Alonso del Arte, Oct 09 2014 *)
CoefficientList[Series[(1+28x)/(1-x)^2, {x, 0, 60}], x] (* Vincenzo Librandi, Oct 26 2014 *)
LinearRecurrence[{2, -1}, {1, 30}, 50] (* Harvey P. Dale, Oct 08 2019 *)
PROG
(Python)
for n in range(61):
print(29*n+1, end=', ')
(PARI) vector(60, n, n--; 29*n+1) \\ Derek Orr, Oct 08 2014
(Magma) [29*n+1: n in [0..60]]; // Vincenzo Librandi, Oct 26 2014
(Sage) [29*n+1 for n in (0..60)] # G. C. Greubel, May 24 2019
(GAP) List([0..60], n-> 29*n+1) # G. C. Greubel, May 24 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Karl V. Keller, Jr., Oct 08 2014
STATUS
approved