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 (14, -61, 84).
FORMULA
a(n) = 14*a(n-1) - 61*a(n-2) + 84*a(n-3); a(0)=1, a(1)=14, a(2)=135. - Harvey P. Dale, May 10 2012
a(n) = 9*3^n/4 - 16*4^n/3 + 49*7^n/12. - R. J. Mathar, Jun 23 2013
a(n) = 11*a(n-1) - 28*a(n-2) + 3^n. - Vincenzo Librandi, Jun 26 2013
MATHEMATICA
CoefficientList[Series[1/((1-3x)(1-4x)(1-7x)), {x, 0, 20}], x] (* or *) LinearRecurrence[{14, -61, 84}, {1, 14, 135}, 20] (* Harvey P. Dale, May 10 2012 *)
PROG
(PARI) Vec(1/((1-3*x)*(1-4*x)*(1-7*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
(Magma) I:=[1, 14, 135]; [n le 3 select I[n] else 14*Self(n-1)-61*Self(n-2)+84*Self(n-3): n in [1..20]]; /* or */ m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1/((1-3*x)*(1-4*x)*(1-7*x))))); // Vincenzo Librandi, Jun 26 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved