%I
%S 1,0,0,1,2,1,2,0,0,1,2,0,0,1,2,1,2,1,2,0,0,1,2,1,2,1,2,0,0,1,2,0,0,1,
%T 2,0,0,1,2,1,2,1,2,0,0,1,2,0,0,1,2,0,0,1,2,1,2,1,2,0,0,1,2,1,2,1,2,0,
%U 0,1,2,1,2,1,2,0,0,1,2,0,0,1,2,0,0,1,2,1,2,1,2,0,0,1,2,1,2,1,2,0,0,1,2,1,2
%N a(1)=1, a(2n)=(a(n)+1) mod 2; a(2n+1)=2*a(2n).
%F a(6n)=A035263(n)
%o (PARI) a(n)=if(n<2,1,if(n%2,2*a(n1),(a(n/2)+1)%2))
%Y A245187 is a very similar sequence.
%K nonn
%O 1,5
%A _Benoit Cloitre_, Mar 11 2004
