Skip to main content
OlympiadHQ

Browse · MathNet

Print

International Mathematical Olympiad

geometry

Problem

Let be a given positive integer. In the Cartesian plane, each lattice point with nonnegative coordinates initially contains a butterfly, and there are no other butterflies. The neighborhood of a lattice point consists of all lattice points within the axis-aligned square centered at , apart from itself. We call a butterfly lonely, crowded, or comfortable, depending on whether the number of butterflies in its neighborhood is respectively less than, greater than, or equal to half of the number of lattice points in .

Every minute, all lonely butterflies fly away simultaneously. This process goes on for as long as there are any lonely butterflies. Assuming that the process eventually stops, determine the number of comfortable butterflies at the final state.

(Bulgaria)

problem


problem


problem


problem


problem
Solution
We always identify a butterfly with the lattice point it is situated at. For two points and , we write if each coordinate of is at least the corresponding coordinate of . Let be the origin, and let be the set of initially occupied points, i.e., of all lattice points with nonnegative coordinates. Let and be the sets of the lattice points lying on the horizontal and vertical boundary rays of . Denote by the neighborhood of a lattice point .

1. Initial observations. We call a set of lattice points up-right closed if its points stay in the set after being shifted by any lattice vector with . Whenever the butterflies form a up-right closed set , we have for any two points with . So, since is up-right closed, the set of butterflies at any moment also preserves this property. We assume all forthcoming sets of lattice points to be up-right closed.

When speaking of some set of lattice points, we call its points lonely, comfortable, or crowded with respect to this set (i.e., as if the butterflies were exactly at all points of ). We call a set stable if it contains no lonely points. In what follows, we are interested only in those stable sets whose complements in are finite, because one can easily see that only a finite number of butterflies can fly away on each minute.

If the initial set of butterflies contains some stable set , then, clearly no butterfly of this set will fly away. On the other hand, the set of all butterflies in the end of the process is stable. This means that is the largest (with respect to inclusion) stable set within , and we are about to describe this set.

2. A description of a final set. The following notion will be useful. Let be a set of pairwise non-parallel lattice vectors, each having a positive - and a negative -coordinate. Assume that they are numbered in increasing order according to slope. We now define a -curve to be the broken line such that , and for all (see the Figure below to the left).



Construction of -curve



Construction of

Now, let . Consider all the rays emerging at and passing through a point from ; number them as in increasing order according to slope. Let be the farthest from lattice point in , set , let , and finally denote ; see the Figure above to the right. We will concentrate on the -curve ; let be the set of all lattice points such that for some (not necessarily lattice) point on the -curve. In fact, we will show that .

Clearly, the -curve is symmetric in the line . Denote by the convex hull of .

3. We prove that the set contains all stable sets. Let be a stable set (recall that it is assumed to be up-right closed and to have a finite complement in ). Denote by its convex hull; clearly, the vertices of are lattice points. The boundary of consists of two rays (horizontal and vertical ones) along with some -curve for some set of lattice vectors .

Claim 1. For every , there is a co-directed with with .

Proof. Let be the supporting line of parallel to (i.e., contains some point of , and the set lies on one side of ). Take any point and consider . The line splits the set into two congruent parts, one having an empty intersection with . Hence, in order for not to be lonely, at least half of the set (which contains points) should lie in . Thus, the boundary of contains a segment with at least lattice points (including ) on it; this segment corresponds to the required vector .



Claim 2. Each stable set lies in .

Proof. To show this, it suffices to prove that the -curve lies in , i.e., that all its vertices do so. Let be an arbitrary vertex of the -curve; partitions this curve into two parts, (being down-right of ) and (being up-left of ). The set is split now into two parts: consisting of those for which corresponds to segment in , and a similar part . Notice that the -curve consists of several segments corresponding to , followed by those corresponding to . Hence there is a vertex of the -curve separating from . Claim 1 now yields that , so , as required.

Claim 2 implies that the final set is contained in .

4. is stable, and its comfortable points are known. Recall the definitions of ; let be the ray complementary to . By our definitions, the set contains no points between the rays and , as well as between and .

Claim 3. In the set , all lattice points of the -curve are comfortable.

Proof. Let be any lattice point of the -curve, belonging to some segment . Draw the line containing this segment. Then contains exactly lattice points, all of which lie in except for . Thus, exactly half of the points in lie in . It remains to show that all points of above lie in (recall that all the points below lack this property).

Notice that each vector in has one coordinate greater than ; thus the neighborhood of contains parts of at most two segments of the -curve succeeding , as well as at most two of those preceding it.

The angles formed by these consecutive segments are obtained from those formed by and (with ) by shifts; see the Figure below. All the points in above which could lie outside lie in shifted angles between or . But those angles, restricted to , have no lattice points due to the above remark. The claim is proved.



Proof of Claim 3

Claim 4. All the points of which are not on the boundary of are crowded.

Proof. Let be such a point. If it is to the up-right of some point on the curve, then the claim is easy: the shift of by is still in , and contains at least one more point of - either below or to the left of . So, we may assume that lies in a right triangle constructed on some hypothenuse . Notice here that .

Draw a line through , and draw a vertical line through ; see Figure below. Let and be the parts of lying to the left and to the right of , respectively (points of lie in both parts).



Proof of Claim 4

Notice that the vectors , and are arranged in non-increasing order by slope. This means that shifted by still lies in , as well as shifted by . As we have seen in the proof of Claim 3, these two shifts cover all points of above , along with those on to the left of . Since contains also and , the point is crowded.

Thus, we have proved that , and have shown that the lattice points on the -curve are exactly the comfortable points of . It remains to find their number.

Recall the definition of (see Figure on the first page of the solution). Each segment contains lattice points different from . Taken over all , these points exhaust all the lattice points in the -curve, except for , and thus the number of lattice points on the -curve is . On the other hand, is just the number of points in , so it equals . Hence the answer to the problem is .
Final answer
n^2 + 1

Techniques

Convex hullsCartesian coordinatesTranslationConstructions and loci