Magic trick with black and white cards with numbers
Source: Mexico 2023/4
November 14, 2023
combinatoricscombinatorics proposedMagician
Problem Statement
Let be a positive integer. For every number from to , there is a card with this number and which is either black or white.
A magician can repeatedly perform the following move: For any two tiles with different number and different colour, he can replace the card with the smaller number by one identical to the other card.
For instance, when and the initial configuration is , the magician can choose on the first move to obtain and then on the second move to obtain .
Determine in terms of all possible lengths of sequences of moves from any possible initial configuration to any configuration in which no more move is possible.