OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (48,-512).
FORMULA
a(n) = 48*a(n-1) - 512*a(n-2) for n > 1; a(0) = 0, a(1) = 4.
G.f.: 4*x/((1-16*x)*(1-32*x)).
E.g.f.: (exp(32*x) - exp(16*x))/4. G. C. Greubel, Aug 05 2017
EXAMPLE
a(2) = (2^2-1)*4^(2*2-1) = 3*4^3 = 192.
MATHEMATICA
Table[(2^n-1)4^(2n-1), {n, 0, 30}] (* or *) LinearRecurrence[{48, -512}, {0, 4}, 30] (* Harvey P. Dale, Jan 22 2016 *)
PROG
(Magma) [ (2^n-1)*4^(2*n-1): n in [0..15] ];
(PARI) x='x+O('x^50); concat([0], Vec(4*x/((1-16*x)*(1-32*x)))) \\ G. C. Greubel, Aug 05 2017
(Python)
def A163839(n): return (1<<n)-1<<(n<<2)-2 if n else 0 # Chai Wah Wu, Mar 14 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Aug 05 2009
STATUS
approved