Maths Olympiad Prep

Library / /2 of 2

, 2012

Combinatorics Difficulty 8.0 Shortlist Prove it European Girls' Mathematical Olympiad (EGMO)

Problem:
Let nn be a positive integer. Find the greatest possible integer mm, in terms of nn, with the following property: a table with mm rows and nn columns can be filled with real numbers in such a manner that for any two different rows [a1,a2,,an][a_{1}, a_{2}, \ldots, a_{n}] and [b1,b2,,bn][b_{1}, b_{2}, \ldots, b_{n}] the following holds:
max(a1b1,a2b2,,anbn)=1 \max \left(\left|a_{1}-b_{1}\right|,\left|a_{2}-b_{2}\right|, \ldots,\left|a_{n}-b_{n}\right|\right)=1

Solution

Solution:
The largest possible mm is equal to 2n2^{n}.

In order to see that the value 2n2^{n} can be indeed achieved, consider all binary vectors of length nn as rows of the table. We now proceed with proving that this is the maximum value.

Let [aki][a_{k}^{i}] be a feasible table, where i=1,,mi=1, \ldots, m and k=1,,nk=1, \ldots, n. Let us define undirected graphs G1,G2,,GnG_{1}, G_{2}, \ldots, G_{n}, each with vertex set {1,2,,m}\{1,2, \ldots, m\}, where ijE(Gk)ij \in E(G_{k}) if and only if akiakj=1|a_{k}^{i}-a_{k}^{j}|=1 (by E(Gk)E(G_{k}) we denote the edge set of the graph GkG_{k}). Observe the following two properties.

(1) Each graph GkG_{k} is bipartite. Indeed, if it contained a cycle of odd length, then the sum of ±1\pm 1 along this cycle would need to be equal to 00, which contradicts the length of the cycle being odd.

(2) For every iji \neq j, ijE(Gk)ij \in E(G_{k}) for some kk. This follows directly from the problem statement.

For every graph GkG_{k} fix some bipartition (Ak,Bk)(A_{k}, B_{k}) of {1,2,,m}\{1,2, \ldots, m\}, i.e., a partition of {1,2,,m}\{1,2, \ldots, m\} into two disjoint sets Ak,BkA_{k}, B_{k} such that the edges of GkG_{k} traverse only between AkA_{k} and BkB_{k}. If m>2nm>2^{n}, then there are two distinct indices i,ji, j such that they belong to exactly the same parts Ak,BkA_{k}, B_{k}, that is, iAki \in A_{k} if and only if jAkj \in A_{k} for all k=1,2,,nk=1,2, \ldots, n. However, this means that the edge ijij cannot be present in any of the graphs G1,G2,,GnG_{1}, G_{2}, \ldots, G_{n}, which contradicts (2). Therefore, m2nm \leq 2^{n}.

Solution 2:
In any table with the given property, the least and greatest values in a column cannot differ by more than 11. Thus, if each value that is neither least nor greatest in its column is changed to be equal to either the least or the greatest value in its column (arbitrarily), this does not affect any aibi=1|a_{i}-b_{i}|=1, nor does it increase any difference above 11, so the table still has that given property. But after such a change, for any choice of what the least and greatest values in each column are, there are only two possible choices for each entry in the table (either the least or the greatest value in its column); that is, only 2n2^{n} possible distinct rows, and the given property implies that all rows must be distinct. As in the previous solution, we see that this number can be achieved.

Solution 3:
We prove by induction on nn that m2nm \leq 2^{n}.

First suppose n=1n=1. If real numbers xx and yy have xy=1|x-y|=1 then x\lfloor x\rfloor and y\lfloor y\rfloor have opposite parities and hence it is impossible to find three real numbers with all differences 11. Thus m2m \leq 2.

Suppose instead n>1n>1. Let aa be the smallest number appearing in the first column of the table; then every entry in the first column of the table lies in the interval [a,a+1][a, a+1]. Let AA be the collection of rows with first entry aa and BB be the collection of rows with first entry in (a,a+1](a, a+1]. No two rows in AA differ by 11 in their first entries, so if we list the rows in AA and delete their first entries we obtain a table satisfying the conditions of the problem with nn replaced by n1n-1; thus, by the induction hypothesis, there are at most 2n12^{n-1} rows in AA. Similarly, there are at most 2n12^{n-1} rows in BB. Hence m2n1+2n1=2nm \leq 2^{n-1}+2^{n-1}=2^{n}. As before, this number can be achieved.

Solution 4:
Consider the rows of the table as points of Rn\mathbb{R}^{n}. As the values in each column differ by at most 11, these points must lie in some nn-dimensional unit cube CC. Consider the unit cubes centred on each of the mm points. The conditions of the problem imply that the interiors of these unit cubes are pairwise disjoint. But now CC has volume 11, and each of these cubes intersects CC in volume at least 2n2^{-n}: indeed, if the unit cube centred on a point of CC is divided into 2n2^{n} cubes of equal size then one of these cubes must lie entirely within CC. Hence m2nm \leq 2^{n}. As before, this number can be achieved.

Solution 5:
Again consider the rows of the table as points of Rn\mathbb{R}^{n}. The conditions of the problem imply that these points must all lie in some nn-dimensional unit cube CC, but no two of the points lie in any smaller cube. Thus if CC is divided into 2n2^{n} equally-sized subcubes, each of these subcubes contains at most one row of the table, giving m2nm \leq 2^{n}. As before, this number can be achieved.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.