OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (23,-150,216).
FORMULA
From Vincenzo Librandi, Oct 09 2011: (Start)
a(n) = (168*12^n + 2^(n+1)- 5*3^(2*n+3))/35.
a(n) = 21*a(n-1) - 108*a(n-2) + 2^n.
a(n) = 23*a(n-1) - 150*a(n-2) + 216*a(n-3), n >= 3. (End)
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-9x)(1-12x)), {x, 0, 20}], x] (* or *) LinearRecurrence[{23, -150, 216}, {1, 23, 379}, 20] (* Harvey P. Dale, Apr 08 2013 *)
PROG
(Magma) [(168*12^n +2^(n+1)-5*3^(2*n+3))/35 : n in [0..20]]; // Vincenzo Librandi, Oct 09 2011
(PARI) Vec(1/((1-2*x)*(1-9*x)*(1-12*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved