Maths Olympiad Prep

Library / /16 of 17

, 2007

Combinatorics Difficulty 7.6 National olympiad, round 2 Prove it Japan

Let nn be a positive integer. Two people PP, QQ play a game in which they call an integer mm (1mn1 \le m \le n) alternately. PP calls the first number. They cannot call the numbers which are already called by themselves or by their opponent. The game is over when neither can call numbers. If the sum of the numbers that AA has called is divisible by 33, PP wins, otherwise QQ wins. Find all nn which satisfy the condition below.
Condition: PP can win the game whatever QQ does.

Solution

Let the number called by a player in the mmth turn be NmN_m. Then sequence (N1,,Nl)(N_1, \dots, N_l) is called "history up to the llth turn". We call jj which satisfies jN1,,Nlj \neq N_1, \dots, N_l "free in the l+1l+1th turn". We are going to prove a proposition that if n0,4,5(mod6)n \equiv 0, 4, 5 \pmod 6, PP can absolutely win and that if n1,2,3(mod6)n \equiv 1, 2, 3 \pmod 6, QQ can absolutely win.

a. for 0n50 \le n \le 5
If n=0,1,2n = 0, 1, 2, the proposition is surely true.
Assume that n=3n = 3. If QQ calls 11 or 22 in the second turn, the sum of the numbers that PP has said is 55 or 44. Hence, QQ can absolutely win.
Assume that n=4n = 4. If PP calls 22 in the first turn, and calls 11 or 44 in the third turn, the sum of the numbers that QQ has said is 33 or 66. Hence, PP can absolutely win.
For n=5n = 5, we call (1,4)(1, 4) and (2,5)(2, 5) a pair. If PP calls 33 in the first turn, and after the turn, PP calls the other number of the pair including the number which QQ called in the last turn, then PP can absolutely win.
With that, the proposition is proved for 0n50 \le n \le 5.

b. We are going to prove that if a proposition holds for n=kn = k, it also holds for n=k+6n = k + 6.
For n=kn = k, let the player who has the winning strategy be AA, and the other BB. Let M={k+1,k+2,k+3,k+4,k+5,k+6}M = \{k + 1, k + 2, k + 3, k + 4, k + 5, k + 6\}, and presume the sets of the numbers (k+1,k+4),(k+2,k+5)(k + 1, k + 4), (k + 2, k + 5), and (k+3,k+6)(k + 3, k + 6) to be pairs. Let the llth turn be AA's turn.

(1) In the llth turn, when there are some free numbers except the elements of MM, it is only necessary for AA to act according to the following tactics.
(a) When AA is PP and l=1l=1, call the number jj which AA should call according to the winning strategy for n=kn=k.
(b) When BB called iMi \in M in l1l-1th turn, call in the llth turn another number jj of the pair including ii.
(c) When BB called iMi \notin M in the l1l-1th turn, let c=(N1,,Nl1)c' = (N'_1, \dots, N'_{l-1}), where elements of cc are the elements of cc excluding elements of MM, and the order of the elements of cc' is similar to cc. Then cc' is the history for n=kn=k. Because of the tactics (1)(b), if BB called an element of MM in m1m-1th turn (ml1m \le l-1), AA also called an element of MM in the mmth turn. With that, ll(mod2)l \equiv l' \pmod 2. Hence, according to the winning strategy for n=kn=k, let the number jj be the number which AA should call in ll'th turn when given a history cc', and call the number jj in the llth turn.

(2) In the llth turn, if all the "free" numbers are included in MM, AA should act according to the following tactics.
(a) When BB called iMi \in M in the l1l-1th turn is included in MM, jMj \in M which is the pair of ii is free in the llth turn (because of (1)(b)). Then call jj in the llth turn. Until the game ends, call jMj' \in M which is the pair of the iMi' \in M called by BB in the last turn.
(b) When the number called by BB in the l1l-1th turn is not included in MM, if iMi \in M is free in llth turn, the pair jj is also free. Then call any element j0Mj_0 \in M, and act in the ll'th turn according to the following tactics (ll+1l' \ge l+1).
Let the number which BB called in l1l'-1th turn be ii', and the pair jj'. If jj' is free in ll'th turn, call jj' in ll'th turn. If there is no free number in the ll'th turn, then the game is over. Otherwise, call any element iMi'' \in M in the ll''th turn.

If AA acts according to the tactics above, two following propositions hold.
* When the game is over, the sum of the numbers jj (1jk1 \le j \le k) called by AA is the same as one of the sums that appear when AA wins the game in the case of n=kn=k.
* When the game is over, each player calls only one number of the pairs.

Consequently, when the game is over, the sum of the numbers which were called by AA is equivalent to one of the sums that appear when AA wins the game in the case of n=kn=k modulo 33. So AA wins. With that, the mathematical induction is completed.

Hence, it can be said that PP has a winning strategy if and only if n0,4,5(mod6)n \equiv 0, 4, 5 \pmod 6.

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.