OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (22,-145,264).
FORMULA
a(n) = 22*a(n-1) - 145*a(n-2) + 264*a(n-3) for n>2; a(0)=1, a(1)=22, a(2)=339. - Vincenzo Librandi, Jul 02 2013
a(n) = 19*a(n-1) - 88*a(n-2) + 3^n. - Vincenzo Librandi, Jul 02 2013
a(n) = (5*11^(n+2) - 8^(n+3) + 3^(n+3))/120. - Yahia Kahloune, Jul 06 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - 3 x) (1 - 8 x) (1 - 11 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Jul 02 2013 *)
LinearRecurrence[{22, -145, 264}, {1, 22, 339}, 30] (* Harvey P. Dale, Jan 22 2014 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-3*x)*(1-8*x)*(1-11*x)))); /* or */ I:=[1, 22, 339]; [n le 3 select I[n] else 22*Self(n-1)-145*Self(n-2)+264*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jul 02 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved