MathDB
Italian Mathematical Olympiad 2022 - Problem 5

Source:

May 7, 2022
combinatoricsItaly

Problem Statement

Robot "Mag-o-matic" manipulates 101101 glasses, displaced in a row whose positions are numbered from 11 to 101101. In each glass you can find a ball or not. Mag-o-matic only accepts elementary instructions of the form (a;b,c)(a;b,c), which it interprets as "consider the glass in position aa: if it contains a ball, then switch the glasses in positions bb and cc (together with their own content), otherwise move on to the following instruction" (it means that a,b,ca,\,b,\,c are integers between 11 and 101101, with bb and cc different from each other but not necessarily different from aa). A \emph{programme} is a finite sequence of elementary instructions, assigned at the beginning, that Mag-o-matic does one by one. A subset S{0,1,2,,101}S\subseteq \{0,\,1,\,2,\dots,\,101\} is said to be \emph{identifiable} if there exists a programme which, starting from any initial configuration, produces a final configuration in which the glass in position 11 contains a ball if and only if the number of glasses containing a ball is an element of SS. (a) Prove that the subset SS of the odd numbers is identifiable. (b) Determine all subsets SS that are identifiable.