OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (15,-56,60).
FORMULA
a(n) = 2^n/2 - 9*3^n/7 + 25*10^n/14. - Antonio Alberto Olivares, Feb 03 2010
a(n) = 15*a(n-1) - 56*a(n-2) + 60*a(n-3). - Vincenzo Librandi, Jun 24 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - 2 x) (1 - 3 x) (1 - 10 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jun 24 2013 *)
LinearRecurrence[{15, -56, 60}, {1, 15, 169}, 30] (* Harvey P. Dale, Jul 07 2013 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-2*x)*(1-3*x)*(1-10*x)))); // Vincenzo Librandi, Jun 24 2013
(Magma) I:=[1, 15, 169]; [n le 3 select I[n] else 15*Self(n-1)-56*Self(n-2)+60*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jun 24 2013
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
STATUS
approved