OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-16,12).
FORMULA
G.f.: (-10*x^3+2*x^2+3*x-1)/((2*x-1)^2*(3*x-1)). - Harvey P. Dale, Dec 31 2014
MATHEMATICA
Join[{1}, LinearRecurrence[{7, -16, 12}, {4, 10, 28}, 30]] (* Harvey P. Dale, Dec 31 2014 *)
Join[{1}, Table[4 3^n / 3 - 5 0^n / 6 - (n-1) 2^(n-1), {n, 1, 40}]] (* Vincenzo Librandi, Jan 01 2015 *)
PROG
(Magma) [4*3^n/3-5*0^n/6-(n-1)*2^(n-1): n in [0..30]]; // Vincenzo Librandi, Jan 01 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 01 2003
STATUS
approved