OFFSET
0,3
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Kival Ngaokrajang, Illustration of initial terms
Index entries for linear recurrences with constant coefficients, signature (9,-20,12).
FORMULA
a(n) = 5*A016200(n-2) for n >= 2.
a(n) = 9*6^(n-2) - 5*2^(n-2) + 1.
a(n) = (4-5*2^n+6^n)/4. G.f.: -5*x^2 / ((x-1)*(2*x-1)*(6*x-1)). - Colin Barker, Apr 18 2014
MAPLE
MATHEMATICA
CoefficientList[Series[-5 x^2/((x - 1) (2 x - 1) (6 x - 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Apr 19 2014 *)
LinearRecurrence[{9, -20, 12}, {0, 0, 5}, 30] (* Harvey P. Dale, Oct 10 2017 *)
PROG
(PARI) a(n)=if(n<=0, 0, a(n-1)*6+5*(2^(n-1)-1))
for(n=0, 100, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kival Ngaokrajang, Apr 18 2014
EXTENSIONS
Typo in DATA fixed by Colin Barker, Apr 18 2014
STATUS
approved