Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #18 Jan 24 2023 02:50:55
%S 4,8,9,12,16,18,20,24,25,27,28,32,40,44,45,48,49,50,52,54,56,60,63,64,
%T 68,75,76,80,81,84,88,90,92,96,98,99,104,112,116,117,120,121,124,125,
%U 126,128,132,135,136,140,147,148,150,152,153,156,160,162,164,168,169,171,172,175,176,184,188,189,192,198,204,207,208,212,220,224,225,228
%N Numbers that are either multiples of 4 with their odd part squarefree, or that are not multiples of 4 and not squarefree.
%C Numbers k for which the sum A166486(k)+A353627(k) [equally: A166486(k)+A355689(k)] is odd.
%C The asymptotic density of this sequence is 3/4 - 4/Pi^2 = 0.344715... . - _Amiram Eldar_, Jan 24 2023
%H Amiram Eldar, <a href="/A359468/b359468.txt">Table of n, a(n) for n = 1..10000</a>
%e 8 is included because it is a multiple of 4, and A000265(8) = 1 is squarefree.
%e 12 is included because it is a multiple of 4, and A000265(12) = 3 is squarefree.
%e 225 = 3^2 * 5^2 is included because it is not a multiple of 4, and it is not squarefree.
%t 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 *)
%o (PARI) isA359468(n) = A359467(n);
%Y Cf. A000265, A166486, A355689, A359467 (characteristic function).
%Y Positions of odd terms in A342419.
%Y Differs from A190641 and A327877 for the first time at n=77, as a(77) = 225 is not included in them.
%K nonn
%O 1,1
%A _Antti Karttunen_, Jan 02 2023