Maths Olympiad Prep

Library / /26 of 37

Combinatorics Difficulty 5.8 AIME, harder Find the answer Italy

Problem:

To enter the castle of Burian one must use a keyword consisting of at least 6 characters; moreover, a character can never be repeated two or more times consecutively, and a pair of consecutive characters cannot appear at another point in the keyword. On the keypad only the letters EE, NN and VV still work: how many different keywords can be attempted?

Pick one

Solution

Solution:

The answer is (C)\mathbf{(C)}. Consider the first two characters of the keyword: since they must be different, we have 32=63 \cdot 2 = 6 possibilities for choosing them. Without loss of generality, suppose they are NENE. At this point we can carry out a simple case analysis, finding that if the third character is VV there are 4 possibilities, of which 2 also reach a length of 7 characters (NEVENVNEVEN V, NEVENVNNEVEN VN, NEVNVENEVNV E, NEVNVENNEVNV EN); moreover, none of these admits any further valid continuation. If instead the third character is NN, the possibilities are only 2, one of 6 characters and one of 7 (NENVEVNENVEV and NENVEVNNENVEVN); indeed there exist some valid initial sequences that cannot be continued even up to 6 characters, such as for example NENVNNENVN.
At this point, for each of the 6 possibilities for the initial pair we have 6 (and always different among the various sets of 6, because indeed the initial pair distinguishes them), and so in total the possible keywords are 66=626 \cdot 6 = 6^{2}.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty) added by this project.