Magic trick on flipping a binary string
Source: Tuymaada 2023 Junior P2
July 12, 2023
combinatoricsJuniorBinaryTuymaada
Problem Statement
Serge and Tanya want to show Masha a magic trick. Serge leaves the room. Masha writes down a sequence , where all equal or . After that Tanya writes down a sequence , where all also equal or . Then Masha either does nothing or says “Mutabor” and replaces both sequences: her own sequence by , and Tanya’s sequence by . Masha’s sequence is covered by a napkin, and Serge is invited to the room. Serge should look at Tanya’s sequence and tell the sequence covered by the napkin. For what Serge and Tanya can prepare and show such a trick? Serge does not have to determine whether the word “Mutabor” has been pronounced.