Here is an interesting problem from the April 2026 issue of KöMaL that brings together well-ordered sets and infinite trees. Eight students submitted solutions, and five received full marks. The idea is to represent numbers by trees so that their order can be recovered from the possibility of embedding one tree into another. A natural construction comes to mind if one is familiar with countable ordinals, but there is a catch: an infinite tree can contain a copy of another tree in an unexpected way. The second part adds a restriction—each vertex must have only finitely many neighbours. It leads us to a different construction and, as we will see, a stronger result. Let us first look at the statement.
Problem (Komal, A. 934, April 2026) Let consist of all undirected trees with finitely or countably infinitely many vertices. Call a set bariton if each nonempty subset of possesses a smallest element.
(a) Show that any bariton set admits a map satisfying, for every ,
(b) Is this still possible if every vertex in every tree must have only finitely many neighbours?
Here, “countable” includes finite sets: the vertex set must admit an injection into .
(Márton Németh, Budapest)
Comments
The well-ordering assumption can lead us in the wrong direction. It makes us think of ordinals and how to use their properties. But we do not need it: as we will see, the construction in part (b) works for any subset of the real numbers. So, without this assumption, the problem might actually be easier to solve.
It is well known that a well-ordered subset of the real numbers (with the usual order) is countable. Indeed, for each that is not the greatest element, let and choose a rational number . These intervals are pairwise disjoint, so the map is injective. Since is countable, so is , including its possible greatest element.
Thus can be identified with a countable ordinal . There is a natural mapping of countable ordinals to trees Map to a single-vertex rooted tree . If , construct by taking a new root and joining it to the root of a copy of . Thus each finite ordinal corresponds to a path with edges, rooted at an endpoint. If is a nonzero limit ordinal, construct by taking a new root and joining it to the roots of disjoint copies of for all
Every resulting tree is countable, has no infinite branch, and has rooted rank exactly . Moreover, whenever , we have where the arrow denotes a subgraph embedding.
However, the converse need not hold. For example, where is the first infinite ordinal. This happens, because it contains a subtree isomorphic to the tree for with a different designated root.
Solution
Part (a). We will modify the shown natural mapping in order to construct trees satisfying
where denotes a subgraph embedding.
Let be a star with leaves, and let be a countably infinite star, rooted at its centre. For each limit ordinal , choose with and join a new root to the roots of disjoint copies of . For a nonzero limit ordinal and , construct by joining a new root to the roots of disjoint copies of .
By construction, we have
For the converse, let and assume . See now that the root of cannot be mapped to any vertex of other than the root of . But this is also impossible due to the construction.
Part (b) We construct the required mapping using trees of a finite maximum degree.
Take a root and give it two children, labelled by the intervals and . Each vertex carries an interval and the corresponding set . Delete a vertex whenever the latter set is empty.
Recursively add children to each remaining leaf as follows. A leaf labelled by a bounded interval receives two children labelled by
A leaf labelled by receives children labelled by
Similarly, a leaf labelled by receives children labelled by
Again delete children whose intervals have empty intersection with .
In this tree there are no leaves, except possibly for the root. Every infinite branch that eventually enters a bounded interval determines a unique point of , since the length of the labelled interval tends to . Conversely, every point of is represented by at least one such branch (two branches may represent the same point).
For each , take the union of all branches representing points with . Finally, attach three additional leaves to , obtaining the tree .
Each is countable. Its root has degree at least four, while every other vertex has degree at most . Consequently, every embedding between these trees preserves the root and therefore preserves distances from it.
Clearly, if , then .
Conversely, suppose . If , follow a branch representing until its interval lies entirely above . The corresponding vertex belongs to but not to . Since and every level is finite, has strictly more vertices at that level than . But every embedding preserves the root and hence the levels, which is impossible. Therefore . Hence
Here is a surprising problem that Navid and I proposed for the Kolmogorov Cup in November 2025. Consider all quadratic polynomials with integer coefficients, negative leading coefficient, and discriminant 101. For each rational number , add the values of all these polynomials that are positive at . The sum is the same for every rational .
There are infinitely many quadratics satisfying these conditions, so it is not even clear at first whether the sum converges! Moreover, if we replace the negative values of each quadratic by zero, the resulting function is not differentiable at its two roots. Yet adding all these functions gives a constant, at least on the rationals. It feels rather like pulling a rabbit out of a hat and I could hardly believe it when Navid first showed me the statement. Let me give its precise formulation before proceeding to the proof.
Problem (Kolmogorov Cup, 2025, p3). Let be the set of all quadratic polynomials with integer coefficients, a negative leading coefficient, and discriminant 101. For each rational number , consider the sum
Prove that this sum has the same value for every rational .
Navid Safaei, Dragomir Grozev
As mentioned above, there is a preliminary issue to settle: why is this sum finite? We gave this auxiliary problem at the regional round of the Bulgarian Mathematical Olympiad: prove that, for every rational number , only finitely many such polynomials are positive at . We discussed this problem in [1].
This brings us to the title of this post. As it turns out, the result was first discovered by Don Zagier [2] and is known in the literature as Zagier’s phenomenon. In fact, the identity holds for every real number , not just for rational numbers.
There are several generalizations, although the analogous statement does not hold for arbitrary polynomials of higher degree. We have also made some progress towards generalizing the result — see [3].
Solution
We prove the statement more generally, with 101 replaced by any positive integer that is not a perfect square. If or , the family is empty, so the assertion is trivial.
First, we must check that the sum is finite, at least when is rational. It is enough to check that there are only a finite number of polynomials that satisfy The crucial point here is that if then because has integer coefficients. One can see a complete proof in [1]. We gave this auxiliary problem at the regional round on 2025 Bulgarian NMO.
So, further we assume that is well defined at least for the rational numbers. In fact, the sum converges for any but it’s another story. Let us calculate the difference
First observe that the substitutions and permute our family of polynomials. Consequently,
Since is not a perfect square, the constant coefficient of any cannot be zero. For a polynomial with both , coefficient reversal stays within the same subfamily, and
Putting (which is in because ) instead of and summing, we see that this subfamily contributes zero to the difference. It remains to consider the subfamily consisting of the polynomials with and . For in this subfamily, put
The map is a bijection (involution) of to and .
Write and . The contribution of a single polynomial to our difference is
Summing over and using the fact that permutes this subfamily, we obtain
The subfamily is finite, since
and, as mentioned, it is a finite set. Also,
where Here the first equality follows from the definition of , the second from the symmetry , and the third from . Therefore,
Now set . We have
These identities imply that vanishes at every rational number. Indeed, use induction on the denominator of a reduced fraction , with . If , periodicity gives . Otherwise, periodicity reduces us to . The reduced fraction has the smaller denominator , so
Hence for every rational number .
References. [1] Finite number of quadratics, Bulgarian NMO 2025, (regional round) [2] Don Zagier. From quadratic functions to modular functions. In K. Gyory, H. Iwaniec, and J. Urbanowicz, editors, Number Theory in Progress, Vol. 2, pages 1147–1178. [3] Weighted generalization of Zagier’s phenomenon.
I’ve seen a lot of red flags with the hammer and sickle during the riots in France. For those waving them, perhaps they stand for justice, equality, fraternity and a better life. For me, they bring back memories of living under socialism in Bulgaria.
I know what it means when the party decides which books you can read and which thoughts are too dangerous for you. Even a great writer could be welcome when he criticized capitalism, and censored when he defended the freedom of the individual. I wonder how many of those waving these flags would be happy to have someone else decide what they are allowed to read, write, or say.
I wrote the following six years ago. It is about John Steinbeck and just one missing page. A small thing, you might think. But that page says a lot about the system I remember.
You will read a passage below in which Steinbeck defends the individual mind, its power to create, and its right to speak freely. Some readers have asked: surely people can create something together, so why does he say there are no good collaborations? As I understand it, his point is that each spark of creation still comes from an individual mind. We can inspire each other and build on each other’s ideas, but we do not share a collective consciousness. Enjoy the music in the words of a great writer!
Here I am commenting on a very interesting problem given three years ago at the final round of the Bulgarian National Math Olympiad. It was not solved by any contestant. The problem is a weaker version of a result from a research paper by its author. That’s why it is so interesting to participate in math competitions — you have a chance to get acquainted with the research papers of the problem setters.
Jokes aside, the problem is interesting for two reasons: 1) it’s hard; 2) this is real mathematics, unlike the idiotic functional equations so often given in Olympiads. So it’s worth a try.
I’ve tried it a few times since it came out. One of those attempts cost me quite a few calculations, but I don’t regret it: the idea was good, even though it was fruitless. It’s always like that. What matters is to crack it in the end. At some point I got fed up with the whole thing, since this kind of problem is not really my thing. But I kept coming back to it, mostly out of stubbornness.
2023 Bulgarian NMO, Problem 6
Problem (Bulgarian NMO, 2023,p6). In a class of students, everyone is graded in five subjects, with one of three possible marks in each subject. Prove that if of these students have received their marks, then we can grade the last one in such a way that their marks differ from those of any other student in at least two subjects. (Emil Kolev)
So, let’s translate the problem in more natural language. Let be the space of all ternary strings of length that is
For two objects we define the distance between and as the number of positions at which and differ. This is a kind of Hamming distance but in case of ternary strings. Thus, and only if Next, for any let
We say that is a ball with center and radius Henceforth we use the notation for the space consisting of all ternary strings of length . Now, the problem statement can be read as:
Claim.The Hamming graph cannot be covered by unit balls.
A brief historical note
The problem of covering by balls of radius one has a classical origin in the football pool problem. A prediction for five football matches, each having three possible outcomes, can be viewed as a word in , and a prediction is successful if it differs from the actual results in at most one coordinate. Thus the problem is precisely that of determining the ternary covering number .
The five-match problem was solved by H. J. L. Kamps and J. H. van Lint in their 1967 paper The football pool problem for 5 matches. They proved that the minimum number of radius-one balls needed to cover is
That is, the Hamming graph cannot be covered by unit balls.
The problem was revisited by Emil Kolev in 1993 in Codes over GF(3) of length 5, 27 codewords, and covering radius 1. Besides giving a new proof of the result of Kamps and van Lint, Kolev obtained strong structural information about the optimal coverings. In particular, he showed that every optimal 27-word covering has a coordinate whose three sections, after deleting that coordinate, are ternary Hamming codes of length 4.
My solution to the original problem
Claim. The Hamming graph cannot be covered by balls of radius .
Proof. Let
The graph is the rook graph, that is, each cell of the table is connected with all the cells on the same row or column. In the same way is isomorphic to rook graph — each cell is connected to the cells of the 3 columns in the coordinate directions.
Suppose for seeking contradiction that can be covered with unit balls.
Definitions. Each point of graph we represent as a cross-edge between and . The unit ball centered at can be partitioned into two parts
Note that . We denote by the set of centers (cross-edges) of the unit balls in . For any we denote
Analogously, for we use the notations
We call the set , a –fiber.
The idea is to consider how the unit balls centered at points in cover each -fiber, particularly -fibers with . We prove that there is some with such that the corresponding -fiber is not fully covered.
Then
Fix . Each ball of radius in centered at covers cross-edges inside the -fiber . It is also possible that a cross-edge in the -fiber to be covered by a ball centered at , where . The number of cross-edges of the -fiber that can be covered like that are at most
Thus for the number of covered cross-edges in a -fiber we have
Therefore
Lemma 1. Degree distribution , up to permutation of rows/columns is
Proof. Since we conclude that there is at least one (even two) with . Using (2) we can rule out the existence of with . Therefore . Moreover, it follows from (2) that . Straightforward case chasing exploiting (2) shows is impossible. Hence and the only possibility of degree distribution is . It further can be checked that up to permutation of rows/columns this distribution is
Lemma 2. The following conditions hold.
There does not exist with .
Let be two adjacent vertices in such that and . Then , . Moreover, are not adjacent in and are not adjacent in .
Proof. Let first assume and let be the three cross-edges (codewords) in . Then there exists with such that is adjacent to some or , and and are adjacent. This is a direct implication of Lemma 1.
Note that for any with , taking into account Lemma 1, the inequality in (2) is actually equality and it is tight. That is, every cross-edge in the b-fiber must be counted in~(1) exactly once. But the edge is counted at least twice, because it is in the two unit ball centered at and respectively.
Assume now we have two adjacent points in with Let , be the four centers in .
If there exists a vertex with such that both and are adjacent to or and are adjacent to then the same argument as before brings us to contradiction. Likewise, if and is adjacent to , then the -fiber is not covered, since lies in the balls centered at and respectively.
Assume that either or . The only possibility is that and that are not adjacent. The same holds for .
If for some , then again -fiber could not be covered. It means and the only possibility is . But then some is adjacent to some in . Since and are adjacent in , it again implies that the cross-edge is in the two unit balls centered at and at respectively. Thus, the -fiber is not fully covered, contradiction.
Therefore, the only possibility that does not bring a contradiction is , and neither nor are adjacent in .
Further, we have
Lemma 2 yields
We represented as , where , , we have freedom of choosing any two of the five coordinates to obtain the set . That is, Lemma 1 is true for a set determined by any two coordinates.
Since the choice of the two coordinates defining B is arbitrary, we may choose any two of the five coordinates of . Consequently, each of the three coordinate projections of the cube must induce a degree distribution satisfying Lemma 1. That is, each such projection must consist of the multiset of values
Note that projecting the cube on any coordinate plane can produce value only as . That is, there exist two adjacent in vertices with . These vertices lie on a line perpendicular to the chosen coordinate plane. Thus, there are three such pairs, let us denote them as , , . Some of these pairs may have one vertex in common. However, no pair is contained in the union of the other two pairs, since the three pairs lie on coordinate lines in different directions.
Focus on the number of points in the four -fibers with covered by the unit balls centered at points in . Note that in right hand side of (1) some elements of might be counted with multiplicity. Each extra count of a point in beyond its first count is called an overlap-unit. Similarly to the argument in Lemma 2, it follows that there are at least overlap-units corresponding to cross-edges incident with either or
A short case check, according to which of the two diagonals is associated with the endpoints and how consecutive lines intersect, shows that each new line forces at least new overlap-units. We omit this routine check here. Thus the number of overlap-units is at least . Since , there are at least overlap-units that correspond to some .
Now, (1) yields
that is,
This means that not all points of are covered by the unit balls centered at points in , contradiction. Thus, no covering code of cardinality exists in .
26 balls are not enough …
The question is: can the same argument be used to prove that cannot be covered with unit balls?
I strongly believe it can. However, Lemma 1 has to be modified appropriately. This time there are only eight multiplicity patterns, up to automorphism of , satisfying the same nine fiber inequalities. So the problem is still quite rigid, although there is no longer a unique pattern to work with.
It seems plausible that the rest of the argument can be adapted to eliminate these eight cases as well. I have not worked out the details yet, but I think that the same idea – forcing too much overlap in some fiber – should do the job.
Geometric constructions involving regular polygons are a popular topic among geometry enthusiasts. Although it may seem that there is nothing new to discover, some geometric constructions are still genuinely interesting. Here is one such example:
Problem 1. Inside equilateral triangle , a point is chosen, and squares , , and are constructed. Prove that the midpoints of segments , respectively, are the vertices of an equilateral triangle.
Problems of this type are conveniently solved using rotation.
One obvious rotation
Note that the image of triangle under a rotation of about center is triangle . This gives us a second equilateral triangle, .
Thus, the problem becomes a special case of the following more general fact:
Problem 2. Given equilateral, identically oriented triangles , , the midpoints , , of segments , , , respectively, either coincide or form an equilateral triangle.
To prove this, we use rotation again — this time applied to vectors. This simple and almost intuitive technique replaces the use of complex numbers or analytic geometry.
Some Useful Facts About Vector Rotation
We denote by the image of under a rotation of .
From the properties of rotation (a linear operator in the plane), it follows that
Let’s See How It Works
The triangles , , are equilateral which is equivalent to
Let us express the vectors and :
From (1) and (2) it follows that
which means that if then also so Otherwise, the triangle is equilateral.
A standard generalization is to choose the points , , so that they divide the segments , , , respectively, in the same ratio. In the same way, it follows that the points either coincide or form an equilateral triangle.
Let us consider one final example to illustrate the idea.
Problem 3. Given equilateral, identically oriented triangles , , , the midpoints , , of segments , , , respectively, are the vertices of an equilateral triangle.
Denote , , . Some of the images of these vectors under a rotation of are shown in the figure. Then
Using the obvious property of -rotation
we get
which, translated from the language of vectors, means that the triangle is equilateral.
Vector rotation is an easy-to-use technique that delighted me when I first heard about it from the unforgettable Bulgarian professor Ivan Tonov, and it still impresses the eighth-graders I teach it to.
WordPress provides me with statistics on the most popular posts I’ve written. The leader is “Turbo the Snail…”. I don’t know why the readers like it so much. Yes, it is a very nice problem, but I have written things I like much more than this one.
I remember an interview with Chris Norman from Smokie about “Living Next Door to Alice.” When their producer suggested that they record it, their reaction was more or less: “What is this bullshit? We are not going to record that.” They thought it was just silly and didn’t even want to release it as a single. But the record company insisted — and was right. It became their biggest hit. One of those strange things — you create something you don’t take very seriously, and this is exactly what people like.
Of course, Turbo the Snail cannot compete in popularity with Alice… neither can I with Chris Norman. But I understand the feeling.
Anyway, here is my most popular blog post—or so my readers tell me (thank you, readers!). All credit for the problem goes to its author, Cheuk Hei Chu from Hong Kong. Congratulations!
In my previous post, I discussed Problem 3 of this year’s International Mathematical Olympiad. Let us now turn to the other problem from the second day of the contest, Problem 6.
The Bulgarian team had a solid performance at the 67th International Mathematical Olympiad, finishing 19th in the unofficial team ranking. All six contestants won medals: Andrey Stefanov won a gold medal, Aleksandar Bangachev and Dobromir Dobrev won silver medals, while George Nikolov, Bozhidar Sakarev and Kiril Zulyamski received bronze medals.
Problem 6 was one of the hardest problems of this IMO. It is classified as a number theory problem (N8 on the Shortlist). Yet the number theory used in the solution is known to every seventh grader. This is one of the reasons why I like the problem so much: the crucial part is not applying heavy machinery but finding the right way to put very elementary ideas together.
At the same time, I would not really call it a combinatorics problem either. It is one of those problems that seem to lie somewhere between the traditional categories. Perhaps it is time to stop classifying olympiad problems so strictly, and even to reconsider the IMO regulations that impose a rather rigid division of the problems into subjects.
Andrey was the only member of the Bulgarian team to solve Problem 6, and the 7 points he earned on this problem played an important role in his gold-medal performance. Below I present his solution, essentially as he wrote it during the competition, with only minor editing for presentation.
Problem (IMO 2026, p6) Let be an infinite sequence of positive integers greater than . Suppose that for all positive integers , the number is the smallest positive integer greater than such that for every . Prove that there exist positive integers and such that
for every positive integer .
(Hung-Hsun Hans Yu, Taiwan)
Solution
It is more appropriate to view our sequence as a set of numbers
We break the solution into three steps. The first is an almost trivial observation, but it will be used a couple of times later. The second step contains the main idea. It states that there exists a finite set of prime numbers such that, for any , there is a prime with and . The third step provides the final touch.
Step 1. If has a common divisor greater than with every less than then .
Indeed, assume and let . Now, recall how the next member of the sequence is determined, and that in fact after determining the sequence up to , the next term must be , not .
Let be a sufficiently large number (which we shall determine later). Let be the set of all prime numbers not exceeding and
In the next step, we will prove that this , together with some period , works.
Step 2. For any , , there exists with and .
This is the core of the problem. This means, that we can construct the same sequence only checking for prime divisors not exceeding some finite number .
Suppose that, this claim fails and let the ordered pair be the smallest pair (lexicographically) that the claim fails. We write where
The assumption yields that has no divisors in . Note that due to minimality of ,
This implies that for each , and have a common divisor.
Assume first that . Due to the observation in Step 1, would be a member of , but this would contradict the minimality of .
Assume now that . Let be a common divisor of and . Then . Consider the numbers
Let be the first index for which
Since it follows . At this point, we determine the value of . We take . In this case
thus
Since for we have . But (*) contradicts the minimality of . Therefore, no such pair exists, and the claim of Step 2 holds.
Step 3.
It follows directly from Step 2 and Step 1, since the sets of prime factors not exceeding , for and are identical. Let
The claim of Step 3 shows
which completes the proof.
Remark. In fact, in Step 2 we can choose and there will still exist satisfying (*). Indeed, . Starting from and multiplying successively by , let be the first index for which . Then , and hence . Thus (*) holds. Therefore, we can optimize the choice of in this way, although for the main argument it is enough to establish the existence of such an
Here we comment on a problem from the recent IMO 2026, an excellent problem that I think was the most difficult of this IMO. Suppose two people (players) want to divide between themselves a chunk of something with a certain mass (or value), say, . A fair procedure would be for the first player to divide the chunk into two or more pieces, and then for the players to take turns choosing pieces, starting with the second player. Thus, the first player should divide the chunk into an even number of pieces, paired into equal pieces. It would be very unfair if the first player divided the chunk and then started choosing, because he could simply not divide it at all and take the whole chunk.
So, we can modify this scenario a little. The first player divides the chunk into several pieces, and then the second player makes a refinement; that is, he can divide some of the pieces obtained by the first player into smaller pieces. Finally, they begin to distribute the resulting pieces among themselves, starting with the first player. If there is no restriction on the number of additional pieces the second player can create, then the game is perfectly fair: no matter how the first player divides the chunk, the second player can divide each of the resulting pieces into two equal parts.
Suppose now that we impose some restrictions. For example, suppose that the number of pieces into which the first player can divide the chunk is at most , and the number of additional pieces the second player can introduce by partitioning some of these pieces into smaller ones is at most .
If , the game is still fair. The first player creates (or fewer) pieces, and the second player divides each of them into two equal pieces.
But it is not clear what happens when . In this case, it is no longer possible for the second player to equalize the game in this way, so there may be a discrepancy between the amounts collected by the two players, in favor of the first player, since he chooses the first piece after the division is over.
The answer to this question in the case is, in fact, Problem 3 of IMO 2026. It turns out that the first player can guarantee a difference in his favor of
After the solution below, we also consider the case for which answer is the same. Perhaps this is true for any I am not sure and have not thought much about it. If so, however, it would be an interesting fact: the profit of the first player would not depend on the number of pieces he is allowed to create initially, but only on the number of additional pieces the second player is allowed to create, provided that
Problem (IMO 2026, P3). Let be a positive integer. Liu Bang and Xiang Yu have a stick of length and want to divide it between themselves. Liu Bang marks at most points on the stick, and then Xiang Yu marks at most points on the stick. The marked points are distinct. Then, the stick is cut at all marked points, creating a number of pieces. Afterwards, they take turns claiming any unclaimed piece of the stick, with Liu Bang going first. Each player’s goal is to maximize the total length of their own pieces.
For each , determine the largest value such that Liu Bang may guarantee a total length of at least , regardless of Xiang Yu’s play.
(Ilya Bogdanov, Grigory Chelnokov)
Solution
I follow the main idea from the first official solution.
Some observations. We have two players (Liu Bang) and (Xiang Yu). We may assume that each player marks exactly points, but we allow a point to be marked multiple times. Instead of looking at the total length of ‘s pieces, we focus on the difference between the total lengths of the pieces of player and player . Let’s call this difference the profit of the first player.
After the first player puts their marks, we have pieces, , some of which may have zero length. Note that if the second player were allowed to mark points (instead of ), the profit of the first player would be zero, simply because the second player could divide each of the pieces into two equal parts.
So, the second player marks additional points. Let the resulting intervals be , , arranged in decreasing order:
At the stage of choosing pieces, the greedy algorithm is clearly optimal, so
Assume somehow divides the stick into pieces and considers how would play. imagines some further partitioning and obtains a partitioning like in (1). To visualize the differences in (2), draws an arrow from to for . Finally, he introduces a new dummy interval of length which we denote by , and connects to
Now, let us for a moment delete in our minds the pieces , , that the second player cut off from , but keep the arrows. They connect some pieces in
We denote the resulting directed graph by . Note that has no isolated vertices, but there might be loops in it, or multiple arrows might connect with possibly in different directions.
The question is: Can we say something about the profit having in front of us only the graph ?
For example, if consists of directed edges that connect vertices in to vertices in , in this direction, we can write
Note that and . Thus, if one forgets for a moment about the directions of the edges, there is a connected component of with vertices and edges; that is, is a tree. In particular, is a bipartite graph , where .
Now, we bring back the smaller pieces that the second player cut off from and . We will denote these pieces by and write or . We denote the set of directed edges again by . Note that if , then (by definition). We have
Since the two classes of the bipartition may be interchanged, we also obtain the reverse difference. The above estimate is very important. Having only the graph , we infer that is greater than or equal to the difference between the total lengths of two disjoint families of intervals in the partition created by the first player. Hence
This estimate gives us a hint for the strategies of both players and .
Note that . So, it is allowed in (3) that or . This effectively means that we are allowed in (3) to take the empty set as one of the sets . The above estimate suggests that the first player should divide the stick into pieces so as to maximize the right-hand side of (3). At least, this would give us a lower bound for .
The strategy for the first player. Suppose divides the stick into pieces with lengths . A short calculation shows
So, in this case, the right-hand side in (3) is not less than . Indeed, suppose the largest piece in has length , . The case is clear, so let . Then
Therefore, this partitioning allows to guarantee a profit of at least .
This also gives us an idea for the strategy of . After the first player has partitioned the stick into intervals, the second player should select two disjoint families among these intervals such that their total lengths are as close as possible, and then somehow ensure that the contribution of the rest of the intervals to the profit is . This idea can be implemented as follows.
The strategy for the second player. Let the first player have partitioned the stick into a family of intervals. (Here we do not include the dummy interval in .) For each , including , the second player calculates the value
We have values; the smallest one is and the largest one is . This means that there are two subfamilies for which
If , we remove the intervals that are in both and , so we can assume . We put the intervals of and one after another, as shown in the figure. The intervals in are arranged one after another at the bottom, while the intervals in are arranged on top, aligned to the left. The blue dots are the cuts made by the first player, and the red ones are the cuts the second player makes.
Figure 1.
It can be seen that uses at most cuts. Then, the second player cuts any other interval in half. Thus, he uses at most points for both operations. Since a pair of equal intervals cancels out in its contribution to the profit , it follows that the profit of the first player is at most
Remark. Note that the refinement of the intervals in and shown in Figure 1 is not unique. There is no need to pair the resulting pieces into pairs of equal lengths. It is enough that the pieces in the refined partition can be matched in such a way that, in the decreasing ordering used by the greedy algorithm, a piece coming from is followed by a piece coming from , except for the last piece.
Beyond the IMO problem. What if the second player has one fewer cut?
Let’s go back to the scenario in the introduction. The first player is allowed to divide the unit segment into pieces and the second player can further divide some of them so that the total number of pieces at the end is We proved that in the case the profit of the first player is
We will now sketch that the same holds in the case that is, the profit of the first player is
The first player can guarantee a profit by partitioning the unit into one piece of length and pieces with lengths
where Since the second player can add at most pieces, we are in the previous hypothesis. It remains to show that the second player can ensure that the profit is at most
Let the first player have created subintervals of the unit segment. We choose two disjoint families of these intervals with minimum discrepancy between their total lengths. Let us first consider the case when, say, is empty and thus consists of only one interval. In this case it will be an interval with minimal length. Denote its length by then we have There are other intervals with total length . According to the previous section (by scaling to ), we can divide some of them and obtain intervals consisting of pairs of intervals with equal length and one interval of length . The equal intervals cancel each other out, because if one of the players takes one of them, the other player takes its mate. So, the profit of the first player is
Let us now consider the case when Set Consider first the case There are intervals not in or We can divide each of them in half using cuts, thus increasing the number of pieces by These intervals do not affect the profit of the first player, so in this case the first player’s profit is even less: at most
Assume now There are intervals not in or We divide each of them in half using cuts, thus increasing the number of pieces by These intervals do not affect the profit of the first player. Suppose the total length of the intervals in is not less than the total length of the intervals in .
We arrange the intervals in and in two rows, one above the other, as shown in the figure 1. We cut them in the same way as above, except that we omit the last cut, at the right endpoint of the row corresponding to in Figure 1. We obtain refinements of and respectively. In this refinement, there are pairs of pieces of equal length, which we match. There is one remaining unmatched piece in and one remaining unmatched piece in Indeed, if there remained more than one unmatched interval in this would contradict the fact that and have minimum discrepancy. If two pieces have equal lengths, then in the decreasing order they can be placed next to each other when we apply the greedy algorithm. Their contribution to the alternating sum is . Removing such a pair does not change the profit of the first player. Therefore, the first player’s profit is at most
What happens if the players alternate?
One of the authors of the problem pointed out the following modification of the game, which, according to him, is still an open problem.
In the original problem, the first player makes a certain number of divisions/cuts, after which his moves are over and he passes the ball to the second player, who does the same. What happens if the players alternate? Taking turns, starting with the first player, each player marks one point on the stick. The stick is then cut at all the marked points, and from that point on the procedure is the same.
Suppose that each player has marked points. Note that the first player’s gain cannot be smaller than his gain in the original game. Indeed, he can use the same strategy without paying any attention to the second player’s moves. It is as if the second player made all his moves at the end. Thus, the first player’s gain is at least .
But can the first player guarantee himself a larger gain? Notice that the second player’s strategy in the previous game makes essential use of the information about all the cuts made by the first player. In the new game, this information is not available until almost the end, and the second player has to act using information about only some of the first player’s moves. Thus, it is entirely possible that the first player can somehow force the second player to make a move that would not be optimal in the final situation, when all of the first player’s moves are known.
I have to give several lectures on olympiad topics, and I decided to prepare something about generating functions. There are many resources and problems available, and I have used some of them, but since I always prefer to present things in my own way, I also included a couple of problems that I have commented on over the years.
Here is one classical example—a nice additive combinatorics problem. There are many possible approaches, as one can see in the AoPS thread devoted to it. I have also written a solution using the discrete Fourier transform. Here we present an approach proposed in post #3 and corrected in post #7 of that thread. The latter solution, written by Victor Wang (USA, IMO Gold Medalist 2013), is very concise, so below one can find a more detailed explanation, with some parts generalized slightly.
One may argue that this problem is not the best illustration of the generating functions technique. Nevertheless, it does use this idea, and the application is both elegant and instructive.
Problem (IMO Shortlist 1999, C6). Suppose that every integer has been given one of the colors red, blue, green or yellow. Let and be odd integers so that . Show that there are two integers of the same colour whose difference has one of the following values: or .
Solution
As is often the case in problems of this kind, we begin with a proof by contradiction. Assume, on the contrary, that the statement is false. Then, for any , the integers have distinct colours. The same is true for the integers . Therefore, we may further assume that .
Let be the set of, say, red integers. Then are pairwise disjoint sets, and they also cover the integers, because exactly one of is red for each integer .
Let denote the indicator function of . It can be proved that is periodic with some period .
Indeed, take some integer and consider the following -tuples:
Clearly, there are two tuples, corresponding to and , that coincide, which yields that is periodic with period .
Further, we have
Here, and for all , but we will prove that this is not possible under more general conditions.
Claim. Let be odd integers. There does not exist a bounded function for which
Proof. A similar argument as above shows that is periodic with some period . Let us denote and
he following lemma reduces the problem to a purely algebraic one.
Lemma. For any we have
Indeed,
Summing these equalities for , it is enough to prove that for any and ,
This is a straightforward calculation based on the fact that
This Lemma implies
for some polynomial . Plugging into (*) gives , hence , where and is odd.
If every root of , except , is a root of , then
Plugging yields , a contradiction.
Suppose there is a root of that is a root of, say, . Since , we have
for some . Thus
which yields
since is odd. Thus , hence , a contradiction.
Remark. Another possibility to overcome the fact that or may be negative is to work in the Laurent polynomial ring .