Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #23 Nov 28 2024 11:32:27
%S 1,1,1,1,1,2,1,2,1,1,2,2,1,1,2,1,1,1,1,1,2,1,2,2,1,1,1,1,2,2,1,2,1,1,
%T 1,1,1,2,1,1,2,2,1,1,2,1,2,1,1,1,1,1,1,2,1,1,2,2,2,2,1,1,2,1,1,1,1,1,
%U 1,2,1,2,1,1,2,2,1,2,1,2,2,2,2,2,1,2,1,1,2,2
%N a(n) = t(5n), where t = A001285 (Thue-Morse sequence).
%H Paolo Xausa, <a href="/A026517/b026517.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 ThueMorse[Range[0, 500, 5]] + 1 (* _Paolo Xausa_, Nov 28 2024 *)
%o (PARI) a(n)=1+hammingweight(5*n)%2 \\ _Charles R Greathouse IV_, May 09 2016
%Y Cf. A001285.
%K nonn
%O 0,6
%A _Clark Kimberling_
%E Name and Pari code corrected by _Sean A. Irvine_, Oct 05 2019