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 (7,-14,8).
FORMULA
a(n) = 3*(64*4^n+22*2^n-1) for n > 0, a(0) = 77.
G.f.: (77+358*x-1868*x^2+1424*x^3)/((1-x)*(1-2*x)*(1-4*x)).
G.f. for the sequence starting at a(1): 3*x*(299-982*x+680*x^2)/((1-x)* (1-2*x)*(1-4*x)).
MATHEMATICA
CoefficientList[Series[(77 + 358 x - 1868 x^2 + 1424 x^3)/((1 - x) (1 - 2 x) (1 - 4 x)), {x, 0, 40}], x] (* Vincenzo Librandi, Sep 24 2013 *)
Join[{77}, RecurrenceTable[{a[1]==897, a[2]==3333, a[n]==6a[n-1]-8a[n-2]- 9}, a[n], {n, 20}]] (* Harvey P. Dale, May 21 2019 *)
PROG
(PARI) {m=20; v=concat([77, 897, 3333], vector(m-3)); for(n=4, m, v[n]=6*v[n-1]-8*v[n-2]-9); v}
(Magma) [77] cat [3*(64*4^n+22*2^n-1): n in [1..25]]; // Vincenzo Librandi, Sep 24 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Apr 22 2010
STATUS
approved