|
|
A224521
|
|
Numbers a(n) with property a(n) + a(n+5) = 2^(n+5) - 1 = A000225(n+5).
|
|
1
|
|
|
0, 1, 3, 7, 15, 31, 62, 124, 248, 496, 992, 1985, 3971, 7943, 15887, 31775, 63550, 127100, 254200, 508400, 1016800, 2033601, 4067203, 8134407, 16268815, 32537631, 65075262, 130150524, 260301048, 520602096, 1041204192, 2082408385, 4164816771, 8329633543
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) + a(n+5) = 2^(n+5) - 1.
G.f.: x/((1-x)*(1+x)*(1-2*x)*(1-x+x^2-x^3+x^4)).
a(n) = +3*a(n-1) -2*a(n-2) -1*a(n-5) +3*a(n-6) -2*a(n-7). (End)
|
|
MATHEMATICA
|
CoefficientList[Series[x/((1-x)*(1-2*x)*(1+x^5)), {x, 0, 40}], x] (* G. C. Greubel, Oct 11 2017 *)
LinearRecurrence[{3, -2, 0, 0, -1, 3, -2}, {0, 1, 3, 7, 15, 31, 62}, 40] (* Harvey P. Dale, Apr 29 2020 *)
|
|
PROG
|
(PARI) my(x='x+O('x^40)); concat([0], Vec(x/((1-x)*(1-2*x)*(1+x^5)))) \\ G. C. Greubel, Oct 11 2017
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( x/((1-x)*(1-2*x)*(1+x^5)) )); // G. C. Greubel, Jun 06 2019
(Sage) (x/((1-x)*(1-2*x)*(1+x^5))).series(x, 40).coefficients(x, sparse=False) # G. C. Greubel, Jun 06 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|