Maths Olympiad Prep

Library / /137 of 397

Combinatorics Difficulty 5.5 AIME, harder Prove it Taiwan

Let n,kn, k be positive integers with n>kn > k. There are two people, A and B:
1. A first secretly writes down an nn-digit 01 sequence on a piece of paper, and then writes on the blackboard all length-nn 01 sequences that differ from this 01 sequence in exactly kk positions. For example, if n=3,k=1n=3, k=1, and the 01 sequence on the paper is 101, then A must write 001, 111 and 100 on the blackboard.
2. Next, B looks at all the sequences on the blackboard and tries to guess what the sequence on the paper is. Each time he may guess one nn-digit 01 sequence, and A must honestly tell him whether he guessed correctly.
For each pair (n,k)(n, k), find the smallest positive integer mm such that B has a guessing strategy guaranteeing that he can guess the correct answer within mm guesses.

Solution

Let the sequence on the paper be XX.
First consider n2kn \neq 2k. If the first digit of XX is 1, then on the blackboard there will be C(n1,k)C(n-1, k) sequences starting with 1, and C(n1,k1)C(n-1, k-1) sequences starting with 0; note that C(n1,k)C(n1,k1)C(n-1, k) \neq C(n-1, k-1). From this we see that B only needs to count the number of sequences starting with 1 versus starting with 0 in order to determine what the first digit of XX is. Using the same method, B can determine every digit of XX. Hence B can guess correctly on the very first try.

Now consider n=2kn = 2k. When k=1k = 1, it is easy to see that two guesses are needed. When k2k \ge 2, note that if we flip every digit of XX on the paper (change 0 to 1 and 1 to 0), then the blackboard will still contain exactly the same set of sequences, so at least two guesses are required. Therefore, it suffices to show that two guesses are enough to guarantee the correct answer:

· If the first two digits of XX are the same, then on the blackboard, the sequences starting with 01 and those starting with 10 will each number C(2k2,k1)C(2k-2, k-1), while the sequences starting with 00 and those starting with 11 will each number C(2k2,k)C(2k-2, k).

· Conversely, if the first two digits of XX are the same, then on the blackboard, the sequences starting with 01 and those starting with 10 will each number C(2k2,k)C(2k-2, k), while the sequences starting with 00 and those starting with 11 will each number C(2k2,k1)C(2k-2, k-1).

· Since C(2k2,k1)C(2k2,k)C(2k-2, k-1) \neq C(2k-2, k), B only needs to count the corresponding numbers of sequences in order to determine whether the first two digits of XX are the same.

· By the same reasoning, B can determine whether any two digits of XX are the same.

· Therefore B only needs to guess what the first digit of XX is, and this requires at most two guesses. This completes the proof.

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