OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (17,-94,168).
FORMULA
a(n) = 8*4^n/3 -18*6^n +49*7^n/3. - R. J. Mathar, Jun 29 2013
a(0)=1, a(1)=17, a(2)=195; for n>2, a(n) = 17*a(n-1) -94*a(n-2) +168*a(n-3). - Vincenzo Librandi, Jul 02 2013
a(n) = 13*a(n-1) -42*a(n-2) +4^n. - Vincenzo Librandi, Jul 02 2013
MAPLE
MATHEMATICA
CoefficientList[Series[1 / ((1 - 4 x) (1 - 6 x) (1 - 7 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jul 02 2013 *)
LinearRecurrence[{17, -94, 168}, {1, 17, 195}, 30] (* Harvey P. Dale, Aug 20 2017 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-4*x)*(1-6*x)*(1-7*x)))); /* or */ I:=[1, 17, 195]; [n le 3 select I[n] else 17*Self(n-1)-94*Self(n-2)+168*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jul 02 2013
(PARI) Vec(1/((1-4*x)*(1-6*x)*(1-7*x)) + O(x^30)) \\ Michel Marcus, Jan 28 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved