OFFSET
1,1
FORMULA
EXAMPLE
a(6) = 2 + 3 + 4 + 5 + 6 + 7 = 27.
a(7) = 2 + 3 + 4 + 5 + 6 + 7 + 9 = 36.
MATHEMATICA
Accumulate[With[{no=60}, Complement[Range[no], Range[Floor[Power[no, (3)^-1]]]^3]]] (* Harvey P. Dale, Feb 14 2011 *)
PROG
(Python)
from sympy import integer_nthroot
def A109470(n): return ((m:=n+(k:=integer_nthroot(n, 3)[0])+int(n>=(k+1)**3-k))*(m+1)>>1)-((r:=integer_nthroot(m, 3)[0])*(r+1)>>1)**2 # Chai Wah Wu, Jun 17 2024
(PARI) a(n) = sum(i=1, n, i + sqrtnint(i + sqrtnint(i, 3), 3)); \\ Michel Marcus, Jun 20 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Aug 28 2005
STATUS
approved