Italian Mathematical Olympiad 2022 - Problem 5
Source:
May 7, 2022
combinatoricsItaly
Problem Statement
Robot "Mag-o-matic" manipulates glasses, displaced in a row whose positions are numbered from to . In each glass you can find a ball or not. Mag-o-matic only accepts elementary instructions of the form , which it interprets as
"consider the glass in position : if it contains a ball, then switch the glasses in positions and (together with their own content), otherwise move on to the following instruction"
(it means that are integers between and , with and different from each other but not necessarily different from ). A \emph{programme} is a finite sequence of elementary instructions, assigned at the beginning, that Mag-o-matic does one by one.
A subset 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 contains a ball if and only if the number of glasses containing a ball is an element of .
(a) Prove that the subset of the odd numbers is identifiable.
(b) Determine all subsets that are identifiable.