OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
From Amiram Eldar, Nov 23 2025: (Start)
Sum_{n>=1} 1/a(n) = 1 + Pi^2/6 - 35745/(1382*Pi^2) = 0.02429317734362177637... . (End)
EXAMPLE
Table of n, a(n) for select n:
n a(n)
-----------------------------------
1 144 = 12^2 = 2^4 * 3^2
2 324 = 18^2 = 2^2 * 3^4
3 400 = 20^2 = 2^4 * 5^2
4 576 = 24^2 = 2^6 * 3^2
5 784 = 28^2 = 2^4 * 7^2
6 1600 = 40^2 = 2^6 * 5^2
7 1936 = 44^2 = 2^4 * 11^2
8 2025 = 45^2 = 3^4 * 5^2
9 2304 = 48^2 = 2^8 * 3^2
10 2500 = 50^2 = 2^2 * 5^4
11 2704 = 52^2 = 2^4 * 13^2
14 3600 = 60^2 = 2^4 * 3^2 * 5^2
MATHEMATICA
Select[Range[155], And[#1 > 1, 0 < #2 < #1] & @@ {Length[#], Count[#[[;; , -1]], 1]} &[FactorInteger[#]] &]^2
PROG
(Python)
from math import isqrt
from sympy import integer_nthroot
from oeis_sequences.OEISsequences import bisection, squarefreepi
def A389947(n):
def f(x):
c, l, y = n+x-1, 0, isqrt(x)
j = isqrt(y)
while j>1:
k2 = integer_nthroot(y//j**2, 3)[0]+1
w = squarefreepi(k2-1)
c += j*(w-l)
l, j = w, isqrt(y//k2**3)
return c-y-l+squarefreepi(integer_nthroot(y, 3)[0])+squarefreepi(y)
return bisection(f, n, n) # Chai Wah Wu, Dec 01 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Nov 17 2025
STATUS
approved
