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) = 4^(n+6)-1985*2^(n-1) for n > 2.
G.f.: (603+1113*x+35272*x^2-60952*x^3-21856*x^4) / ((1-2*x)*(1-4*x)).
G.f. for the sequence starting at a(3): 4*x^3*(63551-123132*x) / ((1-2*x)*(1-4*x)).
MATHEMATICA
CoefficientList[Series[(603 + 1113 x + 35272 x^2 - 60952 x^3 - 21856 x^4)/((1 - 2 x) (1 - 4 x)), {x, 0, 40}], x] (* Vincenzo Librandi, Sep 24 2013 *)
LinearRecurrence[{6, -8}, {603, 4731, 58834, 254204, 1032696}, 20] (* Harvey P. Dale, May 26 2019 *)
PROG
(PARI) {m=18; v=concat([603, 4731, 58834, 254204, 1032696], vector(m-5)); for(n=6 , m, v[n]=6*v[n-1]-8*v[n-2]); v}
(Magma) [603, 4731, 58834] cat [4^(n+6)-1985*2^(n-1): n in [3..25]]; // Vincenzo Librandi, Sep 24 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, May 12 2010
STATUS
approved