OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (19,-103,165).
FORMULA
a(0)=1, a(1)=19, a(2)=258; for n>2, a(n) = 19*a(n-1) -103*a(n-2) +165*a(n-3). - Vincenzo Librandi, Jul 01 2013
a(n) = 16*a(n-1) -55*a(n-2) +3^n. - Vincenzo Librandi, Jul 01 2013
a(n) = (11^(n+2) - 4*5^(n+2) + 3^(n+3))/48. [Yahia Kahloune, Jul 06 2013]
MATHEMATICA
CoefficientList[Series[1 / ((1 - 3 x) (1 - 5 x) (1 - 11 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Jul 01 2013 *)
PROG
(Magma) I:=[1, 19, 258]; [n le 3 select I[n] else 19*Self(n-1)-103*Self(n-2)+165*Self(n-3): n in [1..20]]; /* or */ m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-3*x)*(1-5*x)*(1-11*x)))); // Vincenzo Librandi, Jul 01 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved