On sequences related to binary partition function and the Thue-Morse sequence