Maths Olympiad Prep

Library / /17 of 31

Combinatorics Difficulty 8.4 Shortlist Prove it Baltic Way

Positive integers from 11 to nn are written on the blackboard. The first player chooses a number and erases it. Then the second player chooses two consecutive numbers and erases them. After that the first player chooses three consecutive numbers and erases them. And finally the second player chooses four consecutive numbers and erases them. What is the smallest value of nn for which the second player can ensure that he completes both his moves?

Solution

Answer: n=14n = 14.

At first, let's show that for n=13n = 13 the first player can ensure that after his second move no 44 consecutive numbers are left. In the first move he can erase number 44 and in the second move he can ensure that numbers 88, 99 and 1010 are erased. No interval of length 44 is left.

If n=14n = 14 the second player can use the following strategy. Let the first player erase number kk in his first move, because of symmetry assume that k7k \le 7. If k5k \ge 5 then the second player can erase k+1k+1 and k+2k+2 and there are two intervals left of length at least 44: 1..(k1)1..(k-1) and (k+3)..14(k+3)..14, but the first player can destroy at most one of them. But if k4k \le 4, then the second player can erase numbers 99 and 1010 in his first move and again there are two intervals left of length at least 44: (k+1)..8(k+1)..8 and 11..1411..14.

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 and solution reproduced as published; topic and difficulty added by this site.