|
|
A178750
|
|
Partial sums of floor(5^n/9).
|
|
1
|
|
|
0, 0, 2, 15, 84, 431, 2167, 10847, 54249, 271262, 1356331, 6781678, 33908414, 169542094, 847710496, 4238552509, 21192762578, 105963812925, 529819064661, 2649095323341, 13245476616743, 66227383083756, 331136915418825, 1655684577094172, 8278422885470908, 41392114427354588
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
a(n) = round((5*5^n - 18*n - 18)/36).
a(n) = floor((5*5^n - 18*n - 5)/36).
a(n) = ceiling((5*5^n - 18*n - 31)/36).
a(n) = a(n-6) + 434*5^(n-5) - 3, n > 6.
a(n) = 7*a(n-1) - 11*a(n-2) + 4*a(n-3) + 7*a(n-4) - 11*a(n-5) + 5*a(n-6), n > 5.
G.f.: x^2*(2 + x + x^2) / ( (1-5*x)*(1+x)*(1-x+x^2)*(1-x)^2 ).
|
|
EXAMPLE
|
a(7) = 0 + 2 + 13 + 69 + 347 + 1736 + 8680 = 10847.
|
|
MAPLE
|
A178750 := proc(n) add( floor(5^i/9), i=0..n) ; end proc:
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) vector(30, n, n--; ((5*5^n - 18*n - 5)/36)\1) \\ G. C. Greubel, Jan 24 2019
(Sage) [floor((5*5^n - 18*n - 5)/36) for n in (0..30)] # G. C. Greubel, Jan 24 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|