OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A265668(n,1). - Reinhard Zumkeller, Dec 13 2015
MATHEMATICA
a = Select[Range[300], SquareFreeQ[#]&]; Table[FactorInteger[a[[n]]][[1, 1]], {n, Length[a]}] (* Vladimir Joseph Stephan Orlovsky, Jan 30 2012 *)
PROG
(Haskell)
a073482 = a020639 . a005117 -- Reinhard Zumkeller, Feb 04 2012
(PARI) apply(x->(if (x==1, 1, vecmin(factor(x)[, 1]))), select(issquarefree, [1..150])) \\ Michel Marcus, Dec 17 2023
(Python)
from math import isqrt
from sympy import mobius, primefactors
def A073481(n):
def f(x): return n+x-sum(mobius(k)*(x//k**2) for k in range(1, isqrt(x)+1))
kmin, kmax = 0, 1
while f(kmax) > kmax:
kmax <<= 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return min(primefactors(kmax), default=1) # Chai Wah Wu, Aug 28 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 03 2002
EXTENSIONS
More terms from Jason Earls, Aug 06 2002
STATUS
approved