The Magician and his Assistant show trick. The Viewer writes on the board the sequence of $N$ digits. Then the Assistant covers some pair of adjacent digits so that they become invisible. Finally, the Magician enters the show, looks at the board and guesses the covered digits and their order. Find the minimal $N$ such that the Magician and his Assistant can agree in advance so that the Magician always guesses right
Problem
Source: 2021 Saudi Arabia Training Lists p25 https://artofproblemsolving.com/community/c2758131_2021_saudi_arabia_training_tests
Tags: combinatorics, number theory, game, game strategy