OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (21,-134,264).
FORMULA
a(n) = (10*4^(n+1) - 21*6^(n+1) + 11^(n+2))/35. - R. J. Mathar, Jun 29 2013
a(0)=1, a(1)=21, a(2)=307; for n>2, a(n) = 21*a(n-1) -134*a(n-2) +264*a(n-3). - Vincenzo Librandi, Jul 03 2013
a(n) = 17*a(n-1) -66*a(n-2) +4^n. - Vincenzo Librandi, Jul 03 2013
MATHEMATICA
CoefficientList[Series[1/((1-4x)(1-6x)(1-11x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jul 03 2013 *)
LinearRecurrence[{21, -134, 264}, {1, 21, 307}, 20] (* Harvey P. Dale, Jan 24 2014 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-4*x)*(1-6*x)*(1-11*x)))); /* or */ I:=[1, 21, 307]; [n le 3 select I[n] else 21*Self(n-1)-134*Self(n-2)+264*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jul 03 2013
(PARI) my(x='x+O('x^20)); Vec(1/((1-4*x)*(1-6*x)*(1-11*x))) \\ G. C. Greubel, Apr 27 2019
(Sage) (1/((1-4*x)*(1-6*x)*(1-11*x))).series(x, 20).coefficients(x, sparse=False) # G. C. Greubel, Apr 27 2019
(GAP) List([0..20], n-> (10*4^(n+1) - 21*6^(n+1) + 11^(n+2))/35) # G. C. Greubel, Apr 27 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved