|
|
A178577
|
|
Partial sums of round(5^n/9).
|
|
1
|
|
|
0, 1, 4, 18, 87, 434, 2170, 10851, 54254, 271268, 1356337, 6781684, 33908420, 169542101, 847710504, 4238552518, 21192762587, 105963812934, 529819064670, 2649095323351, 13245476616754, 66227383083768, 331136915418837
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
a(n) = round((5*5^n + 9)/36).
a(n) = floor((5*5^n + 23)/36).
a(n) = ceiling((5*5^n - 5)/36).
a(n) = a(n-6) + 434*5^(n-5), n > 5.
a(n) = 6*a(n-1) - 5*a(n-2) - a(n-3) + 6*a(n-4) - 5*a(n-5), n > 4.
G.f.: (-x^3 - 2*x^2 + x)/((x-1)*(x+1)*(5*x-1)*(x^2-x+1)).
|
|
EXAMPLE
|
a(6) = 0 + 1 + 3 + 14 + 69 + 347 + 1736 = 2170.
|
|
MAPLE
|
A178577 := proc(n) add( round(5^i/9), i=0..n) ; end proc:
|
|
MATHEMATICA
|
Table[Round[(5^(n+1) + 9)/36], {n, 0, 40}] (* G. C. Greubel, Jan 30 2019 *)
|
|
PROG
|
(PARI) vector(40, n, n--; round((5^(n+1) + 9)/36)) \\ G. C. Greubel, Jan 30 2019
(Sage) [round((5^(n+1) + 9)/36) for n in (0..40)] # G. C. Greubel, Jan 30 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,less
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|