OFFSET
1,1
COMMENTS
Numbers whose prime factorization has only odd primes, exponents that are smaller than 3 and at least one exponent that equals 2.
The asymptotic density of this sequence is 4/(7*zeta(3)) - 2/(3*zeta(2)) = 0.070090906905338896329... .
In general, the asymptotic density of odd k-free numbers (numbers that are not divisible by a k-th power other than 1) that are not (k-1)-free, for k >= 2, is 2^(k-1)/((2^k-1) * zeta(k)) - 2^(k-2)/((2^(k-1)-1) * zeta(k-1)).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range[1, 1000, 2], Max[FactorInteger[#][[;; , 2]]] == 2 &]
PROG
(PARI) isok(k) = k % 2 && if(k == 1, 0, vecmax(factor(k)[, 2]) == 2);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Mar 08 2025
STATUS
approved
