Moscow, Soviet Union, July 5-16, 1973
### 3.15.1 Contest Problems
First Day (July 9)
1. Let $O$ be a point on the line $l$ and $\overrightarrow{O P_{1}}, \overrightarrow{O P_{2}}, \ldots, \overrightarrow{O P_{n}}$ unit vectors such that points $P_{1}, P_{2}, \ldots, P_{n}$ and line $l$ lie in the same plane and all points $P_{i}$ lie in the same half-plane determined by $l$. Prove that if $n$ is odd, then
$$
\left\|\overrightarrow{O P_{1}}+\overrightarrow{O P_{2}}+\cdots+\overrightarrow{O P_{n}}\right\| \geq 1
$$
$(\|\overrightarrow{O M}\|$ is the length of vector $\overrightarrow{O M})$.
2. Does there exist a finite set $M$ of points in space, not all in the same plane, such that for each two points $A, B \in M$ there exist two other points $C, D \in M$ such that lines $A B$ and $C D$ are parallel but not equal?
3. Determine the minimum of $a^{2}+b^{2}$ if $a$ and $b$ are real numbers for which the equation
$$
x^{4}+a x^{3}+b x^{2}+a x+1=0
$$
has at least one real solution.
Second Day (July 10)
4. A soldier has to investigate whether there are mines in an area that has the form of equilateral triangle. The radius of his detector's range is equal to one-half the altitude of the triangle. The soldier starts from one vertex of the triangle. Determine the smallest path through which the soldier has to pass in order to check the entire region.
5. Let $G$ be the set of functions $f: \mathbb{R} \rightarrow \mathbb{R}$ of the form $f(x)=a x+b$, where $a$ and $b$ are real numbers and $a \neq 0$. Suppose that $G$ satisfies the following conditions:
(1) If $f, g \in G$, then $g \circ f \in G$, where $(g \circ f)(x)=g[f(x)]$.
(2) If $f \in G$ and $f(x)=a x+b$, then the inverse $f^{-1}$ of $f$ belongs to $G$ $\left(f^{-1}(x)=(x-b) / a\right)$.
(3) For each $f \in G$ there exists a number $x_{f} \in \mathbb{R}$ such that $f\left(x_{f}\right)=x_{f}$. Prove that there exists a number $k \in \mathbb{R}$ such that $f(k)=k$ for all $f \in G$.
6. Let $a_{1}, a_{2}, \ldots, a_{n}$ be positive numbers and $q$ a given real number, $0 1$ and $\frac{1}{x}+\frac{1}{y}+\frac{1}{z}=2$, then
$$
\sqrt{x+y+z} \geq \sqrt{x-1}+\sqrt{y-1}+\sqrt{z-1}
$$
22. (GBR 2) (SL92-21).
23. (HKG 1) An Egyptian number is a positive integer that can be expressed as a sum of positive integers, not necessarily distinct, such that the sum of their reciprocals is 1 . For example, $32=2+3+9+18$ is Egyptian because $\frac{1}{2}+\frac{1}{3}+\frac{1}{9}+\frac{1}{18}=1$. Prove that all integers greater than 23 are Egyptian.
24. (ICE 1) Let $\mathbb{Q}^{+}$denote the set of nonnegative rational numbers. Show that there exists exactly one function $f: \mathbb{Q}^{+} \rightarrow \mathbb{Q}^{+}$satisfying the following conditions:
(i) if $0 3$ be a prime and suppose there exists an integer $z$ such that $p$ divides $f(z)$. Prove that there exist integers $z_{1}, z_{2}, \ldots, z_{8}$ such that if
$$
g(x)=\left(x-z_{1}\right)\left(x-z_{2}\right) \cdots\left(x-z_{8}\right)
$$
then all coefficients of $f(x)-g(x)$ are divisible by $p$.
20. (FRA 1) ${ }^{\mathrm{IMO} 4}$ In the plane, let there be given a circle $C$, a line $l$ tangent to $C$, and a point $M$ on $l$. Find the locus of points $P$ that have the following property: There exist two points $Q$ and $R$ on $l$ such that $M$ is the midpoint of $Q R$ and $C$ is the incircle of $P Q R$.
21. (GBR 2) ${ }^{\mathrm{IMO} 6}$ For each positive integer $n$, denote by $s(n)$ the greatest integer such that for all positive integers $k \leq s(n), n^{2}$ can be expressed as a sum of squares of $k$ positive integers.
(a) Prove that $s(n) \leq n^{2}-14$ for all $n \geq 4$.
(b) Find a number $n$ such that $s(n)=\overline{n^{2}}-14$.
(c) Prove that there exist infinitely many positive integers $n$ such that $s(n)=n^{2}-14$.
### 3.34 The Thirty-Fourth IMO Istanbul, Turkey, July 13-24, 1993
### 3.34.1 Contest Problems
## First Day (July 18)
1. Let $n>1$ be an integer and let $f(x)=x^{n}+5 x^{n-1}+3$. Prove that there do not exist polynomials $g(x), h(x)$, each having integer coefficients and degree at least one, such that $f(x)=g(x) h(x)$.
2. $A, B, C, D$ are four points in the plane, with $C, D$ on the same side of the line $A B$, such that $A C \cdot B D=A D \cdot B C$ and $\measuredangle A D B=90^{\circ}+\measuredangle A C B$. Find the ratio
$$
\frac{A B \cdot C D}{A C \cdot B D}
$$
and prove that circles $A C D, B C D$ are orthogonal. (Intersecting circles are said to be orthogonal if at either common point their tangents are perpendicular.)
3. On an infinite chessboard, a solitaire game is played as follows: At the start, we have $n^{2}$ pieces occupying $n^{2}$ squares that form a square of side $n$. The only allowed move is a jump horizontally or vertically over an occupied square to an unoccupied one, and the piece that has been jumped over is removed. For what positive integers $n$ can the game end with only one piece remaining on the board?
Second Day (July 19)
4. For three points $A, B, C$ in the plane we define $m(A B C)$ to be the smallest length of the three altitudes of the triangle $A B C$, where in the case of $A, B, C$ collinear, $m(A B C)=0$. Let $A, B, C$ be given points in the plane. Prove that for any point $X$ in the plane,
$$
m(A B C) \leq m(A B X)+m(A X C)+m(X B C)
$$
5. Let $\mathbb{N}=\{1,2,3, \ldots\}$. Determine whether there exists a strictly increasing function $f: \mathbb{N} \rightarrow \mathbb{N}$ with the following properties:
$$
\begin{aligned}
f(1) & =2 \\
f(f(n)) & =f(n)+n \quad(n \in \mathbb{N})
\end{aligned}
$$
6 . Let $n$ be an integer greater than 1 . In a circular arrangement of $n$ lamps $L_{0}, \ldots, L_{n-1}$, each one of that can be either ON or OFF, we start with the situation where all lamps are ON, and then carry out a sequence of steps, $S t e p_{0}, S t e p_{1}, \ldots$ If $L_{j-1}(j$ is taken $\bmod n)$ is ON, then $S t e p_{j}$ changes the status of $L_{j}$ (it goes from ON to OFF or from OFF to ON) but does not change the status of any of the other lamps. If $L_{j-1}$ is OFF , then $S t e p_{j}$ does not change anything at all. Show that:
(a) There is a positive integer $M(n)$ such that after $M(n)$ steps all lamps are ON again.
(b) If $n$ has the form $2^{k}$, then all lamps are ON after $n^{2}-1$ steps.
(c) If $n$ has the form $2^{k}+1$, then all lamps are ON after $n^{2}-n+1$ steps.
### 3.34.2 Shortlisted Problems
1. (BRA 1) Show that there exists a finite set $A \subset \mathbb{R}^{2}$ such that for every $X \in A$ there are points $Y_{1}, Y_{2}, \ldots, Y_{1993}$ in $A$ such that the distance between $X$ and $Y_{i}$ is equal to 1 , for every $i$.
2. (CAN 2) Let triangle $A B C$ be such that its circumradius $R$ is equal to 1. Let $r$ be the inradius of $A B C$ and let $p$ be the inradius of the orthic triangle $A^{\prime} B^{\prime} C^{\prime}$ of triangle $A B C$.
Prove that $p \leq 1-\frac{1}{3}(1+r)^{2}$.
Remark. The orthic triangle is the triangle whose vertices are the feet of the altitudes of $A B C$.
3. (SPA 1) Consider the triangle $A B C$, its circumcircle $k$ with center $O$ and radius $R$, and its incircle with center $I$ and radius $r$. Another circle $k_{c}$ is tangent to the sides $C A, C B$ at $D, E$, respectively, and it is internally tangent to $k$.
Show that the incenter $I$ is the midpoint of $D E$.
4. (SPA 2) In the triangle $A B C$, let $D, E$ be points on the side $B C$ such that $\angle B A D=\angle C A E$. If $M, N$ are, respectively, the points of tangency with $B C$ of the incircles of the triangles $A B D$ and $A C E$, show that
$$
\frac{1}{M B}+\frac{1}{M D}=\frac{1}{N C}+\frac{1}{N E}
$$
5. (FIN 3) ${ }^{\mathrm{IMO} 3}$ On an infinite chessboard, a solitaire game is played as follows: At the start, we have $n^{2}$ pieces occupying $n^{2}$ squares that form a square of side $n$. The only allowed move is a jump horizontally or vertically over an occupied square to an unoccupied one, and the piece that has been jumped over is removed. For what positive integers $n$ can the game end with only one piece remaining on the board?
6. (GER 1) ${ }^{\mathrm{IMO} 5}$ Let $\mathbb{N}=\{1,2,3, \ldots\}$. Determine whether there exists a strictly increasing function $f: \mathbb{N} \rightarrow \mathbb{N}$ with the following properties:
$$
\begin{aligned}
f(1) & =2 \\
f(f(n)) & =f(n)+n \quad(n \in \mathbb{N})
\end{aligned}
$$
7. (GEO 3) Let $a, b, c$ be given integers $a>0, a c-b^{2}=P=P_{1} \cdots P_{m}$ where $P_{1}, \ldots, P_{m}$ are (distinct) prime numbers. Let $M(n)$ denote the number of pairs of integers $(x, y)$ for which
$$
a x^{2}+2 b x y+c y^{2}=n
$$
Prove that $M(n)$ is finite and $M(n)=M\left(P^{k} \cdot n\right)$ for every integer $k \geq 0$.
8. (IND 1) Define a sequence $\langle f(n)\rangle_{n=1}^{\infty}$ of positive integers by $f(1)=1$ and
$$
f(n)= \begin{cases}f(n-1)-n, & \text { if } f(n-1)>n ; \\ f(n-1)+n, & \text { if } f(n-1) \leq n,\end{cases}
$$
for $n \geq 2$. Let $S=\{n \in \mathbb{N} \mid f(n)=1993\}$.
(a) Prove that $S$ is an infinite set.
(b) Find the least positive integer in $S$.
(c) If all the elements of $S$ are written in ascending order as $n_{1} 1 \\
\left(p_{k}, p_{k}+q_{k}\right), \text { if }\left\{p_{k} /(2 \pi)\right\}+\left\{q_{k} /(2 \pi)\right\}<1
\end{array}\right.
$$
It is now "easy" to calculate that $p_{19}=p_{20}=333, q_{19}=377, q_{20}=710$, and thus $n_{19}=709<1000<1042=n_{20}$. It follows that the lengths of the basic arcs for $n=1000$ take exactly three different values.
### 4.10 Solutions to the Shortlisted Problems of IMO 1968
1. Since the ships are sailing with constant speeds and directions, the second ship is sailing at a constant speed and direction in reference to the first ship. Let $A$ be the constant position of the first ship in this frame. Let $B_{1}$, $B_{2}, B_{3}$, and $B$ on line $b$ defining the trajectory of the ship be positions of the second ship with respect to the first ship at 9:00, 9:35, 9:55, and at the moment the two ships were closest. Then we have the following equations for distances (in miles):
$$
\begin{gathered}
A B_{1}=20, \quad A B_{2}=15, \quad A B_{3}=13 \\
B_{1} B_{2}: B_{2} B_{3}=7: 4, \quad A B_{i}^{2}=A B^{2}+B B_{i}^{2}
\end{gathered}
$$
Since $B B_{1}>B B_{2}>B B_{3}$, it follows that $\mathcal{B}\left(B_{3}, B, B_{2}, B_{1}\right)$ or $\mathcal{B}\left(B, B_{3}, B_{2}\right.$, $B_{1}$ ). We get a system of three quadratic equations with three unknowns: $A B, B B_{3}$ and $B_{3} B_{2}$ ( $B B_{3}$ being negative if $\mathcal{B}\left(B_{3}, B, B_{1}, B_{2}\right)$, positive otherwise). This can be solved by eliminating $A B$ and then $B B_{3}$. The unique solution ends up being
$$
A B=12, \quad B B_{3}=5, \quad B_{3} B_{2}=4
$$
and consequently, the two ships are closest at 10:20 when they are at a distance of 12 miles.
2. The sides $a, b, c$ of a triangle $A B C$ with $\angle A B C=2 \angle B A C$ satisfy $b^{2}=$ $a(a+c)$ (this statement is the lemma in (SL98-7)). Taking into account the remaining condition that $a, b, c$ are consecutive integers with $ax>\sin x$ for all $0 2 / n^{2}$ is fixed, then $a b=\left(s^{2}-(a-b)^{2}\right) / 4$ is minimized when $|a-b|$ is maximized, i.e., when $b=1 / n^{2}$. Hence $y_{1} y_{2} \cdots y_{n}$ is minimal when $y_{2}=y_{3}=\cdots=y_{n}=1 / n^{2}$. Then $y_{1}=\left(n^{2}-n+1\right) / n^{2}$ and therefore $P_{\min }=\sqrt{n^{2}-n+1} / n^{n}$.
12. The first criterion ensures that all sets in an $S$-family are distinct. Since the number of different families of subsets is finite, $h$ has to exist. In fact, we will show that $h=11$. First of all, if there exists $X \in F$ such that $|X| \geq 5$, then by (3) there exists $Y \in F$ such that $X \cup Y=R$. In this case $|F|$ is at most 2. Similarly, for $|X|=4$, for the remaining two elements either there exists a subset in $F$ that contains both, in which case we obtain the previous case, or there exist different $Y$ and $Z$ containing them, in which case $X \cup Y \cup Z=R$, which must not happen. Hence we can assume $|X| \leq 4$ for all $X \in F$.
Assume $|X|=1$ for some $X$. In that case other sets must not contain that subset and hence must be contained in the remaining 5 -element subset. These elements must not be subsets of each other. From elementary combinatorics, the largest number of subsets of a 5 -element set of which none is subset of another is $\binom{5}{2}=10$. This occurs when we take all 2-element subsets. These subsets also satisfy (2). Hence $|F|_{\max }=11$ in this case. Otherwise, let us assume $|X|=3$ for some $X$. Let us define the following families of subsets: $G=\{Z=Y \backslash X \mid Y \in F\}$ and $H=\{Z=Y \cap X \mid Y \in$ $F\}$. Then no two sets in $G$ must complement each other in $R \backslash X$, and $G$ must cover this set. Hence $G$ contains exactly the sets of each of the remaining 3 elements. For each element of $G$ no two sets in $H$ of which one is a subset of another may be paired with it. There can be only 3 such subsets selected within a 3 -element set $X$. Hence the number of remaining sets is smaller than $3 \cdot 3=9$. Hence in this case $|F|_{\max }=10$.
In the remaining case all subsets have two elements. There are $\binom{6}{2}=15$ of them. But for every three that complement each other one must be discarded; hence the maximal number for $F$ in this case is $2 \cdot 15 / 3=10$. It follows that $h=11$.
13. From elementary trigonometry we have $\sin 3 t=3 \sin t-4 \sin ^{3} t$. Hence, if we denote $y=\sin 20^{\circ}$, we have $\sqrt{3} / 2=\sin 60^{\circ}=3 y-4 y^{3}$. Obviously $0 0$ that $f^{k}(0)=0$. Since $f(m)=m+a$ or $f(m)=m-b$, it follows that $k$ can be written as $k=r+s$, where $r a-s b=0$. Since $a$ and $b$ are relatively prime, it follows that $k \geq a+b$.
Let us now prove that $f^{a+b}(0)=0$. In this case $a+b=r+s$ and hence $f^{a+b}(0)=(a+b-s) a-s b=(a+b)(a-s)$. Since $a+b \mid f^{a+b}(0)$ and $f^{a+b}(0) \in S$, it follows that $f^{a+b}(0)=0$. Thus for $(a, b)=1$ it follows that $k=a+b$. For other $a$ and $b$ we have $k=\frac{a+b}{(a, b)}$.
19. Let $d_{1}, d_{2}, d_{3}, d_{4}$ be the distances of the point $P$ to the tetrahedron. Let $d$ be the height of the regular tetrahedron. Let $x_{i}=d_{i} / d$. Clearly, $x_{1}+$ $x_{2}+x_{3}+x_{4}=1$, and given this condition, the parameters vary freely as we vary $P$ within the tetrahedron. The four tetrahedra have volumes $x_{1}^{3}, x_{2}^{3}, x_{3}^{3}$, and $x_{4}^{3}$, and the four parallelepipeds have volumes of $6 x_{2} x_{3} x_{4}$, $6 x_{1} x_{3} x_{4}, 6 x_{1} x_{2} x_{4}$, and $6 x_{1} x_{2} x_{3}$. Hence, using $x_{1}+x_{2}+x_{3}+x_{4}=1$ and setting $g(x)=x^{2}(1-x)$, we directly verify that
$$
\begin{aligned}
f(P) & =f\left(x_{1}, x_{2}, x_{3}, x_{4}\right)=1-\sum_{i=1}^{4} x_{i}^{3}-6 \sum_{1 \leq i 0)$ modulo 3 , we get that $5^{z} \equiv 1(\bmod 3)$, hence $z$ is even, say $z=2 z_{1}$. The equation then becomes $3^{x}=5^{2 z_{1}}-4^{y}=\left(5^{z_{1}}-2^{y}\right)\left(5^{z_{1}}+2^{y}\right)$. Each factor $5^{z_{1}}-2^{y}$ and $5^{z_{1}}+2^{y}$ is a power of 3 , for which the only possibility is $5^{z_{1}}+2^{y}=3^{x}$ and $5^{z_{1}}-2^{y}=$ 1. Again modulo 3 these equations reduce to $(-1)^{z_{1}}+(-1)^{y}=0$ and $(-1)^{z_{1}}-(-1)^{y}=1$, implying that $z_{1}$ is odd and $y$ is even. Particularly, $y \geq 2$. Reducing the equation $5^{z_{1}}+2^{y}=3^{x}$ modulo 4 we get that $3^{x} \equiv 1$, hence $x$ is even. Now if $y>2$, modulo 8 this equation yields $5 \equiv 5^{z_{1}} \equiv$ $3^{x} \equiv 1$, a contradiction. Hence $y=2, z_{1}=1$. The only solution of the original equation is $x=y=z=2$.
18. For integers $a>0, n>0$ and $\alpha \geq 0$, we shall write $a^{\alpha} \| n$ when $a^{\alpha} \mid n$ and $a^{\alpha+1} \nmid n$.
Lemma. For every odd number $a \geq 3$ and an integer $n \geq 0$ it holds that
$$
a^{n+1} \|(a+1)^{a^{n}}-1 \quad \text { and } \quad a^{n+1} \|(a-1)^{a^{n}}+1
$$
Proof. We shall prove the first relation by induction (the second is analogous). For $n=0$ the statement is obvious. Suppose that it holds for some $n$, i.e. that $(1+a)^{a^{n}}=1+N a^{n+1}, a \nmid N$. Then
$$
(1+a)^{a^{n+1}}=\left(1+N a^{n+1}\right)^{a}=1+a \cdot N a^{n+1}+\binom{a}{2} N^{2} a^{2 n+2}+M a^{3 n+3}
$$
for some integer $M$. Since $\binom{a}{2}$ is divisible by $a$ for $a$ odd, we deduce that the part of the above sum behind $1+a \cdot N a^{n+1}$ is divisible by $a^{n+3}$. Hence $(1+a)^{a^{n+1}}=1+N^{\prime} a^{n+2}$, where $a \nmid N^{\prime}$.
It follows immediately from Lemma that
$$
1991^{1993} \| 1990^{1991^{1992}}+1 \quad \text { and } \quad 1991^{1991} \| 1992^{1991^{1990}}-1
$$
Adding these two relations we obtain immediately that $k=1991$ is the desired value.
19. Set $x=\cos (\pi a)$. The given equation is equivalent to $4 x^{3}+4 x^{2}-3 x-2=0$, which factorizes as $(2 x+1)\left(2 x^{2}+x-2\right)=0$.
The case $2 x+1=0$ yields $\cos (\pi a)=-1 / 2$ and $a=2 / 3$. It remains to show that if $x$ satisfies $2 x^{2}+x-2=0$ then $a$ is not rational. The polynomial equation $2 x^{2}+x-2=0$ has two real roots, $x_{1,2}=\frac{-1 \pm \sqrt{17}}{4}$, and since $|x| \leq 1$ we must have $x=\cos \pi a=\frac{-1+\sqrt{17}}{4}$.
We now prove by induction that, for every integer $n \geq 0, \cos \left(2^{n} \pi a\right)=$ $\frac{a_{n}+b_{n} \sqrt{17}}{4}$ for some odd integers $a_{n}, b_{n}$. The case $n=0$ is trivial. Also, if $\cos \left(2^{n} \pi a\right)=\frac{a_{n}+b_{n} \sqrt{17}}{4}$, then
$$
\begin{aligned}
\cos \left(2^{n+1} \pi a\right) & =2 \cos ^{2}\left(2^{n} \pi a\right)-1 \\
& =\frac{1}{4}\left(\frac{a_{n}^{2}+17 b_{n}^{2}-8}{2}+a_{n} b_{n} \sqrt{17}\right)=\frac{a_{n+1}+b_{n+1} \sqrt{17}}{4} .
\end{aligned}
$$
By the inductive step that $a_{n}, b_{n}$ are odd, it is obvious that $a_{n+1}, b_{n+1}$ are also odd. This proves the claim.
Note also that, since $a_{n+1}=\frac{1}{2}\left(a_{n}^{2}+17 b_{n}^{2}-8\right)>a_{n}$, the sequence $\left\{a_{n}\right\}$ is strictly increasing. Hence the set of values of $\cos \left(2^{n} \pi a\right), n=0,1,2, \ldots$, is infinite (because $\sqrt{17}$ is irrational). However, if $a$ were rational, then the set of values of $\cos m \pi a, m=1,2, \ldots$, would be finite, a contradiction. Therefore the only possible value for $a$ is $2 / 3$.
20. We prove the result with 1991 replaced by any positive integer $k$. For natural numbers $p, q$, let $\epsilon=(\alpha p-[\alpha p])(\alpha q-[\alpha q])$. Then $0<\epsilon<1$ and
$$
\epsilon=\alpha^{2} p q-\alpha(p[\alpha q]+q[\alpha p])+[\alpha p][\alpha q] .
$$
Multiplying this equality by $\alpha-k$ and using $\alpha^{2}=k \alpha+1$, i.e. $\alpha(\alpha-k)=1$, we get
$$
(\alpha-k) \epsilon=\alpha(p q+[\alpha p][\alpha q])-(p[\alpha q]+q[\alpha p]+k[\alpha p][\alpha q])
$$
Since $0<(\alpha-k) \epsilon<1$, we have $[\alpha(p * q)]=p[\alpha q]+q[\alpha p]+k[\alpha p][\alpha q]$. Now
$$
\begin{aligned}
(p * q) * r & =(p * q) r+[\alpha(p * q)][\alpha r]= \\
& =p q r+[\alpha p][\alpha q] r+[\alpha q][\alpha r] p+[\alpha r][\alpha p] q+k[\alpha p][\alpha q][\alpha r] .
\end{aligned}
$$
Since the last expression is symmetric, the same formula is obtained for $p *(q * r)$.
21. The polynomial $g(x)$ factorizes as $g(x)=f(x)^{2}-9=(f(x)-3)(f(x)+3)$. If one of the equations $f(x)+3=0$ and $f(x)-3=0$ has no integer solutions, then the number of integer solutions of $g(x)=0$ clearly does not exceed 1991.
Suppose now that both $f(x)+3=0$ and $f(x)-3=0$ have integer solutions. Let $x_{1}, \ldots, x_{k}$ be distinct integer solutions of the former, and $x_{k+1}, \ldots, x_{k+l}$ be distinct integer solutions of the latter equation. There exist monic polynomials $p(x), q(x)$ with integer coefficients such that $f(x)+3=\left(x-x_{1}\right)\left(x-x_{2}\right) \ldots\left(x-x_{k}\right) p(x)$ and $f(x)-3=$ $\left(x-x_{k+1}\right)\left(x-x_{k+2}\right) \ldots\left(x-x_{k+l}\right) q(x)$. Thus we obtain
$\left(x-x_{1}\right)\left(x-x_{2}\right) \ldots\left(x-x_{k}\right) p(x)-\left(x-x_{k+1}\right)\left(x-x_{k+2}\right) \ldots\left(x-x_{k+l}\right) q(x)=6$.
Putting $x=x_{k+1}$ we get $\left(x_{k+1}-x_{1}\right)\left(x_{k+1}-x_{2}\right) \cdots\left(x_{k+1}-x_{k}\right) \mid 6$, and since the product of more than four distinct integers cannot divide 6 , this implies $k \leq 4$. Similarly $l \leq 4$; hence $g(x)=0$ has at most 8 distinct integer solutions.
Remark. The proposer provided a solution for the upper bound of 1995 roots which was essentially the same as that of (IMO74-6).
22. Suppose w.l.o.g. that the center of the square is at the origin $O(0,0)$. We denote the curve $y=f(x)=x^{3}+a x^{2}+b x+c$ by $\gamma$ and the vertices of the square by $A, B, C, D$ in this order.
At first, the symmetry with respect to the point $O$ maps $\gamma$ into the curve $\bar{\gamma}\left(y=f(-x)=x^{3}-a x^{2}+b x-c\right)$. Obviously $\bar{\gamma}$ also passes through $A, B, C, D$, and thus has four different intersection points with $\gamma$. Then $2 a x^{2}+2 c$ has at least four distinct solution, which implies $a=c=0$. Particularly, $\gamma$ passes through $O$ and intersects all quadrants, and hence $b<0$.
Further, the curve $\gamma^{\prime}$, obtained by rotation of $\gamma$ around $O$ for $90^{\circ}$, has an equation $-x=f(y)$ and also contains the points $A, B, C, D$ and $O$. The intersection points $(x, y)$ of $\gamma \cap \gamma^{\prime}$ are determined by $-x=f(f(x))$, and hence they are roots of a polynomial $p(x)=f(f(x))+x$ of 9-th degree.
But the number of times that one cubic actually crosses the other in each quadrant is in the general case even (draw the picture!), and since $A B C D$ is the only square lying on $\gamma \cap \gamma^{\prime}$, the intersection points $A, B, C, D$ must be double. It follows that
$$
p(x)=x[(x-r)(x+r)(x-s)(x+s)]^{2},
$$
where $r, s$ are the $x$-coordinates of $A$ and $B$. On the other hand, $p(x)$ is defined by $\left(x^{3}+b x\right)^{3}+b\left(x^{3}+b x\right)+x$, and therefore equating of coefficients with (1) yields
$$
\begin{array}{cc}
3 b=-2\left(r^{2}+s^{2}\right), & 3 b^{2}=\left(r^{2}+s^{2}\right)^{2}+2 r^{2} s^{2}, \\
b\left(b^{2}+1\right)=-2 r^{2} s^{2}\left(r^{2}+s^{2}\right), & b^{2}+1=r^{4} s^{4} .
\end{array}
$$
Straightforward solving this system of equations gives $b=-\sqrt{8}$ and $r^{2}+$ $s^{2}=\sqrt{18}$.
The line segment from $O$ to $(r, s)$ is half a diagonal of the square, and thus a side of the square has length $a=\sqrt{2\left(r^{2}+s^{2}\right)}=\sqrt[4]{72}$.
23. From (i), replacing $m$ by $f(f(m))$, we get
$$
f(f(f(m))+f(f(n)))=-f(f(f(f(m))+1))-n
$$
analogously $\quad f(f(f(n))+f(f(m)))=-f(f(f(f(n))+1))-m$.
From these relations we get $f(f(f(f(m))+1))-f(f(f(f(n))+1))=m-n$. Again from (i),
$$
\begin{aligned}
& f(f(f(f(m))+1))=f(-m-f(f(2))) \\
& \text { and } \quad f(f(f(f(n))+1))=f(-n-f(f(2))) .
\end{aligned}
$$
Setting $f(f(2))=k$ we obtain $f(-m-k)-f(-n-k)=m-n$ for all integers $m, n$. This implies $f(m)=f(0)-m$. Then also $f(f(m))=m$, and using this in (i) we finally get
$$
f(n)=-n-1 \quad \text { for all integers } n
$$
Particularly $f(1991)=-1992$.
From (ii) we obtain $g(n)=g(-n-1)$ for all integers $n$. Since $g$ is a polynomial, it must also satisfy $g(x)=g(-x-1)$ for all real $x$. Let us now express $g$ as a polynomial on $x+1 / 2: g(x)=h(x+1 / 2)$. Then $h$ satisfies $h(x+1 / 2)=h(-x-1 / 2)$, i.e. $h(y)=h(-y)$, hence it is a polynomial in $y^{2}$; thus $g$ is a polynomial in $(x+1 / 2)^{2}=x^{2}+x+1 / 4$. Hence $g(n)=p\left(n^{2}+n\right)$ (for some polynomial $p$ ) is the most general form of $g$.
24. Let $y_{k}=a_{k}-a_{k+1}+a_{k+2}-\cdots+a_{k+n-1}$ for $k=1,2, \ldots, n$, where we define $x_{i+n}=x_{i}$ for $1 \leq i \leq n$. We then have $y_{1}+y_{2}=2 a_{1}, y_{2}+y_{3}=$ $2 a_{2}, \ldots, y_{n}+y_{1}=2 a_{n}$.
(i) Let $n=4 k-1$ for some integer $k>0$. Then for each $i=1,2, \ldots, n$ we have that $y_{i}=\left(a_{i}+a_{i+1}+\cdots+a_{i-1}\right)-2\left(a_{i+1}+a_{i+3}+\cdots+a_{i-2}\right)=1+$ $2+\cdots+(4 k-1)-2\left(a_{i+1}+a_{i+3}+\cdots+a_{i-2}\right)$ is even. Suppose now that $a_{1}, \ldots, a_{n}$ is a good permutation. Then each $y_{i}$ is positive and even, so $y_{i} \geq 2$. But for some $t \in\{1, \ldots, n\}$ we must have $a_{t}=1$, and thus $y_{t}+y_{t+1}=2 a_{t}=2$ which is impossible. Hence the numbers $n=4 k-1$ are not good.
(ii) Let $n=4 k+1$ for some integer $k>0$. Then $2,4, \ldots, 4 k, 4 k+1,4 k-$ $1, \ldots, 3,1$ is a permutation with the desired property. Indeed, in this case $y_{1}=y_{4 k+1}=1, y_{2}=y_{4 k}=3, \ldots, y_{2 k}=y_{2 k+2}=4 k-1$, $y_{2 k+1}=4 k+1$.
Therefore all nice numbers are given by $4 k+1, k \in \mathbb{N}$.
25. Since replacing $x_{1}$ by 1 can only reduce the set of indices $i$ for which the desired inequality holds, we may assume $x_{1}=1$. Similarly we may assume $x_{n}=0$. Now we can let $i$ be the largest index such that $x_{i}>1 / 2$. Then $x_{i+1} \leq 1 / 2$, hence
$$
x_{i}\left(1-x_{i+1}\right) \geq \frac{1}{4}=\frac{1}{4} x_{1}\left(1-x_{n}\right) .
$$
26. Without loss of generality we can assume $b_{1} \geq b_{2} \geq \cdots \geq b_{n}$. We denote by $A_{i}$ the product $a_{1} a_{2} \ldots a_{i-1} a_{i+1} \ldots a_{n}$. If for some $i 0$, so $f(x)=$ $x p(x) / q(x)$ is a positive integer too. Let $\left\{p_{0}, p_{1}, p_{2}, \ldots\right\}$ be all prime numbers in increasing order. Since it easily follows by induction that all $x_{n}$ 's are square-free, we can assign to each of them a unique code according to which primes divide it: if $p_{m}$ is the largest prime dividing $x_{n}$, the code corresponding to $x_{n}$ will be $\ldots 0 s_{m} s_{m-1} \ldots s_{0}$, with $s_{i}=1$ if $p_{i} \mid x_{n}$ and $s_{i}=0$ otherwise. Let us investigate how $f$ acts on these codes. If the code of $x_{n}$ ends with 0 , then $x_{n}$ is odd, so the code of $f\left(x_{n}\right)=x_{n+1}$ is obtained from that of $x_{n}$ by replacing $s_{0}=0$ by $s_{0}=1$. Furthermore, if the code of
$x_{n}$ ends with $011 \ldots 1$, then the code of $x_{n+1}$ ends with $100 \ldots 0$ instead. Thus if we consider the codes as binary numbers, $f$ acts on them as an addition of 1 . Hence the code of $x_{n}$ is the binary representation of $n$ and thus $x_{n}$ uniquely determines $n$.
Specifically, if $x_{n}=1995=3 \cdot 5 \cdot 7 \cdot 19$, then its code is 10001110 and corresponds to $n=142$.
26. For $n=1$ the result is trivial, since $x_{1}=1$. Suppose now that $n \geq 2$ and let $f_{n}(x)=x^{n}-\sum_{i=0}^{n-1} x^{i}$. Note that $x_{n}$ is the unique positive real root of $f_{n}$, because $\frac{f_{n}(x)}{x^{n-1}}=x-1-\frac{1}{x}-\cdots-\frac{1}{x^{n-1}}$ is strictly increasing on $\mathbb{R}^{+}$. Consider $g_{n}(x)=(x-1) f_{n}(x)=(x-2) x^{n}+1$. Obviously $g_{n}(x)$ has no positive roots other than 1 and $x_{n}>1$. Observe that $\left(1-\frac{1}{2^{n}}\right)^{n}>$ $1-\frac{n}{2^{n}} \geq \frac{1}{2}$ for $n \geq 2$ (by Bernoulli's inequality). Since then
$$
g_{n}\left(2-\frac{1}{2^{n}}\right)=-\frac{1}{2^{n}}\left(2-\frac{1}{2^{n}}\right)^{n}+1=1-\left(1-\frac{1}{2^{n+1}}\right)^{n}>0
$$
and
$$
g_{n}\left(2-\frac{1}{2^{n-1}}\right)=-\frac{1}{2^{n-1}}\left(2-\frac{1}{2^{n-1}}\right)^{n}+1=1-2\left(1-\frac{1}{2^{n}}\right)^{n}<0
$$
we conclude that $x_{n}$ is between $2-\frac{1}{2^{n-1}}$ and $2-\frac{1}{2^{n}}$, as required.
Remark. Moreover, $\lim _{n \rightarrow \infty} 2^{n}\left(2-x_{n}\right)=1$.
27. Computing the first few values of $f(n)$, we observe the following pattern:
$$
\begin{aligned}
f(4 k) & =k, k \geq 3, & f(8) & =3 ; \\
f(4 k+1) & =1, k \geq 4, & f(5) & =f(13)=2 ; \\
f(4 k+2) & =k-3, k \geq 7, & f(2) & =1, f(6)=f(10)=2, \\
& & f(14) & =f(18)=3, f(26)=4 ; \\
f(4 k+3) & =2 . & &
\end{aligned}
$$
We shall prove these statements simultaneously by induction on $n$, having verified them for $k \leq 7$.
(i) Let $n=4 k$. Since $f(3)=f(7)=\cdots=f(4 k-1)=2$, we have $f(4 k) \geq k$. But $f(n) \leq \max _{m 0$, this proves the result.
12. Since $D(A)=D(B)$, we can define $f(i)>g(i) \geq 0$ that satisfy $b_{i}-b_{i-1}=$ $a_{f(i)}-a_{g(i)}$ for all $i$.
The number $b_{i+1}-b_{i-1} \in D(B)=D(A)$ can be written in the form $a_{u}-a_{v}, u>v \geq 0$. Then $b_{i+1}-b_{i-1}=b_{i+1}-b_{i}+b_{i}-b_{i-1}$ implies
$a_{f(i+1)}+a_{f(i)}+a_{v}=a_{g(i+1)}+a_{g(i)}+a_{u}$, so the $B_{3}$ property of $A$ implies that $(f(i+1), f(i), v)$ and $(g(i+1), g(i), u)$ coincide up to a permutation. It follows that either $f(i+1)=g(i)$ or $f(i)=g(i+1)$. Hence if we define $R=\left\{i \in \mathbb{N}_{0} \mid f(i+1)=g(i)\right\}$ and $S=\left\{i \in \mathbb{N}_{0} \mid f(i)=g(i+1)\right\}$ it holds that $R \cup S=\mathbb{N}_{0}$.
Lemma. If $i \in R$, then also $i+1 \in R$.
Proof. Suppose to the contrary that $i \in R$ and $i+1 \in S$, i.e., $g(i)=$ $f(i+1)=g(i+2)$. There are integers $x$ and $y$ such that $b_{i+2}-b_{i-1}=$ $a_{x}-a_{y}$. Then $a_{x}-a_{y}=a_{f(i+2)}-a_{g(i+2)}+a_{f(i+1)}-a_{g(i+1)}+a_{f(i)}-$ $a_{g(i)}=a_{f(i+2)}+a_{f(i)}-a_{g(i+1)}-a_{g(i)}$, so by the $B_{3}$ property $(x, g(i+$ $1), g(i))$ and $(y, f(i+2), f(i))$ coincide up to a permutation. But this is impossible, since $f(i+2), f(i)>g(i+2)=g(i)=f(i+1)>g(i+1)$. This proves the lemma.
Therefore if $i \in R \neq \emptyset$, then it follows that every $j>i$ belongs to $R$. Consequently $g(i)=f(i+1)>g(i+1)=f(i+2)>g(i+2)=f(i+3)>$ $\cdots$ is an infinite decreasing sequence of nonnegative integers, which is impossible. Hence $S=\mathbb{N}_{0}$, i.e.,
$$
b_{i+1}-b_{i}=a_{f(i+1)}-a_{f(i)} \quad \text { for all } i \in \mathbb{N}_{0}
$$
Thus $f(0)=g(1)1$. Prove that there exist infinitely many prime numbers $p$ that divide $u_{p-1}$.
3. (BUL 3) Let $A B C D$ be an arbitrary quadrilateral. Let squares $A B B_{1} A_{2}$, $B C C_{1} B_{2}, C D D_{1} C_{2}, D A A_{1} D_{2}$ be constructed in the exterior of the quadrilateral. Furthermore, let $A A_{1} P A_{2}$ and $C C_{1} Q C_{2}$ be parallelograms. For any arbitrary point $P$ in the interior of $A B C D$, parallelograms $R A S C$ and $R P T Q$ are constructed. Prove that these two parallelograms have two vertices in common.
4. (BUL 4) Let $K_{a}, K_{b}, K_{c}$ with centers $O_{a}, O_{b}, O_{c}$ be the excircles of a triangle $A B C$, touching the interiors of the sides $B C, C A, A B$ at points $T_{a}, T_{b}, T_{c}$ respectively.
Prove that the lines $O_{a} T_{a}, O_{b} T_{b}, O_{c} T_{c}$ are concurrent in a point $P$ for which $P O_{a}=P O_{b}=P O_{c}=2 R$ holds, where $R$ denotes the circumradius of $A B C$. Also prove that the circumcenter $O$ of $A B C$ is the midpoint of the segment $P J$, where $J$ is the incenter of $A B C$.
5. (BUL 5) A straight cone is given inside a rectangular parallelepiped $B$, with the apex at one of the vertices, say $T$, of the parallelepiped, and the base touching the three faces opposite to $T$. Its axis lies at the long diagonal through $T$. If $V_{1}$ and $V_{2}$ are the volumes of the cone and the parallelepiped respectively, prove that
$$
V_{1} \leq \frac{\sqrt{3} \pi V_{2}}{27}
$$
6. (CUB 1) Prove that the product of two natural numbers with their sum cannot be the third power of a natural number.
7. (CUB 2) Let $P$ be a prime number and $n$ a natural number. Prove that the product
$$
N=\frac{1}{p^{n^{2}}} \prod_{i=1 ; 2 \nmid i}^{2 n-1}\left[((p-1) i)!\binom{p^{2} i}{p i}\right]
$$
is a natural number that is not divisible by $p$.
8. (CUB 3) (SL74-9).
9. (CZS 1) Solve the following system of linear equations with unknown $x_{1}, \ldots, x_{n}(n \geq 2)$ and parameters $c_{1}, \ldots, c_{n}$ :
$$
\begin{array}{rlrl}
2 x_{1}-x_{2} & & =c_{1} \\
-x_{1}+2 x_{2}-x_{3} & & & =c_{2} \\
-x_{2}+2 x_{3}-x_{4} & & =c_{3} \\
\ldots & \ldots & \ldots & \cdots \\
& & -x_{n-2}+2 x_{n-1}-x_{n} & =c_{n-1} \\
& -x_{n-1}+2 x_{n} & =c_{n}
\end{array}
$$
10. (CZS 2) A regular octagon $P$ is given whose incircle $k$ has diameter 1. About $k$ is circumscribed a regular 16-gon, which is also inscribed in $P$, cutting from $P$ eight isosceles triangles. To the octagon $P$, three of these triangles are added so that exactly two of them are adjacent and no two of them are opposite to each other. Every 11-gon so obtained is said to be $P^{\prime}$.
Prove the following statement: Given a finite set $M$ of points lying in $P$ such that every two points of this set have a distance not exceeding 1 , one of the 11-gons $P^{\prime}$ contains all of $M$.
11. (CZS 3) Given a line $p$ and a triangle $\triangle$ in the plane, construct an equilateral triangle one of whose vertices lies on the line $p$, while the other two halve the perimeter of $\triangle$.
12. (CZS 4) A circle $K$ with radius $r$, a point $D$ on $K$, and a convex angle with vertex $S$ and rays $a$ and $b$ are given in the plane. Construct a parallelogram $A B C D$ such that $A$ and $B$ lie on $a$ and $b$ respectively, $S A+S B=r$, and $C$ lies on $K$.
13. (FIN 1) Prove that $2^{147}-1$ is divisible by 343.
14. (FIN 2) Let $n$ and $k$ be natural numbers and $a_{1}, a_{2}, \ldots, a_{n}$ positive real numbers satisfying $a_{1}+a_{2}+\cdots+a_{n}=1$. Prove that
$$
a_{1}^{-k}+a_{2}^{-k}+\cdots+a_{n}^{-k} \geq n^{k+1}
$$
15. (FIN 3) (SL74-10).
16. (GBR 1) A pack of $2 n$ cards contains $n$ different pairs of cards. Each pair consists of two identical cards, either of which is called the twin of the other. A game is played between two players $A$ and $B$. A third person called the dealer shuffles the pack and deals the cards one by one face upward onto the table. One of the players, called the receiver, takes the card dealt, provided he does not have already its twin. If he does already have the twin, his opponent takes the dealt card and becomes the receiver. $A$ is initially the receiver and takes the first card dealt. The player who first obtains a complete set of $n$ different cards wins the game. What fraction of all possible arrangements of the pack lead to $A$ winning? Prove the correctness of your answer.
17. (GBR 2) Show that there exists a set $S$ of 15 distinct circles on the surface of a sphere, all having the same radius and such that 5 touch exactly 5 others, 5 touch exactly 4 others, and 5 touch exactly 3 others.
18. (GBR 3) (SL74-5).
19. (GBR 4) (Alternative to GBR 2) Prove that there exists, for $n \geq 4$, a set $S$ of $3 n$ equal circles in spacethat can be partitioned into three subsets $s_{5}, s_{4}$, and $s_{3}$, each containing $n$ circles, such that each circle in $s_{r}$ touches exactly $r$ circles in $S$.
20. (NET 1) For which natural numbers $n$ do there exist $n$ natural numbers $a_{i}(1 \leq i \leq n)$ such that $\sum_{i=1}^{n} a_{i}^{-2}=1$ ?
21. (NET 2) Let $M$ be a nonempty subset of $\mathbb{Z}^{+}$such that for every element $x$ in $M$, the numbers $4 x$ and $[\sqrt{x}]$ also belong to $M$. Prove that $M=\mathbb{Z}^{+}$.
22. (NET 3) (SL74-8).
23. (POL 1) (SL74-2).
24. (POL 2) (SL74-7).
25. (POL 3) Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be of the form $f(x)=x+\varepsilon \sin x$, where $0<|\varepsilon| \leq 1$. Define for any $x \in \mathbb{R}$,
$$
x_{n}=\underbrace{f \circ \cdots \circ f}_{n \text { times }}(x)
$$
Show that for every $x \in \mathbb{R}$ there exists an integer $k$ such that $\lim _{n \rightarrow \infty} x_{n}$ $=k \pi$.
26. (POL 4) Let $g(k)$ be the number of partitions of a $k$-element set $M$, i.e., the number of families $\left\{A_{1}, A_{2}, \ldots, A_{s}\right\}$ of nonempty subsets of $M$ such that $A_{i} \cap A_{j}=\emptyset$ for $i \neq j$ and $\bigcup_{i=1}^{n} A_{i}=M$. Prove that
$$
n^{n} \leq g(2 n) \leq(2 n)^{2 n} \quad \text { for every } n
$$
27. (ROM 1) Let $C_{1}$ and $C_{2}$ be circles in the same plane, $P_{1}$ and $P_{2}$ arbitrary points on $C_{1}$ and $C_{2}$ respectively, and $Q$ the midpoint of segment $P_{1} P_{2}$. Find the locus of points $Q$ as $P_{1}$ and $P_{2}$ go through all possible positions. Alternative version. Let $C_{1}, C_{2}, C_{3}$ be three circles in the same plane. Find the locus of the centroid of triangle $P_{1} P_{2} P_{3}$ as $P_{1}, P_{2}$, and $P_{3}$ go through all possible positions on $C_{1}, C_{2}$, and $C_{3}$ respectively.
28. (ROM 2) Let $M$ be a finite set and $P=\left\{M_{1}, M_{2}, \ldots, M_{k}\right\}$ a partition of $M$ (i.e., $\bigcup_{i=1}^{k} M_{i}=M, M_{i} \neq \emptyset, M_{i} \cap M_{j}=\emptyset$ for all $i, j \in\{1,2, \ldots, k\}$, $i \neq j$ ). We define the following elementary operation on $P$ :
Choose $i, j \in\{1,2, \ldots, k\}$, such that $i \neq j$ and $M_{i}$ has $a$ elements and $M_{j}$ has $b$ elements such that $a \geq b$. Then take $b$ elements from $M_{i}$ and place them into $M_{j}$, i.e., $M_{j}$ becomes the union of itself unifies and a $b$-element subset of $M_{i}$, while the same subset is subtracted from $M_{i}$ (if $a=b, M_{i}$ is thus removed from the partition).
Let a finite set $M$ be given. Prove that the property "for every partition $P$ of $M$ there exists a sequence $P=P_{1}, P_{2}, \ldots, P_{r}$ such that $P_{i+1}$ is obtained
from $P_{i}$ by an elementary operation and $P_{r}=\{M\}$ " is equivalent to "the number of elements of $M$ is a power of $2 . "$
29. (ROM 3) Let $A, B, C, D$ be points in space. If for every point $M$ on the segment $A B$ the sum
$$
\operatorname{area}(A M C)+\operatorname{area}(C M D)+\operatorname{area}(D M B)
$$
is constant show that the points $A, B, C, D$ lie in the same plane.
30. (ROM 4) (SL74-6).
31. (ROM 5) Let $y^{\alpha}=\sum_{i=1}^{n} x_{i}^{\alpha}$, where $\alpha \neq 0, y>0, x_{i}>0$ are real numbers, and let $\lambda \neq \alpha$ be a real number. Prove that $y^{\lambda}>\sum_{i=1}^{n} x_{i}^{\lambda}$ if $\alpha(\lambda-\alpha)>0$, and $y^{\lambda}<\sum_{i=1}^{n} x_{i}^{\lambda}$ if $\alpha(\lambda-\alpha)<0$.
32. (SWE 1) Let $a_{1}, a_{2}, \ldots, a_{n}$ be $n$ real numbers such that $0n$. Prove that
$$
2(m-n)^{2}\left(m^{2}-n^{2}+1\right) \geq 2 m^{2}-2 m n+1
$$
51. (YUG 2) There are $n$ points on a flat piece of paper, any two of them at a distance of at least 2 from each other. An inattentive pupil spills ink on a part of the paper such that the total area of the damaged part equals $3 / 2$. Prove that there exist two vectors of equal length less than 1 and with their sum having a given direction, such that after a translation by either of these two vectors no points of the given set remain in the damaged area.
52. (YUG 3) A fox stands in the center of the field which has the form of an equilateral triangle, and a rabbit stands at one of its vertices. The fox can move through the whole field, while the rabbit can move only along the border of the field. The maximal speeds of the fox and rabbit are equal to $u$ and $v$, respectively. Prove that:
(a) If $2 u>v$, the fox can catch the rabbit, no matter how the rabbit moves.
(b) If $2 u \leq v$, the rabbit can always run away from the fox.
### 3.16.3 Shortlisted Problems
1. I 1 (USA 4) ${ }^{\mathrm{IMO}}$ Alice, Betty, and Carol took the same series of examinations. There was one grade of $A$, one grade of $B$, and one grade of $C$ for each examination, where $A, B, C$ are different positive integers. The final test scores were
| Alice | Betty | Carol |
| :---: | :---: | :---: |
| 20 | 10 | 9 |
If Betty placed first in the arithmetic examination, who placed second in the spelling examination?
2. I 2 (POL 1) Prove that the squares with sides $1 / 1,1 / 2,1 / 3, \ldots$ may be put into the square with side $3 / 2$ in such a way that no two of them have any interior point in common.
3. I 3 (SWE 3) ${ }^{\mathrm{IMO}}$ Let $P(x)$ be a polynomial with integer coefficients. If $n(P)$ is the number of (distinct) integers $k$ such that $P^{2}(k)=1$, prove that
$$
n(P)-\operatorname{deg}(P) \leq 2
$$
where $\operatorname{deg}(P)$ denotes the degree of the polynomial $P$.
4. I 4 (USS 4) The sum of the squares of five real numbers $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$ equals 1. Prove that the least of the numbers $\left(a_{i}-a_{j}\right)^{2}$, where $i, j=$ $1,2,3,4,5$ and $i \neq j$, does not exceed $1 / 10$.
5. I 5 (GBR 3) Let $A_{r}, B_{r}, C_{r}$ be points on the circumference of a given circle $S$. From the triangle $A_{r} B_{r} C_{r}$, called $\triangle_{r}$, the triangle $\triangle_{r+1}$ is obtained by constructing the points $A_{r+1}, B_{r+1}, C_{r+1}$ on $S$ such that $A_{r+1} A_{r}$ is parallel to $B_{r} C_{r}, B_{r+1} B_{r}$ is parallel to $C_{r} A_{r}$, and $C_{r+1} C_{r}$ is parallel to $A_{r} B_{r}$. Each angle of $\triangle_{1}$ is an integer number of degrees and those integers are not multiples of 45 . Prove that at least two of the triangles $\triangle_{1}, \triangle_{2}, \ldots, \triangle_{15}$ are congruent.
6. I 6 (ROM 4) ${ }^{\mathrm{IMO} 3}$ Does there exist a natural number $n$ for which the number
$$
\sum_{k=0}^{n}\binom{2 n+1}{2 k+1} 2^{3 k}
$$
is divisible by 5 ?
7. II 1 (POL 2) Let $a_{i}, b_{i}$ be coprime positive integers for $i=1,2, \ldots, k$, and $m$ the least common multiple of $b_{1}, \ldots, b_{k}$. Prove that the greatest common divisor of $a_{1} \frac{m}{b_{1}}, \ldots, a_{k} \frac{m}{b_{k}}$ equals the greatest common divisor of $a_{1}, \ldots, a_{k}$.
8. II 2 (NET 3) ${ }^{\mathrm{IMO} 5}$ If $a, b, c, d$ are arbitrary positive real numbers, find all possible values of
$$
S=\frac{a}{a+b+d}+\frac{b}{a+b+c}+\frac{c}{b+c+d}+\frac{d}{a+c+d} .
$$
9. II 3 (CUB 3) Let $x, y, z$ be real numbers each of whose absolute value is different from $1 / \sqrt{3}$ such that $x+y+z=x y z$. Prove that
$$
\frac{3 x-x^{3}}{1-3 x^{2}}+\frac{3 y-y^{3}}{1-3 y^{2}}+\frac{3 z-z^{3}}{1-3 z^{2}}=\frac{3 x-x^{3}}{1-3 x^{2}} \cdot \frac{3 y-y^{3}}{1-3 y^{2}} \cdot \frac{3 z-z^{3}}{1-3 z^{2}}
$$
10. II 4 (FIN 3) ${ }^{\mathrm{IMO} 2}$ Let $\triangle A B C$ be a triangle. Prove that there exists a point $D$ on the side $A B$ such that $C D$ is the geometric mean of $A D$ and $B D$ if and only if $\sqrt{\sin A \sin B} \leq \sin \frac{C}{2}$.
11. II 5 (BUL 1) ${ }^{\mathrm{IMO} 4}$ Consider a partition of an $8 \times 8$ chessboard into $p$ rectangles whose interiors are disjoint such that each of them has an equal number of white and black cells. Assume that $a_{1}
Braunschweig-Niedersachen, FR Germany, July 13-24, 1989
### 3.30.1 Contest Problems
First Day (July 18)
1. Prove that the set $\{1,2, \ldots, 1989\}$ can be expressed as the disjoint union of 17 subsets $A_{1}, A_{2}, \ldots, A_{17}$ such that:
(i) each $A_{i}$ contains the same number of elements;
(ii) the sum of all elements of each $A_{i}$ is the same for $i=1,2, \ldots, 17$.
2. Let $A B C$ be a triangle. The bisector of angle $A$ meets the circumcircle of triangle $A B C$ in $A_{1}$. Points $B_{1}$ and $C_{1}$ are defined similarly. Let $A A_{1}$ meet the lines that bisect the two external angles at $B$ and $C$ in point $A^{0}$. Define $B^{0}$ and $C^{0}$ similarly. If $S_{X_{1} X_{2} \ldots X_{n}}$ denotes the area of the polygon $X_{1} X_{2} \ldots X_{n}$, prove that
$$
S_{A^{0} B^{0} C^{0}}=2 S_{A C_{1} B A_{1} C B_{1}} \geq 4 S_{A B C}
$$
3. Given a set $S$ in the plane containing $n$ points and satisfying the conditions
(i) no three points of $S$ are collinear,
(ii) for every point $P$ of $S$ there exist at least $k$ points in $S$ that have the same distance to $P$,
prove that the following inequality holds:
$$
k<\frac{1}{2}+\sqrt{2 n}
$$
Second Day (July 19)
4. The quadrilateral $A B C D$ has the following properties:
(i) $A B=A D+B C$;
(ii) there is a point $P$ inside it at a distance $x$ from the side $C D$ such that $A P=x+A D$ and $B P=x+B C$.
Show that
$$
\frac{1}{\sqrt{x}} \geq \frac{1}{\sqrt{A D}}+\frac{1}{\sqrt{B C}}
$$
5. For which positive integers $n$ does there exist a positive integer $N$ such that none of the integers $1+N, 2+N, \ldots, n+N$ is the power of a prime number?
6. We consider permutations $\left(x_{1}, \ldots, x_{2 n}\right)$ of the set $\{1, \ldots, 2 n\}$ such that $\left|x_{i}-x_{i+1}\right|=n$ for at least one $i \in\{1, \ldots, 2 n-1\}$. For every natural number $n$, find out whether permutations with this property are more or less numerous than the remaining permutations of $\{1, \ldots, 2 n\}$.
### 3.30.2 Longlisted Problems
1. (AUS 1) In the set $S_{n}=\{1,2, \ldots, n\}$ a new multiplication $a * b$ is defined with the following properties:
(i) $c=a * b$ is in $S_{n}$ for any $a \in S_{n}, b \in S_{n}$.
(ii) If the ordinary product $a \cdot b$ is less than or equal to $n$, then $a * b=a \cdot b$.
(iii) The ordinary rules of multiplication hold for $*$, i.e.,
(1) $a * b=b * a$ (commutativity)
(2) $(a * b) * c=a *(b * c)$ (associativity)
(3) If $a * b=a * c$ then $b=c$ (cancellation law).
Find a suitable multiplication table for the new product for $n=11$ and $n=12$.
2. (AUS 2) (SL89-1).
3. (AUS 3) (SL89-2).
4. (AUS 4) (SL89-3).
5. (BUL 1) The sequences $a_{0}, a_{1}, \ldots$ and $b_{0}, b_{1}, \ldots$ are defined by the equalities
$$
a_{0}=\frac{\sqrt{2}}{2}, \quad a_{n+1}=\frac{\sqrt{2}}{2} \sqrt{1-\sqrt{1-a_{n}^{2}}}, \quad n=0,1,2, \ldots
$$
and
$$
b_{0}=1, \quad b_{n+1}=\frac{\sqrt{1+b_{n}^{2}}-1}{b_{n}}, \quad n=0,1,2, \ldots
$$
Prove the inequalities
$$
2^{n+2} a_{n}<\pi<2^{n+2} b_{n}, \quad \text { for every } n=0,1,2, \ldots
$$
6. (BUL 2) The circles $c_{1}$ and $c_{2}$ are tangent at the point $A$. A straight line $l$ through $A$ intersects $c_{1}$ and $c_{2}$ at points $C_{1}$ and $C_{2}$ respectively. A circle $c$, which contains $C_{1}$ and $C_{2}$, meets $c_{1}$ and $c_{2}$ at points $B_{1}$ and $B_{2}$ respectively. Let $\kappa$ be the circle circumscribed around triangle $A B_{1} B_{2}$. The circle $k$ tangent to $\kappa$ at the point $A$ meets $c_{1}$ and $c_{2}$ at the points $D_{1}$ and $D_{2}$ respectively. Prove that
(a) the points $C_{1}, C_{2}, D_{1}, D_{2}$ are concyclic or collinear;
(b) the points $B_{1}, B_{2}, D_{1}, D_{2}$ are concyclic if and only if $A C_{1}$ and $A C_{2}$ are diameters of $c_{1}$ and $c_{2}$.
7. (BUL 3) (SL89-4).
8. (COL 1) (SL89-5).
9. (COL 2) Let $m$ be a positive integer and define $f(m)$ to be the number of factors of 2 in $m$ ! (that is, the greatest positive integer $k$ such that $2^{k} \mid m!$ ). Prove that there are infinitely many positive integers $m$ such that $m-f(m)=1989$.
10. (CUB 1) Given the equation
$$
4 x^{3}+4 x^{2} y-15 x y^{2}-18 y^{3}-12 x^{2}+6 x y+36 y^{2}+5 x-10 y=0
$$
find all positive integer solutions.
11. (CUB 2) Given the equation
$$
y^{4}+4 y^{2} x-11 y^{2}+4 x y-8 y+8 x^{2}-40 x+52=0
$$
find all real solutions.
12. (CUB 3) Let $P(x)$ be a polynomial such that the following inequalities are satisfied:
$$
\begin{aligned}
& P(0)>0 \\
& P(1)>P(0) \\
& P(2)>2 P(1)-P(0) \\
& P(3)>3 P(2)-3 P(1)+P(0)
\end{aligned}
$$
and also for every natural number $n, P(n+4)>4 P(n+3)-6 P(n+2)+$ $4 P(n+1)-P(n)$. Prove that for every positive natural number $n, P(n)$ is positive.
13. (CUB 4) Let $n$ be a natural number not greater than 44 . Prove that for any function $f$ defined over $\mathbb{N}^{2}$ whose images are in the set $\{1,2, \ldots, n\}$, there are four ordered pairs $(i, j),(i, k),(l, j)$, and $(l, k)$ such that $f(i, j)=$ $f(i, k)=f(l, j)=f(l, k)$, where $i, j, k, l$ are chosen in such a way that there are natural numbers $n, p$ that satisfy
$$
1989 m \leq im \quad\left(x_{k_{1}}=x_{k_{7}}\right)
$$
50. (MON 3) Let $N$ be a point inside the triangle $A B C$. Through the midpoints of the segments $A N, B N$, and $C N$ the lines parallel to the opposite sides of $\triangle A B C$ are constructed. Let $A_{N}, B_{N}$, and $C_{N}$ be the intersection points of these lines. If $N$ is the orthocenter of the triangle $A B C$, prove that the nine-point circles of $\triangle A B C$ and $\triangle A_{N} B_{N} C_{N}$ coincide.
Remark. The statement of the original problem was that the nine-point circles of the triangles $A_{N} B_{N} C_{N}$ and $A_{M} B_{M} C_{M}$ coincide, where $N$ and $M$ are the orthocenter and the centroid of $\triangle A B C$. This statement is false.
51. (NET 1) (SL92-12).
52. (NET 2) Let $n$ be an integer $>1$. In a circular arrangement of $n$ lamps $L_{0}, \ldots, L_{n-1}$, each one of which can be either ON or OFF, we start with the situation that all lamps are ON, and then carry out a sequence of steps, Step $_{0}, S_{\text {Step }}^{1}, \ldots \ldots$ If $L_{j-1}(j$ is taken $\bmod n)$ is ON, then $S_{t e p}^{j}$ changes the status of $L_{j}$ (it goes from ON to OFF or from OFF to ON) but does not change the status of any of the other lamps. If $L_{j-1}$ is OFF , then Step $_{j}$ does not change anything at all. Show that:
(a) There is a positive integer $M(n)$ such that after $M(n)$ steps all lamps are ON again.
(b) If $n$ has the form $2^{k}$, then all lamps are ON after $n^{2}-1$ steps.
(c) If $n$ has the form $2^{k}+1$, then all lamps are ON after $n^{2}-n+1$ steps.
53. (NZL 1) (SL92-13).
54. (POL 1) Suppose that $n>m \geq 1$ are integers such that the string of digits 143 occurs somewhere in the decimal representation of the fraction $m / n$. Prove that $n>125$
55. (POL 2) (SL92-14).
56. (POL 3) A directed graph (any two distinct vertices joined by at most one directed line) has the following property: If $x, u$, and $v$ are three distinct vertices such that $x \rightarrow u$ and $x \rightarrow v$, then $u \rightarrow w$ and $v \rightarrow w$ for some vertex $w$. Suppose that $x \rightarrow u \rightarrow y \rightarrow \cdots \rightarrow z$ is a path of length $n$, that cannot be extended to the right (no arrow goes away from $z$ ). Prove that every path beginning at $x$ arrives after $n$ steps at $z$.
57. (POL 4) For positive numbers $a, b, c$ define $A=(a+b+c) / 3, G=$ $(a b c)^{1 / 3}, H=3 /\left(a^{-1}+b^{-1}+c^{-1}\right)$. Prove that
$$
\left(\frac{A}{G}\right)^{3} \geq \frac{1}{4}+\frac{3}{4} \cdot \frac{A}{H}
$$
for every $a, b, c>0$.
58. (POR 1) Let $A B C$ be a triangle. Denote by $a, b$, and $c$ the lengths of the sides opposite to the angles $A, B$, and $C$, respectively. Prove that ${ }^{7}$
$$
\frac{b c}{a+b+c}=\frac{\sin A+\sin B+\sin C}{\cos (A / 2) \sin (B / 2) \sin (C / 2)} .
$$
59. (PRK 1) Let a regular 7-gon $A_{0} A_{1} A_{2} A_{3} A_{4} A_{5} A_{6}$ be inscribed in a circle. Prove that for any two points $P, Q$ on the $\operatorname{arc} A_{0} A_{6}$ the following equality holds:
$$
\sum_{i=0}^{6}(-1)^{i} P A_{i}=\sum_{i=0}^{6}(-1)^{i} Q A_{i}
$$
60. (PRK 2) (SL92-15).
61. (PRK 3) There are a board with $2 n \cdot 2 n\left(=4 n^{2}\right)$ squares and $4 n^{2}-1$ cards numbered with different natural numbers. These cards are put one by one on each of the squares. One square is empty. We can move a card to an empty square from one of the adjacent squares (two squares are adjacent if they have a common edge). Is it possible to exchange two cards on two adjacent squares of a column (or a row) in a finite number of movements?
62. (ROM 1) Let $c_{1}, \ldots, c_{n}(n \geq 2)$ be real numbers such that $0 \leq \sum c_{i} \leq n$. Prove that there exist integers $x_{1}, \ldots, x_{n}$ such that $\sum k_{i}=0$ and $1-n \leq$ $c_{i}+n k_{i} \leq n$ for every $i=1, \ldots, n$.
63. (ROM 2) Let $a$ and $b$ be integers. Prove that $\frac{2 a^{2}-1}{b^{2}+2}$ is not an integer.
64. (ROM 3) For any positive integer $n$ consider all representations $n=$ $a_{1}+\cdots+a_{k}$, where $a_{1}>a_{2}>\cdots>a_{k}>0$ are integers such that for all $i \in\{1,2, \ldots, k-1\}$, the number $a_{i}$ is divisible by $a_{i+1}$. Find the longest such representation of the number 1992.
65. (SAF 1) If $A, B, C$, and $D$ are four distinct points in space, prove that there is a plane $P$ on which the orthogonal projections of $A, B, C$, and $D$ form a parallelogram (possibly degenerate).
66. (SPA 1) A circle of radius $\rho$ is tangent to the sides $A B$ and $A C$ of the triangle $A B C$, and its center $K$ is at a distance $p$ from $B C$.
(a) Prove that $a(p-\rho)=2 s(r-\rho)$, where $r$ is the inradius and $2 s$ the perimeter of $A B C$.
(b) Prove that if the circle intersect $B C$ at $D$ and $E$, then
$$
D E=\frac{4 \sqrt{r r_{1}(\rho-r)\left(r_{1}-\rho\right)}}{\left(r_{1}-r\right)}
$$
where $r_{1}$ is the exradius corresponding to the vertex $A$.
[^5]67. (SPA 2) In a triangle, a symmedian is a line through a vertex that is symmetric to the median with the respect to the internal bisector (all relative to the same vertex). In the triangle $A B C$, the median $m_{a}$ meets $B C$ at $A^{\prime}$ and the circumcircle again at $A_{1}$. The symmedian $s_{a}$ meets $B C$ at $M$ and the circumcircle again at $A_{2}$. Given that the line $A_{1} A_{2}$ contains the circumcenter $O$ of the triangle, prove that:
(a) $\frac{A A^{\prime}}{A M}=\frac{b^{2}+c^{2}}{2 b c}$;
(b) $1+4 b^{2} c^{2}=a^{2}\left(b^{2}+c^{2}\right)$.
68. (SPA 3) Show that the numbers $\tan (r \pi / 15)$, where $r$ is a positive integer less than 15 and relatively prime to 15 , satisfy
$$
x^{8}-92 x^{6}+134 x^{4}-28 x^{2}+1=0 .
$$
69. (SWE 1) (SL92-17).
70. (THA 1) Let two circles $A$ and $B$ with unequal radii $r$ and $R$, respectively, be tangent internally at the point $A_{0}$. If there exists a sequence of distinct circles $\left(C_{n}\right)$ such that each circle is tangent to both $A$ and $B$, and each circle $C_{n+1}$ touches circle $C_{n}$ at the point $A_{n}$, prove that
$$
\sum_{n=1}^{\infty}\left|A_{n+1} A_{n}\right|<\frac{4 \pi R r}{R+r}
$$
71. (THA 2) Let $P_{1}(x, y)$ and $P_{2}(x, y)$ be two relatively prime polynomials with complex coefficients. Let $Q(x, y)$ and $R(x, y)$ be polynomials with complex coefficients and each of degree not exceeding $d$. Prove that there exist two integers $A_{1}, A_{2}$ not simultaneously zero with $\left|A_{i}\right| \leq d+1(i=$ $1,2)$ and such that the polynomial $A_{1} P_{1}(x, y)+A_{2} P_{2}(x, y)$ is coprime to $Q(x, y)$ and $R(x, y)$.
72. (TUR 1) In a school six different courses are taught: mathematics, physics, biology, music, history, geography. The students were required to rank these courses according to their preferences, where equal preferences were allowed. It turned out that:
(i) mathematics was ranked among the most preferred courses by all students;
(ii) no student ranked music among the least preferred ones;
(iii) all students preferred history to geography and physics to biology; and (iv) no two rankings were the same.
Find the greatest possible value for the number of students in this school.
73. (TUR 2) Let $\left\{A_{n} \mid n=1,2, \ldots\right\}$ be a set of points in the plane such that for each $n$, the disk with center $A_{n}$ and radius $2^{n}$ contains no other point $A_{j}$. For any given positive real numbers $a2$. Let $A_{0}, A_{1}, A_{2}, \ldots$ be a sequence of points on a circle of radius 1 such that the minor arc from $A_{k-1}$ to $A_{k}$ runs clockwise and such that
$$
\mu\left(A_{k-1} A_{k}\right)=\frac{4 F_{2 k+1}}{F_{2 k+1}^{2}+1}
$$
for $k \geq 1$, where $\mu(X Y)$ denotes the radian measure of the arc $X Y$ in the clockwise direction. What is the limit of the radian measure of arc $A_{0} A_{n}$ as $n$ approaches infinity?
79. (USA 2) (SL92-18).
80. (USA 3) Given a graph with $n$ vertices and a positive integer $m$ that is less than $n$, prove that the graph contains a set of $m+1$ vertices in which the difference between the largest degree of any vertex in the set and the smallest degree of any vertex in the set is at most $m-1$.
81. (USA 4) Suppose that points $X, Y, Z$ are located on sides $B C, C A$, and $A B$, respectively, of $\triangle A B C$ in such a way that $\triangle X Y Z$ is similar to $\triangle A B C$. Prove that the orthocenter of $\triangle X Y Z$ is the circumcenter of $\triangle A B C$.
82. (VIE 1) Let $f(x)=x^{m}+a_{1} x^{m-1}+\cdots+a_{m-1} x+a_{m}$ and $g(x)=$ $x^{n}+b_{1} x^{n-1}+\cdots+b_{n-1}+b_{n}$ be two polynomials with real coefficients such that for each real number $x, f(x)$ is the square of an integer if and only if so is $g(x)$. Prove that if $n+m>0$, then there exists a polynomial $h(x)$ with real coefficients such that $f(x) \cdot g(x)=(h(x))^{2}$.
### 3.33.3 Shortlisted Problems
1. (AUS 2) Prove that for any positive integer $m$ there exist an infinite number of pairs of integers $(x, y)$ such that (i) $x$ and $y$ are relatively prime; (ii) $y$ divides $x^{2}+m$; (iii) $x$ divides $y^{2}+m$.
2. (CHN 1) Let $\mathbb{R}^{+}$be the set of all nonnegative real numbers. Given two positive real numbers $a$ and $b$, suppose that a mapping $f: \mathbb{R}^{+} \rightarrow \mathbb{R}^{+}$ satisfies the functional equation
$$
f(f(x))+a f(x)=b(a+b) x
$$
Prove that there exists a unique solution of this equation.
3. (CHN 2) The diagonals of a quadrilateral $A B C D$ are perpendicular: $A C \perp B D$. Four squares, $A B E F, B C G H, C D I J, D A K L$, are erected externally on its sides. The intersection points of the pairs of straight lines $C L, D F ; D F, A H ; A H, B J ; B J, C L$ are denoted by $P_{1}, Q_{1}, R_{1}, S_{1}$, respectively, and the intersection points of the pairs of straight lines $A I, B K$; $B K, C E ; C E, D G ; D G, A I$ are denoted by $P_{2}, Q_{2}, R_{2}, S_{2}$, respectively. Prove that $P_{1} Q_{1} R_{1} S_{1} \cong P_{2} Q_{2} R_{2} S_{2}$.
4. $(\mathbf{C H N} 3)^{\mathrm{IMO}}$ Given nine points in space, no four of which are coplanar, find the minimal natural number $n$ such that for any coloring with red or blue of $n$ edges drawn between these nine points there always exists a triangle having all edges of the same color.
5. (COL 3) Let $A B C D$ be a convex quadrilateral such that $A C=$ $B D$. Equilateral triangles are constructed on the sides of the quadrilateral. Let $O_{1}, O_{2}, O_{3}, O_{4}$ be the centers of the triangles constructed on $A B, B C, C D, D A$ respectively. Show that $O_{1} O_{3}$ is perpendicular to $O_{2} O_{4}$.
6. (IND 2) ${ }^{\mathrm{IMO} 2}$ Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that
$$
f\left(x^{2}+f(y)\right)=y+f(x)^{2} \quad \text { for all } x, y \text { in } \mathbb{R}
$$
7. (IND 4) Circles $G, G_{1}, G_{2}$ are three circles related to each other as follows: Circles $G_{1}$ and $G_{2}$ are externally tangent to one another at a point $W$ and both these circles are internally tangent to the circle $G$. Points $A, B, C$ are located on the circle $G$ as follows: Line $B C$ is a direct common tangent to the pair of circles $G_{1}$ and $G_{2}$, and line $W A$ is the transverse common tangent at $W$ to $G_{1}$ and $G_{2}$, with $W$ and $A$ lying on the same side of the line $B C$. Prove that $W$ is the incenter of the triangle $A B C$.
8. (IND 5) Show that in the plane there exists a convex polygon of 1992 sides satisfying the following conditions:
(i) its side lengths are $1,2,3, \ldots, 1992$ in some order;
(ii) the polygon is circumscribable about a circle.
Alternative formulation. Does there exist a 1992-gon with side lengths $1,2,3, \ldots, 1992$ circumscribed about a circle? Answer the same question for a 1990-gon.
9. (IRN 1) Let $f(x)$ be a polynomial with rational coefficients and $\alpha$ be a real number such that $\alpha^{3}-\alpha=f(\alpha)^{3}-f(\alpha)=33^{1992}$. Prove that for each $n \geq 1$,
$$
\left(f^{(n)}(\alpha)\right)^{3}-f^{(n)}(\alpha)=33^{1992}
$$
where $f^{(n)}(x)=f(f(\ldots f(x)))$, and $n$ is a positive integer.
10. (ITA 1) ${ }^{\mathrm{IMO5}}$ Let $V$ be a finite subset of Euclidean space consisting of points $(x, y, z)$ with integer coordinates. Let $S_{1}, S_{2}, S_{3}$ be the projections of $V$ onto the $y z, x z, x y$ planes, respectively. Prove that
$$
|V|^{2} \leq\left|S_{1}\right|\left|S_{2}\right|\left|S_{3}\right|
$$
( $|X|$ denotes the number of elements of $X$ ).
11. (JAP 2) In a triangle $A B C$, let $D$ and $E$ be the intersections of the bisectors of $\angle A B C$ and $\angle A C B$ with the sides $A C, A B$, respectively. Determine the angles $\angle A, \angle B, \angle C$ if
$$
\measuredangle B D E=24^{\circ}, \quad \measuredangle C E D=18^{\circ} .
$$
12. (NET 1) Let $f, g$, and $a$ be polynomials with real coefficients, $f$ and $g$ in one variable and $a$ in two variables. Suppose
$$
f(x)-f(y)=a(x, y)(g(x)-g(y)) \quad \text { for all } x, y \in \mathbb{R}
$$
Prove that there exists a polynomial $h$ with $f(x)=h(g(x))$ for all $x \in \mathbb{R}$.
13. (NZL 1) ${ }^{\mathrm{IMO1}}$ Find all integer triples $(p, q, r)$ such that $1
Taejon, South Korea, July 13-25, 2000
### 3.41.1 Contest Problems
First day (July 18)
1. Two circles $G_{1}$ and $G_{2}$ intersect at $M$ and $N$. Let $A B$ be the line tangent to these circles at $A$ and $B$, respectively, such that $M$ lies closer to $A B$ than $N$. Let $C D$ be the line parallel to $A B$ and passing through $M$, with $C$ on $G_{1}$ and $D$ on $G_{2}$. Lines $A C$ and $B D$ meet at $E$; lines $A N$ and $C D$ meet at $P$; lines $B N$ and $C D$ meet at $Q$. Show that $E P=E Q$.
2. Let $a, b, c$ be positive real numbers with product 1 . Prove that
$$
\left(a-1+\frac{1}{b}\right)\left(b-1+\frac{1}{c}\right)\left(c-1+\frac{1}{a}\right) \leq 1 .
$$
3. Let $n \geq 2$ be a positive integer and $\lambda$ a positive real number. Initially there are $n$ fleas on a horizontal line, not all at the same point. We define a move of choosing two fleas at some points $A$ and $B$, with $A$ to the left of $B$, and letting the flea from $A$ jump over the flea from $B$ to the point $C$ such that $B C / A B=\lambda$.
Determine all values of $\lambda$ such that for any point $M$ on the line and for any initial position of the $n$ fleas, there exists a sequence of moves that will take them all to the position right of $M$.
Second Day (July 19)
4. A magician has one hundred cards numbered 1 to 100 . He puts them into three boxes, a red one, a white one, and a blue one, so that each box contains at least one card. A member of the audience draws two cards from two different boxes and announces the sum of numbers on those cards. Given this information, the magician locates the box from which no card has been drawn. How many ways are there to put the cards in the three boxes so that the trick works?
5. Does there exist a positive integer $n$ such that $n$ has exactly 2000 prime divisors and $2^{n}+1$ is divisible by $n$ ?
6. $A_{1} A_{2} A_{3}$ is an acute-angled triangle. The foot of the altitude from $A_{i}$ is $K_{i}$, and the incircle touches the side opposite $A_{i}$ at $L_{i}$. The line $K_{1} K_{2}$ is reflected in the line $L_{1} L_{2}$. Similarly, the line $K_{2} K_{3}$ is reflected in $L_{2} L_{3}$ and $K_{3} K_{1}$ is reflected in $L_{3} L_{1}$. Show that the three new lines form a triangle with vertices on the incircle.
### 3.41.2 Shortlisted Problems
1. $\mathbf{C 1}$ (HUN) ${ }^{\mathrm{IMO}}$ A magician has one hundred cards numbered 1 to 100. He puts them into three boxes, a red one, a white one, and a blue one, so that each box contains at least one card. A member of the audience draws two cards from two different boxes and announces the sum of numbers on those cards. Given this information, the magician locates the box from which no card has been drawn. How many ways are there to put the cards in the three boxes so that the trick works?
2. C2 (ITA) A brick staircase with three steps of width 2 is made of twelve unit cubes. Determine all integers $n$ for which it is possible to build a cube of side $n$ using such bricks.

3. C3 (COL) Let $n \geq 4$ be a fixed positive integer. Given a set $S=$ $\left\{P_{1}, P_{2}, \ldots, P_{n}\right\}$ of points in the plane such that no three are collinear and no four concyclic, let $a_{t}, 1 \leq t \leq n$, be the number of circles $P_{i} P_{j} P_{k}$ that contain $P_{t}$ in their interior, and let
$$
m(S)=a_{1}+a_{2}+\cdots+a_{n}
$$
Prove that there exists a positive integer $f(n)$, depending only on $n$, such that the points of $S$ are the vertices of a convex polygon if and only if $m(S)=f(n)$.
4. C4 (CZE) Let $n$ and $k$ be positive integers such that $n / 20$ be a rational number. For any integer $m>10^{6}$, let $n>m$ be the greatest integer such that $y=$ $x-\frac{1}{m}-\frac{1}{m+1}-\cdots-\frac{1}{n}>0$. Then $y$ can be written as the sum of reciprocals of different positive integers, which all must be greater than $n$. The result follows immediately.
19. Suppose $n \leq 6$. Let us decompose the disk by its radii into $n$ congruent regions, so that one of the points $P_{j}$ lies on the boundaries of two of these regions. Then one of these regions contains two of the $n$ given points. Since the diameter of each of these regions is $2 \sin \frac{\pi}{n}$, we have $d_{n} \leq 2 \sin \frac{\pi}{n}$. This
value is attained if $P_{i}$ are the vertices of a regular $n$-gon inscribed in the boundary circle. Hence $D_{n}=2 \sin \frac{\pi}{n}$.
For $n=7$ we have $D_{7} \leq D_{6}=1$. This value is attained if six of the seven points form a regular hexagon inscribed in the boundary circle and the seventh is at the center. Hence $D_{7}=1$.
20. The statement so formulated is false. It would be true under the additional assumption that the polygonal line is closed. However, from the offered solution, which is not clear, it does not seem that the proposer had this in mind.
21. Using the formula
$$
\cos x \cos 2 x \cos 4 x \cdots \cos 2^{n-1} x=\frac{\sin 2^{n} x}{2^{n} \sin x}
$$
which is shown by simple induction, we obtain
$$
\begin{gathered}
\cos \frac{\pi}{15} \cos \frac{2 \pi}{15} \cos \frac{4 \pi}{15} \cos \frac{7 \pi}{15}=-\cos \frac{\pi}{15} \cos \frac{2 \pi}{15} \cos \frac{4 \pi}{15} \cos \frac{8 \pi}{15}=\frac{1}{16} \\
\cos \frac{3 \pi}{15} \cos \frac{6 \pi}{15}
\end{gathered}=\frac{1}{4}, \quad \cos \frac{5 \pi}{15}=\frac{1}{2} .
$$
Multiplying these equalities, we get that the required product $P$ equals 1/128.
22. Let $O_{1}$ and $O_{2}$ be the centers of circles $k_{1}$ and $k_{2}$ and let $C$ be the midpoint of the segment $A B$. Using the well-known relation for elements of a triangle, we obtain
$$
P A^{2}+P B^{2}=2 P C^{2}+2 C A^{2} \geq 2 O_{1} C^{2}+2 C A^{2}=2 O_{1} A^{2}=2 r^{2}
$$
Equality holds if $P$ coincides with $O_{1}$ or if $A$ and $B$ coincide with $O_{2}$.
23. Suppose that $a \geq 0, c \geq 0,4 a c \geq b^{2}$. If $a=0$, then $b=0$, and the inequality reduces to the obvious $c g^{2} \geq 0$. Also, if $a>0$, then
$$
a f^{2}+b f g+c g^{2}=a\left(f+\frac{b}{2 a} g\right)^{2}+\frac{4 a c-b^{2}}{4 a} g^{2} \geq 0
$$
Suppose now that $a f^{2}+b f g+c g^{2} \geq 0$ holds for an arbitrary pair of vectors $f, g$. Substituting $f$ by $t g(t \in \mathbb{R})$ we get that $\left(a t^{2}+b t+c\right) g^{2} \geq 0$ holds for any real number $t$. Therefore $a \geq 0, c \geq 0,4 a c \geq b^{2}$.
24. Let the $k$ th child receive $x_{k}$ coins. By the condition of the problem, the number of coins that remain after him was $6\left(x_{k}-k\right)$. This gives us a recurrence relation
$$
x_{k+1}=k+1+\frac{6\left(x_{k}-k\right)-k-1}{7}=\frac{6}{7} x_{k}+\frac{6}{7},
$$
which, together with the condition $x_{1}=1+(m-1) / 7$, yields
$$
x_{k}=\frac{6^{k-1}}{7^{k}}(m-36)+6 \text { for } 1 \leq k \leq n .
$$
Since we are given $x_{n}=n$, we obtain $6^{n-1}(m-36)=7^{n}(n-6)$. It follows that $6^{n-1} \mid n-6$, which is possible only for $n=6$. Hence, $n=6$ and $m=36$.
25. The answer is $R=(4+\sqrt{3}) d / 6$.
26. Let $L$ be the midpoint of the edge $A B$. Since $P$ is the orthocenter of $\triangle A B M$ and $M L$ is its altitude, $P$ lies on $M L$ and therefore belongs to the triangular area $L C D$. Moreover, from the similarity of triangles $A L P$ and $M L B$ we have $L P \cdot L M=L A \cdot L B=a^{2} / 4$, where $a$ is the side length of tetrahedron $A B C D$. It easily follows that the locus of $P$ is the image of the segment $C D$ under the inversion of the plane $L C D$ with center $L$ and radius $a / 2$. This locus is the arc of a circle with center $L$ and endpoints at the orthocenters of triangles $A B C$ and $A B D$.
27. Regular polygons with 3,4 , and 6 sides can be obtained by cutting a cube with a plane, as shown in the figure. A polygon with more than 6 sides cannot be obtained in such a way, for a cube has 6 faces. Also, if a pentagon is obtained by cutting a

cube with a plane, then its sides lying on opposite faces are parallel; hence it cannot be regular.
28. The given expression can be transformed into
$$
y=\frac{4 \cos 2 u+2}{\cos 2 u-\cos 2 x}-3 .
$$
It does not depend on $x$ if and only if $\cos 2 u=-1 / 2$, i.e., $u= \pm \pi / 3+k \pi$ for some $k \in \mathbb{Z}$.
29. Let arc $l_{a}$ be the locus of points $A$ lying on the opposite side from $A_{0}$ with respect to the line $B_{0} C_{0}$ such that $\angle B_{0} A C_{0}=\angle A^{\prime}$. Let $k_{a}$ be the circle containing $l_{a}$, and let $S_{a}$ be the center of $k_{a}$. We similarly define $l_{b}, l_{c}, k_{b}, k_{c}, S_{b}, S_{c}$. It is easy to show that circles $k_{a}, k_{b}, k_{c}$ have a common point $S$ inside $\triangle A B C$. Let $A_{1}, B_{1}, C_{1}$ be the points on the arcs $l_{a}, l_{b}, l_{c}$ diametrically opposite to $S$ with respect to $S_{a}, S_{b}, S_{c}$ respectively. Then $A_{0} \in B_{1} C_{1}$ because $\angle B_{1} A_{0} S=\angle C_{1} A_{0} S=90^{\circ}$; similarly, $B_{0} \in A_{1} C_{1}$ and $C_{0} \in A_{1} B_{1}$. Hence the triangle $A_{1} B_{1} C_{1}$ is circumscribed about $\triangle A_{0} B_{0} C_{0}$ and similar to $\triangle A^{\prime} B^{\prime} C^{\prime}$.
Moreover, we claim that $\triangle A_{1} B_{1} C_{1}$ is the triangle $A B C$ with the desired properties having the maximum side $B C$ and hence the maximum area.
Indeed, if $A B C$ is any other such triangle and $S_{b}^{\prime}, S_{c}^{\prime}$ are the projections of $S_{b}$ and $S_{c}$ onto the line $B C$, it holds that $B C=2 S_{b}^{\prime} S_{c}^{\prime} \leq 2 S_{b} S_{c}=B_{1} C_{1}$, which proves the maximality of $B_{1} C_{1}$.
30. We assume w.l.o.g. that $m \leq n$. Let $r$ and $s$ be the numbers of pairs for which $i-j \geq k$ and of those for which $j-i \geq k$. The desired number is $r+s$. We easily find that
$$
\begin{aligned}
& r= \begin{cases}(m-k)(m-k+1) / 2, & k
1$. We then have $z=n^{4}+4 m^{4}=$ $\left(n^{2}+2 m^{2}\right)^{2}-(2 m n)^{2}=\left(n^{2}+2 m^{2}+2 m n\right)\left(n^{2}+2 m^{2}-2 m n\right)$. Since $n^{2}+2 m^{2}-2 m n=(n-m)^{2}+m^{2} \geq m^{2}>1$, it follows that $z$ must be composite. Thus we have found infinitely many $a$ that satisfy the condition of the problem.
2. Using $\cos (a+x)=\cos a \cos x-\sin a \sin x$, we obtain $f(x)=A \sin x+$ $B \cos x$ where $A=-\sin a_{1}-\sin a_{2} / 2-\cdots-\sin a_{n} / 2^{n-1}$ and $B=\cos a_{1}+$ $\cos a_{2} / 2+\cdots+\cos a_{n} / 2^{n-1}$. Numbers $A$ and $B$ cannot both be equal to 0 , for otherwise $f$ would be identically equal to 0 , while on the other hand, we have $f\left(-a_{1}\right)=\cos \left(a_{1}-a_{1}\right)+\cos \left(a_{2}-a_{1}\right) / 2+\cdots+\cos \left(a_{n}-a_{1}\right) / 2^{n-1} \geq$ $1-1 / 2-\cdots-1 / 2^{n-1}=1 / 2^{n-1}>0$. Setting $A=C \cos \phi$ and $B=C \sin \phi$, where $C \neq 0$ (such $C$ and $\phi$ always exist), we get $f(x)=C \sin (x+\phi)$. It follows that the zeros of $f$ are of the form $x_{0} \in-\phi+\pi \mathbb{Z}$, from which $f\left(x_{1}\right)=f\left(x_{2}\right) \Rightarrow x_{1}-x_{2}=m \pi$ immediately follows.
3. We have several cases:
$1^{\circ} k=1$. W.l.o.g. let $A B=a$ and the remaining segments have length 1. Let $M$ be the midpoint of $C D$. Then $A M=B M=\sqrt{3} / 2(\triangle C D A$ and $\triangle C D B$ are equilateral) and $01$. Assume $A B=A C=A D=a$. Varying $A$ along the line perpendicular to the plane $B C D$ and through the center of $\triangle B C D$ we achieve all values of $a>1 / \sqrt{3}$. For $a<1 / \sqrt{3}$ we can observe a similar tetrahedron with three edges of length $1 / a$ and three of length 1 and proceed as before.
$4^{\circ} k=4$. By observing the similar tetrahedron we reduce this case to $k=2$ with length $1 / a$ instead of $a$. Thus we get $a>\sqrt{2-\sqrt{3}}$.
$5^{\circ} k=5$. We reduce to $k=1$ and get $a>1 / \sqrt{3}$.
4. Let $O$ be the midpoint of $A B$, i.e., the center of $\gamma$. Let $O_{1}, O_{2}$, and $O_{3}$ respectively be the centers of $\gamma_{1}, \gamma_{2}$, and $\gamma_{3}$ and let $r_{1}, r_{2}, r_{3}$ respectively
be the radii of $\gamma_{1}, \gamma_{2}$ and $\gamma_{3}$. Let $C_{1}, C_{2}$, and $C_{3}$ respectively be the points of tangency of $\gamma_{1}, \gamma_{2}$ and $\gamma_{3}$ with $A B$. Let $D_{2}$ and $D_{3}$ respectively be the points of tangency of $\gamma_{2}$ and $\gamma_{3}$ with $C D$. Finally, let $G_{2}$ and $G_{3}$ respectively be the points of tangency of $\gamma_{2}$ and $\gamma_{3}$ with $\gamma$. We have $\mathcal{B}\left(G_{2}, O_{2}, O\right)$, $G_{2} O_{2}=O_{2} D_{2}$, and $G_{2} O=O B$. Hence, $G_{2}, D_{2}, B$ are collinear. Similarly, $G_{3}, D_{3}, A$ are collinear. It follows that $A G_{2} D_{2} D$ and $B G_{3} D_{3} D$ are cyclic, since $\angle A G_{2} D_{2}=\angle D_{2} D A=\angle D_{3} D B=\angle B G_{3} D_{3}=90^{\circ}$. Hence $B C_{2}^{2}=B D_{2} \cdot B G_{2}=B D \cdot B A=B C^{2} \Rightarrow B C_{2}=B C$ and hence $A C_{2}=A B-B C$. Similarly, $A C_{3}=A C$. We thus have $A C_{1}=(A C+A B-B C) / 2=\left(A C_{3}+A C_{2}\right) / 2$. Hence, $C_{1}$ is the midpoint of $C_{2} C_{3}$. We also have $r_{2}+r_{3}=C_{2} C_{3}=A C+B C-A B=2 r_{1}$, from which it follows that $O_{1}, O_{2}, O_{3}$ are collinear.
Second solution. We shall prove the statement for arbitrary points $A, B, C$ on $\gamma$.
Let us apply the inversion $\psi$ with respect to the circle $\gamma_{1}$. We denote by $\widehat{X}$ the image of an object $X$ under $\psi$. Also, $\psi$ maps lines $B C, C A, A B$ onto circles $\widehat{a}, \widehat{b}, \widehat{c}$, respectively. Circles $\widehat{a}, \widehat{b}, \widehat{c}$ pass through the center $O_{1}$ of $\gamma_{1}$ and have radii equal to the radius of $\widehat{\gamma}$. Let $P, Q, R$ be the centers of $\widehat{a}, \widehat{b}, \widehat{c}$ respectively.
The line $C D$ maps onto a circle $k$ through $\widehat{C}$ and $O_{1}$ that is perpendicular to $\widehat{c}$. Therefore its center $K$ lies in the intersection of the tangent $t$ to $\widehat{c}$ and the line $P Q$ (which bisects $\left.\widehat{C} O_{1}\right)$. Let $O$ be a point such that $R O_{1} K O$ is a parallelogram and $\gamma_{2}^{\prime}, \gamma_{3}^{\prime}$ the circles centered at $O$ tangent to $k$. It is easy to see that $\gamma_{2}^{\prime}$ and $\gamma_{3}^{\prime}$ are also tangent to $\widehat{c}$, since $O R$ and $O K$ have lengths equal to the radii of $k$ and $\widehat{c}$. Hence $\gamma_{2}^{\prime}$ and $\gamma_{3}^{\prime}$ are the images of $\gamma_{2}$ and $\gamma_{3}$ under $\psi$. Moreover, since $Q \widehat{A} O K$ and $P \widehat{B} O K$ are parallelograms and $Q, P, K$ are collinear, it follows that $\widehat{A}, \widehat{B}, O$ are also collinear. Hence the centers of $\gamma_{1}, \gamma_{2}, \gamma_{3}$ are collinear, lying on the line $O_{1} O$, and the statement follows.
Third solution. Moreover, the statement holds for an arbitrary point $D \in B C$. Let $E, F, G, H$ be the points of tangency of $\gamma_{2}$ with $A B, C D$ and of $\gamma_{3}$ with $A B, C D$, respectively. Let $O_{i}$ be the center of $\gamma_{i}, i=1,2,3$. As is shown in the third solution of (SL93-3), $E F$ and $G H$ meet at $O_{1}$. Hence the problem of proving the collinearity of $O_{1}, O_{2}, O_{3}$ reduces to the following simple problem:
Let $D, E, F, G, H$ be points such that $D \in E G, F \in D H$ and $D E=D F, D G=D H$. Let $O_{1}, O_{2}, O_{3}$ be points such that $\angle O_{2} E D=$ $\angle O_{2} F D=90^{\circ}, \angle O_{3} G D=\angle O_{3} H D=90^{\circ}$, and $O_{1}=E F \cap G H$. Then $O_{1}, O_{2}, O_{3}$ are collinear.
Let $K_{2}=D O_{2} \cap E F$ and $K_{3}=D O_{3} \cap G H$. Then $O_{2} K_{2} / O_{2} D=$ $D K_{3} / D O_{3}=K_{2} O_{1} / D O_{3}$ and hence by Thales' theorem $O_{1} \in O_{2} O_{3}$.
5. We first prove the following lemma.
Lemma. If of five points in a plane no three belong to a single line, then there exist four that are the vertices of a convex quadrilateral.
Proof. If the convex hull of the five points $A, B, C, D, E$ is a pentagon or a quadrilateral, the statement automatically holds. If the convex hull is a triangle, then w.l.o.g. let $\triangle A B C$ be that triangle and $D, E$ points in its interior. Let the line $D E$ w.l.o.g. intersect $[A B]$ and $[A C]$. Then $B, C, D, E$ form the desired quadrilateral.
We now observe each quintuplet of points within the set. There are $\binom{n}{5}$ such quintuplets, and for each of them there is at least one quadruplet of points forming a convex quadrilateral. Each quadruplet, however, will be counted up to $n-4$ times. Hence we have found at least $\frac{1}{n-4}\binom{n}{5}$ quadruplets. Since $\frac{1}{n-4}\binom{n}{5} \geq\binom{ n-3}{2} \Leftrightarrow(n-5)(n-6)(n+8) \geq 0$, which always holds, it follows that we have found at least $\binom{n-3}{2}$ desired quadruplets of points.
6. Define $u_{1}=\sqrt{x_{1} y_{1}}+z_{1}, u_{2}=\sqrt{x_{2} y_{2}}+z_{2}, v_{1}=\sqrt{x_{1} y_{1}}-z_{1}$, and $v_{2}=$ $\sqrt{x_{2} y_{2}}-z_{2}$. By expanding both sides of the equation we can easily verify $\left(x_{1}+x_{2}\right)\left(y_{1}+y_{2}\right)-\left(z_{1}+z_{2}\right)^{2}=\left(u_{1}+u_{2}\right)\left(v_{1}+v_{2}\right)+\left(\sqrt{x_{1} y_{2}}-\sqrt{x_{2} y_{1}}\right)^{2} \geq$ $\left(u_{1}+u_{2}\right)\left(v_{1}+v_{2}\right)$. Since $x_{i} y_{i}-z_{i}^{2}=u_{i} v_{i}$ for $i=1,2$, it suffices to prove
$$
\begin{aligned}
& \frac{8}{\left(u_{1}+u_{2}\right)\left(v_{1}+v_{2}\right)} \leq \frac{1}{u_{1} v_{1}}+\frac{1}{u_{2} v_{2}} \\
\Leftrightarrow & 8 u_{1} u_{2} v_{1} v_{2} \leq\left(u_{1}+u_{2}\right)\left(v_{1}+v_{2}\right)\left(u_{1} v_{1}+u_{2} v_{2}\right)
\end{aligned}
$$
which trivially follows from the AM-GM inequalities $2 \sqrt{u_{1} u_{2}} \leq u_{1}+u_{2}$, $2 \sqrt{v_{1} v_{2}} \leq v_{1}+v_{2}$ and $2 \sqrt{u_{1} v_{1} u_{2} v_{2}} \leq u_{1} v_{1}+u_{2} v_{2}$.
Equality holds if and only if $x_{1} y_{2}=x_{2} y_{1}, u_{1}=u_{2}$ and $v_{1}=v_{2}$, i.e. if and only if $x_{1}=x_{2}, y_{1}=y_{2}$ and $z_{1}=z_{2}$.
Second solution. Let us define $f(x, y, z)=1 /\left(x y-z^{2}\right)$. The problem actually states that
$$
2 f\left(\frac{x_{1}+x_{2}}{2}, \frac{y_{1}+y_{2}}{2}, \frac{z_{1}+z_{2}}{2}\right) \leq f\left(x_{1}, y_{1}, z_{1}\right)+f\left(x_{2}, y_{2}, z_{2}\right)
$$
i.e., that the function $f$ is convex on the set $D=\left\{(x, y, z) \in \mathbb{R}^{2} \mid x y-\right.$ $\left.z^{2}>0\right\}$. It is known that a twice continuously differentiable function $f\left(t_{1}, t_{2}, \ldots, t_{n}\right)$ is convex if and only if its Hessian $\left[f_{i j}^{\prime \prime}\right]_{i, j=1}^{n}$ is positive semidefinite, or equivalently, if its principal minors $D_{k}=\operatorname{det}\left[f_{i j}^{\prime \prime}\right]_{i, j=1}^{k}, k=$ $1,2, \ldots, n$, are nonnegative. In the case of our $f$ this is directly verified: $D_{1}=2 y^{2} /\left(x y-z^{2}\right)^{3}, D_{2}=3 x y+z^{2} /\left(x y-z^{2}\right)^{5}, D_{3}=6 /\left(x y-z^{2}\right)^{6}$ are obviously positive.
### 4.12 Solutions to the Shortlisted Problems of IMO 1970
1. Denote respectively by $R$ and $r$ the radii of the circumcircle and incircle, by $A_{1}, \ldots, A_{n}, B_{1}, \ldots, B_{n}$, the vertices of the $2 n$-gon and by $O$ its center. Let $P^{\prime}$ be the point symmetric to $P$ with respect to $O$. Then $A_{i} P^{\prime} B_{i} P$ is a parallelogram, and applying cosine theorem on triangles $A_{i} B_{i} P$ and $P P^{\prime} B_{i}$ yields
$$
\begin{aligned}
4 R^{2} & =P A_{i}^{2}+P B_{i}^{2}-2 P A_{i} \cdot P B_{i} \cos a_{i} \\
4 r^{2} & =P B_{i}^{2}+P^{\prime} B_{i}^{2}-2 P B_{i} \cdot P^{\prime} B_{i} \cos \angle P B_{i} P^{\prime}
\end{aligned}
$$
Since $A_{i} P^{\prime} B_{i} P$ is a parallelogram, we have that $P^{\prime} B_{i}=P A_{i}$ and $\angle P B_{i} P^{\prime}=\pi-a_{i}$. Subtracting the expression for $4 r^{2}$ from the one for $4 R^{2}$ yields $4\left(R^{2}-r^{2}\right)=-4 P A_{i} \cdot P B_{i} \cos a_{i}=-8 S_{\triangle A_{i} B_{i} P} \cot a_{i}$, hence we conclude that
$$
\tan ^{2} a_{i}=\frac{4 S_{\triangle A_{i} B_{i} P}^{2}}{\left(R^{2}-r^{2}\right)^{2}}
$$
Denote by $M_{i}$ the foot of the perpendicular from $P$ to $A_{i} B_{i}$ and let $m_{i}=$ $P M_{i}$. Then $S_{\triangle A_{i} B_{i} P}=R m_{i}$. Substituting this into (1) and adding up these relations for $i=1,2, \ldots, n$, we obtain
$$
\sum_{i=1}^{n} \tan ^{2} a_{i}=\frac{4 R^{2}}{\left(R^{2}-r^{2}\right)^{2}}\left(\sum_{i=1}^{n} m_{i}^{2}\right)
$$
Note that all the points $M_{i}$ lie on a circle with diameter $O P$ and form a regular $n$-gon. Denote its center by $F$. We have that $m_{i}^{2}=\left\|\overrightarrow{P M_{i}}\right\|^{2}=$ $\left\|\overrightarrow{F M_{i}}-\overrightarrow{F P}\right\|^{2}=\left\|\overrightarrow{F M}_{i}^{2}\right\|+\left\|\overrightarrow{F P}^{2}\right\|-2\left\langle\overrightarrow{F M_{i}}, \overrightarrow{F P}\right\rangle=r^{2} / 2-2\left\langle\overrightarrow{F M_{i}}, \overrightarrow{F P}\right\rangle$. From this it follows that $\sum_{i=1}^{n} m_{i}^{2}=2 n(r / 2)^{2}-2 \sum_{i=1}^{n}\left\langle\overrightarrow{F M_{i}}, \overrightarrow{F P}\right\rangle=$ $2 n(r / 2)^{2}-2\left\langle\sum_{i=1}^{n} \overrightarrow{F M_{i}}, \overrightarrow{F P}\right\rangle=2 n(r / 2)^{2}$, because $\sum_{i=1}^{n} \overrightarrow{F M_{i}}=\overrightarrow{0}$. Thus
$$
\sum_{i=1}^{n} \tan ^{2} a_{i}=\frac{4 R^{2}}{\left(R^{2}-r^{2}\right)^{2}} 2 n\left(\frac{r}{2}\right)^{2}=2 n \frac{(r / R)^{2}}{\left(1-(r / R)^{2}\right)^{2}}=2 n \frac{\cos ^{2} \frac{\pi}{2 n}}{\sin ^{4} \frac{\pi}{2 n}}
$$
Remark. For $n=1$ there is no regular 2-gon. However, if we think of a 2-gon as a line segment, the statement will remain true.
2. Suppose that $a>b$. Consider the polynomial $P(X)=x_{1} X^{n-1}+x_{2} X^{n-2}+$ $\cdots+x_{n-1} X+x_{n}$. We have $A_{n}=P(a), B_{n}=P(b), A_{n+1}=x_{0} a^{n}+$ $P(a)$, and $B_{n+1}=x_{0} b^{n}+P(b)$. Now $A_{n} / A_{n+1}
2 a_{n}$ for all $n$. For $n=1$ the claim is trivial. If it holds for $i \leq n$, then $a_{i} \leq 2^{i-n} a_{n}$; thus we obtain from (1)
$$
a_{n+1}>a_{n}\left(3-\frac{1}{2}-\frac{1}{2^{2}}-\cdots-\frac{1}{2^{n}}\right)>2 a_{n}
$$
Therefore $a_{n} \geq 2^{n}$ for all $n$ (moreover, one can show from (1) that $a_{n} \geq$ $(n+2) 2^{n-1}$ ); hence there exist good words of length $n$.
Remark. If there are two nonallowed words (instead of one) of each length greater than 1, the statement of the problem need not remain true.
### 4.17 Solutions to the Shortlisted Problems of IMO 1975
1. First, we observe that there cannot exist three routes of the form $(A, B, C)$, $(A, B, D),(A, C, D)$, for if $E, F$ are the remaining two ports, there can be only one route covering $A, E$, namely, $(A, E, F)$. Thus if $(A, B, C)$, $(A, B, D)$ are two routes, the one covering $A, C$ must be w.l.o.g. $(A, C, E)$. The other roots are uniquely determined: These are $(A, D, F),(A, E, F)$, $(B, D, E),(B, E, F),(B, C, F),(C, D, E),(C, D, F)$.
2. Since there are finitely many arrangements of the $z_{i}$ 's, assume that $z_{1}, \ldots, z_{n}$ is the one for which $\sum_{i=1}^{n}\left(x_{i}-z_{i}\right)^{2}$ is minimal. We claim that in this case $is$ and $s_{q}Y Z$, and $X^{\prime} Y^{\prime} \cdot Y^{\prime} Z^{\prime}=X Y \cdot Y Z$. Suppose that $2 X^{\prime} Y^{\prime}>X Y$ (otherwise, we may cut off congruent rectangles from both the original ones until we reduce them to the case of $2 X^{\prime} Y^{\prime}>X Y$ ). Let $U \in X Y$ and $V \in Z T$ be points such that $Y U=T V=X^{\prime} Y^{\prime}$ and $W \in X V$ be a point such that $U W \| X T$. Then translating $\triangle X U W$ to a triangle $V Z R$ and $\triangle X V T$ to a triangle $W R S$ results in a rectangle $U Y R S$ congruent to $X^{\prime} Y^{\prime} Z^{\prime} T^{\prime}$.
Thus we have partitioned $K$ and $K^{\prime}$ into translation-invariant parts. Although not all the parts are triangles, we may simply triangulate them.
16. Let the three circles be $\alpha(A, a), \beta(B, b)$, and $\gamma(C, c)$, and assume $c \leq a, b$. We denote by $\mathcal{R}_{X, \varphi}$ the rotation around $X$ through an angle $\varphi$. Let $P Q R$ be an equilateral triangle, say of positive orientation (the case of negatively oriented $\triangle P Q R$ is analogous), with $P \in \alpha, Q \in \beta$, and $R \in \gamma$. Then $Q=\mathcal{R}_{P,-60^{\circ}}(R) \in \mathcal{R}_{P,-60^{\circ}}(\gamma) \cap \beta$.
Since the center of $\mathcal{R}_{P,-60^{\circ}}(\gamma)$ is $\mathcal{R}_{P,-60^{\circ}}(C)=\mathcal{R}_{C, 60^{\circ}}(P)$ and it lies on $\mathcal{R}_{C, 60^{\circ}}(\alpha)$, the union of circles $\mathcal{R}_{P,-60^{\circ}}(\gamma)$ as $P$ varies on $\alpha$ is the annulus $\mathcal{U}$ with center $A^{\prime}=\mathcal{R}_{C, 60^{\circ}}(A)$ and radii $a-c$ and $a+c$. Hence there is a solution if and only if $\mathcal{U} \cap \beta$ is nonempty.
17. The statement of the problem is equivalent to the statement that there is one and only one $a$ such that $1-1 / n2 k$.
19. The facts given in the problem allow us to draw a triangular pyramid with angles $2 \alpha, 2 \beta, 2 \gamma$ at the top and lateral edges of length $1 / 2$. At the base there is a triangle whose side lengths are exactly $\sin \alpha, \sin \beta, \sin \gamma$. The area of this triangle does not exceed the sum of areas of the lateral sides, which equals $(\sin 2 \alpha+\sin 2 \beta+\sin 2 \gamma) / 8$.
20. Let $y$ be the smallest nonnegative integer with $y \leq p-2$ for which $f(y)$ is a composite number. Denote by $q$ the smallest prime divisor of $f(y)$. We claim that $y
2 y$. Suppose the contrary, that $q \leq 2 y$. Since
$$
f(y)-f(x)=(y-x)(y+x+1)
$$
we observe that $f(y)-f(q-1-y)=(2 y-q+1) q$, from which it follows that $f(q-1-y)$ is divisible by $q$. But by the assumptions, $q-1-y
1$ ), then we are done, because from $r+s, r s \equiv 0(\bmod k)$ we get $r^{m}+s^{m} \equiv 0$ $(\bmod k)$, and $00>f(1)$, i.e.,
$$
k q>0>k(q-p)+1 \quad \Rightarrow \quad p>q>0
$$
The irrationality of $r$ can be obtained by taking $q=p-1$, because the discriminant $D=(k p)^{2}-4 k p+4 k$, for $(k p-2)^{2}m>$ 0 , as large as we like, such that $10^{k} \equiv 10^{m}(\bmod T)$, using for example Euler's theorem. It is obvious that $a_{10^{k}-1}=a_{10^{k}}$ and hence, taking $k$ sufficiently large and using the periodicity, we see that
$$
a_{2 \cdot 10^{k}-10^{m}-1}=a_{10^{k}-1}=a_{10^{k}}=a_{2 \cdot 10^{k}-10^{m}}
$$
Since $\left(2 \cdot 10^{k}-10^{m}\right)!=\left(2 \cdot 10^{k}-10^{m}\right)\left(2 \cdot 10^{k}-10^{m}-1\right)!$ and the last nonzero digit of $2 \cdot 10^{k}-10^{m}$ is nine, we must have $a_{2 \cdot 10^{k}-10^{m}-1}=5$ (if $s$ is a digit, the last digit of $9 s$ is $s$ only if $s=5$ ). But this means that 5 divides $n$ ! with a greater power than 2 does, which is impossible. Indeed, if the exponents of these powers are $\alpha_{2}, \alpha_{5}$ respectively, then $\alpha_{5}=$ $[n / 5]+\left[n / 5^{2}\right]+\cdots \leq \alpha_{2}=[n / 2]+\left[n / 2^{2}\right]+\cdots$.
16. Let $p$ be the least prime number that does not divide $n$ : thus $a_{1}=1$ and $a_{2}=p$. Since $a_{2}-a_{1}=a_{3}-a_{2}=\cdots=r$, the $a_{i}$ 's are $1, p, 2 p-1,3 p-2, \ldots$ We have the following cases:
$p=2$. Then $r=1$ and the numbers $1,2,3, \ldots, n-1$ are relatively prime to $n$, hence $n$ is a prime.
$p=3$. Then $r=2$, so every odd number less than $n$ is relatively prime to $n$, from which we deduce that $n$ has no odd divisors. Therefore $n=2^{k}$ for some $k \in \mathbb{N}$.
$p>3$. Then $r=p-1$ and $a_{k+1}=a_{1}+k(p-1)=1+k(p-1)$. Since $n-1$ also must belong to the progression, we have $p-1 \mid n-2$. Let $q$ be any prime divisor of $p-1$. Then also $q \mid n-2$. On the other hand, since $q
0$, this is transformed to $a^{d}=a^{\left(2 a^{d}-1\right) p}$, or equivalently to $d=\left(2 a^{d}-1\right) p$. However, this equality cannot hold, because $2 a^{d}-1>d$ for each $a \geq 2$, $d \geq 1$.
The only solutions are thus $(1,1),(16,2)$, and $(27,3)$.
18. By symmetry, assume that $A B>A C$. The point $D$ lies between $M$ and $P$ as well as between $Q$ and $R$, and if we show that $D M \cdot D P=D Q \cdot D R$, it will imply that $M, P, Q, R$ lie on a circle.
Since the triangles $A B C, A E F, A Q R$ are similar, the points $B, C, Q, R$ lie on a circle. Hence $D B \cdot D C=D Q \cdot D R$, and it remains to prove that
$$
D B \cdot D C=D M \cdot D P
$$
However, the points $B, C, E, F$ are concyclic, but so are the points $E, F, D, M$ (they lie on the nine-point circle), and we obtain $P B \cdot P C=$ $P E \cdot P F=P D \cdot P M$. Set $P B=x$ and $P C=y$. We have $P M=\frac{x+y}{2}$ and hence $P D=\frac{2 x y}{x+y}$. It follows that $D B=P B-P D=\frac{x(x-y)}{x+y}$, $D C=\frac{y(x-y)}{x+y}$, and $D M=\frac{(x-y)^{2}}{2(x+y)}$, from which we immediately obtain $D B \cdot D C=D M \cdot D P=\frac{x y(x-y)^{2}}{(x+y)^{2}}$, as needed.
19. Using that $a_{n+1}=0$ we can transform the desired inequality into
$$
\begin{aligned}
& \sqrt{a_{1}+}+a_{2}+\cdots+a_{n+1} \\
& \quad \leq \sqrt{1} \sqrt{a_{1}}+(\sqrt{2}-\sqrt{1}) \sqrt{a_{2}}+\cdots+(\sqrt{n+1}-\sqrt{n}) \sqrt{a_{n+1}}
\end{aligned}
$$
We shall prove by induction on $n$ that (1) holds for any $a_{1} \geq a_{2} \geq \cdots \geq$ $a_{n+1} \geq 0$, i.e., not only when $a_{n+1}=0$. For $n=0$ the inequality is
obvious. For the inductive step from $n-1$ to $n$, where $n \geq 1$, we need to prove the inequality
$$
\sqrt{a_{1}+\cdots+a_{n+1}}-\sqrt{a_{1}+\cdots+a_{n}} \leq(\sqrt{n+1}-\sqrt{n}) \sqrt{a_{n+1}}
$$
Putting $S=a_{1}+a_{2}+\cdots+a_{n}$, this simplifies to $\sqrt{S+a_{n+1}}-\sqrt{S} \leq$ $\sqrt{n a_{n+1}+a_{n+1}}-\sqrt{n a_{n+1}}$. For $a_{n+1}=0$ the inequality is obvious. For $a_{n+1}>0$ we have that the function $f(x)=\sqrt{x+a_{n+1}}-\sqrt{x}=$ $\frac{a_{n+1}}{\sqrt{x+a_{n+1}}+\sqrt{x}}$ is strictly decreasing on $\mathbb{R}^{+}$; hence (2) will follow if we show that $S \geq n a_{n+1}$. However, this last is true because $a_{1}, \ldots, a_{n} \geq a_{n+1}$.
Equality holds if and only if $a_{1}=a_{2}=\cdots=a_{k}$ and $a_{k+1}=\cdots=a_{n+1}=$ 0 for some $k$.
Second solution. Setting $b_{k}=\sqrt{a_{k}}-\sqrt{a_{k+1}}$ for $k=1, \ldots, n$ we have $a_{i}=\left(b_{i}+\cdots+b_{n}\right)^{2}$, so the desired inequality after squaring becomes
$$
\sum_{k=1}^{n} k b_{k}^{2}+2 \sum_{1 \leq k