# TSTST 2011 Solution Notes
Lincoln, Nebraska
\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}}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 $ad_{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.