OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
From G. C. Greubel, Jun 03 2018: (Start)
a(n) = 2*a(n-1) - a(n-2).
G.f.: 2*(6 + 5*x)/(1 - x)^2.
E.g.f.: 2*(6 + 11*x)*exp(x). (End)
MATHEMATICA
Range[12, 1500, 22] (* Vladimir Joseph Stephan Orlovsky, Jun 01 2011 *)
LinearRecurrence[{2, -1}, {12, 34}, 60] (* Harvey P. Dale, Sep 06 2024 *)
PROG
(Magma) [22*n + 12: n in [0..50]]; // Vincenzo Librandi, Aug 08 2011
(PARI) for(n=0, 50, print1(2*(11*n + 6), ", ")) \\ G. C. Greubel, Jun 03 2018
CROSSREFS
KEYWORD
nonn,less,easy
AUTHOR
Paul Curtz, Sep 10 2008
EXTENSIONS
Edited by R. J. Mathar, Oct 24 2008
Offset changed from 1 to 0 by Vincenzo Librandi, Aug 08 2011
STATUS
approved