OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (64,64,-4096).
FORMULA
a(n) = 64*a(n-1) + 64*a(n-2) - (64^2)*a(n-3) with n>2, a(0)=1, a(1)=36, a(2)=1072.
a(n) = 2^(3n-3)*(2^(3n+1)-(2^3-1)*(-1)^n+2^3+5) = 8^(n-1)*(2^(3n+1)-7*(-1)^n+13).
G.f.: (1-28*x-1296*x^2)/((1-8*x)*(1+8*x)*(1-64*x)).
MATHEMATICA
LinearRecurrence[{64, 64, -4096}, {1, 36, 1072}, 20] (* Bruno Berselli, May 17 2013 *)
CoefficientList[Series[(1 - 28 x - 1296 x^2) / ((1 - 8 x) (1 + 8 x) (1 - 64 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Sep 04 2013 *)
PROG
(Magma) I:=[1, 36, 1072]; [n le 3 select I[n] else 64*Self(n-1)+64*Self(n-2)-4096*Self(n-3): n in [1..25]]; // Vincenzo Librandi, Sep 04 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Yosu Yurramendi, May 16 2013
STATUS
approved