%I #17 Mar 06 2020 03:34:18
%S 0,1,2,1,2,3,2,3,0,1,2,3,2,3,0,3,0,1,2,3,0,3,0,1,0,1,2,1,2,3,2,3,0,3,
%T 0,1,2,3,0,3,0,1,0,1,2,3,0,1,0,1,2,1,2,3,2,3,0,3,0,1,0,1,2,3,0,1,0,1,
%U 2,1,2,3,0,1,2,1,2,3,2,3,0,1,2,3,2,3,0,3,0,1,2,3,0,3,0,1,0,1,2,3,0,1,0,1,2
%N A generalized Thue-Morse sequence.
%H J.-P. Allouche and Jeffrey Shallit, <a href="http://www.cs.uwaterloo.ca/~shallit/Papers/ubiq.ps">The Ubiquitous Prouhet-Thue-Morse Sequence</a>, in C. Ding. T. Helleseth and H. Niederreiter, eds., Sequences and Their Applications: Proceedings of SETA '98, Springer-Verlag, 1999, pp. 1-16.
%H Michael Gilleland, <a href="/selfsimilar.html">Some Self-Similar Integer Sequences</a>
%F a(n) = A053735(n) mod 4.
%Y Cf. A001285, A010060.
%K nonn,easy
%O 0,3
%A _N. J. A. Sloane_
%E More terms from Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Jun 15 2001