OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
FORMULA
GCD(exponents in prime factorization of a(n)) = 2, cf. A124010. - Reinhard Zumkeller, Apr 13 2012
Sum_{n>=1} 1/a(n) = zeta(2) - 1 - Sum_{k>=2} mu(k)*(1 - zeta(2*k)) = 0.5444587396... - Amiram Eldar, Jul 02 2022
EXAMPLE
2^2 = 4, 3^2 = 9, 4^2 = 16 = 2^4 is not in the sequence, 5^2 = 25, 6^2 = 36, ...
MATHEMATICA
Select[Range[2, 100], GCD@@Last/@FactorInteger@#==1&]^2
PROG
(Haskell)
a153158 n = a153158_list !! (n-1)
a153158_list = filter ((== 2) . foldl1 gcd . a124010_row) [2..]
-- Reinhard Zumkeller, Apr 13 2012
(Python)
from sympy import mobius, integer_nthroot
def A153158(n):
def f(x): return int(n+1-sum(mobius(k)*(integer_nthroot(x, k)[0]-1) for k in range(2, x.bit_length())))
m, k = n, f(n)
while m != k:
m, k = k, f(k)
return m**2 # Chai Wah Wu, Aug 13 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 19 2008
EXTENSIONS
Edited by Ray Chandler, Dec 22 2008
STATUS
approved