OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (24,-164, 240).
FORMULA
From Vincenzo Librandi, Oct 09 2011: (Start)
a(n) = (12^(n+2)+2^n-125*10^n)/20.
a(n) = 22*a(n-1) - 120*a(n-2) + 2^n.
a(n) = 24*a(n-1) - 164*a(n-2) + 240*a(n-3), n>=3. (End)
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-10x)(1-12x)), {x, 0, 20}], x] (* or *) LinearRecurrence[{24, -164, 240}, {1, 24, 412}, 20] (* Harvey P. Dale, Aug 30 2014 *)
PROG
(Magma) [(12^(n+2)+2^n-125*10^n)/20 : n in [0..20]]; // Vincenzo Librandi, Oct 09 2011
(PARI) Vec(1/((1-2*x)*(1-10*x)*(1-12*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved