Maths Olympiad Prep

Library / /15 of 20

Combinatorics Difficulty 7.0 National olympiad, round 2 Prove it North Macedonia

A magical square of dimensions 3×33 \times 3 is a square with side 33, consisting of 99 unit squares, so that the real numbers written in the unit squares (one number in each unit square) satisfy the property: the sum of the numbers in the unit squares in any row is equal to the sum of the numbers in the unit squares in any column and is equal to the sum of the numbers in the unit squares in the two diagonals.
A rectangle of dimensions m×nm \times n, m3m \ge 3, n3n \ge 3 is given, which consists of mnmn unit squares. If in each unit square one number is written in such a way that each square of dimensions 3×33 \times 3 is magical, then how many different numbers can be used at most to fill the rectangle?

Solution

We consider the magical square:

A1A_1A2A_2A3A_3
B1B_1B2B_2B3B_3
C1C_1C2C_2C3C_3

A1+A2+A3=B1+B2+B3=C1+C2+C3=A1+B1+C1=A2+B2+C2=A3+B3+C3=A1+B2+C3=C1+B2+A3=S, \begin{aligned} A_1 + A_2 + A_3 &= B_1 + B_2 + B_3 = C_1 + C_2 + C_3 = A_1 + B_1 + C_1 \\ &= A_2 + B_2 + C_2 = A_3 + B_3 + C_3 = A_1 + B_2 + C_3 = C_1 + B_2 + A_3 = S, \end{aligned}
or, equivalently
4S=(B1+B2+B3)+(A2+B2+C2)+(A1+B2+C3)+(C1+B2+A3)=(A1+A2+A3)+(B1+B2+B3)+(C1+C2+C3)+3B2=3S+3B2. \begin{aligned} 4S &= (B_1 + B_2 + B_3) + (A_2 + B_2 + C_2) + (A_1 + B_2 + C_3) + (C_1 + B_2 + A_3) \\ &= (A_1 + A_2 + A_3) + (B_1 + B_2 + B_3) + (C_1 + C_2 + C_3) + 3B_2 = 3S + 3B_2. \end{aligned}
We get S=3B2S = 3B_2. In what follows we will denote the central element B2B_2 by xx.

Figure 1
Picture 3.
Next we consider the colored square in Picture 4. Because 2a+c=3x2a + c = 3x and 2b+d=3x2b + d = 3x we get that the rectangle is filled in the following way:

Figure 2

Analogously to the way the colored square was filled in Picture 3, we get that c=ac = a, b=db = d. But then

Figure 3
, from where a=b=c=d=xa = b = c = d = x i.e. all elements of the rectangle have to be equal.
Let n>3n > 3, m>3m > 3. Then, because of the previous discussion, the rectangle of width 33 and length mm has to be filled with one number (Picture 5).
Figure 4
Picture 5.
For the same reasons, the same holds for the colored rectangle and every rectangle obtained by vertical translation.
Finally, if n=m=3n = m = 3, then the rectangle can be filled with 99 different numbers. If n>3n > 3 or m>3m > 3, then the rectangle can be filled only with a single number.

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.