OFFSET
1,2
COMMENTS
Fixed points of A385349.
Odd terms in A007422.
Also 1 with odd numbers with exactly 4 divisors. - David A. Corneth, Jun 26 2025
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Multiplicative Perfect Number.
MAPLE
q:= n-> n=1 or n::odd and numtheory[tau](n)=4:
select(q, [$1..500])[]; # Alois P. Heinz, Jun 26 2025
MATHEMATICA
PROG
(PARI) isok(k) = vecprod(select((x->((x%2)==1) && (x<k)), divisors(k))) == k; \\ Michel Marcus, Jun 26 2025
(PARI) is(n) = (n == 1) || (bitand(n, 1) && numdiv(n) == 4) \\ David A. Corneth, Jun 26 2025
(Python)
from math import isqrt
from sympy import primepi, integer_nthroot, primerange
def A385350(n):
def f(x): return int(n-1+x-primepi(integer_nthroot(x, 3)[0])+(t:=primepi(s:=isqrt(x)))+(t*(t-1)>>1)-sum(primepi(x//k) for k in primerange(3, s+1)))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Jun 27 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Jun 26 2025
STATUS
approved
