OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(0)=6, a(1)=17; for n>1, a(n) = 2*a(n-1) - a(n-2). - Harvey P. Dale, Apr 14 2015
From G. C. Greubel, Sep 19 2019: (Start)
G.f.: (6 + 5*x)/(1-x)^2.
E.g.f.: (6 + 11*x)*exp(x). (End)
MAPLE
seq(11*n+6, n=0..60); # G. C. Greubel, Sep 19 2019
MATHEMATICA
Range[6, 1000, 11] (* Vladimir Joseph Stephan Orlovsky, May 28 2011 *)
LinearRecurrence[{2, -1}, {6, 17}, 60] (* or *) NestList[11 + #&, 6, 60] (* Harvey P. Dale, Apr 14 2015 *)
PROG
(Magma) [11*n+6: n in [0..60]]; // Vincenzo Librandi, Sep 03 2011
(PARI) a(n)=11*n+6 \\ Charles R Greathouse IV, Oct 07 2015
(Sage) [11*n+6 for n in (0..60)] # G. C. Greubel, Sep 19 2019
(GAP) List([0..60], n-> 11*n+6); # G. C. Greubel, Sep 19 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved