Maths Olympiad Prep

Track / Stage 6 / 252 of 400 #1732 of 2444

Problem 1732

National Olympiad, first round
Combinatorics Difficulty 6.6 Prove it Iranian Mathematical Olympiad · Iran

Find the least possible value of nn, such that one can place 1,2,,n1, 2, \ldots, n in each cell of an 18×1818 \times 18 table, such that each number is used at least once, and in each row or column, there exist neither two equal nor two consecutive numbers.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

First, we prove that n=36n = 36 is not enough. Assume that numbers 1,2,,361, 2, \ldots, 36 are assigned to the cells of the table with the described conditions. Since the number 22 is used, so even numbers (i.e. 2,4,6,,362, 4, 6, \ldots, 36) must be put in its row and its column. Similarly, the number 3535 is used, so we have to put odd numbers (i.e. 1,3,5,,351, 3, 5, \ldots, 35) in its row and its column. But the intersection of the row containing 3535 and the column containing 22 has to be odd and even at the same time. Contradiction!

Now it is sufficient to make an example with numbers 1,2,,371, 2, \ldots, 37. In this example, the even numbers are just in the first row, and the other cells are filled with appropriate numbers (just by shifting the odd numbers).

24681012141618202224262830323436
3713579111315171921232527293133
3537135791113151719212325272931
3335371357911131517192123252729
3133353713579111315171921232527
2931333537135791113151719212325
2729313335371357911131517192123
2527293133353713579111315171921
2325272931333537135791113151719
2123252729313335371357911131517
1921232527293133353713579111315
1719212325272931333537135791113
1517192123252729313335371357911
1315171921232527293133353713579
11131517192123252729313335371357
91113151719212325272931333537135
79111315171921232527293133353713
57911131517192123252729313335371

Thus, the least possible value of nn is 3737.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.