OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (17,-66,72).
FORMULA
a(n) = (2/5)*2^(n-1) - 3^(n-1) + (8/5)*12^(n-1). - Antonio Alberto Olivares, Feb 06 2010
a(n) = 17*a(n-1) - 66*a(n-2) + 72*a(n-3). - Vincenzo Librandi, Jun 25 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - 2 x) (1 - 3 x) (1 - 12 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jun 25 2013 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-2*x)*(1-3*x)*(1-12*x)))); /* or */I:=[1, 17, 223]; [n le 3 select I[n] else 17*Self(n-1)-66*Self(n-2)+72*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jun 25 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved