How To Compose A Problem PDF
How To Compose A Problem PDF
Hung-Hsun Hans Yu
February 16, 2023
Each year, there is endless need for quality and novel problems in TSTs and contests
all around the world. For example, the entire Taiwan team selection process now requires
47 problems a year (it was 36 before). Even if, say, 25 problems are chosen from the
ISL, there are still 22 slots to fill in. On the other hand, coming up with a good problem
is not that easy, and very often the problem selection committee faces a lack of quality
problems. I thus think it is important for people done with contests to learn a bit and
compose some problems.
In this note, I will discuss some ways that one could compose a problem in with the
thought process behind the problems I proposed before. The purpose of this note is
mainly to share my two cents about problem-making to inspire people who are interested
in doing so. The hope is that people who are done with contests can propose some
interesting problems, and people who are still doing competitive math can also come up
with some interesting problems to think about themselves.
Hung-Hsun Hans Yu 1
Theorem 1.1 (Solymosi). For any finite set A, B ⊆, we have
|A|4/3
max(|A + B|, |A · B|) ≥ .
2⌈log2 |A|⌉1/3
The Erdős-Szemerédi conjecture states that the inequality still holds when the right
hand side is replaced by Ω(|A|2−ε ) for any ε > 0, but this is still wide open.
We can also ask this over Z/nZ. We know that there is a proper subset S of Z/nZ
such that S · S = S—we can simply take S to be all the quadratic residues. Then our
intuition from our experience with the sum-product problem in reals tells us that S is
unlikely an arithmetic progression. Is this actually the case? Can we prove this only
using tools available in Olympiads? The answer is (mostly) yes if S includes 0, and this
is 2021 TMO P2.
Problem 1.1 (2021 TMO P2). Find all integers n = 2k + 1 > 1 so that there exists a
permutation a0 , a1 , . . . , ak of 0, 1, . . . , k such that
We could also ask if the set contains constellations of other shapes. In fact, Szemerédi
shows the following.
Theorem 1.3 (Szemerédi). Any subset of N of positive upper density contains a con-
stellation of any given finite shape.
Well, we could also consider those questions over Z/N Z, and see what we can say
about the size of a subset of Z/N Z that contains a constellation of any shapes of size k.
To make the discussion simpler, I instead consider “ordered shapes” (v1 , . . . , vn ) and k
copies of Z/N Z, and I require a + bvi lies in the chosen subset of the i-th copy. I also set
b = 1 to make the question simpler. Then a simple counting argument shows that the
sum of the sizes of the subsets is at least kN (k−1)/k . It thus makes sense to set N to be a
k-th power and see if this is the optimal bound. After coming up with the construction
meeting this bound, we are done composing the problem!
Hung-Hsun Hans Yu 2
Problem 1.2 (2021 TST Round 1 Mock P6). Let n be a positive integer and N = n2021 .
There are 2021 concentric circles centered at O, and N equally-spaced rays are emitted
from point O. Among the 2021N intersections of the circles and the rays, some are
painted red while the others remain unpainted.
It is known that, no matter how one intersection point from each circle is chosen,
there is an angle θ such that after a rotation of θ with respect to O, all chosen points are
moved to red points. Prove that the minimum number of red points is 2021n2020 .
Hung-Hsun Hans Yu 3
actually not needed if we just view this as a geometry problem, where we notice that
knowing where the isometry sends two points to already almost determines the entire
isometry.
The usual inner product is not the only way we measure the length of a vector, or the
distance between two points. In fact, one measurement that also appears a lot in math
contests is the Manhattan distance, or equivalently the L1 norm. The simple question we
ask is thus: what are all the maps from R2 to R2 that preserves the Manhattan distance
between two points? It turns out that the same geometric insight solves this immediately,
but if we write it in terms of functional equations, then this would actually increase the
difficulty by a lot for students with little exposure to those kinds of natural questions
asked by mathematicians.
Problem 1.4 (2022 TMO P3). Find all functions f, g : R2 → R satisfying that
I was told by Yi Kung later that in fact there is a result showing that any endormor-
phism of a normed space that preserves norms is an affine map. This is the Mazur–Ulam
theorem. Well, I do not know anything in functional analysis and thought that people
would always assume affineness in these settings, but it seems that I am totally wrong
about this.
I don’t know about other people, but for me, it seems that this way of composing a
problem usually leads to a simple problem when it comes to geometry.
Hung-Hsun Hans Yu 4
1.6 2022 Taiwan TST Round 3 Mock Exam P6
The motivation question of this is easy: how “competitive” can a “streaming algorithm”
be for determining the median of a sequence? Here, the competitivity is determined by
its distance it outputs from the actual median, and it is streaming in the sense that the
sequence is given term by term, and we can choose a term to be our answer only after
it is immediately given. One other way to see this is that: if we have really limited
memory for the algorithm, so limited that we can only store constantly many integers in
the memory, how well can we do in determining the median?
Well, in order for any algorithm of this kind to work, we need to know beforehand
the range of the numbers n and the length of the sequence 2k + 1. It is also pretty easy
to see that when k is fixed and n is sufficiently large, we cannot do much better than
n/2; and in order to achieve n/2, we can simply cut the interval in half, and choose an
element when the half it belongs to already has k + 1 elements. Therefore, I decided to
see if I can actually determine the exact answer. It turned out pretty surprisingly that
it is indeed possible to determine the answer completely, and that the answer turned out
to be piecewise “linear” (in quotation marks as we need to round it to integers).
Problem 1.6 (2022 TST Round 3 Mock P6). Positive integers n and k satisfying
n ≥ 2k + 1 are known to Alice. There are n cards with numbers from 1 to n, randomly
shuffled as a deck, face down. On her turn, she does the following in order:
(i) She first flips over the top card of the deck, and puts it face up on the table. (ii)
Then, if Alice has not signed any card, she can sign the newest card now.
The game ends after 2k + 1 turns, and Alice must have signed on some card. Let A
be the number on the signed cards, and M be the (k + 1)st largest number among all
2k + 1 face-up cards. Alice’s score is |M − A|, and she wants the score to be as close to
zero as possible.
For each (n, k), find the smallest integer d = d(n, k) such that Alice has a strategy to
guarantee her score no greater than d.
Hung-Hsun Hans Yu 5
and n = 1, . . . , 6. I also wanted that E[x], E[x2 ], E[x3 ], E[x4 ] to be integers and possibly
small. Playing with the numbers a bit gives me a = 3, b = −4, n = 5. This leads to the
following problem.
Problem 1.7 (2023 TMO P5). Let m be a positive integer, and real numbers a1 , a2 , . . . , am
satisfy
1 ∑
m
ai = 1,
m i=1
1 ∑ 2
m
a = 11,
m i=1 i
1 ∑ 3
m
a = 1,
m i=1 i
and
1 ∑ 4
m
a = 131.
m i=1 i
Prove that m is a multiple of 7.
1. Try to wrap the fact up with some fancy stuff so it is not so obvious how the
problem is composed.
2. Take a special case of the problem to make it harder to see how the problem is
composed.
3. Test-solve it once again to see if there are other solutions that appear after morphing
the problem.
This works especially well for geometry problems, as this makes discovering a true and
interesting statement way easier, and wrapping geometry problems up is in general easier.
The advantage of this method is that you don’t need to worry about coming up with
a solution—you already have one in mind when you are composing it. The drawback of
this is that the problem might not look as elegant and natural, and sometimes there are
some unexpected solutions that totally mess up the difficulty (so make sure that you find
other people to test-solve).
Hung-Hsun Hans Yu 6
the perpendicular bisector ℓb , ℓc of AC, AB, respectively. Then we can also see that
H = B∞ℓb ∩ C∞ℓc .
Now we see that BQ∩CR does lie on the Euler line if (Q, R) = (O, O), (Mb , Mc ), (∞ℓb , ∞ℓc ).
The last question to ask here is what constraint is needed to put on Q and R. It is not
hard to see that we just need QR parallel to BC by the moving point technique. Thus we
have our first version of the problem: Given a triangle ABC and a line ℓ parallel to BC.
If Q, R are the intersections ℓ ∩ ℓb , ℓ ∩ ℓc respectively (where ℓb , ℓc are the perpendicular
bisectors of AC, AB, respectively), then BQ ∩ CR lies on the Euler line of ABC.
Well, this version kind of exposes the moving-point nature too much. To hide it a
bit, we can think of some ways to determine Q and R such that they are still points on
the perpendicular bisectors that determine the line parallel to BC. Since they are on
the perpendiculars, it is natural to set Q, R as circumcenters of ACD, ABD for some
point D. The condition that QR is parallel to BC can then be replaced by that BC is
perpendicular to AD. Note that in this case, due to symmetry, we know that the Euler
line of BCD also passes through BQ ∩ CR. After relabeling, we have the version that
appears on the test!
Problem 2.1 (2021 TST Round 2 Independent I-G). Let ABCD be a convex quadri-
lateral with pairwise distinct side lengths such that AC ⊥ BD. Let O1 , O2 be the
circumcenters of ∆ABD, ∆CBD, respectively. Show that AO2 , CO1 , the Euler line of
∆ABC and the Euler line of ∆ADC are concurrent.
In fact, we can hide this configuration in any configuration that has four points
A, B, C, D with AC ⊥ BD. However, I did not find a good configuration to hide this
property in, so I decided to propose this version.
Hung-Hsun Hans Yu 7
Because of the discussion above, to prove it, one natural approach is to take a to be
the smallest number and b to be the smallest number not divisible by a. Then we must
have c ≥ b and so a(a + b) = c2 or 2c2 . This is not the contradiction yet, but it is not
hard to go from here to show that such b must not exist, and we are done composing yet
another problem once again!
Hung-Hsun Hans Yu 8
The proof basically goes like this. We first focus on the case where V is of dimension 2.
Then we need to show that if f, g ̸= 0, V (f ) ∩ V (g) ̸= ∅ and af + bg is not irreducible for
all [a : b] ∈ P1 , then gcd(f, g) is non-constant. This follows from some algebrogeometric
fact. Once we have this, we can actually use it to show the general case. To see this, we
pick an arbitrary nonzero f ∈ V , and look at all the prime divisors of f . If for any prime
divisor p of f I can find gp ∈ V such that p ∤ gp , then I can find some linear combination
∑
g= ap gp
p prime divisor of f
such that gcd(f, g) = 1. By the contrapositive of the 2-dimensional case, we know that
there exists [a : b] ∈ P1 such that af + bg is irreducible. Thus
∑
af + bap gp
p prime divisor of f
Hung-Hsun Hans Yu 9
2.5 2022 Taiwan TST Round 1 Independent Study I-A
This functional equation was composed a long time ago using some idea I had that I
thought would be really really innovative if it actually worked. Unfortunately, it was
really hard to make it work, and the only sensible problem I produced was this one. The
readers are encouraged to try playing around with this trick and see what interesting
problems they ended up with. I would be interested in learning about them.
The trick I had in mind originated from test-solving some random functional equation
that Pang-Cheng Wu wrote. We did not end up solving that functional equation, but the
functional equation led me to think about the set
There, one can show if (a, b) ∈ S, then (b, a − b) ∈ S or something like that. I thus
started to try if I can use this idea to make up any interesting functional equation. My
original plan was to somehow compose the problem so that the conditions allow us to do
“Euclidean algorithm”. But there are two issues with this: the first is that this usually
requires two kinds of operations: (a, b) ∈ S implies (b, a) ∈ S and (a, b) ∈ S implies
(a, b − a) ∈ S. I do not see how one can compress those two operations into one equation.
Another more fatal issue is that the set S is destined to contain (0, d) for some nonzero
d, which would prove the non-existence of the functions we are to solve for.
This issue might be annoying, but unfortunately the only interesting thing we can say
about S is that if (0, d) ∈ S then d = 0. What this entails is that if we ever succeed in
solving the functional equation using only the set S, then we need to say something like:
if S is not of a particular form, then starting from some pair (a, b) in S, after finitely many
operations we end up at (0, d) for d ̸= 0, which is then a contradiction. The only one
operation I found that seemed reasonable to me was: if (a, b) ∈ S then (⌊ 2b ⌋, −⌈ 2b ⌉) ∈ S.
With this, one can see that if b is ever allowed to be nonzero, then we can eventually
produce (0, d) ∈ S for some d ̸= 0. This would then prove that f has to be the constant
function. Now it just remains to write down a condition that shows that if (a, b) ∈ S
then (⌊ 2b ⌋, −⌈ 2b ⌉) ∈ S. This is how I ended up with the proposed functional equation.
Problem 2.5 (2022 TST Round 1 Independent I-A). Find all f : Z → Z such that
(õ û) õ û
f (x) + f (y) f (x) + f (y)
f + f (x) = f (f (y)) +
2 2
Me four years ago dreamt about the imaginary world where the consideration of the
set S becomes trendy in Olympiad math, but me now just thinks it’s impossible. I think
it is still worth trying for those passionate about writing problems though, and do let me
know if you end up with anything interesting.
Hung-Hsun Hans Yu 10
would help a lot in my computation. This motivates the following question: if we restrict,
say, the number of indeterminates and the degree of each term, how much can we always
simplify such expressions by? It turns out that the identity above together with some p-
adic analysis can turn the entire problem into one about lattice points in convex positions.
This gives the proposed problem.
Problem 2.6 (2022 TST Round 3 Independent I-N). Denote the set of all positive
integers by N, and the set of all ordered positive integers by N2 . For all non-negative
integers k, define good functions of order k recursively for all non-negative integers k,
among all functions from N2 to N as follows:
(i) The functions f (a, b) = a and f (a, b) = b are both good functions of order 0.
(ii) If f (a, b) and g(a, b) are good functions of orders p and q, respectively, then
gcd(f (a, b), g(a, b)) is a good function of order p+q, while f (a, b)g(a, b) is a good function
of order p + q + 1. (n)
Prove that, if f (a, b) is a good function of (order
) k ≤ 3
for some positive integer
n ≥ 3, then there exist a positive integer t ≤ n2 and t pairs of non-negative integers
(x1 , y1 ), . . . , (xn , yn ) such that
which is a contradiction.
In fact, this proof is exactly the proof of the proposed problem when s = 1, As = [n].
Generalizing this proof gives the this problem as stated in the exam.
Problem 2.7 (2022 TST Round 3 Mock P2). Let n, s, t be three positive integers,
and let A1 , . . . , As , B1 , . . . , Bt be non-necessarily distinct subsets of {1, 2, . . . , n}. For any
subset S of {1, . . . , n}, define f (S) to be the number of i ∈ {1, . . . , s} with S ⊆ Ai and
g(S) to be the number of j ∈ {1, . . . , t} with S ⊆ Bj . Assume that for any 1 ≤ x < y ≤ n,
we have f ({x, y}) = g({x, y}). Show that if t < n, then there exists some 1 ≤ x ≤ n so
that f ({x}) ≥ g({x}).
Hung-Hsun Hans Yu 11
2.8 2023 TMO P3
To cover the details of the motivation behind this problem, I think it makes more sense
to introduce formal sum that is introduced by Sean Lee (at the time of writing this,
it has already been somewhat popular in Taiwan). The formal sum is essentially the
free abelian group on the lines direct sum R/πZ with the extra relations ℓ2 = ℓ1 + θ if
∡(ℓ1 , ℓ2 ) = π. Note that R/πZ survives (i.e. there is no relation θ = 0 generated for any
θ ̸= 0) as ∡(ℓ1 , ℓ2 ) + ∡(ℓ2 , ℓ3 ) = ∡(ℓ1 , ℓ3 ), and so this would behave more or less as we
expect.
When we are given a circle, we can even consider a slightly larger abelian group, by
taking the direct sum of the original group with the free abelian group on the points lying
on the circle with the extra relations A + B − AB = 0 for every A, B on the circle. The
original group would be a proper subgroup of the new group as AB +CD −AC −BD = 0
and so the new relations would not kill any elements in the original group. There are
more things to check but this is not the focus of this note so I will leave it for the readers
to check.
The advantage of these notations is that angle chasing becomes really easy (and
conceptual too!). For example, if ABC is a triangle, ℓ is a line and D is the isogonal
conjugate of ∞ℓ , then we know that A, B, C, D are on the same circle. The condition
that D is the isogonal conjugate of ∞ℓ is precisely AD + ∞ℓ = AB + AC (note that
there is no more asymmetry here, which is a benefit of using formal sums). Equivalently,
we have A + D + ∞ℓ = 2A + B + C, and so D + ∞ℓ = A + B + C.
This identity is how the problem is motivated. If we want A, B, C to be symmetric
while making the identity above holds, the most obvious choice is to make ABC an
equilateral triangle. In this case, the center O of ABC becomes a really special point,
and we still have a degree of freedom for where ℓ is placed, so let just make ℓ passes
through O. Then as ℓ passes through the orthocenter and also the incenter of ABC,
we see that ℓ∗ is a rectangular hyperbola that is tangent to ℓ at O. We also know that
ℓ∗ passes through D. Lastly, we know that the midpoint of OD is the center of the
rectangular hyperbola (one can show that this holds if and only if O is the midpoint of
the chord cut out by ℓ, which is true). So we could ask the converse: given ℓ through O,
a circle Γ centered at O and a point D on Γ, if h is a rectangular hyperbola with OD
being one of its diameter, do the other three intersections h∩Γ always form an equilateral
triangle?
The answer is indeed yes. To see this, formal sums come in handy again. As OD
is its diamter, we know that OP + DP is constant when P is moving on h (another
place where formal sum is convenient!). By taking P = O, we see that this constant is
ℓ + OD = ℓ + 2D + π/2. Now if P is the intersection of h and Γ that is not D, then
OP + DP = D + 3P + π/2 (why does it not necessarily hold when P = D?), and so we
get 3P = D + ℓ, showing that the other three intersections indeed form an equilateral
triangle.
Of course, this cannot be the statement of the problem. In general, to hide any
conic, we can use Pascal’s theorem. Let ∞1 and ∞2 be the two intersections of h with
the infinity line. Then we may apply Pascal’s theorem on OOD∞1 P ∞2 to get that
X = ℓ ∩ P ∞1 , Y = OD ∩ P ∞2 and Z = D∞1 ∩ O∞2 . Also note that ∞1 , ∞2 are
exactly the directions that the angular bisectors of OD and ℓ point in, and so we exactly
know what they are. This also shows that Z is determined. We could thus construct P
backward: let X be a point on ℓ, Y be a point on OD such that XY Z are collinear, we
Hung-Hsun Hans Yu 12
can let P be the intersection of Y ∞2 and X∞1 and assume that P is on the circle Γ.
We also need to hide the formal sum identity 3P = D + ℓ. The best way to hide this
is to construct two points differently and say that they are actually the same, but then
this identity has the “wrong order”: both sides have “order three” (i.e. 3P = 3N + θ
for some reference point N and some θ ∈ R/πZ). The most natural way to move things
around so that we have the right order is that 2P − D = ℓ − P . Now if Q = 2P − D,
then D + Q = 2P and so DQ is the line through D parallel to the tangent of P at Γ, or
the line perpendicular to the line OP . If Q′ = ℓ − P , then P + Q′ = ℓ and so P Q′ is the
line through P parallel to ℓ. Thus 3P = D + ℓ is equivalent to that the line through D
perpenciular to OP intersects the line through P parallel to ℓ at some point on Γ. After
relabelling, we get the proposed problem.
Problem 2.8 (2023 TMO P3). Let O be the center of a circle Γ, and let A, B be two
distinct points such that O, A, B are not collinear. Let M be the midpoint of AB, and
let P, Q be points on OA, OB such that P M Q are collinear. Let X be the intersection of
the line through P parallel to AB and the line through Q parallel to OM . Let Y be the
intersection of the line through X parallel to OA and the line through B perpendicular
to OX.
Show that if X is on Γ, then Y is on Γ.
The last thing to do is to find a proof that does not use any hyperbola nonsense. It
turns out that an easy (but interesting) trig-bash kills it. Saen Lee also found a solution
that is completely geometric without using hyperbola at all. This is thus a fair problem
to put in high school contest!
Hung-Hsun Hans Yu 13
are simultaneously increasing or decreasing in the variables. Then
The proof of this inequality can be obtained by induction on k and do Chebyshev’s sum
inequality on each inductive step. This inequality is an important correlation inequality
as it basically says that “the product of two positively correlated random variables has
a higher expected value than the product of the individual expected values”, which is
intuitively correct but hard to verify in many cases. It thus finds lots of applications in
statistical mechanics and probabilistic combinatorics.
For simplicity, I took k = 2. Let X1 take values in {a1 , . . . , an } ⊆≥0 and X2 take values
in {b1 , . . . , bn } ⊆≥0 . If f, g are decreasing in X1 , X2 , then the equallity in FKG holds when
X1 = X2 with probability 1. Therefore, we have a way to compose an inequality with
multiple equality cases here: we can let P(X1 = ai ) proportional to ai and P(X2 = bi )
proportional to bi . Then the equality would hold when all nonzero ai ’s and bi ’s are equal
to each other.
Now I oopsed a bit and thought that f = X1 /(X1 X2 + 1) and g = X2 /(X1 X2 + 1)
were both increasing in X1 , X2 . Assuming that this were the case, then by the FKG
inequaltiy,
( )( )( ) ( )( )
∑ ∑ ∑ a2i b2j ∑ ai b j ∑ ai b j
ai bj 2
≥ ai · bj · .
i j i,j
(a i b j + 1) i,j
a i b j + 1 i,j
a i b j + 1
∑ ∑
This is kind of ugly, so let us set S = i ai = j bj . Note that ai bj /(ai bj + 1)2 ≤ 1/4,
so the left hand side is upper bounded by S 4 /4. We still have some of the equality cases
remaining when S is some positive integer at most n, and we get that
( )( )
∑ ai b j ∑ ai b j 1
ai · bj · ≤ S 4.
i,j
ai b j + 1 i,j
ai b j + 1 4
Calvin Hsu verified that despite we arrived at this point with a totally wrong proof, this
inequality is still true when S = n/2 with the help of computer. Obviously though, this
cannot be an actual problem if we∑ do not have an accessible proof. What I noticed is that,
if mA is the
∑ minimum value of j ai bj /(ai bj + 1) for nonzero ai , and mB is the minimum
value of i ai bj /(ai bj + 1) for nonzero bj , then the left hand side can be bounded by
S 2 mA mB . Assuming that S ̸= 0, then we get that
√ 1
min(mA , mB ) ≤ mA mB ≤ S.
2
Setting S = n/2 and doubling n, we get the proposed problem. After checking that there
are actually plenty of easy ways to solve the problem, I decided to propose this version
of the problem.
Problem 3.1 (2021 TST Round 1 Mock P4). Let n be a positive integer. ∑2n For∑each 4n-
tuple of nonnegative real numbers a1 , . . . , a2n , b1 , . . . , b2n that satisfy i=1 ai = 2n j=1 bj =
n, define the sets
{ 2n }
∑ ai b j ∑2n
ai b j
A := : i ∈ {1, . . . , 2n} s.t. ̸= 0 ,
j=1
a i b j + 1 j=1
a i b j + 1
Hung-Hsun Hans Yu 14
{ 2n }
∑ ai b j ∑
2n
ai b j
B := : j ∈ {1, . . . , 2n} s.t. ̸= 0 .
i=1
ai b j + 1 i=1
ai b j + 1
Let m be the minimum element of A ∪ B. Determine the maximum value of m among
those derived from all such 4n-tuples a1 , . . . , a2n , b1 , . . . , b2n .
Hung-Hsun Hans Yu 15
two vertices are close enough is not quite sufficient—we might end up choosing vertices
that are either very close to each other or very far from each other, and thus making no
progress. To fix this, I decided to change the problem so that we will also know it if the
two vertices have distance exactly k. This gives us some way to guarantee that we are
always making some progress in expanding our knowledge about the graph. It is then
not hard to use the observation in the previous paragraph to show that 2n2 /k queries
suffice.
Problem 3.3 (2021 Round 2 Mock P6). Let k ≤ n be two positive integers. IMO-
nation has n villages, some of which are connected by a road. For any two villages, the
distance between them is the minimum number of toads that one needs to travel from
one of the villages to the other, if the traveling is impossible, then the distance is set as
infinite.
Alice, who just arrived IMO-nation, is doing her quarantine in some place, so she does
not know the configuration of roads, but she knows n and k. She wants to know whether
the furthest two villages have finite distance. To do so, for every phone call she dials
to the IMO office, she can choose two villages, and ask the office whether the distance
between them is larger than, equal to, or smaller than k. The office answers faithfully
(infinite distance is larger than k). Prove that Alice can know whether the furthest two
villages have finite distance between them in at most 2n2 /k calls.
At this point, I still don’t know if O(n2 /k) is the best possible answer. I also don’t
know if we can do as good without knowing if two vertices have distance exactly k. Inter-
ested readers are welcome to think about those two problems, and I would be interested
in knowing the answer.
Hung-Hsun Hans Yu 16
This implies x + y + z | xyz, and you can finally start to see why this is relevant to 2022
TMO P1 at all.
I was a bit stuck, so I decided to look for examples of those triangles. Clearly those
triangles have to be Heronian triangles as discussed above, so I tested some of them and
found that, actually for any Pythagorean triples (a, b, c), the triangle (0, 0), (a, 0), (0, b)
not only have their incenters at lattice points, but also somehow have all three excenters
at lattice points!
Now if we run through the argument above for excenters too, we get x | yz(x+y+z), y |
xz(x + y + z) and z | xy(x + y + z)! In fact besides the four divisbility conditions, the
only other one left is that xyz(x + y + z) is an even perfect square, but as we all know
now, this conditions is automatically satisfied under some extra assumptions.
My focus soon turns to deal with the four conditions x+y+z | xyz, x | yz(x+y+z), y |
xz(x + y + z) and z | xy(x + y + z). Note however that for any x, y, z, we can always
scale them up so that the four conditions hold. This makes it boring, so a natural
condition to add is gcd(x, y, z) = 1. A standard substitution x = atu, y = bsu, z = cst,
where a, b, c are mutually coprime, gives us that x + y + z = abc, and we notice that
xyz(x + y + z) = (abcstu)2 is a perfect square!
Problem 3.4 (2022 TMO P1). Let x, y, z be three positive integers with gcd(x, y, z) =
1. If
x | yz(x + y + z),
y | xz(x + y + z),
z | xy(x + y + z),
and
x + y + z | xyz,
show that xyz(x + y + z) is a perfect square.
At this point we have already composed 2022 TMO P1, but I did not stop here. I
really wanted to add some constraint so that only the right triangles survive. If we look
back at the Pythagorean triple example and compute the corresponding x, y, z, we will
see that gcd(y, z) = 1 and x | yz. This corresponds to having a = s = 1, and now we have
x(x+y+z) = bctu = yz. This last equation is equivalent to (x+y)2 +(x+z)2 −(y+z)2 = 0,
showing that the triangle must have a right angle! This corresponds to the two alternative
versions that I proposed, and they can be found on AoPS.
Hung-Hsun Hans Yu 17
similar for FE. This came to my mind pretty quickly: if f is strictly decreasing with
f (f (x)) ≥ x, then we have
f (x) ≤ f (3) (x) ≤ f (x)
and so f (x) = f (3) (x) (the first inequality comes from plugging in f (x) to the inequality,
and the second inequality comes from the first inequality together with the fact that f
is strictly decreasing). In order to hide the inequality in the problem, it is natural to
consider f : R+ → R+ . Since the function f we are going for is strictly decreasing and
also an involution (i.e. f (f (x)) = x), it is natural to look for FE with f (x) = 1/x being
a solution. With the common trick, the inequality f (f (x)) ≥ x can be hidden by setting
f (x) ̸= f (f (2) (x) + y) for any x, y > 0. Now note that if f actually satisfies f (2) (x) = x
and it is strictly decreasing, then we have to have f (x) > f (f (2) (x) + y). The very very
last thing we need to do is to encode the assumption that f is strictly decreasing to the
problem statement. Note that this is usually too strong of an assumption to just throw
in. Therefore I decided to introduce a new function g with the hope that maybe it would
make the problem not dumb. This is what I ended up with:
Hung-Hsun Hans Yu 18
Pang-Cheng Wu), I finally ended with the proposed version (and the proof of injectivity
is due to him)!
Problem 3.5 (2022 USAMO P3). Let R>0 be the set of all positive real numbers. Find
all functions f : R>0 → R>0 such that for all x, y ∈ R>0 we have
I had this idea first in early 2017, and the final version came up in (I think) mid 2018,
so it was a long time to refine and crystallize all the ideas. I am glad that after a long
wait, I can finally share the FE I will be most proud of with other people (the second
being 2016 Taiwan TST Round 2 Quiz 1 P2).
for all k ≥ 1, where C > 0 and α > 1 are some constants. We need to show that there is
some constant M > 0 and k0 ∈ N depending only on C and α such that ck < M maxi≤k0 ci
for all k. What was done in the note is that we take dk = (1 + C ′ α−k )ck for some C ′ > 0
chosen sufficiently large so that
and
(1 + C ′ α−2k )A ≥ (1 + C ′ α−k )(1 + (A + 1)Cα−k ).
If A > 1 and (α − 1)C ′ > AC, then both hold for sufficiently large k. Therefore for some
k0 , we have
dk ≤ dk−1 + Cα−k [A(d2k − dk ) + (dk−1 − dk )]
holds for all k ≥ k0 . Since dk is eventually zero, we can choose kmax that maximizes dk
when k ≥ k0 . If kmax > k0 , then the inequality above leads to an immediate contradiction.
Therefore kmax = k0 and so dk ≤ dk0 for all k ≥ k0 , showing that ck ≤ (1 + C ′ α−k0 )ck0 for
all k ≥ k0 .
I thought that this substitution is hard to motivate, so I tried to simplify the setting
and set a question based on it. If we take α = 2, C = 1, and ask ck to be eventually 1
instead of 0, then we now actually get a lower√bound on ck0 as long as k0√is sufficiently
large. For example, if we take A = 9(7 − 21)/14 and C ′ = 20 − 4 21, then the
inequalities hold for k ≥ 3. This shows that
1
c3 ≥ √ ≈ 0.827.
1 + (20 − 4 21) · 2−3
Hung-Hsun Hans Yu 19
Then, I gave it to Cheng-Ying, who then told me that this bound is weaker than what
he could get by a simple argument considering the largest element. His method also does
not depend on the assumption that each term is non-negative. This is when I realized
that Tao probably took on an unnecessarily harder approach (which explains why the
substitution seems so unmotivated), and probably Cheng-Ying’s method is the way it
should have been done. Anyways, the new method makes both the problem statement
and the solution look way cleaner, and this becomes the proposed problem.
Problem 3.6 (2022 TST Round 1 Independent I-A). Let a1 , a2 , a3 , . . . be a sequence
of reals such that there exists N ∈ N so that an = 1 for all n ≥ N , and for all n ≥ 2 we
have
an ≤ an−1 + 2−n a2n .
Show that ak > 1 − 2−k for all k ∈ N.
Hung-Hsun Hans Yu 20