OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..100
Index entries for linear recurrences with constant coefficients, signature (12,-21,10).
FORMULA
G.f.: (1-19*x^2)/((1-x)^2*(1-10*x)). - Vincenzo Librandi, Jul 06 2012
a(n) = 11*a(n-1) -10*a(n-2) -18. - Vincenzo Librandi, Jul 06 2012
MATHEMATICA
CoefficientList[Series[(1-19*x^2)/((1-x)^2*(1-10*x)), {x, 0, 40}], x] (* Vincenzo Librandi, Jul 06 2012 *)
LinearRecurrence[{12, -21, 10}, {1, 12, 104}, 20] (* Harvey P. Dale, Dec 01 2015 *)
PROG
(Magma) I:=[1, 12]; [n le 2 select I[n] else 11*Self(n-1)-10*Self(n-2)-18: n in [1..20]]; // Vincenzo Librandi, Jul 06 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 26 2010
STATUS
approved