OFFSET
1,1
COMMENTS
Subsequence of A013929 and first differs from it at n = 27: A013929(27) = 72 = 2^3 * 3^2 is not a term of this sequence.
Numbers whose prime factorization has one distinct exponent that does not equal 1.
Numbers that are a product of a squarefree number (A005117) and a power of a different squarefree number that is not squarefree.
The asymptotic density of this sequence is Sum_{k>=2} (d(k)-1)/zeta(2) = 0.36113984820338109927..., where d(k) = zeta(k) * Product_{p prime} (1 + Sum_{i=k+1..2*k-1} (-1)^i/p^i), if k is even, and 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) if k is odd > 1.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eckford Cohen, Arithmetical notes. III. Certain equally distributed sets of integers, Pacific Journal of Mathematics, Vol. 12, No. 1 (1962), pp. 77-84.
EXAMPLE
12 = 2^2 * 3 is a term because its powerful part, 4 = 2^2, is a power of a squarefree number, 2, that is larger than 1.
MATHEMATICA
q[n_] := Count[Union[FactorInteger[n][[;; , 2]]], _?(# > 1 &)] == 1; Select[Range[200], q]
PROG
(PARI) is(k) = {my(e = select(x -> (x > 1), Set(factor(k)[, 2]))); #e == 1; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Aug 01 2024
STATUS
approved