%I #18 Jul 19 2021 01:23:25
%S 0,1,0,1,2,1,0,1,0,1,2,1,2,1,0,1,2,1,2,3,2,1,2,1,2,3,2,3,2,1,2,1,2,3,
%T 2,1,2,1,0,1,2,1,2,1,0,1,0,1,2,1,0,1,2,1,2,1,0,1,2,1,0,1,0,1,2,1,0,1,
%U 2,1,2,1,0,1,0,1,2,1,0,1,0,-1,0,1,0,1,0
%N a(n) is the number of 0's minus the number of 1's among the first n terms of A337546.
%C See A339976 for the positions of 0's.
%H Rémy Sigrist, <a href="/A339975/b339975.txt">Table of n, a(n) for n = 0..10000</a>
%H Rémy Sigrist, <a href="/A339975/a339975.txt">C program for A339975</a>
%F a(n) = Sum_{k = 1..n} (-1)^A337546(n).
%F a(n) = n - 2*Sum_{k = 1..n} A337546(n).
%e For n = 5, the first 5 terms of A337546 are 0, 1, 0, 0, 1, so a(5) = 3 - 2 = 1.
%o (C) See Links section.
%Y Cf. A294448, A337546, A339976.
%K sign
%O 0,5
%A _Rémy Sigrist_, Dec 25 2020