2
Part of 2023 Tuymaada Olympiad
Problems(2)
Magic trick on flipping a binary string
Source: Tuymaada 2023 Junior P2
7/12/2023
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.
combinatoricsJuniorBinaryTuymaada
Weird identity for a graph
Source: Tuymaada 2023 Senior P2
7/7/2023
In a graph with vertices every two vertices are connected by a unique path. For each two vertices and , let denote the distance
between and , i.e. the number of edges in the path connecting these two vertices, and denote the degree of a vertex . Let be the sum of pairwise distances between the vertices, and the sum of weighted pairwise distances: . Prove that .
combinatorics