OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..800
Index entries for linear recurrences with constant coefficients, signature (29,-252,736,-512).
FORMULA
a(n) = 30*16^n - 60*8^n + 30*4^n - 1.
From Colin Barker, Aug 26 2016: (Start)
a(n) = 29*a(n-1) - 252*a(n-2) + 736*a(n-3) - 512*a(n-4) for n > 3.
G.f.: -(1 - 148*x - 616*x^2 + 448*x^3)/((1-x)*(1-4*x)*(1-8*x)*(1-16*x)). (End)
E.g.f.: exp(x)*(30*exp(3*x)*(exp(12*x) - 2*exp(4*x) + 1) - 1). - Elmo R. Oliveira, Sep 16 2024
MAPLE
seq(bernoulli(4, 2^i), i=0..24);
MATHEMATICA
LinearRecurrence[{29, -252, 736, -512}, {-1, 119, 4319, 94079}, 20] (* Harvey P. Dale, Feb 06 2020 *)
PROG
(PARI) Vec(-(1-148*x-616*x^2+448*x^3)/((1-x)*(1-4*x)*(1-8*x)*(1-16*x)) + O(x^20)) \\ Colin Barker, Aug 26 2016
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved