OFFSET
1,2
COMMENTS
Subsequence of A036537 and first differs from it at n = 22546: A036537(22546) = 32768 = 2^15 is not a term in this sequence.
Numbers whose set of distinct prime factorization exponents is a subset of {1} U A000668.
The asymptotic density of this sequence is Product_{p prime} (1-1/p) * (1 + 1/p + Sum_{k>=1} 1/p^A000668(k)) = 0.68781424907634032654... .
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
q[k_] := AllTrue[FactorInteger[k][[;; , 2]], # == 1 || (PrimeQ[#] && #+1 == 2^IntegerExponent[#+1, 2]) &]; Select[Range[100], q]
PROG
(PARI) isexp(e) = e == 1 || (isprime(e) && e+1 == 1 << valuation(e + 1, 2));
isok(k) = {my(e = factor(k)[, 2]); for(i = 1, #e, if(!isexp(e[i]), return(0))); 1; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Jan 18 2026
STATUS
approved
