PARI/GP, 35 bytes
n->[hammingweight(x)%2|x<-[0..n-1]]
PARI/GP, 35 bytes
n->[hammingweight(x)%2|x<-[0..n-1]]
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchangen->[hammingweight(x)%2|x<-[0..n-1]]
n->[hammingweight(x)%2|x<-[0..n-1]]