Maths Olympiad Prep

Library / /665 of 740

, 2019

Combinatorics Difficulty 5.6 AIME, harder Prove it United States

Problem:

Consider sequences aa of the form a=(a1,a2,,a20)a = (a_1, a_2, \ldots, a_{20}) such that each term aia_i is either 00 or 11. For each such sequence aa, we can produce a sequence b=(b1,b2,,b20)b = (b_1, b_2, \ldots, b_{20}), where
bi={ai+ai+1i=1ai1+ai+ai+11<i<20ai1+aii=20 b_i = \begin{cases} a_i + a_{i+1} & i = 1 \\ a_{i-1} + a_i + a_{i+1} & 1 < i < 20 \\ a_{i-1} + a_i & i = 20 \end{cases}
How many sequences bb are there that can be produced by more than one distinct sequence aa?

Solution

Solution:

Let the two sequences be bb and b^\hat{b}. Then, observe that given aa, if b1=b^1b_1 = \hat{b}_1 and b2=b^2b_2 = \hat{b}_2, then b=b^b = \hat{b} (since aa will uniquely determine the remaining elements in bb and b^\hat{b}). Thus, bb and b^\hat{b} must start with (1,0,)(1, 0, \ldots) and (0,1,)(0, 1, \ldots), respectively (without loss of generality).

Note that a3a_3 is either 11 (in which case b3=b^3=0b_3 = \hat{b}_3 = 0) or 22 (in which case b3=b^3=1b_3 = \hat{b}_3 = 1). Moreover, b4,b5b_4, b_5 must be the same as b1,b2b_1, b_2 (and the same for b^\hat{b}) for the sequences to generate the same a3,a4a_3, a_4. We can then pick a6,a9,a_6, a_9, \ldots

Observe, that the last elements also have to be (,1,0)(\ldots, 1, 0) for bb and (,0,1)(\ldots, 0, 1) for b^\hat{b}. Thus, the answer is nonzero only for sequence lengths of 2(mod3)2 \pmod{3}, in which case, our answer is 2k2^k, where the length is 3k+23k + 2 (since we have two choices for every third element).

Here, since N=20=3×6+2N = 20 = 3 \times 6 + 2, the answer is 26=642^6 = 64.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.