login
A026535
a(n) = t(1+5n) where t = A001285 (Thue-Morse sequence).
0
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,1
PROG
(PARI) a(n)=1+hammingweight(5*n+1)%2 \\ Charles R Greathouse IV, May 09 2016
CROSSREFS
Sequence in context: A321004 A258595 A233544 * A080462 A194823 A098396
KEYWORD
nonn
EXTENSIONS
Name and Pari corrected by Sean A. Irvine, Oct 06 2019
STATUS
approved