Task

Create a Thue-Morse sequence.



See also
   YouTube entry: The Fairest Sharing Sequence Ever
   YouTube entry: Math and OCD - My story with the Thue-Morse sequence
   Task: Fairshare between two and more


ThueMorse(num, iter){
	if !iter
		return num
	for i, n in StrSplit(num)
		opp .= !n
	res := ThueMorse(num . opp, --iter)
	return res
}