A026535 a(n) = t(1+5n) where t = A001285 (Thue-Morse sequence).
2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 2
Offset: 0
Keywords
Programs
-
PARI
a(n)=1+hammingweight(5*n+1)%2 \\ Charles R Greathouse IV, May 09 2016
Extensions
Name and Pari corrected by Sean A. Irvine, Oct 06 2019