OFFSET
1,2
COMMENTS
With the exception of the first term, each term appears exactly two times.
For how many n < m is A004709(n) < A277802(n)? It seems about m for large m. - David A. Corneth, Nov 01 2016
LINKS
Peter Kagey, Table of n, a(n) for n = 1..10000
MATHEMATICA
Min /@ Transpose@ {#, Table[k = 1; While[! IntegerQ[(k #)^(1/3)], k++] &@ #[[n]]; k, {n, Length@ #}]} &@ Select[Range@ 80, FreeQ[FactorInteger@ #, {_, k_ /; k > 2}] &] (* Michael De Vlieger, Nov 10 2016, after Jan Mangaldan at A004709 *)
PROG
\\ List of the first about n terms (probably a bit more).
(PARI) lista(n) = {n = ceil(1.21*n); my(l=List([1]), f); forprime(p=2, n, for(i=1, #l, if(l[i]*p<=n, listput(l, l[i] *p); if(l[i] * p^2<=n, listput(l, l[i]*p^2))))); listsort(l); for(i=2, #l, f=factor(l[i]); f[, 2] = vector(#f[, 2], i, 3-(f[i, 2]%3))~; l[i] = min(l[i], factorback(f))); l} \\ David A. Corneth, Nov 01 2016
(Python)
from math import prod
from sympy import mobius, factorint, integer_nthroot
def A277803(n):
def f(x): return n+x-sum(mobius(k)*(x//k**3) for k in range(1, integer_nthroot(x, 3)[0]+1))
m, k = n, f(n)
while m != k:
m, k = k, f(k)
return min(m, prod(p**(-e%3) for p, e in factorint(m).items())) # Chai Wah Wu, Aug 05 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Oct 31 2016
STATUS
approved