OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (14,-59,94,-48).
FORMULA
a(n) = -(1/14)+(4/3)*2^n-(27/10)*3^n+(256/105)*8^n. - Antonio Alberto Olivares, May 12, 2012
a(0)=1, a(1)=14; for n>1, a(n) = 11*a(n-1) -24*a(n-2) +2^n - 1. - Vincenzo Librandi, Jul 05 2013
a(0)=1, a(1)=14, a(2)=137, a(3)=1186; for n>3, a(n) = 14*a(n-1) -59*a(n-2) +94*a(n-3) -48*a(n-4). - Vincenzo Librandi, Jul 05 2013
MATHEMATICA
CoefficientList[Series[1 / ((1 - x) (1 - 2 x) (1 - 3 x) (1 - 8 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Jul 05 2013 *)
LinearRecurrence[{14, -59, 94, -48}, {1, 14, 137, 1186}, 30] (* Harvey P. Dale, Mar 31 2018 *)
PROG
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-2*x)*(1-3*x)*(1-8*x)))); /* or */ I:=[1, 14, 137, 1186]; [n le 4 select I[n] else 14*Self(n-1)-59*Self(n-2)+94*Self(n-3)-48*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Jul 05 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved