OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (12,-29,18).
FORMULA
a(n) = (81*9^n-32*2^n+7)/56. - Bruno Berselli, Feb 09 2011
a(n) = 9*a(n-1) + 2^(n+1) - 1. - Vincenzo Librandi, Feb 09 2011
a(0)=1, a(1)=12, a(2)=115, a(n) = 12*a(n-1) - 29*a(n-2) + 18*a(n-3). - Harvey P. Dale, Jun 05 2012
MAPLE
A016204 := proc(n) (9^(n+2)-2^(n+5)+7)/56 ; end proc:
seq(A016204(n), n=0..20) ; # R. J. Mathar, Feb 09 2011
MATHEMATICA
CoefficientList[Series[1/((1-x)(1-2x)(1-9x)), {x, 0, 40}], x] (* or *) LinearRecurrence[{12, -29, 18}, {1, 12, 115}, 40] (* Harvey P. Dale, Jun 05 2012 *)
PROG
(PARI) Vec(1/((1-x)*(1-2*x)*(1-9*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved