File size: 18,299 Bytes
eebb93b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
# TSTST 2011 Solution Notes <br> Lincoln, Nebraska <br> \author{ Evan Chen《陳誼廷》 

}

15 April 2024

This is a compilation of solutions for the 2011 TSTST. The ideas of the solution are a mix of my own work, the solutions provided by the competition organizers, and solutions found by the community. However, all the writing is maintained by me.

These notes will tend to be a bit more advanced and terse than the "official" solutions from the organizers. In particular, if a theorem or technique is not known to beginners but is still considered "standard", then I often prefer to use this theory anyways, rather than try to work around or conceal it. For example, in geometry problems I typically use directed angles without further comment, rather than awkwardly work around configuration issues. Similarly, sentences like "let $\mathbb{R}$ denote the set of real numbers" are typically omitted entirely.

Corrections and comments are welcome!

## Contents

0 Problems ..... 2
1 Solutions to Day 1 ..... 3
1.1 TSTST 2011/1 ..... 3
1.2 TSTST 2011/2 ..... 4
1.3 TSTST 2011/3 ..... 6
2 Solutions to Day 2 ..... 7
2.1 TSTST 2011/4 ..... 7
2.2 TSTST 2011/5 ..... 8
2.3 TSTST 2011/6 ..... 9
3 Solutions to Day 3 ..... 10
3.1 TSTST 2011/7 ..... 10
3.2 TSTST 2011/8 ..... 11
3.3 TSTST 2011/9 ..... 12

## §0 Problems

1. Find all real-valued functions $f$ defined on pairs of real numbers, having the following property: for all real numbers $a, b, c$, the median of $f(a, b), f(b, c), f(c, a)$ equals the median of $a, b, c$.
(The median of three real numbers, not necessarily distinct, is the number that is in the middle when the three numbers are arranged in nondecreasing order.)
2. Two circles $\omega_{1}$ and $\omega_{2}$ intersect at points $A$ and $B$. Line $\ell$ is tangent to $\omega_{1}$ at $P$ and to $\omega_{2}$ at $Q$ so that $A$ is closer to $\ell$ than $B$. Let $X$ and $Y$ be points on major $\operatorname{arcs} \widehat{P A}\left(\right.$ on $\left.\omega_{1}\right)$ and $\overparen{A Q}$ (on $\left.\omega_{2}\right)$, respectively, such that $A X / P X=A Y / Q Y=c$. Extend segments $P A$ and $Q A$ through $A$ to $R$ and $S$, respectively, such that $A R=A S=c \cdot P Q$. Given that the circumcenter of triangle $A R S$ lies on line $X Y$, prove that $\angle X P A=\angle A Q Y$.
3. Prove that there exists a real constant $c$ such that for any pair $(x, y)$ of real numbers, there exist relatively prime integers $m$ and $n$ satisfying the relation

$$
\sqrt{(x-m)^{2}+(y-n)^{2}}<c \log \left(x^{2}+y^{2}+2\right) .
$$

4. Acute triangle $A B C$ is inscribed in circle $\omega$. Let $H$ and $O$ denote its orthocenter and circumcenter, respectively. Let $M$ and $N$ be the midpoints of sides $A B$ and $A C$, respectively. Rays $M H$ and $N H$ meet $\omega$ at $P$ and $Q$, respectively. Lines $M N$ and $P Q$ meet at $R$. Prove that $\overline{O A} \perp \overline{R A}$.
5. At a certain orphanage, every pair of orphans are either friends or enemies. For every three of an orphan's friends, an even number of pairs of them are enemies. Prove that it's possible to assign each orphan two parents such that every pair of friends shares exactly one parent, but no pair of enemies does, and no three parents are in a love triangle (where each pair of them has a child).
6. Let $a, b, c$ be real numbers in the interval $[0,1]$ with $a+b, b+c, c+a \geq 1$. Prove that

$$
1 \leq(1-a)^{2}+(1-b)^{2}+(1-c)^{2}+\frac{2 \sqrt{2} a b c}{\sqrt{a^{2}+b^{2}+c^{2}}}
$$

7. Let $A B C$ be a triangle. Its excircles touch sides $B C, C A, A B$ at $D, E, F$. Prove that the perimeter of triangle $A B C$ is at most twice that of triangle $D E F$.
8. Let $x_{0}, x_{1}, \ldots, x_{n_{0}-1}$ be integers, and let $d_{1}, d_{2}, \ldots, d_{k}$ be positive integers with $n_{0}=d_{1}>d_{2}>\cdots>d_{k}$ and $\operatorname{gcd}\left(d_{1}, d_{2}, \ldots, d_{k}\right)=1$. For every integer $n \geq n_{0}$, define

$$
x_{n}=\left\lfloor\frac{x_{n-d_{1}}+x_{n-d_{2}}+\cdots+x_{n-d_{k}}}{k}\right\rfloor .
$$

Show that the sequence $\left(x_{n}\right)$ is eventually constant.
9. Let $n$ be a positive integer. Suppose we are given $2^{n}+1$ distinct sets, each containing finitely many objects. Place each set into one of two categories, the red sets and the blue sets, so that there is at least one set in each category. We define the symmetric difference of two sets as the set of objects belonging to exactly one of the two sets. Prove that there are at least $2^{n}$ different sets which can be obtained as the symmetric difference of a red set and a blue set.

## §1 Solutions to Day 1

## §1.1 TSTST 2011/1

Available online at https://aops.com/community/p2374841.

## Problem statement

Find all real-valued functions $f$ defined on pairs of real numbers, having the following property: for all real numbers $a, b, c$, the median of $f(a, b), f(b, c), f(c, a)$ equals the median of $a, b, c$.
(The median of three real numbers, not necessarily distinct, is the number that is in the middle when the three numbers are arranged in nondecreasing order.)

The following solution is joint with Andrew He.
We prove the following main claim, from which repeated applications can deduce the problem.

Claim - Let $a<b<c$ be arbitrary. On $\{a, b, c\}^{2}, f$ takes one of the following two forms, where the column indicates the $x$-value and the row indicates the $y$-value.

| $f$ | $a$ | $b$ | $c$ |
| ---: | ---: | ---: | ---: |
| $a$ | $a$ | $b$ | $\geq c$ |
| $b$ | $\leq a$ | $b$ | $\geq c$ |
| $c$ | $\leq a$ | $b$ | $c$ |

or

| $f$ | $a$ | $b$ | $c$ |
| ---: | ---: | ---: | ---: |
| $a$ | $a$ | $\leq a$ | $\leq a$ |
| $b$ | $b$ | $b$ | $b$ |
| $c$ | $\geq c$ | $\geq c$ | $c$ |

Proof. First, we of course have $f(x, x)=x$ for all $x$. Now:

- By considering the assertion for $(a, a, c)$ and $(a, c, c)$ we see that one of $f(a, c)$ and $f(c, a)$ is $\geq c$ and the other is $\leq a$.
- Hence, by considering $(a, b, c)$ we find that one of $f(a, b)$ and $f(b, c)$ must be $b$, and similarly for $f(b, a)$ and $f(c, b)$.
- Now, WLOG $f(b, a)=b$; we prove we get the first case.
- By considering $(a, a, b)$ we deduce $f(a, b) \leq a$, so $f(b, c)=b$ and then $f(c, b) \geq c$.
- Finally, considering $(c, b, a)$ once again in conjunction with the first bullet, we arrive at the conclusion that $f(a, c) \leq a$; similarly $f(c, a) \geq c$.

From this it's easy to obtain that $f(x, y) \equiv x$ or $f(x, y) \equiv y$ are the only solutions.

## §1.2 TSTST 2011/2

Available online at https://aops.com/community/p2374843.

## Problem statement

Two circles $\omega_{1}$ and $\omega_{2}$ intersect at points $A$ and $B$. Line $\ell$ is tangent to $\omega_{1}$ at $P$ and to $\omega_{2}$ at $Q$ so that $A$ is closer to $\ell$ than $B$. Let $X$ and $Y$ be points on major $\operatorname{arcs} \widehat{P A}\left(\right.$ on $\left.\omega_{1}\right)$ and $\widehat{A Q}\left(\right.$ on $\left.\omega_{2}\right)$, respectively, such that $A X / P X=A Y / Q Y=c$. Extend segments $P A$ and $Q A$ through $A$ to $R$ and $S$, respectively, such that $A R=A S=c \cdot P Q$. Given that the circumcenter of triangle $A R S$ lies on line $X Y$, prove that $\angle X P A=\angle A Q Y$.

We begin as follows:
Claim - There is a spiral similarity centered at $X$ mapping $A R$ to $P Q$. Similarly there is a spiral similarity centered at $Y$ mapping $S A$ to $P Q$.

Proof. Since $\measuredangle X A R=\measuredangle X A P=\measuredangle X P Q$, and $A R / A X=P Q / P X$ is given.
Now the composition of the two spiral similarities

$$
A R \stackrel{X}{\mapsto} P Q \stackrel{Y}{\mapsto} S A
$$

must be a rotation, since $A R=A S$. The center of this rotation must coincide with the circumcenter $O$ of $\triangle A R S$, which is known to lie on line $X Y$.
![](https://cdn.mathpix.com/cropped/2024_11_19_4b79ccb9f247e3679ea0g-04.jpg?height=786&width=1012&top_left_y=1486&top_left_x=522)

As $O$ is a fixed-point of the composed map above, we may let $O^{\prime}$ be the image of $O$ under the rotation at $X$, so that

$$
\triangle X P A \AA \triangle X O^{\prime} O, \quad \triangle Y Q A \AA \triangle Y O^{\prime} O .
$$

Because

$$
\frac{X O}{X O^{\prime}}=\frac{X A}{X P}=c \frac{Y Q}{Y A}=\frac{Y O}{Y O^{\prime}}
$$

it follows $\overline{O^{\prime} O}$ bisects $\angle X O^{\prime} Y$. Finally, we have

$$
\measuredangle X P A=\measuredangle X O^{\prime} O=\measuredangle O O^{\prime} Y=\measuredangle A Q Y
$$

Remark. Indeed, this also shows $\overline{X P} \| \overline{Y Q}$; so the positive homothety from $\omega_{1}$ to $\omega_{2}$ maps $P$ to $Q$ and $X$ to $Y$.

## §1.3 TSTST 2011/3

Available online at https://aops.com/community/p2374845.

## Problem statement

Prove that there exists a real constant $c$ such that for any pair $(x, y)$ of real numbers, there exist relatively prime integers $m$ and $n$ satisfying the relation

$$
\sqrt{(x-m)^{2}+(y-n)^{2}}<c \log \left(x^{2}+y^{2}+2\right)
$$

This is actually the same problem as USAMO 2014/6. Surprise!

## §2 Solutions to Day 2

## §2.1 TSTST 2011/4

Available online at https://aops.com/community/p2374848.

## Problem statement

Acute triangle $A B C$ is inscribed in circle $\omega$. Let $H$ and $O$ denote its orthocenter and circumcenter, respectively. Let $M$ and $N$ be the midpoints of sides $A B$ and $A C$, respectively. Rays $M H$ and $N H$ meet $\omega$ at $P$ and $Q$, respectively. Lines $M N$ and $P Q$ meet at $R$. Prove that $\overline{O A} \perp \overline{R A}$.

Let $M H$ and $N H$ meet the nine-point circle again at $P^{\prime}$ and $Q^{\prime}$, respectively. Recall that $H$ is the center of the homothety between the circumcircle and the nine-point circle. From this we can see that $P$ and $Q$ are the images of this homothety, meaning that

$$
H Q=2 H Q^{\prime} \quad \text { and } \quad H P=2 H P^{\prime}
$$

Since $M, P^{\prime}, Q^{\prime}, N$ are cyclic, Power of a Point gives us

$$
M H \cdot H P^{\prime}=H N \cdot H Q^{\prime}
$$

Multiplying both sides by two, we thus derive

$$
H M \cdot H P=H N \cdot H Q
$$

It follows that the points $M, N, P, Q$ are concyclic.
![](https://cdn.mathpix.com/cropped/2024_11_19_4b79ccb9f247e3679ea0g-07.jpg?height=721&width=1109&top_left_y=1541&top_left_x=482)

Let $\omega_{1}, \omega_{2}, \omega_{3}$ denote the circumcircles of $M N P Q, A M N$, and $A B C$, respectively. The radical axis of $\omega_{1}$ and $\omega_{2}$ is line $M N$, while the radical axis of $\omega_{1}$ and $\omega_{3}$ is line $P Q$. Hence the line $R$ lies on the radical axis of $\omega_{2}$ and $\omega_{3}$.

But we claim that $\omega_{2}$ and $\omega_{3}$ are internally tangent at $A$. This follows by noting the homothety at $A$ with ratio 2 sends $M$ to $B$ and $N$ to $C$. Hence the radical axis of $\omega_{2}$ and $\omega_{3}$ is a line tangent to both circles at $A$.

Hence $\overline{R A}$ is tangent to $\omega_{3}$. Therefore, $\overline{R A} \perp \overline{O A}$.

## §2.2 TSTST 2011/5

Available online at https://aops.com/community/p2374849.

## Problem statement

At a certain orphanage, every pair of orphans are either friends or enemies. For every three of an orphan's friends, an even number of pairs of them are enemies. Prove that it's possible to assign each orphan two parents such that every pair of friends shares exactly one parent, but no pair of enemies does, and no three parents are in a love triangle (where each pair of them has a child).

Of course, we consider the graph with vertices as children and edges as friendships. Consider all the maximal cliques in the graph (i.e. repeatedly remove maximal cliques until no edges remain; thus all edges are in some clique).

Claim - Every vertex is in at most two maximal cliques.
Proof. Indeed, consider a vertex $v$ adjacent to $w_{1}$ and $w_{2}$, but with $w_{1}$ not adjacent to $w_{2}$. Then by condition, any third vertex $u$ must be adjacent to exactly one of $w_{1}$ and $w_{2}$. Moreover, given vertices $u$ and $u^{\prime}$ adjacent to $w_{1}$, vertices $u$ and $u^{\prime}$ are adjacent too. This proves the claim.

Now, for every maximal clique we assign a particular parent to all vertices in that clique, adding in additional distinct parents if there are any deficient children. This satisfies the friendship/enemy condition. Moreover, one can readily check that there are no love triangles: given children $a, b, c$ such that $a$ and $b$ share a parent while $a$ and $c$ share another parent, according to the claim $b$ and $c$ can't share a third parent. This completes the problem.

Remark. This solution is highly motivated for the following reason: by experimenting with small cases, one quickly finds that given some vertices which form a clique, one must assign some particular parent to all vertices in that clique. That is, the requirements of the problem are sufficiently rigid that there is no room for freedom on our part, so we know a priori that an assignment based on cliques (as above) must work. From there we know exactly what to prove, and everything else follows through.

Ironically, the condition that there be no love triangle actually makes the problem easier, because it tells us exactly what to do!

## §2.3 TSTST 2011/6

Available online at https://aops.com/community/p2374852.

## Problem statement

Let $a, b, c$ be real numbers in the interval $[0,1]$ with $a+b, b+c, c+a \geq 1$. Prove that

$$
1 \leq(1-a)^{2}+(1-b)^{2}+(1-c)^{2}+\frac{2 \sqrt{2} a b c}{\sqrt{a^{2}+b^{2}+c^{2}}}
$$

The following approach is due to Ashwin Sah.
We will prove the inequality for any $a, b, c$ the sides of a possibly degenerate triangle (which is implied by the condition), ignoring the particular constant 1. Homogenizing, we instead prove the problem in the following form:

Claim - We have

$$
k^{2} \leq(k-a)^{2}+(k-b)^{2}+(k-c)^{2}+\frac{2 \sqrt{2} a b c}{\sqrt{a^{2}+b^{2}+c^{2}}}
$$

for any $a, b, c, k$ with $(a, b, c)$ the sides of a possibly degenerate triangle.
Proof. For any particular $(a, b, c)$ this is a quadratic in $k$ of the form $2 k^{2}-2(a+b+c) k+$ $C \geq 0$; thus we will verify it holds for $k=\frac{1}{2}(a+b+c)$.

Letting $x=\frac{1}{2}(b+c-a)$ as is usual, the problem rearranges to In that case, the problem amounts to

$$
(x+y+z)^{2} \leq x^{2}+y^{2}+z^{2}+\frac{2(x+y)(y+z)(z+x)}{\sqrt{x^{2}+y^{2}+z^{2}+x y+y z+z x}}
$$

or equivalently

$$
x^{2}+y^{2}+z^{2}+x y+y z+z x \leq\left(\frac{(x+y)(y+z)(z+x)}{x y+y z+z x}\right)^{2} .
$$

To show this, one may let $t=x y+y z+z x$, then using $(x+y)(x+z)=x^{2}+B$ this becomes

$$
t^{2}\left(x^{2}+y^{2}+z^{2}+t\right) \leq\left(x^{2}+t\right)\left(y^{2}+t\right)\left(z^{2}+t\right)
$$

which is obvious upon expansion.
Remark. The inequality holds actually for all real numbers $a, b$, $c$, with very disgusting proofs.

## §3 Solutions to Day 3

## §3.1 TSTST 2011/7

Available online at https://aops.com/community/p2374855.

## Problem statement

Let $A B C$ be a triangle. Its excircles touch sides $B C, C A, A B$ at $D, E, F$. Prove that the perimeter of triangle $A B C$ is at most twice that of triangle $D E F$.

Solution by August Chen: It turns out that it is enough to take the orthogonal projection of $E F$ onto side $B C$ (which has length $a-(s-a)(\cos B+\cos C)$ ) and sum cyclically:

$$
\begin{aligned}
-s+\sum_{\mathrm{cyc}} E F & \geq-s+\sum_{\mathrm{cyc}}[a-(s-a)(\cos B+\cos C)] \\
& =s-\sum_{\mathrm{cyc}} a \cos A=\sum_{\mathrm{cyc}} a\left(\frac{1}{2}-\cos A\right) \\
& =R \sum_{\mathrm{cyc}} \sin A(1-2 \cos A) \\
& =R \sum_{\mathrm{cyc}}(\sin A-\sin 2 A)
\end{aligned}
$$

Thus we're done upon noting that

$$
\frac{\sin 2 B+\sin 2 C}{2}=\sin (B+C) \cos (B-C)=\sin A \cos (B-C) \leq \sin A
$$

(Alternatively, one can avoid trigonometry by substituting $\cos A=\frac{b^{2}+c^{2}-a^{2}}{2 b c}$ and doing some routine but long calculation.)

## §3.2 TSTST 2011/8

Available online at https://aops.com/community/p2374856.

## Problem statement

Let $x_{0}, x_{1}, \ldots, x_{n_{0}-1}$ be integers, and let $d_{1}, d_{2}, \ldots, d_{k}$ be positive integers with $n_{0}=d_{1}>d_{2}>\cdots>d_{k}$ and $\operatorname{gcd}\left(d_{1}, d_{2}, \ldots, d_{k}\right)=1$. For every integer $n \geq n_{0}$, define

$$
x_{n}=\left\lfloor\frac{x_{n-d_{1}}+x_{n-d_{2}}+\cdots+x_{n-d_{k}}}{k}\right\rfloor
$$

Show that the sequence $\left(x_{n}\right)$ is eventually constant.

Note that if the initial terms are contained in some interval $[A, B]$ then they will remain in that interval. Thus the sequence is eventually periodic. Discard initial terms and let the period be $T$; we will consider all indices modulo $T$ from now on.

Let $M$ be the maximal term in the sequence (which makes sense since the sequence is periodic). Note that if $x_{n}=M$, we must have $x_{n-d_{i}}=M$ for all $i$ as well. By taking a linear combination $\sum c_{i} d_{i} \equiv 1(\bmod T)($ possibly be Bezout's theorem, since $\operatorname{gcd}_{i}\left(d_{i}\right)=1$ ), we conclude $x_{n-1}=M$, as desired.

## §3.3 TSTST 2011/9

Available online at https://aops.com/community/p2374857.

## Problem statement

Let $n$ be a positive integer. Suppose we are given $2^{n}+1$ distinct sets, each containing finitely many objects. Place each set into one of two categories, the red sets and the blue sets, so that there is at least one set in each category. We define the symmetric difference of two sets as the set of objects belonging to exactly one of the two sets. Prove that there are at least $2^{n}$ different sets which can be obtained as the symmetric difference of a red set and a blue set.

We can interpret the problem as working with binary strings of length $\ell \geq n+1$, with $\ell$ the number of elements across all sets.

Let $F$ be a field of cardinality $2^{\ell}$, hence $F \cong \mathbb{F}_{2}^{\oplus \ell}$.
Then, we can think of red/blue as elements of $F$, so we have some $B \subseteq F$, and an $R \subseteq F$. We wish to prove that $|B+R| \geq 2^{n}$. Want $|B+R| \geq 2^{n}$.

Equivalently, any element of a set $X$ with $|X|=2^{n}-1$ should omit some element of $|B+R|$. To prove this: we know $|B|+|R|=2^{n}+1$, and define

$$
P(b, r)=\prod_{x \in X}(b+r-x)
$$

Consider $b^{|B|-1} r^{|R|-1}$. The coefficient of is $\binom{2^{n}-1}{|B|-1}$, which is odd (say by Lucas theorem), so the nullstellensatz applies.