OFFSET
0,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6, -8).
FORMULA
a(n) = 64*4^n-7*2^n.
G.f.: (57-100*x)/((1-2*x)*(1-4*x)).
MATHEMATICA
CoefficientList[Series[(57 - 100 x)/((1 - 2 x) (1 - 4 x)), {x, 0, 40}], x] (* Vincenzo Librandi, Sep 24 2013 *)
LinearRecurrence[{6, -8}, {57, 242}, 30] (* Harvey P. Dale, Jun 08 2016 *)
PROG
(PARI) {m=21; v=concat([57, 242], vector(m-2)); for(n=3, m, v[n]=6*v[n-1]-8*v[n-2]); v}
(Magma) [64*4^n-7*2^n: n in [0..25]]; // Vincenzo Librandi, Sep 24 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Apr 22 2010
STATUS
approved
