ThueMorse¶ Returns the parity of the number of 1-bits in the binary expansion of n. $ wo 'ThueMorse[5]' 0 It threads over a list. $ wo 'ThueMorse[{1, 2, 3}]' {1, 1, 0}