OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..400
Index entries for linear recurrences with constant coefficients, signature (256,256,-65536).
FORMULA
a(n) = 2^8*a(n-1) + 2^8*a(n-2) - (2^8)^2*a(n-3), with n>2, a(0)=1, a(1)=136, a(2)=16576.
a(n) = 2^(4n-3)*(2^(4n+1)-(2^4-1)*(-1)^n+2^4+5).
G.f.: (1-120*x-18496*x^2)/((1-16*x)*(1+16*x)*(1-256*x)).
MATHEMATICA
CoefficientList[Series[(1 - 120 x - 18496 x^2) / ((1 - 16 x) (1 + 16 x) (1 - 256 x)), {x, 0, 30}], x] (* Vincenzo Librandi, Sep 04 2013 *)
PROG
(Magma) I:=[1, 136, 16576]; [n le 3 select I[n] else 256*Self(n-1)+256*Self(n-2)-65536*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Sep 04 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Yosu Yurramendi, May 16 2013
STATUS
approved