Maths Olympiad Prep

Library / /14 of 24

, 2015

Combinatorics Difficulty 6.7 National olympiad Prove it Argentina

The lower row of a 2×132 \times 13 rectangle is filled up with 13 markers labeled 1,2,,131, 2, \ldots, 13 in this order. An operation is moving a marker from its cell to an adjacent (by side) empty cell. The task is to rearrange the markers in the reverse order, in the lower row again. Do this with a minimal number of operations.

Solution

Marker 11 needs at least 1212 horizontal operations to reach its final position 1313; by symmetry the same holds for marker 1313. Similarly markers 22 and 1212 need at least 1010 horizontal operations each. The analogous observation about the pairs of markers 3,113, 11; 4,104, 10; 5,95, 9; 6,86, 8 implies that at least 2(12+10+8+6+4+2)=842(12+10+8+6+4+2) = 84 horizontal operations are needed to complete the task. As for the vertical operations, we claim that all markers except possibly one must move up vertically at some point, and hence go down by one more vertical operation. Assume on the contrary that markers ii and jj, i<ji < j, never leave row 11. Then their mutual disposition will not change, ii will always precede jj no matter the remaining operations. However jj has to precede ii in the final position. The contradiction shows that at least 1212 markers need 22 vertical operations each. In all, at least 84+212=10884+2 \cdot 12 = 108 operations are needed to achieve the goal. Let us show that 108108 operations are enough. Carry out steps (1) – (5) in the order they are described below.

(1) For each i=1,2,,6i=1, 2, \ldots, 6 let SiS_i be the following sequence of operations: Move marker ii up to the second row, then move it to the right to position 14i14-i. Carry out sequences S1,S2,,S6S_1, S_2, \ldots, S_6 in this order; this is clearly possible. Positions 8,9,10,11,12,138, 9, 10, 11, 12, 13 in row 22 are now occupied by markers 6,5,4,3,2,16, 5, 4, 3, 2, 1. The number of operations used is 6+(12+10+8+6+4+2)=486+(12+10+8+6+4+2)=48.

(2) Move marker 77 up to the second row.

(3) For each i=8,9,10,11,12i = 8, 9, 10, 11, 12 let SiS_i be the following sequence of operations: move marker ii to position 14i14-i in row 11, then lift it up to row 22. Carry out the sequences S8,S9,,S12S_8, S_9, \ldots, S_{12} in this order. Positions 2,3,4,5,6,72, 3, 4, 5, 6, 7 in row 22 are now occupied by markers 12,11,10,9,8,712, 11, 10, 9, 8, 7. The number of operations used is 5+(2+4+6+8+10)=355+(2+4+6+8+10)=35.

(4) Move marker 1313 to position 11 in row 11 without lifting it up; 1212 operations are used.

(5) Move down all 1212 markers in row 22; 1212 operations are used.

The problem is solved with the minimum possible number of 108108 operations.

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.