login

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”).

A026517
a(n) = t(5n), where t = A001285 (Thue-Morse sequence).
3
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, 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, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 1, 2, 2
OFFSET
0,6
MATHEMATICA
ThueMorse[Range[0, 500, 5]] + 1 (* Paolo Xausa, Nov 28 2024 *)
PROG
(PARI) a(n)=1+hammingweight(5*n)%2 \\ Charles R Greathouse IV, May 09 2016
CROSSREFS
Cf. A001285.
Sequence in context: A373989 A329618 A374033 * A072047 A327521 A282870
KEYWORD
nonn
EXTENSIONS
Name and Pari code corrected by Sean A. Irvine, Oct 05 2019
STATUS
approved