OFFSET
0,3
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-1,-6).
FORMULA
a(n) = (-1)^n/6+2^n/3+3^n/6, n>0.
For n>4, a(n) = 6*a(n-1) - 9*a(n-2) - 4*a(n-3) + 12*a(n-4). - Gary W. Adamson, Jun 14 2006
MATHEMATICA
CoefficientList[Series[1+x (1-x-4x^2)/((1+x)(1-2x)(1-3x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{4, -1, -6}, {1, 1, 3, 7}, 30] (* Harvey P. Dale, Aug 23 2017 *)
PROG
(PARI) Vec((x-1)*(2*x^2+2*x-1)/((1+x)*(1-2*x)*(1-3*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012, corrected Nov 27 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Sep 02 2003
STATUS
approved