OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
Table of n, a(n) for select n:
n a(n)
-------------------------------------------
1 216 = 6^3 = s(1) = 2^3 * 3^3
2 1000 = 10^3 = s(2) = 2^3 * 5^3
3 1296 = 6^4 = s(3) = 2^4 * 3^4
4 1728 = 12^3 = t(1) = 2^6 * 3^3
5 2744 = 14^3 = s(4) = 2^3 * 7^3
6 3375 = 15^3 = s(5) = 3^3 * 5^3
7 5832 = 18^3 = t(2) = 2^3 * 3^6
8 7776 = 6^5 = s(6) = 2^5 * 3^5
9 8000 = 20^3 = t(3) = 2^6 * 5^3
10 9261 = 21^3 = s(7) = 3^3 * 7^3
11 10000 = 10^4 = s(8) = 2^4 * 5^4
17 27000 = 30^3 = s(11) = 2^3 * 3^3 * 5^3
MATHEMATICA
nn = 2^41; Union@ Flatten@ Table[n = a^5*b^4*c^3; Set[{k, m, r}, {#1, #2, If[FreeQ[#3/#2, 1], GCD @@ (#3/#2), 0]} & @@ {Length[#], GCD @@ #, #}] &[FactorInteger[n][[;; , -1]] ]; If[And[k > 1, m > 1], If[r != 1, n, Nothing], Nothing], {c, Surd[nn, 3]}, {b, Surd[nn/(c^3), 4]}, {a, Surd[nn/(b^4*c^3), 5] } ]
PROG
(Python)
from math import isqrt
from sympy import integer_nthroot, primepi, factorint
from oeis_sequences.OEISsequences import bisection, squarefreepi
def A390905(n):
def g(x):
c, l, j = x-squarefreepi(integer_nthroot(x, 3)[0])-primepi(x), 0, isqrt(x)
while j>1:
k2 = integer_nthroot(x//j**2, 3)[0]+1
w = squarefreepi(k2-1)
c += j*(l-w)
l, j = w, isqrt(x//k2**3)
return c+l
def f(x): return n+x-sum(g(integer_nthroot(x, k)[0]) for k in range(2, x.bit_length()))+(y:=isqrt(x))-sum(isqrt(y//k**3) for k in range(1, integer_nthroot(y, 3)[0]+1) if all(d<=1 for d in factorint(k).values()))-primepi(y)
return bisection(f, n, n) # Chai Wah Wu, Dec 02 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Nov 24 2025
STATUS
approved
