OFFSET
1,1
COMMENTS
Subsequence of A301517 and A374459 and first differs from them at n = 85: A374459(85) = A374459(85) = 864 = 2^5 * 3^3 is not a term of this sequence.
First differs from its subsequence A381312 at n = 21: a(21) = 216 = 2^3 * 3^3 is not a term of A381312.
Numbers whose prime factorization has one distinct exponent that is larger than 1 and it is odd.
Numbers that are a product of a squarefree number (A005117) and a coprime nonsquarefree number that is a squarefree number raised to an odd power (A384518).
The asymptotic density of this sequence is Sum_{k>=1} (d(2*k+1)-1)/zeta(2) = 0.095609588748823080455..., where d(k) = (zeta(2*k)/zeta(k)) * Product_{p prime} (1 + 2/p^k + Sum_{i=k+1..2*k-1} (-1)^(i+1)/p^i).
LINKS
MATHEMATICA
q[n_] := Module[{u = Union[Select[FactorInteger[n][[;; , 2]], # > 1 &]]}, Length[u] == 1 && OddQ[u[[1]]]]; Select[Range[250], q]
PROG
(PARI) isok(k) = {my(e = select(x -> (x > 1), Set(factor(k)[, 2]))); #e == 1 && e[1] % 2; }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Jun 01 2025
STATUS
approved
