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
From G. C. Greubel, Nov 11 2018: (Start)
a(n) = 2*a(n-1) - a(n-2).
G.f.: (2 + 9*x)/(1 - x)^2.
E.g.f.: (2 + 11*x)*exp(x). (End)
MATHEMATICA
Range[2, 1000, 11] (* Vladimir Joseph Stephan Orlovsky, May 28 2011 *)
LinearRecurrence[{2, -1}, {2, 13}, 60] (* Harvey P. Dale, Sep 26 2020 *)
PROG
(Magma) [11*n+2: n in [0..60]]; // Vincenzo Librandi, Sep 02 2011
(PARI) a(n)=11*n+2 \\ Charles R Greathouse IV, Jul 10 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved