OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (13,-50,56).
FORMULA
a(n) = (2/5)*2^n - (8/3)*4^n + (49/15)*7^n. - Antonio Alberto Olivares, Feb 06 2010
a(n) = 13*a(n-1) - 50*a(n-2) + 56*a(n-3). - Vincenzo Librandi, Jun 25 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - 2 x) (1 - 4 x) (1 - 7 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jun 25 2013 *)
LinearRecurrence[{13, -50, 56}, {1, 13, 119}, 20] (* Harvey P. Dale, Jul 26 2016 *)
PROG
(Magma) m:=20; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-2*x)*(1-4*x)*(1-7*x)))); /* or */ I:=[1, 13, 119]; [n le 3 select I[n] else 13*Self(n-1)-50*Self(n-2)+56*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Jun 25 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved