OFFSET
0,4
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000 (terms 0..1000 from Harry J. Smith)
FORMULA
a(n) = n - floor(CubicRoot(n)) = n-A048766(n).
G.f.: x/(1 - x)^2 - (1/(1 - x))*Sum_{k>=1} x^(k^3). - Ilya Gutkovskiy, Feb 16 2017
PROG
(PARI) { for (n=0, 1000, write("b064524.txt", n, " ", n - floor(n^(1/3) + 0.00000000001)) ) } \\ Harry J. Smith, Sep 17 2009
(PARI) a(n) = n - sqrtnint(n, 3); \\ Michel Marcus, Jun 18 2024
(Python)
from sympy import integer_nthroot
def A064524(n): return n-integer_nthroot(n, 3)[0] # Chai Wah Wu, Jun 18 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 07 2001
STATUS
approved