login
a(n) = 1 if n is not a multiple of 4 and has an odd number of prime factors (with multiplicity), otherwise a(n) = 0.
6

%I #8 Dec 29 2022 15:11:46

%S 0,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,1,1,0,0,0,1,0,0,0,1,0,1,1,1,0,0,0,

%T 0,0,1,0,0,0,1,1,1,0,1,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,1,0,1,0,0,1,1,0,

%U 0,1,1,0,1,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,1,0,1,0,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1

%N a(n) = 1 if n is not a multiple of 4 and has an odd number of prime factors (with multiplicity), otherwise a(n) = 0.

%H Antti Karttunen, <a href="/A359372/b359372.txt">Table of n, a(n) for n = 1..100000</a>

%F a(n) = A166486(n) - A359370(n).

%F a(n) = [A358839(n) < 0], where [ ] is the Iverson bracket.

%o (PARI) A359372(n) = ((n%4)&&(bigomega(n)%2));

%Y Characteristic function of A359373.

%Y Cf. A001222, A166486, A358839, A359372.

%K nonn

%O 1

%A _Antti Karttunen_, Dec 28 2022