login
A309082
a(n) = n - floor(n/2^3) + floor(n/3^3) - floor(n/4^3) + ...
4
1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11, 12, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 21, 22, 23, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 34, 35, 36, 36, 37, 38, 39, 40, 41, 42, 43, 43, 44, 45, 46, 47, 48, 50, 51, 51, 52, 53, 54, 55, 56, 57, 58, 57, 58, 59, 60, 61, 62, 63, 64, 64, 65, 66, 67
OFFSET
1,2
LINKS
FORMULA
G.f.: (1/(1 - x)) * Sum_{k>=1} (-1)^(k+1) * x^(k^3)/(1 - x^(k^3)).
a(n) ~ 3*zeta(3)*n/4. - Vaclav Kotesovec, Oct 12 2019
MATHEMATICA
Table[Sum[(-1)^(k + 1) Floor[n/k^3], {k, 1, n}], {n, 1, 75}]
nmax = 75; CoefficientList[Series[1/(1 - x) Sum[(-1)^(k + 1) x^(k^3)/(1 - x^(k^3)), {k, 1, Floor[nmax^(1/3)] + 1}], {x, 0, nmax}], x] // Rest
Table[Sum[Boole[IntegerQ[d^(1/3)] && OddQ[d]], {d, Divisors[n]}] - Sum[Boole[IntegerQ[d^(1/3)] && EvenQ[d]], {d, Divisors[n]}], {n, 1, 75}] // Accumulate
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jul 11 2019
STATUS
approved