A relative of the Thue-Morse sequence