login
Parity of A329697.
4

%I #8 Jan 08 2023 22:48:32

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

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

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

%N Parity of A329697.

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

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

%F a(n) = A000035(A329697(n)).

%o (PARI)

%o A329697(n) = if(!bitand(n, n-1), 0, 1+A329697(n-(n/vecmax(factor(n)[, 1]))));

%o A359583(n) = (A329697(n)%2);

%Y Characteristic function of A359584, whose complement A359585 gives the positions of 0's.

%Y Cf. A000035, A329697, A359581.

%K nonn

%O 1

%A _Antti Karttunen_, Jan 07 2023