OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (13,-54,72).
FORMULA
a(n) = 6^(n+1) - 2^(2*n+3) + 3^(n+1). - Vincenzo Librandi, Mar 20 2011
a(n) = 10*a(n-1) - 24*a(n-2) + 3^n, n >= 2. - Vincenzo Librandi, Mar 20 2011
G.f.: 1/((1-3*x)*(1-4*x)*(1-6*x)) = -3/(1-3*x) + 8/(1-4*x) - 6/(1-6*x). - Wolfdieter Lang, May 19 2014
MAPLE
MATHEMATICA
Table[6^(n + 1) - 2^(2*n + 3) + 3^(n + 1), {n, 0, 20}] (* Wesley Ivan Hurt, May 15 2014 *)
CoefficientList[Series[1/((1-3x)(1-4x)(1-6x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{13, -54, 72}, {1, 13, 115}, 30] (* Harvey P. Dale, Jul 18 2021 *)
PROG
(Magma) [6^(n+1)-2^(2*n+3)+3^(n+1): n in [0..20]]; // Wesley Ivan Hurt, May 15 2014
(PARI) vector(30, n, n--; 6^(n+1)-2^(2*n+3)+3^(n+1)) \\ G. C. Greubel, Sep 15 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 11 1999
STATUS
approved