A026517 a(n) = t(5n), where t = A001285 (Thue-Morse sequence).
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
Keywords
Links
- Paolo Xausa, Table of n, a(n) for n = 0..10000
- Michael Gilleland, Some Self-Similar Integer Sequences.
Crossrefs
Cf. A001285.
Programs
-
Mathematica
ThueMorse[Range[0, 500, 5]] + 1 (* Paolo Xausa, Nov 28 2024 *)
-
PARI
a(n)=1+hammingweight(5*n)%2 \\ Charles R Greathouse IV, May 09 2016
Extensions
Name and Pari code corrected by Sean A. Irvine, Oct 05 2019