OFFSET
1,2
COMMENTS
First differs from its subsequence A005117 at n = 79: a(79) = 128 is not a squarefree number.
Numbers whose prime factorization contains only exponents that are odd odious numbers (A092246).
The asymptotic density of this sequence is Product_{p prime} f(1/p) = 0.61156148494581943994..., where f(x) = (1-x) * (1 + x/(2*(1-x^2)) + (Product_{k>=0} (1-(-x)^(2^k)) - Product_{k>=0} (1-x^(2^k))))/2.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..12232 (terms below 20000)
Vladimir Shevelev, S-exponential numbers, Acta Arithmetica, Vol. 175 (2016), pp. 385-395.
MATHEMATICA
odQ[n_] := OddQ[n] && OddQ[DigitCount[n, 2, 1]]; Select[Range[150], AllTrue[FactorInteger[#][[;; , 2]], odQ] &]
PROG
(PARI) is(n) = {my(f = factor(n)); for (i = 1, #f~, if(!(f[i, 2]%2 && hammingweight(f[i, 2])%2), return (0))); 1; }
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Amiram Eldar, Dec 01 2023
STATUS
approved