OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 3/4 - 4/Pi^2 = 0.344715... . - Amiram Eldar, Jan 24 2023
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
q[n_] := Module[{e = IntegerExponent[n, 2], o}, o = n/2^e; sqf = SquareFreeQ[o]; (e > 1 && sqf) || (e < 2 && ! sqf)]; Select[Range[250], q] (* Amiram Eldar, Jan 24 2023 *)
PROG
(PARI) isA359468(n) = A359467(n);
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 02 2023
STATUS
approved