%I #7 Mar 16 2019 21:45:26
%S 0,1,1,0,1,0,1,0,0,1,1,0,1,0,0,0,1,0,1,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,
%T 0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,
%U 0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0
%N a(n) = 1 if n > 1 and A156552(n) is a square or a twice a square, 0 otherwise.
%H Antti Karttunen, <a href="/A324823/b324823.txt">Table of n, a(n) for n = 1..65537</a>
%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>
%H <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a>
%F a(n) = A323243(n) mod 2.
%F For n > 1, a(n) = A053866(A156552(n)).
%o (PARI)
%o A156552(n) = {my(f = factor(n), p2 = 1, res = 0); for(i = 1, #f~, p = 1 << (primepi(f[i, 1]) - 1); res += (p * p2 * (2^(f[i, 2]) - 1)); p2 <<= f[i, 2]); res}; \\ From A156552 by _David A. Corneth_
%o A324823(n) = if(1==n,0, n=A156552(n); (issquare(n) || (!(n%2) && issquare(n/2))));
%Y Characteristic function (for n > 1) of A324813.
%Y Cf. A053866, A156552, A323243, A324822, A324824, A324825 (inverse Möbius transform).
%K nonn
%O 1
%A _Antti Karttunen_, Mar 16 2019