OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
G.f.: (11*x+8)/(1-x)^2. - Vincenzo Librandi, May 14 2012
a(n) = 2*a(n-1) - a(n-2). - Vincenzo Librandi, May 14 2012
MATHEMATICA
Range[8, 1500, 19] (* Vladimir Joseph Stephan Orlovsky, Jun 01 2011 *)
CoefficientList[Series[(8+11*x)/(x-1)^2, {x, 0, 60}], x] (* Vincenzo Librandi, May 14 2012 *)
LinearRecurrence[{2, -1}, {8, 27}, 60] (* Harvey P. Dale, Jun 17 2020 *)
PROG
(Magma) I:=[8, 27]; [n le 2 select I[n] else 2*Self(n-1)-Self(n-2): n in [1..60]]; // Vincenzo Librandi, May 14 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 15 2009
EXTENSIONS
Offset corrected by Jon E. Schoenfield, Jun 17 2010
STATUS
approved