OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1120
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
G.f.: (2+5*x)/(1-x)^2.
E.g.f.: exp(x)*(2 + 7*x). - Stefano Spezia, Mar 21 2021
a(n) = 2*a(n-1) - a(n-2). - Wesley Ivan Hurt, Mar 22 2021
MATHEMATICA
Range[2, 1000, 7] (* Vladimir Joseph Stephan Orlovsky, May 27 2011 *)
LinearRecurrence[{2, -1}, {2, 9}, 60] (* Harvey P. Dale, Sep 07 2015 *)
PROG
(Magma) [ 7*n+2: n in [0..60] ];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved