Maths Olympiad Prep

Library / /9 of 32

Geometry Difficulty 8.2 Shortlist Prove it United States

A 2004×20042004 \times 2004 array of points is drawn. Find the largest integer nn such that it is possible to draw a convex nn-sided polygon whose vertices lie on the points of the array.

Solution

For a vector v=(x,y)v = (x, y), define v=x+y\|v\| = |x| + |y|, the so-called taxicab distance (or taxicab norm). Embed the array of points in the plane such that they correspond to the lattice points in {(x,y):1x,y2004}\{(x, y) : 1 \le x, y \le 2004\}.

Consider a convex nn-gon drawn in our square array, and imagine that we walk along the edges in a counterclockwise direction. Then we can orient each edge and obtain a set of nn nonzero vectors S={vi=(xi,yi)}S = \{v_i = (x_i, y_i)\}, with integer coordinates, whose sum is (0,0)(0,0). SS has several further properties. First, no two vectors in SS are positive multiples of each other by convexity (if iji \ne j and the directed edges viv_i and vjv_j are parallel and pointing in the same direction, then our polygon cannot be strictly convex.) Second, the sum of the xix_i which are positive is at most 20032003, and the same is true for the sum of the yi>0y_i > 0, as well as the sums of the xi|x_i| and yi|y_i| for xi<0x_i < 0 and yi<0y_i < 0. This is true because all the vectors with, say, xix_i positive will correspond to adjacent edges (by convexity), and if one traces these edges in order on the polygon, one must start from a point within {(x,y):1x,y2004}\{(x, y) : 1 \le x, y \le 2004\} and finish at a point in that same region; therefore the total displacement in the xx-dimension is bounded by 20032003. In particular, this implies that vi8012\sum \|v_i\| \le 8012. Third, given SS that satisfies the above properties, we can construct a convex polygon that fits within the bounds: since the polygon should be convex, we must place the vectors end to end ordered by the angle (measured counterclockwise) that they make with the positive xx-axis, and the resulting polygon will fit within the array because of the given inequalities.

We now show that it is impossible to draw a 562562-gon in the array. We will prove that for every set SS of 562562 vectors such that no two are positive multiples of each other, vi>8012\sum \|v_i\| > 8012. We can even ignore the condition that vi=(0,0)\sum v_i = (0,0). Let us now try to minimize vi\sum \|v_i\|. Since no two vectors in SS are positive multiples of each other, we may assume that for each ii, gcd(xi,yi)=1\gcd(|x_i|, |y_i|) = 1, or else we might as well scale that vector down by that gcd (it will only reduce vi\sum \|v_i\|).

Now:

Lemma For any positive integer kk, the maximum number of distinct vi=(xi,yi)v_i = (x_i, y_i) that satisfy vi=k\|v_i\| = k and gcd(xi,yi)=1\gcd(|x_i|, |y_i|) = 1 is 4ϕ(k)4\phi(k). Recall that ϕ(k)\phi(k) is Euler's totient function, which counts the number of positive integers zkz \le k that satisfy gcd(z,k)=1\gcd(z, k) = 1.

Proof: For k=1k=1, the lemma is trivial. For k2k \ge 2, the gcd condition forces that neither of xix_i or yiy_i can ever be 00. So, it suffices to show that the number of viv_i with xi>0x_i > 0 and yi>0y_i > 0 is ϕ(k)\phi(k), because there are exactly 44 ways to choose pairs of signs, for the coordinates of each viv_i. Well, since vi=k\|v_i\| = k, this means that xi+yi=k|x_i| + |y_i| = k. Hence gcd(xi,yi)=1gcd(xi,k)=1\gcd(|x_i|, |y_i|) = 1 \Rightarrow \gcd(|x_i|, k) = 1. By definition of ϕ(k)\phi(k), there are precisely ϕ(k)\phi(k) ways to choose positive xix_i to satisfy this condition; each way yields exactly one positive choice for yiy_i, so we are done with the proof of this lemma. ■

Now for n=562n = 562, since k=1214ϕ(k)=560\sum_{k=1}^{21} 4\phi(k) = 560, we minimize vi\sum \|v_i\| when we use all 560560 vectors with vi21\|v_i\| \le 21, and 22 more vectors with vi=22\|v_i\| = 22. The value of this sum is vik=1214kϕ(k)+222=8032>8012\sum \|v_i\| \ge \sum_{k=1}^{21} 4k\phi(k) + 2 \cdot 22 = 8032 > 8012, as was claimed. Thus n561n \le 561.

Indeed, we now construct a 561561-gon in the array by constructing a suitable set SS. Start by setting SS to be the set of all 560560 integer vectors (xi,yi)(x_i, y_i) with norm at most 2121 and gcd(xi,yi)=1\gcd(|x_i|, |y_i|) = 1. By symmetry, the vector sum of these 560560 vectors is (0,0)(0, 0). Also by symmetry, the sum of all of the positive xix_i is exactly 1/41/4 of the sum of all of the taxicab norms, so it is k=121kϕ(k)=1997\sum_{k=1}^{21} k\phi(k) = 1997. This is the span of the 560560-gon in the xx-dimension. Similarly, that is also the span of the 560560-gon in the yy-dimension.

Next, remove from SS the vectors (20,1)(20, 1) and (11,10)(-11, 10), and insert the vectors (5,17)(5, 17), (17,5)(-17, -5), and (21,1)(21, -1). Now we have a 561561-gon. Since the vector sum of (20,1)(20, 1) and (11,10)(-11, 10) is equal to the vector sum of the 33 new vectors, this preserves the fact that vi=(0,0)\sum v_i = (0, 0), so we can still have a closed, convex polygon. Let us see what has happened to the xx-span and yy-span: we removed 2020 from the sum of positive xix_i, but added back 55 and 2121. This is a net gain of 66, so the sum of positive xix_i will increase from 19971997 to 20032003—this exactly matches the upper limit imposed by the second observation at the beginning of the proof. Similarly, the sum of positive yiy_i will lose summands of 11 and 1010 from the deletion, but it will gain 1717 from the insertion. This is also a net gain of 66, so we also have 20032003 as the final sum of positive yiy_i. Since the vector sum of all viv_i is (0,0)(0, 0), similar results with 20032003 hold for the negative xix_i and yiy_i. By the third observation at the beginning of the proof, we are done.

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.