Maths Olympiad Prep

Library / Bulgaria competition problems /36 of 44

Bulgaria competition problems, 2022

Combinatorics Difficulty 6.7 National Olympiad Prove it Bulgaria

In each of the cells of an n×mn \times m table is written one of the letters aa, bb, or cc. The corresponding letter in every two rows, respectively every two columns of the table, coincide in at most k≥0k \ge 0 positions. Determine mm, nn and kk, if
2mn+6k3(m+n)≥k+1. \frac{2mn + 6k}{3(m + n)} \ge k + 1.

Solution

Denote the table rows by u1,u2,…,unu_1, u_2, \dots, u_n. Let d(ui,uj)d(u_i, u_j), i≠ji \ne j be the number of positions, in which the rows uiu_i and uju_j differ. According to the statement d(ui,uj)≥m−kd(u_i, u_j) \ge m - k. Then:
(1)S=∑1≤i<j≤nd(ui,uj)≥n(n−1)2(m−k). (1) \qquad S = \sum_{1 \le i < j \le n} d(u_i, u_j) \ge \frac{n(n-1)}{2}(m-k).

Consider an arbitrary table column and let it contain xx letters aa, yy letters bb, and zz letters cc, with x+y+z=nx+y+z=n. The contribution to SS of this column is exactly xy+xz+yzxy+xz+yz, and due to the inequality
n2=(x+y+z)2≥3(xy+xz+yz) n^2 = (x + y + z)^2 \ge 3(xy + xz + yz)
it follows that every column adds at most n23\frac{n^2}{3} to the value of SS (this is the case iff 33 divides nn and every column there are exactly n3\frac{n}{3} letters of each type). Now (1) gives rise to:
(2)mn23≥S≥n(n−1)2(m−k)  ⟺  mn+3k≤3kn+3m. (2) \qquad \frac{mn^2}{3} \ge S \ge \frac{n(n-1)}{2}(m-k) \iff mn + 3k \le 3kn + 3m.

Repeating the arguments, when replacing rows and columns leads to:
(3)mn+3k≤3km+3n. (3) \qquad mn + 3k \le 3km + 3n.
We add (2) and (3) to obtain 2mn+6k≤3(m+n)(k+1)⇔2mn+6k3(m+n)≤k+12mn+6k \le 3(m+n)(k+1) \Leftrightarrow \frac{2mn+6k}{3(m+n)} \le k+1. Therefore, 2mn+6k3(m+n)=k+1\frac{2mn+6k}{3(m+n)} = k+1, mn+3k=3kn+3mmn+3k = 3kn+3m, and mn+3k=3km+3nmn+3k = 3km+3n (meaning also that both mm and nn are divisible by 33). From 3kn+3m=3km+3n⇔(k−1)(n−m)=03kn+3m = 3km+3n \Leftrightarrow (k-1)(n-m) = 0, it follows that either k=1k=1 or m=nm=n. For k=1k=1, mn+3=3m+3nmn+3 = 3m+3n, which is impossible, since 33 divides mm and nn, thus 99 divides the RHS but not the LHS. For m=nm=n, m2−3(k+1)m+3k=0m^2-3(k+1)m+3k=0, with discriminant D=9k2+18k+9−12k=(3k+1)2+8D = 9k^2+18k+9-12k = (3k+1)^2+8 a perfect square. From (3k+1)2+8=t2(3k+1)^2+8 = t^2 we deduce that the difference between two perfect squares is 88, which holds

true only for t=3t=3 and k=0k=0. In conclusion m=n=3m=n=3 and the table is:

abc
bca
cab

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

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