OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-17,-2,24).
FORMULA
a(n) = (1/30)*(20*2^n - 135*3^n + 144*4^n + (-1)^n).
MATHEMATICA
CoefficientList[Series[(1-x)/((1+x)(1-2x)(1-3x)(1-4x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{8, -17, -2, 24}, {1, 7, 39, 191}, 30] (* Harvey P. Dale, Oct 22 2019 *)
PROG
(Magma) [(1/30)* (20*2^n - 135*3^n + 144*4^n + (-1)^n): n in [0..30]]; // Vincenzo Librandi, Oct 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved