# XIX Asian Pacific Mathematics Olympiad ![](https://cdn.mathpix.com/cropped/2024_11_22_16a4255df619f73cfb01g-01.jpg?height=181&width=420&top_left_y=543&top_left_x=835) Problem 1. Let $S$ be a set of 9 distinct integers all of whose prime factors are at most 3. Prove that $S$ contains 3 distinct integers such that their product is a perfect cube. Solution. Without loss of generality, we may assume that $S$ contains only positive integers. Let $$ S=\left\{2^{a_{i}} 3^{b_{i}} \mid a_{i}, b_{i} \in \mathbb{Z}, a_{i}, b_{i} \geq 0,1 \leq i \leq 9\right\} $$ It suffices to show that there are $1 \leq i_{1}, i_{2}, i_{3} \leq 9$ such that $$ a_{i_{1}}+a_{i_{2}}+a_{i_{3}} \equiv b_{i_{1}}+b_{i_{2}}+b_{i_{3}} \equiv 0 \quad(\bmod 3) . $$ For $n=2^{a} 3^{b} \in S$, let's call $(a(\bmod 3), b(\bmod 3))$ the type of $n$. Then there are 9 possible types: $$ (0,0),(0,1),(0,2),(1,0),(1,1),(1,2),(2,0),(2,1),(2,2) $$ Let $N(i, j)$ be the number of integers in $S$ of type $(i, j)$. We obtain 3 distinct integers whose product is a perfect cube when (1) $N(i, j) \geq 3$ for some $i, j$, or (2) $N(i, 0) N(i, 1) N(i, 2) \neq 0$ for some $i=0,1,2$, or (3) $N(0, j) N(1, j) N(2, j) \neq 0$ for some $j=0,1,2$, or (4) $N\left(i_{1}, j_{1}\right) N\left(i_{2}, j_{2}\right) N\left(i_{3}, j_{3}\right) \neq 0$, where $\left\{i_{1}, i_{2}, i_{3}\right\}=\left\{j_{1}, j_{2}, j_{3}\right\}=\{0,1,2\}$. Assume that none of the conditions (1) (3) holds. Since $N(i, j) \leq 2$ for all $(i, j)$, there are at least five $N(i, j)$ 's that are nonzero. Furthermore, among those nonzero $N(i, j)$ 's, no three have the same $i$ nor the same $j$. Using these facts, one may easily conclude that the condition (4) should hold. (For example, if one places each nonzero $N(i, j)$ in the $(i, j)$-th box of a regular $3 \times 3$ array of boxes whose rows and columns are indexed by 0,1 and 2 , then one can always find three boxes, occupied by at least one nonzero $N(i, j)$, whose rows and columns are all distinct. This implies (4).) Second solution. Up to $(\dagger)$, we do the same as above and get 9 possible types: $$ (a(\bmod 3), b(\bmod 3))=(0,0),(0,1),(0,2),(1,0),(1,1),(1,2),(2,0),(2,1),(2,2) $$ for $n=2^{a} 3^{b} \in S$. Note that (i) among any 5 integers, there exist 3 whose sum is $0(\bmod 3)$, and that (ii) if $i, j, k \in\{0,1,2\}$, then $i+j+k \equiv 0(\bmod 3)$ if and only if $i=j=k$ or $\{i, j, k\}=\{0,1,2\}$. Let's define $T$ : the set of types of the integers in $S$; $N(i)$ : the number of integers in $S$ of the type $(i, \cdot)$; $M(i)$ : the number of integers $j \in\{0,1,2\}$ such that $(i, j) \in T$. If $N(i) \geq 5$ for some $i$, the result follows from (i). Otherwise, for some permutation $(i, j, k)$ of $(0,1,2)$, $$ N(i) \geq 3, \quad N(j) \geq 3, \quad N(k) \geq 1 $$ If $M(i)$ or $M(j)$ is 1 or 3 , the result follows from (ii). Otherwise $M(i)=M(j)=2$. Then either $$ (i, x),(i, y),(j, x),(j, y) \in T \quad \text { or } \quad(i, x),(i, y),(j, x),(j, z) \in T $$ for some permutation $(x, y, z)$ of $(0,1,2)$. Since $N(k) \geq 1$, at least one of $(k, x),(k, y)$ and $(k, z)$ contained in $T$. Therefore, in any case, the result follows from (ii). (For example, if $(k, y) \in T$, then take $(i, y),(j, y),(k, y)$ or $(i, x),(j, z),(k, y)$ from T.) Problem 2. Let $A B C$ be an acute angled triangle with $\angle B A C=60^{\circ}$ and $A B>A C$. Let $I$ be the incenter, and $H$ the orthocenter of the triangle $A B C$. Prove that $$ 2 \angle A H I=3 \angle A B C . $$ Solution. Let $D$ be the intersection point of the lines $A H$ and $B C$. Let $K$ be the intersection point of the circumcircle $O$ of the triangle $A B C$ and the line $A H$. Let the line through $I$ perpendicular to $B C$ meet $B C$ and the minor arc $B C$ of the circumcircle $O$ at $E$ and $N$, respectively. We have $\angle B I C=180^{\circ}-(\angle I B C+\angle I C B)=180^{\circ}-\frac{1}{2}(\angle A B C+\angle A C B)=90^{\circ}+\frac{1}{2} \angle B A C=120^{\circ}$ and also $\angle B N C=180^{\circ}-\angle B A C=120^{\circ}=\angle B I C$. Since $I N \perp B C$, the quadrilateral $B I C N$ is a kite and thus $I E=E N$. Now, since $H$ is the orthocenter of the triangle $A B C, H D=D K$. Also because $E D \perp I N$ and $E D \perp H K$, we conclude that $I H K N$ is an isosceles trapezoid with $I H=N K$. Hence $$ \angle A H I=180^{\circ}-\angle I H K=180^{\circ}-\angle A K N=\angle A B N . $$ Since $I E=E N$ and $B E \perp I N$, the triangles $I B E$ and $N B E$ are congruent. Therefore $$ \angle N B E=\angle I B E=\angle I B C=\angle I B A=\frac{1}{2} \angle A B C $$ and thus $$ \angle A H I=\angle A B N=\frac{3}{2} \angle A B C . $$ Second solution. Let $P, Q$ and $R$ be the intersection points of $B H, C H$ and $A H$ with $A C, A B$ and $B C$, respectively. Then we have $\angle I B H=\angle I C H$. Indeed, $$ \angle I B H=\angle A B P-\angle A B I=30^{\circ}-\frac{1}{2} \angle A B C $$ and $$ \angle I C H=\angle A C I-\angle A C H=\frac{1}{2} \angle A C B-30^{\circ}=30^{\circ}-\frac{1}{2} \angle A B C, $$ because $\angle A B H=\angle A C H=30^{\circ}$ and $\angle A C B+\angle A B C=120^{\circ}$. (Note that $\angle A B P>\angle A B I$ and $\angle A C I>\angle A C H$ because $A B$ is the longest side of the triangle $A B C$ under the given conditions.) Therefore BIHC is a cyclic quadrilateral and thus $$ \angle B H I=\angle B C I=\frac{1}{2} \angle A C B . $$ On the other hand, $$ \angle B H R=90^{\circ}-\angle H B R=90^{\circ}-(\angle A B C-\angle A B H)=120^{\circ}-\angle A B C $$ Therefore, $$ \begin{aligned} \angle A H I & =180^{\circ}-\angle B H I-\angle B H R=60^{\circ}-\frac{1}{2} \angle A C B+\angle A B C \\ & =60^{\circ}-\frac{1}{2}\left(120^{\circ}-\angle A B C\right)+\angle A B C=\frac{3}{2} \angle A B C . \end{aligned} $$ Problem 3. Consider $n$ disks $C_{1}, C_{2}, \ldots, C_{n}$ in a plane such that for each $1 \leq in-2$, then $\left|G-G^{\prime}\right|=n-1$ and hence for each $1 \leq i \leq n-1$, either $(i, n)$ or $(n, i)$ must be in $G$. We already know that $(n, 1) \in G$ and $(n-1, n) \in G$ (because $(n, n-1) \notin G$ ) and this implies that $(n, n-2) \notin G$ and $(n-2, n) \in G$. If we keep doing this process, we obtain $(1, n) \in G$, which is a contradiction. Since $\left|G-G^{\prime}\right| \leq n-2$, we obtain $$ \left|G^{\prime}\right| \geq \frac{(n-1)(n-2)}{2}-(n-2)=\frac{(n-2)(n-3)}{2} $$ This, however, contradicts the minimality of $n$, and hence proves (ii). Problem 4. Let $x, y$ and $z$ be positive real numbers such that $\sqrt{x}+\sqrt{y}+\sqrt{z}=1$. Prove that $$ \frac{x^{2}+y z}{\sqrt{2 x^{2}(y+z)}}+\frac{y^{2}+z x}{\sqrt{2 y^{2}(z+x)}}+\frac{z^{2}+x y}{\sqrt{2 z^{2}(x+y)}} \geq 1 $$ Solution. We first note that $$ \begin{aligned} \frac{x^{2}+y z}{\sqrt{2 x^{2}(y+z)}} & =\frac{x^{2}-x(y+z)+y z}{\sqrt{2 x^{2}(y+z)}}+\frac{x(y+z)}{\sqrt{2 x^{2}(y+z)}} \\ & =\frac{(x-y)(x-z)}{\sqrt{2 x^{2}(y+z)}}+\sqrt{\frac{y+z}{2}} \\ & \geq \frac{(x-y)(x-z)}{\sqrt{2 x^{2}(y+z)}}+\frac{\sqrt{y}+\sqrt{z}}{2} . \end{aligned} $$ Similarly, we have $$ \begin{aligned} & \frac{y^{2}+z x}{\sqrt{2 y^{2}(z+x)}} \geq \frac{(y-z)(y-x)}{\sqrt{2 y^{2}(z+x)}}+\frac{\sqrt{z}+\sqrt{x}}{2}, \\ & \frac{z^{2}+x y}{\sqrt{2 z^{2}(x+y)}} \geq \frac{(z-x)(z-y)}{\sqrt{2 z^{2}(x+y)}}+\frac{\sqrt{x}+\sqrt{y}}{2} . \end{aligned} $$ We now add (1) (3) to get $$ \begin{aligned} & \frac{x^{2}+y z}{\sqrt{2 x^{2}(y+z)}}+\frac{y^{2}+z x}{\sqrt{2 y^{2}(z+x)}}+\frac{z^{2}+x y}{\sqrt{2 z^{2}(x+y)}} \\ & \geq \frac{(x-y)(x-z)}{\sqrt{2 x^{2}(y+z)}}+\frac{(y-z)(y-x)}{\sqrt{2 y^{2}(z+x)}}+\frac{(z-x)(z-y)}{\sqrt{2 z^{2}(x+y)}}+\sqrt{x}+\sqrt{y}+\sqrt{z} \\ & =\frac{(x-y)(x-z)}{\sqrt{2 x^{2}(y+z)}}+\frac{(y-z)(y-x)}{\sqrt{2 y^{2}(z+x)}}+\frac{(z-x)(z-y)}{\sqrt{2 z^{2}(x+y)}}+1 . \end{aligned} $$ Thus, it suffices to show that $$ \frac{(x-y)(x-z)}{\sqrt{2 x^{2}(y+z)}}+\frac{(y-z)(y-x)}{\sqrt{2 y^{2}(z+x)}}+\frac{(z-x)(z-y)}{\sqrt{2 z^{2}(x+y)}} \geq 0 . $$ Now, assume without loss of generality, that $x \geq y \geq z$. Then we have $$ \frac{(x-y)(x-z)}{\sqrt{2 x^{2}(y+z)}} \geq 0 $$ and $$ \begin{aligned} & \frac{(z-x)(z-y)}{\sqrt{2 z^{2}(x+y)}}+\frac{(y-z)(y-x)}{\sqrt{2 y^{2}(z+x)}}=\frac{(y-z)(x-z)}{\sqrt{2 z^{2}(x+y)}}-\frac{(y-z)(x-y)}{\sqrt{2 y^{2}(z+x)}} \\ & \geq \frac{(y-z)(x-y)}{\sqrt{2 z^{2}(x+y)}}-\frac{(y-z)(x-y)}{\sqrt{2 y^{2}(z+x)}}=(y-z)(x-y)\left(\frac{1}{\sqrt{2 z^{2}(x+y)}}-\frac{1}{\sqrt{2 y^{2}(z+x)}}\right) \end{aligned} $$ The last quantity is non-negative due to the fact that $$ y^{2}(z+x)=y^{2} z+y^{2} x \geq y z^{2}+z^{2} x=z^{2}(x+y) $$ This completes the proof. Second solution. By Cauchy-Schwarz inequality, $$ \begin{aligned} & \left(\frac{x^{2}}{\sqrt{2 x^{2}(y+z)}}+\frac{y^{2}}{\sqrt{2 y^{2}(z+x)}}+\frac{z^{2}}{\sqrt{2 z^{2}(x+y)}}\right) \\ & \quad \times(\sqrt{2(y+z)}+\sqrt{2(z+x)}+\sqrt{2(x+y)}) \geq(\sqrt{x}+\sqrt{y}+\sqrt{z})^{2}=1 \end{aligned} $$ and $$ \begin{aligned} & \left(\frac{y z}{\sqrt{2 x^{2}(y+z)}}+\frac{z x}{\sqrt{2 y^{2}(z+x)}}+\frac{x y}{\sqrt{2 z^{2}(x+y)}}\right) \\ & \quad \times(\sqrt{2(y+z)}+\sqrt{2(z+x)}+\sqrt{2(x+y)}) \geq\left(\sqrt{\frac{y z}{x}}+\sqrt{\frac{z x}{y}}+\sqrt{\frac{x y}{z}}\right)^{2} \end{aligned} $$ We now combine (5) and (6) to find $$ \begin{aligned} & \left(\frac{x^{2}+y z}{\sqrt{2 x^{2}(y+z)}}+\frac{y^{2}+z x}{\sqrt{2 y^{2}(z+x)}}+\frac{z^{2}+x y}{\sqrt{2 z^{2}(x+y)}}\right) \\ & \quad \times(\sqrt{2(x+y)}+\sqrt{2(y+z)}+\sqrt{2(z+x)}) \\ & \geq 1+\left(\sqrt{\frac{y z}{x}}+\sqrt{\frac{z x}{y}}+\sqrt{\frac{x y}{z}}\right)^{2} \geq 2\left(\sqrt{\frac{y z}{x}}+\sqrt{\frac{z x}{y}}+\sqrt{\frac{x y}{z}}\right) . \end{aligned} $$ Thus, it suffices to show that $$ 2\left(\sqrt{\frac{y z}{x}}+\sqrt{\frac{z x}{y}}+\sqrt{\frac{x y}{z}}\right) \geq \sqrt{2(y+z)}+\sqrt{2(z+x)}+\sqrt{2(x+y)} $$ Consider the following inequality using AM-GM inequality $$ \left[\sqrt{\frac{y z}{x}}+\left(\frac{1}{2} \sqrt{\frac{z x}{y}}+\frac{1}{2} \sqrt{\frac{x y}{z}}\right)\right]^{2} \geq 4 \sqrt{\frac{y z}{x}}\left(\frac{1}{2} \sqrt{\frac{z x}{y}}+\frac{1}{2} \sqrt{\frac{x y}{z}}\right)=2(y+z) $$ or equivalently $$ \sqrt{\frac{y z}{x}}+\left(\frac{1}{2} \sqrt{\frac{z x}{y}}+\frac{1}{2} \sqrt{\frac{x y}{z}}\right) \geq \sqrt{2(y+z)} . $$ Similarly, we have $$ \begin{aligned} & \sqrt{\frac{z x}{y}}+\left(\frac{1}{2} \sqrt{\frac{x y}{z}}+\frac{1}{2} \sqrt{\frac{y z}{x}}\right) \geq \sqrt{2(z+x)} \\ & \sqrt{\frac{x y}{z}}+\left(\frac{1}{2} \sqrt{\frac{y z}{x}}+\frac{1}{2} \sqrt{\frac{z x}{y}}\right) \geq \sqrt{2(x+y)} \end{aligned} $$ Adding the last three inequalities, we get $$ 2\left(\sqrt{\frac{y z}{x}}+\sqrt{\frac{z x}{y}}+\sqrt{\frac{x y}{z}}\right) \geq \sqrt{2(y+z)}+\sqrt{2(z+x)}+\sqrt{2(x+y)} . $$ This completes the proof. Problem 5. A regular $(5 \times 5)$-array of lights is defective, so that toggling the switch for one light causes each adjacent light in the same row and in the same column as well as the light itself to change state, from on to off, or from off to on. Initially all the lights are switched off. After a certain number of toggles, exactly one light is switched on. Find all the possible positions of this light. Solution. We assign the following first labels to the 25 positions of the lights: | 1 | 1 | 0 | 1 | 1 | | :--- | :--- | :--- | :--- | :--- | | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 0 | 1 | 1 | | 0 | 0 | 0 | 0 | 0 | | 1 | 1 | 0 | 1 | 1 | For each on-off combination of lights in the array, define its first value to be the sum of the first labels of those positions at which the lights are switched on. It is easy to check that toggling any switch always leads to an on-off combination of lights whose first value has the same parity(the remainder when divided by 2) as that of the previous on-off combination. The $90^{\circ}$ rotation of the first labels gives us another labels (let us call it the second labels) which also makes the parity of the second value(the sum of the second labels of those positions at which the lights are switched on) invariant under toggling. | 1 | 0 | 1 | 0 | 1 | | :--- | :--- | :--- | :--- | :--- | | 1 | 0 | 1 | 0 | 1 | | 0 | 0 | 0 | 0 | 0 | | 1 | 0 | 1 | 0 | 1 | | 1 | 0 | 1 | 0 | 1 | Since the parity of the first and the second values of the initial status is 0 , after certain number of toggles the parity must remain unchanged with respect to the first labels and the second labels as well. Therefore, if exactly one light is on after some number of toggles, the label of that position must be 0 with respect to both labels. Hence according to the above pictures, the possible positions are the ones marked with $*_{i}$ 's in the following picture: | | | | | | | :--- | :--- | :--- | :--- | :--- | | | $*_{2}$ | | $*_{1}$ | | | | | $*_{0}$ | | | | | $*_{3}$ | | $*_{4}$ | | | | | | | | Now we demonstrate that all five positions are possible: Toggling the positions checked by t (the order of toggling is irrelevant) in the first picture makes the center $\left(*_{0}\right)$ the only position with light on and the second picture makes the position $*_{1}$ the only position with light on. The other $*_{i}$ 's can be obtained by rotating the second picture appropriately. ![](https://cdn.mathpix.com/cropped/2024_11_22_16a4255df619f73cfb01g-11.jpg?height=287&width=326&top_left_y=705&top_left_x=708) | | t | | t | | | :---: | :---: | :---: | :---: | :---: | | t | t | | t | t | | | t | | | | | | | t | t | t | | | | | t | |