OFFSET
0,1
COMMENTS
Take the Thue-Morse sequence 0,1,1,0,1,0,0,1,... and insert (1,0) after each 0 and (0,1) after each 1. This gives : 0,(1,0),1,(0,1),1,(0,1),0,(1,0),1,(0,1),0,(1,0),... and sequence begins 0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,... - Benoit Cloitre, Nov 10 2003
FORMULA
a(n) = (hammingweight(n\3) + (n%3)) % 2. - Kevin Ryde, Sep 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 25 2003
EXTENSIONS
Entries and description corrected by Kevin Ryde, Sep 09 2017
STATUS
approved