OFFSET
1,1
COMMENTS
Subsequence of A252849 and first differs from it at n = 22: A252849(22) = 64 = 2^6 is not a term of this sequence.
Subsequence of A375229 and differs from it by not having the terms 1, 256, 512, 768, 1024, ... .
Numbers whose prime factorization has least one exponent that equals 2 or 3 and no higher exponent.
Numbers k such that 2 <= A051903(k) <= 3.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Sum_{k=1..n} a(k) ~ Pi^4 * n^2 / (12*(15 - Pi^2)). - Vaclav Kotesovec, Apr 11 2025
MATHEMATICA
Select[Range[200], 2 <= Max[FactorInteger[#][[;; , 2]]] <= 3 &]
PROG
(PARI) isok(k) = if(k == 1, 0, my(emax = vecmax(factor(k)[, 2])); emax > 1 && emax < 4);
(Python)
from math import isqrt
from sympy import mobius, integer_nthroot
def A382967(n):
def bisection(f, kmin=0, kmax=1):
while f(kmax) > kmax: kmax <<= 1
kmin = kmax >> 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return kmax
def f(x): return int(n+x+sum(mobius(k)*(x//k**2-x//k**4) for k in range(1, integer_nthroot(x, 4)[0]+1))+sum(mobius(k)*(x//k**2) for k in range(integer_nthroot(x, 4)[0]+1, isqrt(x)+1)))
return bisection(f, n, n) # Chai Wah Wu, Apr 11 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Apr 10 2025
STATUS
approved
