%I #21 Oct 07 2019 14:45:31
%S 1,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,2,1,1,1,2,2,2,1,2,1,1,
%T 1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,2,2,2,1,1,1,2,1,1,1,1,1,
%U 1,1,1,2,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,2,1,1
%N a(n) = t(3n), where t = A001285 (Thue-Morse sequence).
%H Michael De Vlieger, <a href="/A026492/b026492.txt">Table of n, a(n) for n = 0..10000</a>
%H Michael Gilleland, <a href="/selfsimilar.html">Some Self-Similar Integer Sequences</a>
%t Array[1 + Mod[DigitCount[3 #, 2, 1], 2] &, 105, 0] (* _Michael De Vlieger_, Oct 03 2019 *)
%o (PARI) a(n)=1+hammingweight(3*n)%2 \\ _Charles R Greathouse IV_, May 09 2016
%Y Cf. A001285, A026498, A026513.
%K nonn
%O 0,8
%A _Clark Kimberling_
%E Name and Pari adapted to match offset in A001285 by _Sean A. Irvine_, Oct 02 2019
|