|
|
A178744
|
|
Partial sums of floor(4^n/9).
|
|
2
|
|
|
0, 0, 1, 8, 36, 149, 604, 2424, 9705, 38832, 155340, 621373, 2485508, 9942048, 39768209, 159072856, 636291444, 2545165797, 10180663212, 40722652872, 162890611513, 651562446080, 2606249784348, 10424999137421, 41699996549716, 166799986198896
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) = round((8*4^n - 24*n - 17)/54).
a(n) = floor(4*(4^n - 3*n - 1)/27).
a(n) = ceiling((4*4^n - 12*n - 13)/27).
a(n) = round(4*(4^n - 3*n - 1)/27).
a(n) = a(n-3) + (7*4^(n-2) - 4)/3 , n > 3.
a(n) = 5*a(n-1) - 4*a(n-2) + a(n-3) - 5*a(n-4) + 4*a(n-5), n > 5.
G.f.: x^2*(1+3*x) / ( (1-4*x)*(1+x+x^2)*(1-x)^2 ).
|
|
EXAMPLE
|
a(4) = 0 + 1 + 7 + 28 = 36.
|
|
MAPLE
|
A178744 := proc(n) add( floor(4^i/9), i=0..n) ; end proc:
|
|
MATHEMATICA
|
Table[Floor[4*(4^n-3*n-1)/27], {n, 0, 30}] (* G. C. Greubel, Jan 24 2019 *)
|
|
PROG
|
(Magma) [&+[Floor(4^k/9): k in [0..n]]: n in [0..25]]; // Bruno Berselli, Apr 26 2011
(PARI) vector(30, n, n--; (4*(4^n-3*n-1)/27)\1) \\ G. C. Greubel, Jan 24 2019
(Sage) [floor(4*(4^n-3*n-1)/27) for n in (0..30)] # G. C. Greubel, Jan 24 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|