# Baltic Way 1991 ## Tartu, December 14, 1991 ## Problems and solutions 1. Find the smallest positive integer $n$ having the property: for any set of $n$ distinct integers $a_{1}, a_{2}, \ldots, a_{n}$ the product of all differences $a_{i}-a_{j}, i1$ such that $102^{1991}+103^{1991}=n^{m}$. Solution. Factorizing, we get $$ 102^{1991}+103^{1991}=(102+103)\left(102^{1990}-102^{1989} \cdot 103+102^{1988} \cdot 103^{2}-\cdots+103^{1990}\right), $$ where $102+103=205=5 \cdot 41$. It suffices to show that the other factor is not divisible by 5 . Let $a_{k}=102^{k} \cdot 103^{1990-k}$, then $a_{k} \equiv 4(\bmod 5)$ if $k$ is even and $a_{k} \equiv-4(\bmod 5)$ if $k$ is odd. Thus the whole second factor is congruent to $4 \cdot 1991 \equiv 4(\bmod 5)$. 3. There are 20 cats priced from $\$ 12$ to $\$ 15$ and 20 sacks priced from 10 cents to $\$ 1$ for sale (all prices are different). Prove that each of two boys, John and Peter, can buy a cat in a sack paying the same amount of money. Solution. The number of different possibilities for buying a cat and a sack is $20 \cdot 20=400$ while the number of different possible prices is $1600-1210+1=391$. Thus by the pigeonhole principle there exist two combinations of a cat and a sack costing the same amount of money. Note that the two cats (and also the two sacks) involved must be different as otherwise the two sacks (respectively, cats) would have equal prices. 4. Let $p$ be a polynomial with integer coefficients such that $p(-n)0$ we have $0 \leq[x] \leq x$ and $0 \leq\{x\}<1$ which imply $f(x)[x]>x-1$ and $0 \leq\{x\}<1$ which imply $f(x)>x-1>1991 x$. Finally, if $-1\cos A+\cos B+\cos C $$ Solution. In an acute-angled triangle we have $A+B>\frac{\pi}{2}$. Hence we have $\sin A>\sin \left(\frac{\pi}{2}-B\right)=\cos B$ and $\sin B>\cos A$. Using these inequalities we get $(1-\sin A)(1-\sin B)<(1-\cos A)(1-\cos B)$ and $$ \begin{aligned} \sin A+\sin B & >\cos A+\cos B-\cos A \cos B+\sin A \sin B \\ & =\cos A+\cos B-\cos (A+B)=\cos A+\cos B+\cos C \end{aligned} $$ 8. Let $a, b, c, d, e$ be distinct real numbers. Prove that the equation $$ \begin{aligned} & (x-a)(x-b)(x-c)(x-d) \\ & +(x-a)(x-b)(x-c)(x-e) \\ & +(x-a)(x-b)(x-d)(x-e) \\ & +(x-a)(x-c)(x-d)(x-e) \\ & +(x-b)(x-c)(x-d)(x-e)=0 \end{aligned} $$ has 4 distinct real solutions. Solution. On the left-hand side of the equation we have the derivative of the function $$ f(x)=(x-a)(x-b)(x-c)(x-d)(x-e) $$ which is continuous and has five distinct real roots. 9. Find the number of solutions of the equation $a e^{x}=x^{3}$. Solution. Studying the graphs of the functions $a e^{x}$ and $x^{3}$ it is easy to see that the equation always has one solution if $a<0$ and can have 0,1 or 2 solutions if $a>0$. Moreover, in the case $a>0$ the number of solutions can only decrease as $a$ increases and we have exactly one positive value of $a$ for which the equation has one solution - this is the case when the graphs of $a e^{x}$ and $x^{3}$ are tangent to each other, i.e., there exists $x_{0}$ such that $a e^{x_{0}}=x_{0}^{3}$ and $a e^{x_{0}}=3 x_{0}^{2}$. From these two equations we get $x_{0}=3$ and $a=\frac{27}{e^{3}}$. Summarizing: the equation $a e^{x}=x^{3}$ has one solution for $a \leq 0$ and $a=\frac{27}{e^{3}}$, two solutions for $0\frac{27}{e^{3}}$. 10. Express the value of $\sin 3^{\circ}$ in radicals. Solution. We use the equality $$ \sin 3^{\circ}=\sin \left(18^{\circ}-15^{\circ}\right)=\sin 18^{\circ} \cos 15^{\circ}+\cos 18^{\circ} \sin 15^{\circ} $$ where $$ \sin 15^{\circ}=\sin \frac{30^{\circ}}{2}=\sqrt{\frac{1-\cos 30^{\circ}}{2}}=\frac{\sqrt{6}-\sqrt{2}}{4} $$ and $$ \cos 15^{\circ}=\sqrt{1-\sin ^{2} 15^{\circ}}=\frac{\sqrt{6}+\sqrt{2}}{4} . $$ To calculate $\cos 18^{\circ}$ and $\sin 18^{\circ}$ note that $\cos \left(3 \cdot 18^{\circ}\right)=\sin \left(2 \cdot 18^{\circ}\right)$. As $\cos 3 x=\cos ^{3} x-3 \cos x \sin ^{2} x=$ $\cos x\left(1-4 \sin ^{2} x\right)$ and $\sin 2 x=2 \sin x \cos x$ we get $1-4 \sin ^{2} 18^{\circ}=2 \sin 18^{\circ}$. Solving this quadratic equation yields $\sin 18^{\circ}=\frac{\sqrt{5}-1}{4}$ (we discard $\frac{-\sqrt{5}-1}{4}$ which is negative) and $\cos 18^{\circ}=\frac{\sqrt{10+2 \sqrt{5}}}{4}$. 11. All positive integers from 1 to 1000000 are divided into two groups consisting of numbers with odd or even sums of digits respectively. Which group contains more numbers? Solution. Among any ten integers $\overline{a_{1} \ldots a_{n} 0}, \overline{a_{1} \ldots a_{n} 1}, \ldots, \overline{a_{1} \ldots a_{n} 9}$ there are exactly five numbers with odd digit sum and five numbers with even digit sum. Thus, among the integers 0, 1, . , 999999 we have equally many numbers of both kinds. After substituting 1000000 instead of 0 we shall have more numbers with odd digit sum. 12. The vertices of a convex 1991-gon are enumerated with integers from 1 to 1991. Each side and diagonal of the 1991-gon is coloured either red or blue. Prove that, for an arbitrary renumeration of vertices, one can find integers $k$ and $l$ such that the line connecting vertices with numbers $k$ and $l$ before the renumeration has the same colour as the line between the vertices having these numbers after the renumeration. Solution. Assume there exists a renumeration such that for any numbers $1 \leq k