add term to generate the Thue-Morse sequence