Well-Ordered Sets and Infinite Trees. A KöMaL Problem.

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 \mathcal T consist of all undirected trees with finitely or countably infinitely many vertices. Call a set X\subseteq\mathbb R bariton if each nonempty subset of X possesses a smallest element.

(a) Show that any bariton set X admits a map f:X\longrightarrow\mathcal T satisfying, for every y,z\in X,

y\le z\quad\Longleftrightarrow\quad f(y)\text{ is isomorphic to some subgraph of }f(z).

(b) Is this still possible if every vertex in every tree f(x) must have only finitely many neighbours?

Here, “countable” includes finite sets: the vertex set must admit an injection into \mathbb N.

(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 x\in X that is not the greatest element, let s(x)=\min\{y\in X:y>x\} and choose a rational number q_x\in(x,s(x)). These intervals are pairwise disjoint, so the map x\mapsto q_x is injective. Since \mathbb{Q} is countable, so is X, including its possible greatest element.

Thus X can be identified with a countable ordinal \alpha. There is a natural mapping of countable ordinals to trees \xi\to T_{\xi}\in \mathcal{T}.
Map 0 to a single-vertex rooted tree T_0. If \xi=\eta+1, construct T_\xi by taking a new root and joining it to the root of a copy of T_\eta. Thus each finite ordinal n corresponds to a path with n edges, rooted at an endpoint. If \xi is a nonzero limit ordinal, construct T_\xi by taking a new root and joining it to the roots of disjoint copies of T_\eta for all \eta<\xi.

Every resulting tree is countable, has no infinite branch, and has rooted rank exactly \xi. Moreover, whenever \eta<\xi, we have T_\eta\hookrightarrow T_\xi, where the arrow denotes a subgraph embedding.

However, the converse need not hold. For example, \omega+3\hookrightarrow \omega+2, where \omega is the first infinite ordinal. This happens, because it contains a subtree isomorphic to the tree for \omega+3 with a different designated root.

Solution

Part (a). We will modify the shown natural mapping in order to construct trees satisfying

\displaystyle T_\xi\hookrightarrow T_\eta \iff \xi\le\eta,

where \hookrightarrow denotes a subgraph embedding.

Let T_n be a star with n leaves, and let T_\omega be a countably infinite star, rooted at its centre. For each limit ordinal \lambda>\omega, choose \lambda_1<\lambda_2<\ldots with \sup \lambda_i=\lambda and join a new root to the roots of disjoint copies of T_{\lambda_i}. For a nonzero limit ordinal \lambda and n\ge1, construct T_{\lambda+n} by joining a new root to the roots of n+1 disjoint copies of T_\lambda.

By construction, we have

\displaystyle \xi\le\eta \implies T_\xi\hookrightarrow T_\eta.

For the converse, let T_\xi\hookrightarrow T_\eta and assume \eta<\xi. See now that the root of T_{\xi} cannot be mapped to any vertex of T_{\eta} other than the root of T_{\eta}. 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 v_0 and give it two children, labelled by the intervals (-\infty,0] and [0,\infty). Each vertex carries an interval I and the corresponding set X\cap I. 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 [a,b] receives two children labelled by

\displaystyle [a,(a+b)/2]\quad\text{and}\quad[(a+b)/2,b].

A leaf labelled by [a,\infty) receives children labelled by

\displaystyle [a,a+1]\quad\text{and}\quad[a+1,\infty).

Similarly, a leaf labelled by (-\infty,b] receives children labelled by

\displaystyle (-\infty,b-1]\quad\text{and}\quad[b-1,b].

Again delete children whose intervals have empty intersection with X.

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 \overline{X}, since the length of the labelled interval tends to 0. Conversely, every point of \overline{X} is represented by at least one such branch (two branches may represent the same point).

For each x\in X, take the union of all branches representing points y\in\overline{X} with y\le x. Finally, attach three additional leaves to v_0, obtaining the tree T_x.

Each T_x is countable. Its root has degree at least four, while every other vertex has degree at most 3. Consequently, every embedding between these trees preserves the root and therefore preserves distances from it.

Clearly, if x\le y, then T_x\subseteq T_y.

Conversely, suppose T_x\hookrightarrow T_y. If x>y, follow a branch representing x until its interval lies entirely above y. The corresponding vertex belongs to T_x but not to T_y. Since T_y\subseteq T_x and every level is finite, T_x has strictly more vertices at that level than T_y. But every embedding preserves the root and hence the levels, which is impossible. Therefore x\le y. Hence

\displaystyle T_x\hookrightarrow T_y\iff x\le y,

and f(x)=T_x is the required mapping.

References.
Komal (Problem A.934, April 2026)

Zagier’s Rabbit out of a Hat

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 x, add the values of all these polynomials that are positive at x. The sum is the same for every rational x.

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 \mathcal{F} be the set of all quadratic polynomials with integer coefficients, a negative leading coefficient, and discriminant 101. For each rational number x, consider the sum

\displaystyle T(x)=\sum_{\substack{P\in\mathcal{F}, P(x)>0}}P(x).

Prove that this sum has the same value for every rational x.

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 p/q, only finitely many such polynomials are positive at p/q. 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 T(x)=\mathrm{const} holds for every real number x, 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 D that is not a perfect square. If D\equiv 2 or 3 \pmod{4}, the family \mathcal F is empty, so the assertion is trivial.

First, we must check that the sum is finite, at least when x=p/q is rational. It is enough to check that there are only a finite number of polynomials P\in \mathcal{F} that satisfy P(p/q)>0. The crucial point here is that if P(p/q)>0 then P(p/q)\ge 1/q^2 because P 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 T(x) is well defined at least for the rational numbers. In fact, the sum converges for any x\in \mathbb{R}, but it’s another story. Let us calculate the difference

\displaystyle T(x)-x^2T(1/x),\qquad x\in \mathbb{Q}, x\ne0.

First observe that the substitutions P(t)\mapsto P(t+1) and P(t)\mapsto P(-t) permute our family of polynomials. Consequently,

\displaystyle T(x+1)=T(x),\qquad T(-x)=T(x).

Since D is not a perfect square, the constant coefficient c of any P\in\mathcal{F} cannot be zero. For a polynomial P\in \mathcal{F}, P(x)=ax^2+bx+c with both a,c<0, coefficient reversal stays within the same subfamily, and

\displaystyle P(x)-x^2P\left(\frac{1}{x} \right)=ax^2+bx+c-\left(cx^2+bx+a\right).

Putting P_1(x):= cx^2+bx+a (which is in \mathcal F, because c<0) instead of P and summing, we see that this subfamily contributes zero to the difference. It remains to consider the subfamily \mathcal H consisting of the polynomials with a<0 and c>0. For P(t)=at^2+bt+c in this subfamily, put

\displaystyle P^r(t)=-ct^2-bt-a.

The map P\mapsto P^r is a bijection (involution) of \mathcal H to \mathcal H, and x^2P(1/x)=-P^r(x).

Write y_+=\max(y,0) and y_-=\min(y,0). The contribution of a single polynomial P\in \mathcal H to our difference is

\displaystyle P(x)_+- \left(x^2P(1/x)\right)_+=P(x)_++P^r(x)_-.

Summing over \mathcal H and using the fact that P\mapsto P^r permutes this subfamily, we obtain

\displaystyle T(x)-x^2T(1/x)=\sum_{P\in\mathcal H}\bigl(P(x)_+ +P^r(x)_-\bigr)=\sum_{P\in\mathcal H}P(x).

The subfamily \mathcal H is finite, since

\displaystyle \mathcal H=\{P\in \mathcal{F} : P(0)>0\},

and, as mentioned, it is a finite set. Also,

\displaystyle \sum_{\mathcal H}c=C,\qquad \sum_{\mathcal H}b=0,\qquad \sum_{\mathcal H}a=-C,

where C:= T(0). Here the first equality follows from the definition of T(0), the second from the symmetry b\mapsto-b, and the third from (a,b,c)\mapsto(-c,-b,-a). Therefore,

\displaystyle T(x)-x^2T(1/x)=C(1-x^2).

Now set G(x)=T(x)-C. We have

\displaystyle G(x+1)=G(x),\qquad G(x)=x^2G(1/x),\qquad G(0)=0.

These identities imply that G vanishes at every rational number. Indeed, use induction on the denominator of a reduced fraction p/q, with q>0. If q=1, periodicity gives G(p)=G(0)=0. Otherwise, periodicity reduces us to 0<p<q. The reduced fraction q/p has the smaller denominator p, so

\displaystyle G(p/q)=\frac{p^2}{q^2}G(q/p)=0.

Hence T(x)=T(0) for every rational number x.

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.

Be Careful What You Wish For!

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!

25 Balls Are Not Enough

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 26 students, everyone is graded in five subjects, with one of three possible marks in each subject. Prove that if 25 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 H be the space of all ternary strings of length 5, that is

\displaystyle H=\{(s_1,s_2,s_3,s_4, s_5) : s_i\in\{0,1,2\} \}.

For two objects x,y\in H we define the distance d(x,y) between x and y as the number of positions at which x and y differ. This is a kind of Hamming distance but in case of ternary strings. Thus, 0\le d(x,y)\le 5 and d(x,y)=0 only if x=y. Next, for any x\in H let

\displaystyle B_1(x):= \{y\in H: d(x,y)\leq 1\}.

We say that B_1(x) is a ball with center x and radius 1. Henceforth we use the notation H(\ell ,3) for the space consisting of all ternary strings of length \ell. Now, the problem statement can be read as:

Claim. The Hamming graph H(5,3) cannot be covered by 25 unit balls.

A brief historical note

The problem of covering H(5,3) 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 \{0,1,2\}^5, 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 K_3(5,1).

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 H(5,3) is

\displaystyle K_3(5,1)=27.

That is, the Hamming graph H(5,3) cannot be covered by 26 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 H(5,3) cannot be covered by 25 balls of radius 1.

Proof. Let

\displaystyle H(5,3)=A\times B, \qquad A=H(3,3), \qquad B=H(2,3).

The graph B is the 3\times 3 rook graph, that is, each cell of the 3\times 3 table is connected with all the cells on the same row or column. In the same way A is isomorphic to 3\times 3\times 3 rook graph — each cell is connected to the cells of the 3 columns in the coordinate directions.

Suppose for seeking contradiction that H(5,3) can be covered with 25 unit balls.

Definitions. Each point of H(5,3)=A\times B graph we represent as a cross-edge ab between a\in A and b\in B. The unit ball B_h centered at h=ab can be partitioned into two parts

\displaystyle H_a:=\{ab\}\cup \{a'b: a'\in N_A(a)\};\quad H_b:=\{ab': b'\in N_B(b)\}.

Note that |H_a|=7, |H_b|=4.
We denote by C the set of 25 centers (cross-edges) of the unit balls in H(5,3). For any b\in B we denote

\displaystyle C_b:=\{ab:a\in A, ab\in C\}, \quad d_b:=|C_b|

Analogously, for a\in A we use the notations

\displaystyle C_a:=\{ab:b\in B, ab\in C\}, \quad d_a:=|C_a|

We call the set A\times b, a b–fiber.

The idea is to consider how the unit balls centered at points in C cover each b-fiber, particularly b-fibers with d_b=2. We prove that there is some b\in B with d_b=2 such that the corresponding b-fiber is not fully covered.

Then

\displaystyle \sum_{b\in B} d_b = 25.

Fix b\in B. Each ball of radius 1 in H centered at ab, a\in A, ab\in C covers 7 cross-edges inside the b-fiber A\times{b}. It is also possible that a cross-edge ab in the b-fiber to be covered by a ball centered at ab', where b'\in N_B(b). The number of cross-edges of the b-fiber that can be covered like that are at most

\displaystyle \sum_{b'\in N_B(b)} d_{b'}.

Thus for the number of covered cross-edges in a b-fiber we have

\displaystyle \#\{ \text{covered points in the } b \text{-fiber} \}\le 7d_b+ \sum_{b'\in N_B(b)} d_{b'} .\qquad(1)

Therefore

\displaystyle 7d_b+ \sum_{b'\in N_B(b)} d_{b'}\ge 27,\quad \forall b\in B. \qquad(2)

Lemma 1. Degree distribution d_b, b\in B, up to permutation of rows/columns is

\displaystyle \begin{matrix}3 & 2 & 3 \\ 2 & 5 & 2 \\ 3 & 2 & 3\end{matrix} .

Proof. Since \sum_{b\in B}d_b=25 we conclude that there is at least one (even two) b with d_b\le 2. Using (2) we can rule out the existence of b\in B with d_b\le 1. Therefore \#\{b: d_b=2\}\ge 2. Moreover, it follows from (2) that \#\{b: d_b=2\}\ge 4. Straightforward case chasing exploiting (2) shows \#\{b: d_b=2\}\ge 5 is impossible. Hence \#\{b: d_b=2\}=4 and the only possibility of degree distribution d_b, b\in B is (2,2,2,2,3,3,3,3,5). It further can be checked that up to permutation of rows/columns this distribution is

\displaystyle \begin{matrix} 3 & 2 & 3 \\ 2 & 5 & 2 \\ 3 & 2 & 3 \end{matrix}.

Lemma 2. The following conditions hold.

  1. There does not exist a\in A with d_a\ge 3.
  2. Let a,a'\in A, a\neq a' be two adjacent vertices in A such that d_a=d_{a'}=2 and ab_1,ab_2,a'b'_1,a'b'_2\in C. Then d_{b_1}=d_{b_2}=3, d_{b'_1}=d_{b'_2}=3. Moreover, b_1,b_2 are not adjacent in B and b'_1, b'_2 are not adjacent in B.

Proof. Let first assume d_a=3 and let ab_i, i=1,2,3 be the three cross-edges (codewords) in H. Then there exists b\in B with d_{b}=2 such that b is adjacent to some b_i,b_j, i\ne j or b=b_i, and b_i and b_j are adjacent. This is a direct implication of Lemma 1.

Note that for any b\in B with d_b=2, 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 ab is counted at least twice, because it is in the two unit ball centered at a b_i and a b_j respectively.

Assume now we have two adjacent points a,a' in A with d_{a}=2,d_{a'}=2 Let ab_1,ab_2, b_1,b_2 \in C, a'b'_1,a'b'_2, b'_1,b'_2 \in C be the four centers in H.

If there exists a vertex b \in B with d_b=2 such that both b_1 and b_2 are adjacent to b or b'_1 and b'_2 are adjacent to b then the same argument as before brings us to contradiction.
Likewise, if d_{b_1}=2 and b_2 is adjacent to b_1, then the b_1-fiber is not covered, since a b_1 lies in the balls centered at a b_1 and a b_2 respectively.

Assume that either d_{b_1}=2 or d_{b_2}=2. The only possibility is that d_{b_1}=d_{b_2}=2 and that b_1,b_2 are not adjacent. The same holds for b'_1,b'_2.

If b_i=b'_j for some i,j, then again b_i-fiber could not be covered. It means \{b_1,b_2\}\cap \{b'_1,b'_2\}=\emptyset and the only possibility is d_{b_i}=2, d_{b'_i}=2, i=1,2. But then some b_i is adjacent to some b'_j in B. Since a and a' are adjacent in A, it again implies that the cross-edge a b'_j is in the two unit balls centered at a b_i and at a'b'_j respectively. Thus, the b'_j-fiber is not fully covered, contradiction.

Therefore, the only possibility that does not bring a contradiction is d_{b_1}=d_{b_2}=3, d_{b'_1}=d_{b'_2}=3 and neither b_1,b_2 nor b'_1, b'_2 are adjacent in B. \square

Further, we have

\displaystyle \sum_{a\in A} d_a = 25.

Lemma 2 yields

\displaystyle d_a\leq 2,\,\text{ for every } a\in A.

We represented H(5,3) as A\times B, where A\cong H(3,3), B\cong H(2,3), we have freedom of choosing any two of the five coordinates to obtain the set B. That is, Lemma 1 is true for a set B' 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 H(5,3). Consequently, each of the three coordinate projections of the 3\times 3\times 3 cube A must induce a degree distribution satisfying Lemma 1. That is, each such projection must consist of the multiset of values

\displaystyle \{2,2,2,2,3,3,3,3,5\}.

Note that projecting the 3\times 3\times 3 cube on any coordinate plane can produce value 5 only as 2+2+1. That is, there exist two adjacent in A vertices a,a' with d_a=d_{a'}=2. These vertices a,a' lie on a line perpendicular to the chosen coordinate plane. Thus, there are three such pairs, let us denote them as (a_1,a_1'), (a_2,a_2'), (a_3,a_3').
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 b-fibers with d_b=3 covered by the unit balls centered at points in C. Note that in right hand side of (1) some elements of H(5,3) might be counted with multiplicity. Each extra count of a point in \{A\times b : b\in B, d_b=3\} beyond its first count is called an overlap-unit. Similarly to the argument in Lemma 2, it follows that there are at least 8 overlap-units corresponding to cross-edges incident with either a_1 or a'_1.

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 (a_i,a_i'), i=2,3 forces at least 8 new overlap-units. We omit this routine check here. Thus the number of overlap-units is at least 3\cdot 8=24. Since \left|\{b\in B: d_b=3\}\right|=4, there are at least 6 overlap-units that correspond to some b_0\in B, d_{b_0}=3.

Now, (1) yields

\displaystyle \#\{\text{covered points in the }b_0\text{ fiber}\}\le 7d_{b_0}+ \sum_{b'\in N_B(b_0)} d_{b'} - 6,

that is,

\displaystyle \#\{\text{covered points in the }b_0\text{-fiber}\}\le 7\cdot 3 + 10 -6=25<27.

This means that not all points of A\times b_0 are covered by the unit balls centered at points in C, contradiction. Thus, no covering code of cardinality 25 exists in H(5,3).

26 balls are not enough …

The question is: can the same argument be used to prove that H(5,3) cannot be covered with 26 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 H(2,3), 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.

The Magic Behind Vector Rotation

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 ABC, a point D is chosen, and squares ADEF, BDGH, and CDIJ are constructed. Prove that the midpoints K, L, M of segments AI, BE, CG, 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 ABC under a rotation of
-90^\circ about center D is triangle IEG. This gives us a second equilateral triangle, IEG.

Thus, the problem becomes a special case of the following more general fact:

Problem 2. Given equilateral, identically oriented triangles A_iB_iC_i, i=1,2, the midpoints A, B, C of segments A_1A_2, B_1B_2, C_1C_2, 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 \{\vec{a}\} the image of \vec{a} under a rotation of 60^\circ.

From the properties of rotation (a linear operator in the plane), it follows that

\{\alpha\vec{a}+\beta\vec{b}\}= \alpha\{\vec{a}\}+ \beta\{\vec{b}\}.

Let’s See How It Works

The triangles A_iB_iC_i, i=1,2, are equilateral which is equivalent to

\{\overrightarrow{A_iB_i}\}=\overrightarrow{A_iC_i}, \quad i=1,2.\quad (1)

Let us express the vectors \overrightarrow{AB} and \overrightarrow{AC}:

\overrightarrow{AB}=\frac12(\overrightarrow{A_1B_1} +\overrightarrow{A_2B_2}) \ \text{and } \ \overrightarrow{AC}=\frac12(\overrightarrow{A_1C_1} +\overrightarrow{A_2C_2}).\quad (2)

From (1) and (2) it follows that

\{\overrightarrow{AB}\} =\overrightarrow{AC},

which means that if \overrightarrow{AB}= \vec{0} then also \overrightarrow{AC}= \vec{0}, so A=B=C. Otherwise, the triangle ABC is equilateral.

A standard generalization is to choose the points A, B, C so that they divide the segments A_1A_2, B_1B_2, C_1C_2, respectively, in the same ratio. In the same way, it follows that the points A,B, C either coincide or form an equilateral triangle.

Let us consider one final example to illustrate the idea.

Problem 3. Given equilateral, identically oriented triangles ABC, BDE, DFG, the midpoints M, L, K of segments AF, EG, CE, respectively, are the vertices of an equilateral triangle.

Denote \overrightarrow{AB}=\overrightarrow{a}, \overrightarrow{BD}=\overrightarrow{b}, \overrightarrow{DF}=\overrightarrow{c}. Some of the images of these vectors under a rotation of 60^\circ are shown in the figure. Then

\overrightarrow{ML}=\frac12(\overrightarrow{AE}+ \overrightarrow{FG})=\frac12(\vec{a}+\{\vec{b}\}+\{\{\vec{c}\}\}),

\overrightarrow{MK}=\frac12(\overrightarrow{AC}+ \overrightarrow{FE})=\frac12(\{\vec{a}\}-\vec{c}+\{\{\vec{b}\}\}).

Using the obvious property of 60^\circ-rotation

\{\{\{\vec{c}\}\}\}=-\vec{c}

we get

\{\overrightarrow{ML}\}=\frac12(\{\vec{a}\}+\{\{\vec{b}\}\}+\{\{\{\vec{c}\}\}\})=\overrightarrow{MK},

which, translated from the language of vectors, means that the triangle MLK 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.

Who the F. is Alice?

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!

IMO 2026, Problem 6: A Gold Medal Solution

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 a_1, a_2, a_3, \ldots be an infinite sequence of positive integers greater than 1. Suppose that for all positive integers n, the number a_{n+1} is the smallest positive integer greater than a_n such that \text{gcd}(a_{n+1}, a_i)>1 for every i=1,2,\ldots, n. Prove that there exist positive integers T and L such that

\displaystyle a_{n+T}=a_n+L

for every positive integer n.

(Hung-Hsun Hans Yu, Taiwan)

Solution

It is more appropriate to view our sequence as a set of numbers

\displaystyle A:=\{a_n : n\in \mathbb{N} \}.

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 P of prime numbers such that, for any a,b\in A, there is a prime p\in P with p\mid a and p\mid b. The third step provides the final touch.

Step 1. If x\in \mathbb{N} has a common divisor greater than 1 with every a\in A less than x then x\in A.

Indeed, assume x\notin A and let a_n<x<a_{n+1}. Now, recall how the next member of the sequence is determined, and that in fact after determining the sequence up to a_n, the next term must be x, not a_{n+1}.

Let M be a sufficiently large number (which we shall determine later). Let P be the set of all prime numbers not exceeding M and

\displaystyle L=\prod_{p\in P} p.

In the next step, we will prove that this L, together with some period T, works.

Step 2. For any i,j\in \mathbb{N}, i<j, there exists p\in P with p\mid a_i and p\mid a_j.

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 M.

Suppose that, this claim fails and let the ordered pair (i,j) be the smallest pair (lexicographically) that the claim fails. We write a_i=xy where

\displaystyle x=\prod_{p\in P_1\subset P} p^{\alpha(p)} \quad \text{and}\qquad \forall p\in P, p\nmid y.

The assumption yields that a_j has no divisors in P_1. Note that due to minimality of (i,j),

\displaystyle \text{for any }s,\,  1\le s< i \quad \exists p\in P,\text{ such that } p\mid a_s,\, p\mid a_i.

This implies that for each 1\le s <i, a_s and x have a common divisor.

Assume first that a_1\le x< a_i. Due to the observation in Step 1, x would be a member of (a_n), but this would contradict the minimality of (i,j).

Assume now that x<a_1. Let q\in P be a common divisor of a_1 and a_i. Then q\le a_1. Consider the numbers

\displaystyle N_s:=x q^s, s=0,1,\ldots .

Let \ell>0 be the first index for which

\displaystyle x q^{\ell-1}<a_1 \quad \text{and}\quad x q^{\ell}\ge a_1.

Since q\le a_1 it follows a_1\le x q^{\ell}<a_1^2. At this point, we determine the value of M. We take M=a_1^2. In this case

\displaystyle a_i=xy\ge y>M=a_1^2,

thus

\displaystyle a_1\le x q^{\ell}<a_i.\qquad (*)

Since (x q^{\ell}, a_s)>1 for 1\le s\le i we have x q^{\ell} \in A. But (*) contradicts the minimality of (i,j).
Therefore, no such pair (i,j) exists, and the claim of Step 2 holds.

Step 3.

\displaystyle a\in A \implies a+L \in A; \quad a+L \in A, a\ge a_1 \implies a\in A.

It follows directly from Step 2 and Step 1, since the sets of prime factors not exceeding M, for a and a+L are identical. Let

\displaystyle T:=\#\{a\in A : a_1\le a< a_1+L\}.

The claim of Step 3 shows

\displaystyle a_{n+T}=a_n+L,\qquad\forall n\in\mathbb{N},

which completes the proof.

Remark. In fact, in Step 2 we can choose M:=a_1, and there will still exist \ell\in\mathbb N satisfying (*). Indeed, a_i=xy>xM\ge qa_1. Starting from x<a_1 and multiplying successively by q, let \ell be the first index for which xq^\ell\ge a_1. Then xq^{\ell-1}<a_1, and hence xq^\ell<qa_1<a_i. Thus (*) holds. Therefore, we can optimize the choice of L in this way, although for the main argument it is enough to establish the existence of such an L.

IMO 2026, Problem 3, and Beyond

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, 1. 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 m, and the number of additional pieces the second player can introduce by partitioning some of these pieces into smaller ones is at most n.

If n\ge m, the game is still fair. The first player creates m (or fewer) pieces, and the second player divides each of them into two equal pieces.

But it is not clear what happens when n<m. 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 n=m-1 is, in fact, Problem 3 of IMO 2026. It turns out that the first player can guarantee a difference in his favor of

\displaystyle \frac{1}{2^{n+1}-1}.

After the solution below, we also consider the case n=m-2, for which answer is the same. Perhaps this is true for any n<m, 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 m he is allowed to create initially, but only on the number of additional pieces n the second player is allowed to create, provided that n<m.

Problem (IMO 2026, P3). Let n be a positive integer. Liu Bang and Xiang Yu have a stick of length 1 and want to divide it between themselves. Liu Bang marks at most n points on the stick, and then Xiang Yu marks at most n 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 n, determine the largest value c such that Liu Bang may guarantee a total length of at least c, 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 A (Liu Bang) and B (Xiang Yu). We may assume that each player marks exactly n points, but we allow a point to be marked multiple times. Instead of looking at the total length of A‘s pieces, we focus on the difference \varepsilon between the total lengths of the pieces of player A and player B. Let’s call this difference \varepsilon the profit of the first player.

After the first player puts their marks, we have n+1 pieces, I_1,I_2,\ldots,I_{n+1}, some of which may have zero length. Note that if the second player were allowed to mark n+1 points (instead of n), the profit of the first player would be zero, simply because the second player could divide each of the n+1 pieces into two equal parts.

So, the second player marks n additional points. Let the resulting 2n+1 intervals be I'_i, 1\le i\le 2n+1, arranged in decreasing order:

\displaystyle |I'_1|\ge |I'_2|\ge \ldots \ge |I'_{2n+1}|. \qquad (1)

At the stage of choosing pieces, the greedy algorithm is clearly optimal, so

\displaystyle  \varepsilon = \sum_{i=1}^n (|I'_{2i-1}|-|I'_{2i}|)+(|I'_{2n+1}|-0). \qquad (2)

Assume A somehow divides the stick into n+1 pieces and considers how B would play. A imagines some further partitioning and obtains a partitioning like in (1). To visualize the differences in (2), A draws an arrow from I'_{2i-1} to I'_{2i} for i=1,2,\ldots,n. Finally, he introduces a new dummy interval of length 0, which we denote by I_0, and connects I'_{2n+1} to I_0.

Now, let us for a moment delete in our minds the pieces I'_i, 1\le i\le 2n+1, that the second player cut off from I_i, 1\le i\le n+1, but keep the arrows. They connect some pieces in

\displaystyle \mathcal{I}:=\{I_1,I_2,\ldots,I_{n+1}\}\cup\{I_0\}.

We denote the resulting directed graph by G(\mathcal{I},E). Note that G has no isolated vertices, but there might be loops in it, or multiple arrows might connect I_i with I_j, possibly in different directions.

The question is: Can we say something about the profit \varepsilon having in front of us only the graph G(\mathcal{I},E)?

For example, if E consists of directed edges that connect vertices in \mathcal{I}_1\subset\mathcal{I} to vertices in \mathcal{I}_2:=\mathcal{I}\setminus\mathcal{I}_1, in this direction, we can write

\displaystyle \varepsilon=\sum_{I\in\mathcal{I}_1}|I|-\sum_{I\in\mathcal{I}_2}|I|.

Note that |\mathcal{I}|=n+2 and |E|=n+1. Thus, if one forgets for a moment about the directions of the edges, there is a connected component G'(\mathcal{I}',E') of G with k vertices and k-1 edges; that is, G' is a tree. In particular, G' is a bipartite graph G'(\mathcal{A},\mathcal{B}), where \mathcal{A},\mathcal{B}\subset\mathcal{I}.

Now, we bring back the smaller pieces that the second player cut off from \mathcal{A} and \mathcal{B}. We will denote these pieces by \Delta,\Delta' and write \Delta\in\mathcal{A} or \Delta'\in\mathcal{B}. We denote the set of directed edges (\Delta,\Delta') again by E'. Note that if (\Delta,\Delta')\in E', then |\Delta|\ge|\Delta'| (by definition). We have

\displaystyle \varepsilon \ge \sum_{\substack{(\Delta,\Delta')\in E',\Delta\in\mathcal{A},\Delta'\in\mathcal{B}}}\left(|\Delta|-|\Delta'|\right)+\sum_{\substack{(\Delta',\Delta)\in E',,\Delta'\in\mathcal{B},\Delta\in\mathcal{A}}}\left(|\Delta'|-|\Delta|\right)

\displaystyle \ge \sum_{\substack{(\Delta,\Delta')\in E',,\Delta\in\mathcal{A},\Delta'\in\mathcal{B}}}\left(|\Delta|-|\Delta'|\right)+\sum_{\substack{(\Delta',\Delta)\in E',,\Delta'\in\mathcal{B},\Delta\in\mathcal{A}}}\left(|\Delta|-|\Delta'|\right)

\displaystyle =\sum_{\Delta\in\mathcal{A}}|\Delta|-\sum_{\Delta'\in\mathcal{B}}|\Delta'|=\sum_{I\in\mathcal{A}}|I|-\sum_{I\in\mathcal{B}}|I|.

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 G, we infer that \varepsilon is greater than or equal to the difference between the total lengths of two disjoint families of intervals in the partition \mathcal{I} created by the first player. Hence

\displaystyle \varepsilon \ge  \min \left\{\left|\sum_{I\in\mathcal{A}}|I|-\sum_{I\in\mathcal{B}}|I|\right| : \mathcal{A},\mathcal{B}\subset\mathcal{I},\, \mathcal{A},\mathcal{B}\neq \emptyset,\, \mathcal{A}\neq\mathcal{B},\,\mathcal{A}\cap\mathcal{B}=\emptyset \right\}. \qquad (3)

This estimate gives us a hint for the strategies of both players A and B.

Note that I_0\in\mathcal{I}. So, it is allowed in (3) that \mathcal{A}=\{I_0\} or \mathcal{B}=\{I_0\}. This effectively means that we are allowed in (3) to take the empty set as one of the sets \mathcal{A},\mathcal{B}. The above estimate suggests that the first player should divide the stick into n+1 pieces so as to maximize the right-hand side of (3). At least, this would give us a lower bound for \varepsilon.

The strategy for the first player. Suppose A divides the stick into n+1 pieces with lengths \delta,2\delta,4\delta,\ldots,2^n\delta. A short calculation shows

\displaystyle \delta=\frac{1}{2^{n+1}-1}.

So, in this case, the right-hand side in (3) is not less than \delta. Indeed, suppose the largest piece in \mathcal{A}\cup\mathcal{B} has length 2^k\delta, k\ge0. The case k=0 is clear, so let k\ge1. Then

\displaystyle \left|\sum_{I\in\mathcal{A}}|I|-\sum_{I\in\mathcal{B}}|I|\right|\ge 2^k\delta-\sum_{i=0}^{k-1}2^i\delta=\delta.

Therefore, this partitioning allows A to guarantee a profit of at least \delta.

This also gives us an idea for the strategy of B. After the first player has partitioned the stick into n+1 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 \varepsilon is 0. This idea can be implemented as follows.

The strategy for the second player. Let the first player have partitioned the stick into a family \mathcal{I} of n+1 intervals. (Here we do not include the dummy interval in \mathcal{I}.) For each \mathcal{A}\subset\mathcal{I}, including \mathcal{A}=\emptyset, the second player calculates the value

\displaystyle f(\mathcal{A}):=\sum_{I\in\mathcal{A}}|I|.

We have 2^{n+1} values; the smallest one is 0 and the largest one is 1. This means that there are two subfamilies \mathcal{A}\neq\mathcal{B} for which

\displaystyle |f(\mathcal{A})-f(\mathcal{B})|\le\delta=\frac{1}{2^{n+1}-1}.

If \mathcal{A}\cap\mathcal{B}\neq\emptyset, we remove the intervals that are in both \mathcal{A} and \mathcal{B}, so we can assume \mathcal{A}\cap\mathcal{B}=\emptyset.
We put the intervals of \mathcal{A} and \mathcal{B} one after another, as shown in the figure. The intervals in \mathcal{A} are arranged one after another at the bottom, while the intervals in \mathcal{B} 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 B uses at most |\mathcal{A}|+|\mathcal{B}|-1 cuts. Then, the second player cuts any other interval I\notin \mathcal{A}\cup\mathcal{B}, in half. Thus, he uses at most n points for both operations. Since a pair of equal intervals cancels out in its contribution to the profit \varepsilon, it follows that the profit of the first player is at most \delta. \qquad

Remark. Note that the refinement of the intervals in \mathcal{A} and \mathcal{B} 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 \mathcal{A} is followed by a piece coming from \mathcal{B}, 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 m pieces and the second player can further divide some of them so that the total number of pieces at the end is m+n. We proved that in the case n=m-1, the profit of the first player is

\varepsilon := \displaystyle \frac{1}{2^{n+1}-1}=\frac{1}{2^{m}-1}.

We will now sketch that the same holds in the case n=m-2, that is, the profit of the first player is \displaystyle \varepsilon := \displaystyle \frac{1}{2^{m-1}-1}.

The first player can guarantee a profit \varepsilon by partitioning the unit into one piece of length 0 and m-1 pieces with lengths

\displaystyle \delta, 2\delta, 4\delta,\ldots,2^{m-2}\delta,

where \displaystyle \delta:= \frac{1}{2^{m-1}-1}. Since the second player can add at most (m-1)-1 pieces, we are in the previous hypothesis.
It remains to show that the second player can ensure that the profit is at most \varepsilon.

Let the first player have created m subintervals of the unit segment. We choose two disjoint families \mathcal{A}, \mathcal{B} of these intervals with minimum discrepancy between their total lengths. Let us first consider the case when, say, \mathcal{B} is empty and thus \mathcal{A} consists of only one interval. In this case it will be an interval with minimal length. Denote its length by x, then we have \displaystyle x\le \frac{1}{2^{m}-1}. There are m-1 other intervals with total length 1-x. According to the previous section (by scaling 1-x to 1 ), we can divide some of them and obtain m-1+(m-2)=2m-3 intervals consisting of m-2 pairs of intervals with equal length and one interval of length y\leq \frac{1}{2^{m-1}-1} (1-x). 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

\displaystyle |y-x|\le \left |\frac{1}{2^{m-1}-1} (1-x)  \right|\le \frac{1}{2^{m-1}-1}.

Let us now consider the case when \mathcal{A}, \mathcal{B}\neq \emptyset. Set k:= |\mathcal{A}|+ |\mathcal{B}|. Consider first the case k=2. There are m-2 intervals not in \mathcal{A} or \mathcal{B}. We can divide each of them in half using m-2 cuts, thus increasing the number of pieces by m-2. 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 \displaystyle \frac{1}{2^{m}-1}.

Assume now k\ge 3. There are m-k intervals not in \mathcal{A} or \mathcal{B}. We divide each of them in half using m-k cuts, thus increasing the number of pieces by m-k. These intervals do not affect the profit of the first player.
Suppose the total length of the intervals in \mathcal{A} is not less than the total length of the intervals in \mathcal{B}.

We arrange the intervals in \mathcal{A} and \mathcal{B} 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 \mathcal{B} in Figure 1.
We obtain refinements \mathcal{A}', \mathcal{B}' of \mathcal{A} and \mathcal{B}, respectively.
In this refinement, there are pairs of pieces of equal length, which we match. There is one remaining unmatched piece in \mathcal{B}' and one remaining unmatched piece in \mathcal {A}'. Indeed, if there remained more than one unmatched interval in \mathcal{A}' this would contradict the fact that \mathcal{A} and \mathcal{B} 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 0. Removing such a pair does not change the profit of the first player. Therefore, the first player’s profit is at most

\displaystyle \sum_{\Delta\in\mathcal{A}'} |\Delta|- \sum_{\Delta\in\mathcal{B}'} |\Delta| \le \frac{1}{2^{m}-1}.

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 n\ge 1 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 \displaystyle \varepsilon := \frac{1}{2^{n+1}-1}.

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.

On Generating Functions. IMO Shortlist 1999, C6

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 x and y be odd integers so that |x| \neq |y|. Show that there are two integers of the same colour whose difference has one of the following values: x,y,x+y or x-y.

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 n\in \mathbb{Z}, the integers n, n+|x|, n+|y|, n+|x|+|y| have distinct colours. The same is true for the integers n, n-|x|, n-|y|, n-|x|-|y|. Therefore, we may further assume that x>0, y>0.

Let R be the set of, say, red integers. Then R,R-x,R-y,R-x-y are pairwise disjoint sets, and they also cover the integers, because exactly one of n,n+x,n+y,n+x+y is red for each integer n.

Let f denote the indicator function of R. It can be proved that f is periodic with some period \ell>0.

Indeed, take some integer T,, T>x+y and consider the following (x+y)-tuples:

\displaystyle \left(f(kT+1), f(kT+2),\cdots, f(kT+x+y) \right),,\ k=0,1,\ldots.

Clearly, there are two tuples, corresponding to k=k_1 and k=k_2, that coincide, which yields that f is periodic with period \ell=(k_2-k_1)T.

Further, we have

\displaystyle f(n)+f(n-x)+f(n-y)+f(n-x-y)=1,\qquad n=0,1,\ldots,\ell-1.

Here, x>0, y>0 and f(n)\in{0,1} for all n\in\mathbb{Z}, but we will prove that this is not possible under more general conditions.

Claim. Let x,y be odd integers. There does not exist a bounded function f:\mathbb{Z}\to\mathbb{Z} for which

\displaystyle f(n)+f(n-x)+f(n-y)+f(n-x-y)=1,\quad \forall n\in \mathbb{Z}.

Proof. A similar argument as above shows that f(n) is periodic with some period \ell>0. Let us denote a_k:=f(k),\ k\in \mathbb{Z} and

\displaystyle P(t)=\sum_{k=0}^{\ell-1} a_kt^k.

he following lemma reduces the problem to a purely algebraic one.

Lemma. For any m\ge \max(|x|,|y|,|x+y|) we have

\displaystyle t^{m}\left(P(t)(1+t^x)(1+t^y)- (1+t+\cdots+t^{\ell-1})\right) \equiv 0 \pmod{t^\ell-1}.

Indeed,

\displaystyle a_n t^n+ a_{n-x} t^{n-x} t^x + a_{n-y} t^{n-y} t^y + a_{n-x-y} t^{n-x-y} t^{x+y}-t^n=0.

Summing these equalities for n=0,1,\ldots,\ell-1, it is enough to prove that for any s\in\mathbb{Z} and m\ge |s|,

\displaystyle (t^{\ell}-1)\mid t^m \cdot t^s\left(\sum_{n=0}^{\ell-1} a_{n-s} t^{n-s} - \sum_{n=0}^{\ell-1} a_{n} t^{n} \right).

This is a straightforward calculation based on the fact that a_{n+\ell}=a_n. \square

This Lemma implies

\displaystyle t^m \left(P(t)(1+t^x)(1+t^y)-(1+t+\ldots+t^{\ell-1})\right)=(t^{\ell}-1)Q(t) \qquad(*),

for some polynomial Q(t). Plugging t=1 into (*) gives 4P(1)=\ell, hence \ell=2^r\cdot s, where r\ge 2 and s is odd.

  1. If every root of t^{2^r}-1, except t=\pm1, is a root of P(t), then

\displaystyle \frac{t^{2^r}-1}{t^2-1} \mid P(t) \quad\left(\text{ in }\mathbb{Z}[t]\right).

Plugging t=1 yields 2^{r-1} \mid P(1)=\ell/4=2^{r-2}s, a contradiction.

  1. Suppose there is a root \omega\ne \pm1 of t^{2^r}-1 that is a root of, say, t^m(t^x+1). Since \omega^{2^r}=1, we have

\displaystyle \omega=e^{\frac{2\pi i k}{2^r}},

for some k\in \mathbb{Z}. Thus

\displaystyle \omega^x=e^{\frac{2\pi i k x}{2^r}}=-1=e^{\pi i (2p+1)},

which yields

\displaystyle kx=2^{r-1}(2p+1)\implies 2^{r-1}\mid k,

since x is odd. Thus \omega^2=1, hence \omega=\pm1, a contradiction. \square

Remark. Another possibility to overcome the fact that x or y may be negative is to work in the Laurent polynomial ring \mathbb{Z}[t,t^{-1}].