login
a(n) = 1 if A355690(n) is positive (+1), otherwise 0.
4

%I #9 Feb 18 2023 22:48:42

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

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

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

%N a(n) = 1 if A355690(n) is positive (+1), otherwise 0.

%H Antti Karttunen, <a href="/A359605/b359605.txt">Table of n, a(n) for n = 1..65537</a>

%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

%F a(n) = A355690(n) + A359606(n)

%F a(n) = A359590(n) - A359606(n).

%o (PARI)

%o A010892(n) = ([1, 1, 0, -1, -1, 0][n%6 + 1]);

%o A355690(n) = { my(f = factor(n)); prod(k=1, #f~, if(2==f[k,1], A010892(1+f[k, 2]), -(1==f[k, 2]))); };

%o A359605(n) = (A355690(n)>0);

%Y Cf. A355690, A359590, A359606.

%K nonn,easy

%O 1

%A _Antti Karttunen_, Jan 12 2023