Skip to main content
OlympiadHQ

Browse · MathNet

Print

USA TSTST

United States counting and probability

Problem

Ten million fireflies are glowing in at midnight. Some of the fireflies are friends, and friendship is always mutual. Every second, one firefly moves to a new position so that its distance from each one of its friends is the same as it was before moving. This is the only way that the fireflies ever change their positions. No two fireflies may ever occupy the same point.

Initially, no two fireflies, friends or not, are more than a meter away. Following some finite number of seconds, all fireflies find themselves at least ten million meters away from their original positions. Given this information, find the greatest possible number of friendships between the fireflies.

In general, we show that when , the answer is .
Solution
Construction: Choose three pairwise parallel lines forming an infinite equilateral triangle prism (with side larger than 1). Split the fireflies among the lines as equally as possible, and say that two fireflies are friends iff they lie on different lines. To see this works: 1. Reflect and all fireflies on in the plane containing and . 2. Reflect and all fireflies on in the plane containing and . 3. Reflect and all fireflies on in the plane containing and . ...

Proof: Consider a valid configuration of fireflies. If there is no 4-clique of friends, then by Turán's theorem, there are at most pairs of friends. Let be the answer, given that there exist four pairwise friends (say ). Note that for a firefly to move, all its friends must be coplanar.

Claim (No coplanar ) — We can't have four coplanar fireflies which are pairwise friends. Proof. If we did, none of them could move (unless three are collinear, in which case they can't move). □

Claim (Key claim — tetrahedrons don't share faces often) — There are at most 12 fireflies which are friends with at least three of . Proof. First denote by the locations of fireflies . These four positions change over time as fireflies move, but the tetrahedron always has a fixed shape, and we will take this tetrahedron as our reference frame for the remainder of the proof. WLOG, will assume that is friends with . Then will always be located at one of two points and relative to , such that and are two congruent tetrahedrons with fixed shape. We note that points , and are all different: clearly and . (If , then some fireflies won't be able to move.) Consider the moment where firefly moves. Its friends must be coplanar at that time, so one of lies in plane . Similar reasoning holds for planes and . So, WLOG lies on both planes and . Then lies on line , and lies in plane . This uniquely determines relative to :

is the intersection of line with the reflection of plane in plane . is the intersection of plane with the reflection of line in plane . Accounting for WLOGs, there are at most 12 possibilities for the set , and thus at most 12 possibilities for . (It's not possible for both elements of one pair to be occupied, because then they couldn't move.) □ Thus, the number of friendships involving exactly one of is at most , so removing these four fireflies gives The rest of the solution is bounding. When , we have , so By iterating the above inequality, we get where satisfies . Now This is less than for , which concludes the solution.
Final answer
f(n) = floor(n^2/3) for n ≥ 70

Techniques

Turán's theoremColoring schemes, extremal arguments3D Shapes