Dušan Djukić
Vladimir Janković
Ivan Matic
Nikola Petrović # The IMO Compendium A Collection of Problems Suggested for the International Mathematical Olympiads: 1959-2004 With 200 Figures ## Preface The International Mathematical Olympiad (IMO) is nearing its fiftieth anniversary and has already created a very rich legacy and firmly established itself as the most prestigious mathematical competition in which a high-school student could aspire to participate. Apart from the opportunity to tackle interesting and very challenging mathematical problems, the IMO represents a great opportunity for high-school students to see how they measure up against students from the rest of the world. Perhaps even more importantly, it is an opportunity to make friends and socialize with students who have similar interests, possibly even to become acquainted with their future colleagues on this first leg of their journey into the world of professional and scientific mathematics. Above all, however pleasing or disappointing the final score may be, preparing for an IMO and participating in one is an adventure that will undoubtedly linger in one's memory for the rest of one's life. It is to the high-school-aged aspiring mathematician and IMO participant that we devote this entire book. The goal of this book is to include all problems ever shortlisted for the IMOs in a single volume. Up to this point, only scattered manuscripts traded among different teams have been available, and a number of manuscripts were lost for many years or unavailable to many. In this book, all manuscripts have been collected into a single compendium of mathematics problems of the kind that usually appear on the IMOs. Therefore, we believe that this book will be the definitive and authoritative source for high-school students preparing for the IMO, and we suspect that it will be of particular benefit in countries lacking adequate preparation literature. A high-school student could spend an enjoyable year going through the numerous problems and novel ideas presented in the solutions and emerge ready to tackle even the most difficult problems on an IMO. In addition, the skill acquired in the process of successfully attacking difficult mathematics problems will prove to be invaluable in a serious and prosperous career in mathematics. However, we must caution our aspiring IMO participant on the use of this book. Any book of problems, no matter how large, quickly depletes itself if the reader merely glances at a problem and then five minutes later, having determined that the problem seems unsolvable, glances at the solution. The authors therefore propose the following plan for working through the book. Each problem is to be attempted at least half an hour before the reader looks at the solution. The reader is strongly encouraged to keep trying to solve the problem without looking at the solution as long as he or she is coming up with fresh ideas and possibilities for solving the problem. Only after all venues seem to have been exhausted is the reader to look at the solution, and then only in order to study it in close detail, carefully noting any previously unseen ideas or methods used. To condense the subject matter of this already very large book, most solutions have been streamlined, omitting obvious derivations and algebraic manipulations. Thus, reading the solutions requires a certain mathematical maturity, and in any case, the solutions, especially in geometry, are intended to be followed through with pencil and paper, the reader filling in all the omitted details. We highly recommend that the reader mark such unsolved problems and return to them in a few months to see whether they can be solved this time without looking at the solutions. We believe this to be the most efficient and systematic way (as with any book of problems) to raise one's level of skill and mathematical maturity. We now leave our reader with final words of encouragement to persist in this journey even when the difficulties seem insurmountable and a sincere wish to the reader for all mathematical success one can hope to aspire to. Belgrade, October 2004 Dušan Djukić Vladimir Janković Ivan Matić Nikola Petrović For the most current information regarding The IMO Compendium you are invited to go to our website: www.imo.org.yu. At this site you can also find, for several of the years, scanned versions of available original shortlist and longlist problems, which should give an illustration of the original state the IMO materials we used were in. We are aware that this book may still contain errors. If you find any, please notify us at imo@matf.bg.ac.yu. A full list of discovered errors can be found at our website. If you have any questions, comments, or suggestions regarding both our book and our website, please do not hesitate to write to us at the above email address. We would be more than happy to hear from you. ## Acknowledgements The making of this book would have never been possible without the help of numerous individuals, whom we wish to thank. First and foremost, obtaining manuscripts containing suggestions for IMOs was vital in order for us to provide the most complete listing of problems possible. We obtained manuscripts for many of the years from the former and current IMO team leaders of Yugoslavia / Serbia and Montenegro, who carefully preserved these valuable papers throughout the years. Special thanks are due to Prof. Vladimir Mićić, for some of the oldest manuscripts, and to Prof. Zoran Kadelburg. We also thank Prof. Djordje Dugošija and Prof. Pavle Mladenović. In collecting shortlisted and longlisted problems we were also assisted by Prof. Ioan Tomescu from Romania and Hà Duy Hưng from Vietnam. A lot of work was invested in cleaning up our giant manuscript of errors. Special thanks in this respect go to David Kramer, our copy-editor, and to Prof. Titu Andreescu and his group for checking, in great detail, the validity of the solutions in this manuscript, and for their proposed corrections and alternative solutions to several problems. We also thank Prof. Abderrahim Ouardini from France for sending us the list of countries of origin for the shortlisted problems of 1998, Prof. Dorin Andrica for helping us compile the list of books for reference, and Prof. Ljubomir Čukić for proofreading part of the manuscript and helping us correct several errors. We would also like to express our thanks to all anonymous authors of the IMO problems. It is a pity that authors' names are not registered together with their proposed problems. Without them, the IMO would obviously not be what it is today. In many cases, the original solutions of the authors were used, and we duly acknowledge this immense contribution to our book, though once again, we regret that we cannot do this individually. In the same vein, we also thank all the students participating in the IMOs, since we have also included some of their original solutions in this book. The illustrations of geometry problems were done in WinGCLC, a program created by Prof. Predrag Janičić. This program is specifically designed for creating geometric pictures of unparalleled complexity quickly and efficiently. Even though it is still in its testing phase, its capabilities and utility are already remarkable and worthy of highest compliment. Finally, we would like to thank our families for all their love and support during the making of this book. ## Contents Preface ..... v 1 Introduction ..... 1 1.1 The International Mathematical Olympiad ..... 1 1.2 The IMO Compendium ..... 2 2 Basic Concepts and Facts ..... 5 2.1 Algebra ..... 5 2.1.1 Polynomials ..... 5 2.1.2 Recurrence Relations ..... 6 2.1.3 Inequalities ..... 7 2.1.4 Groups and Fields ..... 9 2.2 Analysis ..... 10 2.3 Geometry ..... 12 2.3.1 Triangle Geometry ..... 12 2.3.2 Vectors in Geometry ..... 13 2.3.3 Barycenters ..... 14 2.3.4 Quadrilaterals ..... 14 2.3.5 Circle Geometry ..... 15 2.3.6 Inversion ..... 16 2.3.7 Geometric Inequalities ..... 16 2.3.8 Trigonometry ..... 17 2.3.9 Formulas in Geometry ..... 18 2.4 Number Theory ..... 19 2.4.1 Divisibility and Congruences ..... 19 2.4.2 Exponential Congruences ..... 20 2.4.3 Quadratic Diophantine Equations ..... 21 2.4.4 Farey Sequences ..... 22 2.5 Combinatorics ..... 22 2.5.1 Counting of Objects ..... 22 2.5.2 Graph Theory ..... 23 3 Problems ..... 27 3.1 IMO 1959 ..... 27 3.1.1 Contest Problems ..... 27 3.2 IMO 1960 ..... 29 3.2.1 Contest Problems ..... 29 3.3 IMO 1961 ..... 30 3.3.1 Contest Problems ..... 30 3.4 IMO 1962 ..... 31 3.4.1 Contest Problems ..... 31 3.5 IMO 1963 ..... 32 3.5.1 Contest Problems ..... 32 3.6 IMO 1964 ..... 33 3.6.1 Contest Problems ..... 33 3.7 IMO 1965 ..... 34 3.7.1 Contest Problems ..... 34 3.8 IMO 1966 ..... 35 3.8.1 Contest Problems ..... 35 3.8.2 Some Longlisted Problems 1959-1966 ..... 36 3.9 IMO 1967 ..... 42 3.9.1 Contest Problems ..... 42 3.9.2 Longlisted Problems ..... 42 3.10 IMO 1968 ..... 51 3.10.1 Contest Problems ..... 51 3.10.2 Shortlisted Problems ..... 52 3.11 IMO 1969 ..... 55 3.11.1 Contest Problems ..... 55 3.11.2 Longlisted Problems ..... 55 3.12 IMO 1970 ..... 64 3.12.1 Contest Problems ..... 64 3.12.2 Longlisted Problems ..... 65 3.12.3 Shortlisted Problems ..... 72 3.13 IMO 1971 ..... 74 3.13.1 Contest Problems ..... 74 3.13.2 Longlisted Problems ..... 75 3.13.3 Shortlisted Problems ..... 81 3.14 IMO 1972 ..... 84 3.14.1 Contest Problems ..... 84 3.14.2 Longlisted Problems ..... 84 3.14.3 Shortlisted Problems ..... 89 3.15 IMO 1973 ..... 91 3.15.1 Contest Problems ..... 91 3.15.2 Shortlisted Problems ..... 92 3.16 IMO 1974 ..... 94 3.16.1 Contest Problems ..... 94 3.16.2 Longlisted Problems ..... 95 3.16.3 Shortlisted Problems ..... 100 3.17 IMO 1975 ..... 103 3.17.1 Contest Problems ..... 103 3.17.2 Shortlisted Problems ..... 103 3.18 IMO 1976 ..... 106 3.18.1 Contest Problems ..... 106 3.18.2 Longlisted Problems ..... 106 3.18.3 Shortlisted Problems ..... 112 3.19 IMO 1977 ..... 114 3.19.1 Contest Problems ..... 114 3.19.2 Longlisted Problems ..... 114 3.19.3 Shortlisted Problems ..... 120 3.20 IMO 1978 ..... 123 3.20.1 Contest Problems ..... 123 3.20.2 Longlisted Problems ..... 123 3.20.3 Shortlisted Problems ..... 128 3.21 IMO 1979 ..... 131 3.21.1 Contest Problems ..... 131 3.21.2 Longlisted Problems ..... 132 3.21.3 Shortlisted Problems ..... 139 3.22 IMO 1981 ..... 143 3.22.1 Contest Problems ..... 143 3.22.2 Shortlisted Problems ..... 144 3.23 IMO 1982 ..... 147 3.23.1 Contest Problems ..... 147 3.23.2 Longlisted Problems ..... 148 3.23.3 Shortlisted Problems ..... 153 3.24 IMO 1983 ..... 157 3.24.1 Contest Problems ..... 157 3.24.2 Longlisted Problems ..... 157 3.24.3 Shortlisted Problems ..... 165 3.25 IMO 1984 ..... 169 3.25.1 Contest Problems ..... 169 3.25.2 Longlisted Problems ..... 169 3.25.3 Shortlisted Problems ..... 176 3.26 IMO 1985 ..... 180 3.26.1 Contest Problems ..... 180 3.26.2 Longlisted Problems ..... 180 3.26.3 Shortlisted Problems ..... 190 3.27 IMO 1986 ..... 193 3.27.1 Contest Problems ..... 193 3.27.2 Longlisted Problems ..... 194 3.27.3 Shortlisted Problems ..... 201 3.28 IMO 1987 ..... 204 3.28.1 Contest Problems ..... 204 3.28.2 Longlisted Problems ..... 204 3.28.3 Shortlisted Problems ..... 212 3.29 IMO 1988 ..... 216 3.29.1 Contest Problems ..... 216 3.29.2 Longlisted Problems ..... 217 3.29.3 Shortlisted Problems ..... 226 3.30 IMO 1989 ..... 231 3.30.1 Contest Problems ..... 231 3.30.2 Longlisted Problems ..... 232 3.30.3 Shortlisted Problems ..... 244 3.31 IMO 1990 ..... 249 3.31.1 Contest Problems ..... 249 3.31.2 Shortlisted Problems ..... 250 3.32 IMO 1991 ..... 254 3.32.1 Contest Problems ..... 254 3.32.2 Shortlisted Problems ..... 254 3.33 IMO 1992 ..... 259 3.33.1 Contest Problems ..... 259 3.33.2 Longlisted Problems ..... 259 3.33.3 Shortlisted Problems ..... 269 3.34 IMO 1993 ..... 272 3.34.1 Contest Problems ..... 272 3.34.2 Shortlisted Problems ..... 273 3.35 IMO 1994 ..... 277 3.35.1 Contest Problems ..... 277 3.35.2 Shortlisted Problems ..... 277 3.36 IMO 1995 ..... 281 3.36.1 Contest Problems ..... 281 3.36.2 Shortlisted Problems ..... 281 3.37 IMO 1996 ..... 286 3.37.1 Contest Problems ..... 286 3.37.2 Shortlisted Problems ..... 287 3.38 IMO 1997 ..... 292 3.38.1 Contest Problems ..... 292 3.38.2 Shortlisted Problems ..... 293 3.39 IMO 1998 ..... 297 3.39.1 Contest Problems ..... 297 3.39.2 Shortlisted Problems ..... 297 3.40 IMO 1999 ..... 302 3.40.1 Contest Problems ..... 302 3.40.2 Shortlisted Problems ..... 302 3.41 IMO 2000 ..... 307 3.41.1 Contest Problems ..... 307 3.41.2 Shortlisted Problems ..... 308 3.42 IMO 2001 ..... 312 3.42.1 Contest Problems ..... 312 3.42.2 Shortlisted Problems ..... 312 3.43 IMO 2002 ..... 317 3.43.1 Contest Problems ..... 317 3.43.2 Shortlisted Problems ..... 318 3.44 IMO 2003 ..... 322 3.44.1 Contest Problems ..... 322 3.44.2 Shortlisted Problems ..... 323 3.45 IMO 2004 ..... 327 3.45.1 Contest Problems ..... 327 3.45.2 Shortlisted Problems ..... 328 4 Solutions ..... 333 4.1 Contest Problems 1959 ..... 333 4.2 Contest Problems 1960 ..... 335 4.3 Contest Problems 1961 ..... 337 4.4 Contest Problems 1962 ..... 339 4.5 Contest Problems 1963 ..... 340 4.6 Contest Problems 1964 ..... 341 4.7 Contest Problems 1965 ..... 343 4.8 Contest Problems 1966 ..... 345 4.9 Longlisted Problems 1967 ..... 347 4.10 Shortlisted Problems 1968 ..... 361 4.11 Contest Problems 1969 ..... 367 4.12 Shortlisted Problems 1970 ..... 370 4.13 Shortlisted Problems 1971 ..... 377 4.14 Shortlisted Problems 1972 ..... 384 4.15 Shortlisted Problems 1973 ..... 389 4.16 Shortlisted Problems 1974 ..... 395 4.17 Shortlisted Problems 1975 ..... 401 4.18 Shortlisted Problems 1976 ..... 406 4.19 Longlisted Problems 1977 ..... 410 4.20 Shortlisted Problems 1978 ..... 426 4.21 Shortlisted Problems 1979 ..... 434 4.22 Shortlisted Problems 1981 ..... 442 4.23 Shortlisted Problems 1982 ..... 451 4.24 Shortlisted Problems 1983 ..... 457 4.25 Shortlisted Problems 1984 ..... 466 4.26 Shortlisted Problems 1985 ..... 473 4.27 Shortlisted Problems 1986 ..... 481 4.28 Shortlisted Problems 1987 ..... 489 4.29 Shortlisted Problems 1988 ..... 500 4.30 Shortlisted Problems 1989 ..... 516 4.31 Shortlisted Problems 1990 ..... 530 4.32 Shortlisted Problems 1991 ..... 544 4.33 Shortlisted Problems 1992 ..... 558 4.34 Shortlisted Problems 1993 ..... 568 4.35 Shortlisted Problems 1994 ..... 581 4.36 Shortlisted Problems 1995 ..... 589 4.37 Shortlisted Problems 1996 ..... 602 4.38 Shortlisted Problems 1997 ..... 618 4.39 Shortlisted Problems 1998 ..... 632 4.40 Shortlisted Problems 1999 ..... 646 4.41 Shortlisted Problems 2000 ..... 661 4.42 Shortlisted Problems 2001 ..... 675 4.43 Shortlisted Problems 2002 ..... 689 4.44 Shortlisted Problems 2003 ..... 701 4.45 Shortlisted Problems 2004 ..... 715 A Notation and Abbreviations ..... 731 A. 1 Notation ..... 731 A. 2 Abbreviations ..... 732 B Codes of the Countries of Origin ..... 735 References ..... 737 ## Introduction ### 1.1 The International Mathematical Olympiad The International Mathematical Olympiad (IMO) is the most important and prestigious mathematical competition for high-school students. It has played a significant role in generating wide interest in mathematics among high school students, as well as identifying talent. In the beginning, the IMO was a much smaller competition than it is today. In 1959, the following seven countries gathered to compete in the first IMO: Bulgaria, Czechoslovakia, German Democratic Republic, Hungary, Poland, Romania, and the Soviet Union. Since then, the competition has been held annually. Gradually, other Eastern-block countries, countries from Western Europe, and ultimately numerous countries from around the world and every continent joined in. (The only year in which the IMO was not held was 1980, when for financial reasons no one stepped in to host it. Today this is hardly a problem, and hosts are lined up several years in advance.) In the 45th IMO, held in Athens, no fewer than 85 countries took part. The format of the competition quickly became stable and unchanging. Each country may send up to six contestants and each contestant competes individually (without any help or collaboration). The country also sends a team leader, who participates in problem selection and is thus isolated from the rest of the team until the end of the competition, and a deputy leader, who looks after the contestants. The IMO competition lasts two days. On each day students are given four and a half hours to solve three problems, for a total of six problems. The first problem is usually the easiest on each day and the last problem the hardest, though there have been many notable exceptions. ((IMO96-5) is one of the most difficult problems from all the Olympiads, having been fully solved by only six students out of several hundred!) Each problem is worth 7 points, making 42 points the maximum possible score. The number of points obtained by a contestant on each problem is the result of intense negotiations and, ultimately, agreement among the problem coordinators, assigned by the host country, and the team leader and deputy, who defend the interests of their contestants. This system ensures a relatively objective grade that is seldom off by more than two or three points. Though countries naturally compare each other's scores, only individual prizes, namely medals and honorable mentions, are awarded on the IMO. Fewer than one twelfth of participants are awarded the gold medal, fewer than one fourth are awarded the gold or silver medal, and fewer than one half are awarded the gold, silver or bronze medal. Among the students not awarded a medal, those who score 7 points on at least one problem are awarded an honorable mention. This system of determining awards works rather well. It ensures, on the one hand, strict criteria and appropriate recognition for each level of performance, giving every contestant something to strive for. On the other hand, it also ensures a good degree of generosity that does not greatly depend on the variable difficulty of the problems proposed. According to the statistics, the hardest Olympiad was that in 1971, followed by those in 1996, 1993, and 1999. The Olympiad in which the winning team received the lowest score was that in 1977, followed by those in 1960 and 1999. The selection of the problems consists of several steps. Participant countries send their proposals, which are supposed to be novel, to the IMO organizers. The organizing country does not propose problems. From the received proposals (the longlisted problems), the problem committee selects a shorter list (the shortlisted problems), which is presented to the IMO jury, consisting of all the team leaders. From the short-listed problems the jury chooses six problems for the IMO. Apart from its mathematical and competitive side, the IMO is also a very large social event. After their work is done, the students have three days to enjoy events and excursions organized by the host country, as well as to interact and socialize with IMO participants from around the world. All this makes for a truly memorable experience. ### 1.2 The IMO Compendium Olympiad problems have been published in many books [65]. However, the remaining shortlisted and longlisted problems have not been systematically collected and published, and therefore many of them are unknown to mathematicians interested in this subject. Some partial collections of shortlisted and longlisted problems can be found in the references, though usually only for one year. References [1], [30], [41], [60] contain problems from multiple years. In total, these books cover roughly $50 \%$ of the problems found in this book. The goal of this book is to present, in a single volume, our comprehensive collection of problems proposed for the IMO. It consists of all problems selected for the IMO competitions, shortlisted problems from the 10th IMO and from the 12th through 44th IMOs, and longlisted problems from nineteen IMOs. We do not have shortlisted problems from the 9th and the 11th IMOs, and we could not discover whether competition problems at those two IMOs were selected from the longlisted problems or whether there existed shortlisted problems that have not been preserved. Since IMO organizers usually do not distribute longlisted problems to the representatives of participant countries, our collection is incomplete. The practice of distributing these longlists effectively ended in 1989. A selection of problems from the first eight IMOs has been taken from [60]. The book is organized as follows. For each year, the problems that were given on the IMO contest are presented, along with the longlisted and/or shortlisted problems, if applicable. We present solutions to all shortlisted problems. The problems appearing on the IMOs are solved among the other shortlisted problems. The longlisted problems have not been provided with solutions, except for the two IMOs held in Yugoslavia (for patriotic reasons), since that would have made the book unreasonably long. This book has thus the added benefit for professors and team coaches of being a suitable book from which to assign problems. For each problem, we indicate the country that proposed it with a three-letter code. A complete list of country codes and the corresponding countries is given in the appendix. In all shortlists, we also indicate which problems were selected for the contest. We occasionally make references in our solutions to other problems in a straightforward way. After indicating with LL, SL, or IMO whether the problem is from a longlist, shortlist, or contest, we indicate the year of the IMO and then the number of the problem. For example, (SL89-15) refers to the fifteenth problem of the shortlist of 1989. We also present a rough list of all formulas and theorems not obviously derivable that were called upon in our proofs. Since we were largely concerned with only the theorems used in proving the problems of this book, we believe that the list is a good compilation of the most useful theorems for IMO problem solving. The gathering of such a large collection of problems into a book required a massive amount of editing. We reformulated the problems whose original formulations were not precise or clear. We translated the problems that were not in English. Some of the solutions are taken from the author of the problem or other sources, while others are original solutions of the authors of this book. Many of the non-original solutions were significantly edited before being included. We do not make any guarantee that the problems in this book fully correspond to the actual shortlisted or longlisted problems. However, we believe this book to be the closest possible approximation to such a list. ## Basic Concepts and Facts The following is a list of the most basic concepts and theorems frequently used in this book. We encourage the reader to become familiar with them and perhaps read up on them further in other literature. ### 2.1 Algebra ### 2.1.1 Polynomials Theorem 2.1. The quadratic equation $a x^{2}+b x+c=0(a, b, c \in \mathbb{R}, a \neq 0)$ has solutions $$ x_{1,2}=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a} . $$ The discriminant $D$ of the quadratic equation is defined as $D=b^{2}-4 a c$. For $D<0$ the solutions are complex and conjugate to each other, for $D=0$ the solutions degenerate to one real solution, and for $D>0$ the equation has two distinct real solutions. Definition 2.2. Binomial coefficients $\binom{n}{k}, n, k \in \mathbb{N}_{0}, k \leq n$, are defined as $$ \binom{n}{i}=\frac{n!}{i!(n-i)!} . $$ They satisfy $\binom{n}{i}+\binom{n}{i-1}=\binom{n+1}{i}$ for $i>0$ and also $\binom{n}{0}+\binom{n}{1}+\cdots+\binom{n}{n}=2^{n}$, $\binom{n}{0}-\binom{n}{1}+\cdots+(-1)^{n}\binom{n}{n}=0,\binom{n+m}{k}=\sum_{i=0}^{k}\binom{n}{i}\binom{m}{k-i}$. Theorem 2.3 ((Newton's) binomial formula). For $x, y \in \mathbb{C}$ and $n \in \mathbb{N}$, $$ (x+y)^{n}=\sum_{i=0}^{n}\binom{n}{i} x^{n-i} y^{i} . $$ Theorem 2.4 (Bézout's theorem). A polynomial $P(x)$ is divisible by the binomial $x-a(a \in \mathbb{C})$ if and only if $P(a)=0$. Theorem 2.5 (The rational root theorem). If $x=p / q$ is a rational zero of a polynomial $P(x)=a_{n} x^{n}+\cdots+a_{0}$ with integer coefficients and $(p, q)=1$, then $p \mid a_{0}$ and $q \mid a_{n}$. Theorem 2.6 (The fundamental theorem of algebra). Every nonconstant polynomial with coefficients in $\mathbb{C}$ has a complex root. Theorem 2.7 (Eisenstein's criterion (extended)). Let $P(x)=a_{n} x^{n}+$ $\cdots+a_{1} x+a_{0}$ be a polynomial with integer coefficients. If there exist a prime $p$ and an integer $k \in\{0,1, \ldots, n-1\}$ such that $p \mid a_{0}, a_{1}, \ldots, a_{k}, p \nmid a_{k+1}$, and $p^{2} \nmid a_{0}$, then there exists an irreducible factor $Q(x)$ of $P(x)$ whose degree is at least $k$. In particular, if $p$ can be chosen such that $k=n-1$, then $P(x)$ is irreducible. Definition 2.8. Symmetric polynomials in $x_{1}, \ldots, x_{n}$ are polynomials that do not change on permuting the variables $x_{1}, \ldots, x_{n}$. Elementary symmetric polynomials are $\sigma_{k}\left(x_{1}, \ldots, x_{n}\right)=\sum x_{i_{1}} \cdots x_{i_{k}}$ (the sum is over all $k$-element subsets $\left\{i_{1}, \ldots, i_{k}\right\}$ of $\left.\{1,2, \ldots, n\}\right)$. Theorem 2.9. Every symmetric polynomial in $x_{1}, \ldots, x_{n}$ can be expressed as a polynomial in the elementary symmetric polynomials $\sigma_{1}, \ldots, \sigma_{n}$. Theorem 2.10 (Vieta's formulas). Let $\alpha_{1}, \ldots, \alpha_{n}$ and $c_{1}, \ldots, c_{n}$ be complex numbers such that $$ \left(x-\alpha_{1}\right)\left(x-\alpha_{2}\right) \cdots\left(x-\alpha_{n}\right)=x^{n}+c_{1} x^{n-1}+c_{2} x^{n-2}+\cdots+c_{n} $$ Then $c_{k}=(-1)^{k} \sigma_{k}\left(\alpha_{1}, \ldots, \alpha_{n}\right)$ for $k=1,2, \ldots, n$. Theorem 2.11 (Newton's formulas on symmetric polynomials). Let $\sigma_{k}=\sigma_{k}\left(x_{1}, \ldots, x_{n}\right)$ and let $s_{k}=x_{1}^{k}+x_{2}^{k}+\cdots+x_{n}^{k}$, where $x_{1}, \ldots, x_{n}$ are arbitrary complex numbers. Then $$ k \sigma_{k}=s_{1} \sigma_{k-1}-s_{2} \sigma_{k-2}+\cdots+(-1)^{k} s_{k-1} \sigma_{1}+(-1)^{k-1} s_{k} $$ ### 2.1.2 Recurrence Relations Definition 2.12. A recurrence relation is a relation that determines the elements of a sequence $x_{n}, n \in \mathbb{N}_{0}$, as a function of previous elements. A recurrence relation of the form $$ (\forall n \geq k) \quad x_{n}+a_{1} x_{n-1}+\cdots+a_{k} x_{n-k}=0 $$ for constants $a_{1}, \ldots, a_{k}$ is called a linear homogeneous recurrence relation of order $k$. We define the characteristic polynomial of the relation as $P(x)=$ $x^{k}+a_{1} x^{k-1}+\cdots+a_{k}$. Theorem 2.13. Using the notation introduced in the above definition, let $P(x)$ factorize as $P(x)=\left(x-\alpha_{1}\right)^{k_{1}}\left(x-\alpha_{2}\right)^{k_{2}} \cdots\left(x-\alpha_{r}\right)^{k_{r}}$, where $\alpha_{1}, \ldots, \alpha_{r}$ are distinct complex numbers and $k_{1}, \ldots, k_{r}$ are positive integers. The general solution of this recurrence relation is in this case given by $$ x_{n}=p_{1}(n) \alpha_{1}^{n}+p_{2}(n) \alpha_{2}^{n}+\cdots+p_{r}(n) \alpha_{r}^{n}, $$ where $p_{i}$ is a polynomial of degree less than $k_{i}$. In particular, if $P(x)$ has $k$ distinct roots, then all $p_{i}$ are constant. If $x_{0}, \ldots, x_{k-1}$ are set, then the coefficients of the polynomials are uniquely determined. ### 2.1.3 Inequalities Theorem 2.14. The quadratic function is always positive; i.e., $(\forall x \in \mathbb{R}) x^{2} \geq$ 0 . By substituting different expressions for $x$, many of the inequalities below are obtained. ## Theorem 2.15 (Bernoulli's inequalities). 1. If $n \geq 1$ is an integer and $x>-1$ a real number then $(1+x)^{n} \geq 1+n x$. 2. If $a>1$ or $a<0$ then for $x>-1$ the following inequality holds: $(1+x)^{\alpha} \geq$ $1+\alpha x$. 3. If $a \in(0,1)$ then for $x>-1$ the following inequality holds: $(1+x)^{\alpha} \leq$ $1+\alpha x$. Theorem 2.16 (The mean inequalities). For positive real numbers $x_{1}, x_{2}$, $\ldots, x_{n}$ it follows that $Q M \geq A M \geq G M \geq H M$, where $$ \begin{aligned} Q M & =\sqrt{\frac{x_{1}^{2}+\cdots+x_{n}^{2}}{n}}, & A M=\frac{x_{1}+\cdots+x_{n}}{n}, \\ G M & =\sqrt[n]{x_{1} \cdots x_{n}}, & H M=\frac{n}{1 / x_{1}+\cdots+1 / x_{n}} . \end{aligned} $$ Each of these inequalities becomes an equality if and only if $x_{1}=x_{2}=$ $\cdots=x_{n}$. The numbers $Q M, A M, G M$, and $H M$ are respectively called the quadratic mean, the arithmetic mean, the geometric mean, and the harmonic mean of $x_{1}, x_{2}, \ldots, x_{n}$. Theorem 2.17 (The general mean inequality). Let $x_{1}, \ldots, x_{n}$ be positive real numbers. For each $p \in \mathbb{R}$ we define the mean of order $p$ of $x_{1}, \ldots, x_{n}$ by $M_{p}=\left(\frac{x_{1}^{p}+\cdots+x_{n}^{p}}{n}\right)^{1 / p}$ for $p \neq 0$, and $M_{q}=\lim _{p \rightarrow q} M_{p}$ for $q \in\{ \pm \infty, 0\}$. In particular, $\max x_{i}, Q M, A M, G M, H M$, and $\min x_{i}$ are $M_{\infty}, M_{2}, M_{1}, M_{0}$, $M_{-1}$, and $M_{-\infty}$ respectively. Then $$ M_{p} \leq M_{q} \quad \text { whenever } \quad p \leq q . $$ Theorem 2.18 (Cauchy-Schwarz inequality). Let $a_{i}, b_{i}, i=1,2, \ldots, n$, be real numbers. Then $$ \left(\sum_{i=1}^{n} a_{i} b_{i}\right)^{2} \leq\left(\sum_{i=1}^{n} a_{i}^{2}\right)\left(\sum_{i=1}^{n} b_{i}^{2}\right) $$ Equality occurs if and only if there exists $c \in \mathbb{R}$ such that $b_{i}=c a_{i}$ for $i=$ $1, \ldots, n$. Theorem 2.19 (Hölder's inequality). Let $a_{i}, b_{i}, i=1,2, \ldots, n$, be nonnegative real numbers, and let $p, q$ be positive real numbers such that $1 / p+1 / q=1$. Then $$ \sum_{i=1}^{n} a_{i} b_{i} \leq\left(\sum_{i=1}^{n} a_{i}^{p}\right)^{1 / p}\left(\sum_{i=1}^{n} b_{i}^{q}\right)^{1 / q} $$ Equality occurs if and only if there exists $c \in \mathbb{R}$ such that $b_{i}=c a_{i}$ for $i=1, \ldots, n$. The Cauchy-Schwarz inequality is a special case of Hölder's inequality for $p=q=2$. Theorem 2.20 (Minkowski's inequality). Let $a_{i}, b_{i}(i=1,2, \ldots, n)$ be nonnegative real numbers and $p$ any real number not smaller than 1. Then $$ \left(\sum_{i=1}^{n}\left(a_{i}+b_{i}\right)^{p}\right)^{1 / p} \leq\left(\sum_{i=1}^{n} a_{i}^{p}\right)^{1 / p}+\left(\sum_{i=1}^{n} b_{i}^{p}\right)^{1 / p} $$ For $p>1$ equality occurs if and only if there exists $c \in \mathbb{R}$ such that $b_{i}=c a_{i}$ for $i=1, \ldots, n$. For $p=1$ equality occurs in all cases. Theorem 2.21 (Chebyshev's inequality). Let $a_{1} \geq a_{2} \geq \cdots \geq a_{n}$ and $b_{1} \geq b_{2} \geq \cdots \geq b_{n}$ be real numbers. Then $$ n \sum_{i=1}^{n} a_{i} b_{i} \geq\left(\sum_{i=1}^{n} a_{i}\right)\left(\sum_{i=1}^{n} b_{i}\right) \geq n \sum_{i=1}^{n} a_{i} b_{n+1-i} $$ The two inequalities become equalities at the same time when $a_{1}=a_{2}=\cdots=$ $a_{n}$ or $b_{1}=b_{2}=\cdots=b_{n}$. Definition 2.22. A real function $f$ defined on an interval $I$ is convex if $f(\alpha x+$ $\beta y) \leq \alpha f(x)+\beta f(y)$. for all $x, y \in I$ and all $\alpha, \beta>0$ such that $\alpha+\beta=1$. A function $f$ is said to be concave if the opposite inequality holds, i.e., if $-f$ is convex. Theorem 2.23. If $f$ is continuous on an interval $I$, then $f$ is convex on that interval if and only if $$ f\left(\frac{x+y}{2}\right) \leq \frac{f(x)+f(y)}{2} \quad \text { for all } x, y \in I $$ Theorem 2.24. If $f$ is differentiable, then it is convex if and only if the derivative $f^{\prime}$ is nondecreasing. Similarly, differentiable function $f$ is concave if and only if $f^{\prime}$ is nonincreasing. Theorem 2.25 (Jensen's inequality). If $f: I \rightarrow \mathbb{R}$ is a convex function, then the inequality $$ f\left(\alpha_{1} x_{1}+\cdots+\alpha_{n} x_{n}\right) \leq \alpha_{1} f\left(x_{1}\right)+\cdots+\alpha_{n} f\left(x_{n}\right) $$ holds for all $\alpha_{i} \geq 0, \alpha_{1}+\cdots+\alpha_{n}=1$, and $x_{i} \in I$. For a concave function the opposite inequality holds. Theorem 2.26 (Muirhead's inequality). Given $x_{1}, x_{2}, \ldots, x_{n} \in \mathbb{R}^{+}$and an $n$-tuple $\mathbf{a}=\left(a_{1}, \cdots, a_{n}\right)$ of positive real numbers, we define $$ T_{\mathbf{a}}\left(x_{1}, \ldots, x_{n}\right)=\sum y_{1}^{a_{1}} \ldots y_{n}^{a_{n}} $$ the sum being taken over all permutations $y_{1}, \ldots, y_{n}$ of $x_{1}, \ldots, x_{n}$. We say that an $n$-tuple $\mathbf{a}$ majorizes an $n$-tuple $\mathbf{b}$ if $a_{1}+\cdots+a_{n}=b_{1}+\cdots+b_{n}$ and $a_{1}+\cdots+a_{k} \geq b_{1}+\cdots+b_{k}$ for each $k=1, \ldots, n-1$. If a nonincreasing $n$-tuple $\mathbf{a}$ majorizes a nonincreasing $n$-tuple $\mathbf{b}$, then the following inequality holds: $$ T_{\mathbf{a}}\left(x_{1}, \ldots, x_{n}\right) \geq T_{\mathbf{b}}\left(x_{1}, \ldots, x_{n}\right) $$ Equality occurs if and only if $x_{1}=x_{2}=\cdots=x_{n}$. Theorem 2.27 (Schur's inequality). Using the notation introduced for Muirhead's inequality, $$ T_{\lambda+2 \mu, 0,0}\left(x_{1}, x_{2}, x_{3}\right)+T_{\lambda, \mu, \mu}\left(x_{1}, x_{2}, x_{3}\right) \geq 2 T_{\lambda+\mu, \mu, 0}\left(x_{1}, x_{2}, x_{3}\right) $$ where $\lambda, \mu \in \mathbb{R}^{+}$. Equality occurs if and only if $x_{1}=x_{2}=x_{3}$ or $x_{1}=x_{2}$, $x_{3}=0$ (and in analogous cases). ### 2.1.4 Groups and Fields Definition 2.28. A group is a nonempty set $G$ equipped with an operation * satisfying the following conditions: (i) $a *(b * c)=(a * b) * c$ for all $a, b, c \in G$. (ii) There exists a (unique) additive identity $e \in G$ such that $e * a=a * e=a$ for all $a \in G$. (iii) For each $a \in G$ there exists a (unique) additive inverse $a^{-1}=b \in G$ such that $a * b=b * a=e$. If $n \in \mathbb{Z}$, we define $a^{n}$ as $a * a * \cdots * a$ ( $n$ times) if $n \geq 0$, and as $\left(a^{-1}\right)^{-n}$ otherwise. Definition 2.29. A group $\mathcal{G}=(G, *)$ is commutative or abelian if $a * b=b * a$ for all $a, b \in G$. Definition 2.30. A set $A$ generates a group $(G, *)$ if every element of $G$ can be obtained using powers of the elements of $A$ and the operation $*$. In other words, if $A$ is the generator of a group $G$ then every element $g \in G$ can be written as $a_{1}^{i_{1}} * \cdots * a_{n}^{i_{n}}$, where $a_{j} \in A$ and $i_{j} \in \mathbb{Z}$ for every $j=1,2, \ldots, n$. Definition 2.31. The order of $a \in G$ is the smallest $n \in \mathbb{N}$ such that $a^{n}=e$, if it exists. The order of a group is the number of its elements, if it is finite. Each element of a finite group has a finite order. Theorem 2.32 (Lagrange's theorem). In a finite group, the order of an element divides the order of the group. Definition 2.33. A ring is a nonempty set $R$ equipped with two operations + and $\cdot$ such that $(R,+)$ is an abelian group and for any $a, b, c \in R$, (i) $(a \cdot b) \cdot c=a \cdot(b \cdot c)$; (ii) $(a+b) \cdot c=a \cdot c+b \cdot c$ and $c \cdot(a+b)=c \cdot a+c \cdot b$. A ring is commutative if $a \cdot b=b \cdot a$ for any $a, b \in R$ and with identity if there exists a multiplicative identity $i \in R$ such that $i \cdot a=a \cdot i=a$ for all $a \in R$. Definition 2.34. A field is a commutative ring with identity in which every element $a$ other than the additive identity has a multiplicative inverse $a^{-1}$ such that $a \cdot a^{-1}=a^{-1} \cdot a=i$. Theorem 2.35. The following are common examples of groups, rings, and fields: Groups: $\left(\mathbb{Z}_{n},+\right),\left(\mathbb{Z}_{p} \backslash\{0\}, \cdot\right),(\mathbb{Q},+),(\mathbb{R},+),(\mathbb{R} \backslash\{0\}, \cdot)$. Rings: $\left(\mathbb{Z}_{n},+, \cdot\right),(\mathbb{Z},+, \cdot),(\mathbb{Z}[x],+, \cdot),(\mathbb{R}[x],+, \cdot)$. Fields: $\left(\mathbb{Z}_{p},+, \cdot\right),(\mathbb{Q},+, \cdot),(\mathbb{Q}(\sqrt{2}),+, \cdot),(\mathbb{R},+, \cdot),(\mathbb{C},+, \cdot)$. ### 2.2 Analysis Definition 2.36. A sequence $\left\{a_{n}\right\}_{n=1}^{\infty}$ has a limit $a=\lim _{n \rightarrow \infty} a_{n}$ (also denoted by $a_{n} \rightarrow a$ ) if $$ (\forall \varepsilon>0)\left(\exists n_{\varepsilon} \in \mathbb{N}\right)\left(\forall n \geq n_{\varepsilon}\right)\left|a_{n}-a\right|<\varepsilon $$ A function $f:(a, b) \rightarrow \mathbb{R}$ has a limit $y=\lim _{x \rightarrow c} f(x)$ if $$ (\forall \varepsilon>0)(\exists \delta>0)(\forall x \in(a, b)) 0<|x-c|<\delta \Rightarrow|f(x)-y|<\varepsilon $$ Definition 2.37. A sequence $x_{n}$ converges to $x \in \mathbb{R}$ if $\lim _{n \rightarrow \infty} x_{n}=x$. A series $\sum_{n=1}^{\infty} x_{n}$ converges to $s \in \mathbb{R}$ if and only if $\lim _{m \rightarrow \infty} \sum_{n=1}^{m} x_{n}=s$. A sequence or series that does not converge is said to diverge. Theorem 2.38. $A$ sequence $a_{n}$ is convergent if it is monotonic and bounded. Definition 2.39. A function $f$ is continuous on $[a, b]$ if for every $x_{0} \in[a, b]$, $\lim _{x \rightarrow x_{0}} f(x)=f\left(x_{0}\right)$. Definition 2.40. A function $f:(a, b) \rightarrow \mathbb{R}$ is differentiable at a point $x_{0} \in$ $(a, b)$ if the following limit exists: $$ f^{\prime}\left(x_{0}\right)=\lim _{x \rightarrow x_{0}} \frac{f(x)-f\left(x_{0}\right)}{x-x_{0}} $$ A function is differentiable on $(a, b)$ if it is differentiable at every $x_{0} \in(a, b)$. The function $f^{\prime}$ is called the derivative of $f$. We similarly define the second derivative $f^{\prime \prime}$ as the derivative of $f^{\prime}$, and so on. Theorem 2.41. A differentiable function is also continuous. If $f$ and $g$ are differentiable, then $f g, \alpha f+\beta g\left(\alpha, \beta \in \mathbb{R}\right.$ ), $f \circ g, 1 / f$ (if $f \neq 0$ ), $f^{-1}$ (if welldefined) are also differentiable. It holds that $(\alpha f+\beta g)^{\prime}=\alpha f^{\prime}+\beta g^{\prime},(f g)^{\prime}=$ $f^{\prime} g+f g^{\prime},(f \circ g)^{\prime}=\left(f^{\prime} \circ g\right) \cdot g^{\prime},(1 / f)^{\prime}=-f^{\prime} / f^{2},(f / g)^{\prime}=\left(f^{\prime} g-f g^{\prime}\right) / g^{2}$, $\left(f^{-1}\right)^{\prime}=1 /\left(f^{\prime} \circ f^{-1}\right)$. Theorem 2.42. The following are derivatives of some elementary functions (a denotes a real constant): $\left(x^{a}\right)^{\prime}=a x^{a-1},(\ln x)^{\prime}=1 / x,\left(a^{x}\right)^{\prime}=a^{x} \ln a$, $(\sin x)^{\prime}=\cos x,(\cos x)^{\prime}=-\sin x$. Theorem 2.43 (Fermat's theorem). Let $f:[a, b] \rightarrow \mathbb{R}$ be a differentiable function. The function $f$ attains its maximum and minimum in this interval. If $x_{0} \in(a, b)$ is an extremum (i.e., a maximum or minimum), then $f^{\prime}\left(x_{0}\right)=0$. Theorem 2.44 (Rolle's theorem). Let $f(x)$ be a continuously differentiable function defined on $[a, b]$, where $a, b \in \mathbb{R}, a0$. Definition 2.68. The mass center (barycenter) of the set of mass points $\left(A_{i}, m_{i}\right), i=1,2, \ldots, n$, is the point $T$ such that $\sum_{i} m_{i} \overrightarrow{T A_{i}}=0$. Theorem 2.69 (Leibniz's theorem). Let $T$ be the mass center of the set of mass points $\left\{\left(A_{i}, m_{i}\right) \mid i=1,2, \ldots, n\right\}$ of total mass $m=m_{1}+\cdots+m_{n}$, and let $X$ be an arbitrary point. Then $$ \sum_{i=1}^{n} m_{i} X A_{i}^{2}=\sum_{i=1}^{n} m_{i} T A_{i}^{2}+m X T^{2} $$ Specifically, if $T$ is the centroid of $\triangle A B C$ and $X$ an arbitrary point, then $$ A X^{2}+B X^{2}+C X^{2}=A T^{2}+B T^{2}+C T^{2}+3 X T^{2} $$ ### 2.3.4 Quadrilaterals Theorem 2.70. $A$ quadrilateral $A B C D$ is cyclic (i.e., there exists a circumcircle of $A B C D$ ) if and only if $\angle A C B=\angle A D B$ and if and only if $\angle A D C+\angle A B C=180^{\circ}$. Theorem 2.71 (Ptolemy's theorem). A convex quadrilateral $A B C D$ is cyclic if and only if $$ A C \cdot B D=A B \cdot C D+A D \cdot B C $$ For an arbitrary quadrilateral $A B C D$ we have Ptolemy's inequality (see 2.3.7, Geometric Inequalities). Theorem 2.72 (Casey's theorem). Let $k_{1}, k_{2}, k_{3}, k_{4}$ be four circles that all touch a given circle $k$. Let $t_{i j}$ be the length of a segment determined by an external common tangent of circles $k_{i}$ and $k_{j}(i, j \in\{1,2,3,4\})$ if both $k_{i}$ and $k_{j}$ touch $k$ internally, or both touch $k$ externally. Otherwise, $t_{i j}$ is set to be the internal common tangent. Then one of the products $t_{12} t_{34}, t_{13} t_{24}$, and $t_{14} t_{23}$ is the sum of the other two. Some of the circles $k_{1}, k_{2}, k_{3}, k_{4}$ may be degenerate, i.e. of 0 radius and thus reduced to being points. In particular, for three points $A, B, C$ on a circle $k$ and a circle $k^{\prime}$ touching $k$ at a point on the arc of $A C$ not containing $B$, we have $A C \cdot b=A B \cdot c+a \cdot B C$, where $a, b$, and $c$ are the lengths of the tangent segments from points $A, B$, and $C$ to $k^{\prime}$. Ptolemy's theorem is a special case of Casey's theorem when all four circles are degenerate. Theorem 2.73. $A$ convex quadrilateral $A B C D$ is tangent (i.e., there exists an incircle of $A B C D$ ) if and only if $$ A B+C D=B C+D A $$ Theorem 2.74. For arbitrary points $A, B, C, D$ in space, $A C \perp B D$ if and only if $$ A B^{2}+C D^{2}=B C^{2}+D A^{2} $$ Theorem 2.75 (Newton's theorem). Let $A B C D$ be a quadrilateral, $A D \cap$ $B C=E$, and $A B \cap D C=F$ (such points $A, B, C, D, E, F$ form a complete quadrilateral). Then the midpoints of $A C, B D$, and $E F$ are collinear. If $A B C D$ is tangent, then the incenter also lies on this line. Theorem 2.76 (Brocard's theorem). Let $A B C D$ be a quadrilateral inscribed in a circle with center $O$, and let $P=A B \cap C D, Q=A D \cap B C$, $R=A C \cap B D$. Then $O$ is the orthocenter of $\triangle P Q R$. ### 2.3.5 Circle Geometry Theorem 2.77 (Pascal's theorem). If $A_{1}, A_{2}, A_{3}, B_{1}, B_{2}, B_{3}$ are distinct points on a conic $\gamma$ (e.g., circle), then points $X_{1}=A_{2} B_{3} \cap A_{3} B_{2}, X_{2}=$ $A_{1} B_{3} \cap A_{3} B_{1}$, and $X_{3}=A_{1} B_{2} \cap A_{2} B_{1}$ are collinear. The special result when $\gamma$ consists of two lines is called Pappus's theorem. Theorem 2.78 (Brianchon's theorem). Let $A B C D E F$ be an arbitrary convex hexagon circumscribed about a conic (e.g., circle). Then $A D, B E$ and CF meet in a point. Theorem 2.79 (The butterfy theorem). Let $A B$ be a segment of circle $k$ and $C$ its midpoint. Let $p$ and $q$ be two different lines through $C$ that, respectively, intersect $k$ on one side of $A B$ in $P$ and $Q$ and on the other in $P^{\prime}$ and $Q^{\prime}$. Let $E$ and $F$ respectively be the intersections of $P Q^{\prime}$ and $P^{\prime} Q$ with $A B$. Then it follows that $C E=C F$. Definition 2.80. The power of a point $X$ with respect to a circle $k(O, r)$ is defined by $\mathcal{P}(X)=O X^{2}-r^{2}$. For an arbitrary line $l$ through $X$ that intersects $k$ at $A$ and $B(A=B$ when $l$ is a tangent), it follows that $\mathcal{P}(X)=\overrightarrow{X A} \cdot \overrightarrow{X B}$. Definition 2.81. The radical axis of two circles is the locus of points that have equal powers with respect to both circles. The radical axis of circles $k_{1}\left(O_{1}, r_{1}\right)$ and $k_{2}\left(O_{2}, r_{2}\right)$ is a line perpendicular to $O_{1} O_{2}$. The radical axes of three distinct circles are concurrent or mutually parallel. If concurrent, the intersection of the three axes is called the radical center. Definition 2.82. The pole of a line $l \not \ni O$ with respect to a circle $k(O, r)$ is a point $A$ on the other side of $l$ from $O$ such that $O A \perp l$ and $d(O, l) \cdot O A=r^{2}$. In particular, if $l$ intersects $k$ in two points, its pole will be the intersection of the tangents to $k$ at these two points. Definition 2.83. The polar of the point $A$ from the previous definition is the line $l$. In particular, if $A$ is a point outside $k$ and $A M, A N$ are tangents to $k$ $(M, N \in k)$, then $M N$ is the polar of $A$. Poles and polares are generally defined in a similar way with respect to arbitrary non-degenerate conics. Theorem 2.84. If $A$ belongs to a polar of $B$, then $B$ belongs to a polar of $A$. ### 2.3.6 Inversion Definition 2.85. An inversion of the plane $\pi$ around the circle $k(O, r)$ (which belongs to $\pi$ ), is a transformation of the set $\pi \backslash\{O\}$ onto itself such that every point $P$ is transformed into a point $P^{\prime}$ on $\left(O P\right.$ such that $O P \cdot O P^{\prime}=r^{2}$. In the following statements we implicitly assume exclusion of $O$. Theorem 2.86. The fixed points of the inversion are on the circle $k$. The inside of $k$ is transformed into the outside and vice versa. Theorem 2.87. If $A, B$ transform into $A^{\prime}, B^{\prime}$ after an inversion, then $\angle O A B$ $=\angle O B^{\prime} A^{\prime}$, and also $A B B^{\prime} A^{\prime}$ is cyclic and perpendicular to $k$. $A$ circle perpendicular to $k$ transforms into itself. Inversion preserves angles between continuous curves (which includes lines and circles). Theorem 2.88. An inversion transforms lines not containing $O$ into circles containing $O$, lines containing $O$ into themselves, circles not containing $O$ into circles not containing $O$, circles containing $O$ into lines not containing $O$ 。 ### 2.3.7 Geometric Inequalities Theorem 2.89 (The triangle inequality). For any three points $A, B, C$ in a plane $A B+B C \geq A C$. Equality occurs when $A, B, C$ are collinear and $\mathcal{B}(A, B, C)$. Theorem 2.90 (Ptolemy's inequality). For any four points $A, B, C, D$, $$ A C \cdot B D \leq A B \cdot C D+A D \cdot B C $$ Theorem 2.91 (The parallelogram inequality). For any four points $A$, $B, C, D$, $$ A B^{2}+B C^{2}+C D^{2}+D A^{2} \geq A C^{2}+B D^{2} $$ Equality occurs if and only if $A B C D$ is a parallelogram. Theorem 2.92. For a given triangle $\triangle A B C$ the point $X$ for which $A X+$ $B X+C X$ is minimal is Toricelli's point when all angles of $\triangle A B C$ are less than or equal to $120^{\circ}$, and is the vertex of the obtuse angle otherwise. The point $X_{2}$ for which $A X_{2}^{2}+B X_{2}^{2}+C X_{2}^{2}$ is minimal is the centroid (see Leibniz's theorem). Theorem 2.93 (The Erdös-Mordell inequality). Let $P$ be a point in the interior of $\triangle A B C$ and $X, Y, Z$ projections of $P$ onto $B C, A C, A B$, respectively. Then $$ P A+P B+P C \geq 2(P X+P Y+P Z) $$ Equality holds if and only if $\triangle A B C$ is equilateral and $P$ is its center. ### 2.3.8 Trigonometry Definition 2.94. The trigonometric circle is the unit circle centered at the origin $O$ of a coordinate plane. Let $A$ be the point $(1,0)$ and $P(x, y)$ be a point on the trigonometric circle such that $\measuredangle A O P=\alpha$. We define $\sin \alpha=y$, $\cos \alpha=x, \tan \alpha=y / x$, and $\cot \alpha=x / y$. Theorem 2.95. The functions $\sin$ and cos are periodic with period $2 \pi$. The functions $\tan$ and cot are periodic with period $\pi$. The following simple identities hold: $\sin ^{2} x+\cos ^{2} x=1, \sin 0=\sin \pi=0, \sin (-x)=-\sin x, \cos (-x)=$ $\cos x, \sin (\pi / 2)=1, \sin (\pi / 4)=1 / \sqrt{2}, \sin (\pi / 6)=1 / 2, \cos x=\sin (\pi / 2-x)$. From these identities other identities can be easily derived. Theorem 2.96. Additive formulas for trigonometric functions: $$ \begin{array}{ll} \sin (\alpha \pm \beta)=\sin \alpha \cos \beta \pm \cos \alpha \sin \beta, & \cos (\alpha \pm \beta)=\cos \alpha \cos \beta \mp \sin \alpha \sin \beta, \\ \tan (\alpha \pm \beta)=\frac{\tan \alpha \pm \tan \beta}{1 \mp \tan \alpha \tan \beta}, & \cot (\alpha \pm \beta)=\frac{\cot \alpha \cot \beta \mp 1}{\cot \alpha \pm \cot \beta} . \end{array} $$ Theorem 2.97. Formulas for trigonometric functions of $2 x$ and $3 x$ : $$ \begin{aligned} \sin 2 x & =2 \sin x \cos x, & & \sin 3 x=3 \sin x-4 \sin ^{3} x, \\ \cos 2 x & =2 \cos ^{2} x-1, & & \cos 3 x=4 \cos ^{3} x-3 \cos x, \\ \tan 2 x & =\frac{2 \tan x}{1-\tan ^{2} x}, & & \tan 3 x=\frac{3 \tan x-\tan ^{3} x}{1-3 \tan ^{2} x} . \end{aligned} $$ Theorem 2.98. For any $x \in \mathbb{R}, \sin x=\frac{2 t}{1+t^{2}}$ and $\cos x=\frac{1-t^{2}}{1+t^{2}}$, where $t=$ $\tan \frac{x}{2}$. Theorem 2.99. Transformations from product to sum: $$ \begin{aligned} & 2 \cos \alpha \cos \beta=\cos (\alpha+\beta)+\cos (\alpha-\beta) \\ & 2 \sin \alpha \cos \beta=\sin (\alpha+\beta)+\sin (\alpha-\beta) \\ & 2 \sin \alpha \sin \beta=\cos (\alpha-\beta)-\cos (\alpha+\beta) \end{aligned} $$ Theorem 2.100. The angles $\alpha, \beta, \gamma$ of a triangle satisfy $$ \begin{aligned} \cos ^{2} \alpha+\cos ^{2} \beta+\cos ^{2} \gamma+2 \cos \alpha \cos \beta \cos \gamma & =1 \\ \tan \alpha+\tan \beta+\tan \gamma & =\tan \alpha \tan \beta \tan \gamma \end{aligned} $$ Theorem 2.101 (De Moivre's formula). If $i^{2}=-1$, then $$ (\cos x+i \sin x)^{n}=\cos n x+i \sin n x $$ ### 2.3.9 Formulas in Geometry Theorem 2.102 (Heron's formula). The area of a triangle $A B C$ with sides $a, b, c$ and semiperimeter $s$ is given by $$ S=\sqrt{s(s-a)(s-b)(s-c)}=\frac{1}{4} \sqrt{2 a^{2} b^{2}+2 a^{2} c^{2}+2 b^{2} c^{2}-a^{4}-b^{4}-c^{4}} . $$ Theorem 2.103 (The law of sines). The sides $a, b, c$ and angles $\alpha, \beta, \gamma$ of a triangle $A B C$ satisfy $$ \frac{a}{\sin \alpha}=\frac{b}{\sin \beta}=\frac{c}{\sin \gamma}=2 R $$ where $R$ is the circumradius of $\triangle A B C$. Theorem 2.104 (The law of cosines). The sides and angles of $\triangle A B C$ satisfy $$ c^{2}=a^{2}+b^{2}-2 a b \cos \gamma $$ Theorem 2.105. The circumradius $R$ and inradius $r$ of a triangle $A B C$ satisfy $R=\frac{a b c}{4 S}$ and $r=\frac{2 S}{a+b+c}=R(\cos \alpha+\cos \beta+\cos \gamma-1)$. If $x, y, z d e-$ note the distances of the circumcenter in an acute triangle to the sides, then $x+y+z=R+r$. Theorem 2.106 (Euler's formula). If $O$ and $I$ are the circumcenter and incenter of $\triangle A B C$, then $O I^{2}=R(R-2 r)$, where $R$ and $r$ are respectively the circumradius and the inradius of $\triangle A B C$. Consequently, $R \geq 2 r$. Theorem 2.107. The area $S$ of a quadrilateral $A B C D$ with sides $a, b, c, d$, semiperimeter $p$, and angles $\alpha, \gamma$ at vertices $A, C$ respectively is given by $$ S=\sqrt{(p-a)(p-b)(p-c)(p-d)-a b c d \cos ^{2} \frac{\alpha+\gamma}{2}} . $$ If $A B C D$ is a cyclic quadrilateral, the above formula reduces to $$ S=\sqrt{(p-a)(p-b)(p-c)(p-d)} $$ Theorem 2.108 (Euler's theorem for pedal triangles). Let $X, Y, Z$ be the feet of the perpendiculars from a point $P$ to the sides of a triangle $A B C$. Let $O$ denote the circumcenter and $R$ the circumradius of $\triangle A B C$. Then $$ S_{X Y Z}=\frac{1}{4}\left|1-\frac{O P^{2}}{R^{2}}\right| S_{A B C} . $$ Moreover, $S_{X Y Z}=0$ if and only if $P$ lies on the circumcircle of $\triangle A B C$ (see Simson's line). Theorem 2.109. If overrightarrowa $=\left(a_{1}, a_{2}, a_{3}\right), \vec{b}=\left(b_{1}, b_{2}, b_{3}\right), \vec{c}=\left(c_{1}, c_{2}, c_{3}\right)$ are three vectors in coordinate space, then $$ \begin{gathered} \vec{a} \cdot \vec{b}=a_{1} b_{1}+a_{2} b_{2}+a_{3} b_{3}, \quad \vec{a} \times \vec{b}=\left(a_{1} b_{2}-a_{2} b_{1}, a_{2} b_{3}-a_{3} b_{2}, a_{3} b_{1}-a_{1} b_{3}\right), \\ {[\vec{a}, \vec{b}, \vec{c}]=\left\|\begin{array}{lll} a_{1} & a_{2} & a_{3} \\ b_{1} & b_{2} & b_{3} \\ c_{1} & c_{2} & c_{3} \end{array}\right\|} \end{gathered} . $$ Theorem 2.110. The area of a triangle $A B C$ and the volume of a tetrahedron $A B C D$ are equal to $|\overrightarrow{A B} \times \overrightarrow{A C}|$ and $|[\overrightarrow{A B}, \overrightarrow{A C}, \overrightarrow{A D}]|$, respectively. Theorem 2.111 (Cavalieri's principle). If the sections of two solids by the same plane always have equal area, then the volumes of the two solids are equal. ### 2.4 Number Theory ### 2.4.1 Divisibility and Congruences Definition 2.112. The greatest common divisor $(a, b)=\operatorname{gcd}(a, b)$ of $a, b \in \mathbb{N}$ is the largest positive integer that divides both $a$ and $b$. Positive integers $a$ and $b$ are coprime or relatively prime if $(a, b)=1$. The least common multiple $[a, b]=\operatorname{lcm}(a, b)$ of $a, b \in \mathbb{N}$ is the smallest positive integer that is divisible by both $a$ and $b$. It holds that $[a, b](a, b)=a b$. The above concepts are easily generalized to more than two numbers; i.e., we also define $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$ and $\left[a_{1}, a_{2}, \ldots, a_{n}\right]$. Theorem 2.113 (Euclid's algorithm). Since $(a, b)=(|a-b|, a)=(\mid a-$ $b \mid, b)$ it follows that starting from positive integers $a$ and $b$ one eventually obtains $(a, b)$ by repeatedly replacing $a$ and $b$ with $|a-b|$ and $\min \{a, b\}$ until the two numbers are equal. The algorithm can be generalized to more than two numbers. Theorem 2.114 (Corollary to Euclid's algorithm). For each $a, b \in \mathbb{N}$ there exist $x, y \in \mathbb{Z}$ such that $a x+b y=(a, b)$. The number $(a, b)$ is the smallest positive number for which such $x$ and $y$ can be found. Theorem 2.115 (Second corollary to Euclid's algorithm). For a, m, $n \in$ $\mathbb{N}$ and $a>1$ it follows that $\left(a^{m}-1, a^{n}-1\right)=a^{(m, n)}-1$. Theorem 2.116 (Fundamental theorem of arithmetic). Every positive integer can be uniquely represented as a product of primes, up to their order. Theorem 2.117. The fundamental theorem of arithmetic also holds in some other rings, such as $\mathbb{Z}[i]=\{a+b i \mid a, b \in \mathbb{Z}\}, \mathbb{Z}[\sqrt{2}], \mathbb{Z}[\sqrt{-2}]$, $\mathbb{Z}[\omega]$ (where $\omega$ is a complex third root of 1). In these cases, the factorization into primes is unique up to the order and divisors of 1. Definition 2.118. Integers $a, b$ are congruent modulo $n \in \mathbb{N}$ if $n \mid a-b$. We then write $a \equiv b(\bmod n)$. Theorem 2.119 (Chinese remainder theorem). If $m_{1}, m_{2}, \ldots, m_{k}$ are positive integers pairwise relatively prime and $a_{1}, \ldots, a_{k}, c_{1}, \ldots, c_{k}$ are integers such that $\left(a_{i}, m_{i}\right)=1(i=1, \ldots, n)$, then the system of congruences $$ a_{i} x \equiv c_{i}\left(\bmod m_{i}\right), \quad i=1,2, \ldots, n $$ has a unique solution modulo $m_{1} m_{2} \cdots m_{k}$. ### 2.4.2 Exponential Congruences Theorem 2.120 (Wilson's theorem). If $p$ is a prime, then $p \mid(p-1)!+1$. Theorem 2.121 (Fermat's (little) theorem). Let $p$ be a prime number and $a$ be an integer with $(a, p)=1$. Then $a^{p-1} \equiv 1(\bmod p)$. This theorem is a special case of Euler's theorem. Definition 2.122. Euler's function $\varphi(n)$ is defined for $n \in \mathbb{N}$ as the number of positive integers less than $n$ and coprime to $n$. It holds that $$ \varphi(n)=n\left(1-\frac{1}{p_{1}}\right) \cdots\left(1-\frac{1}{p_{k}}\right) $$ where $n=p_{1}^{\alpha_{1}} \cdots p_{k}^{\alpha_{k}}$ is the factorization of $n$ into primes. Theorem 2.123 (Euler's theorem). Let $n$ be a natural number and a be an integer with $(a, n)=1$. Then $a^{\varphi(n)} \equiv 1(\bmod n)$. Theorem 2.124 (Existence of primitive roots). Let $p$ be a prime. There exists $g \in\{1,2, \ldots, p-1\}$ (called a primitive root modulo $p$ ) such that the set $\left\{1, g, g^{2}, \ldots, g^{p-2}\right\}$ is equal to $\{1,2, \ldots, p-1\}$ modulo $p$. Definition 2.125. Let $p$ be a prime and $\alpha$ be a nonnegative integer. We say that $p^{\alpha}$ is the exact power of $p$ that divides an integer $a$ (and $\alpha$ the exact exponent) if $p^{\alpha} \mid a$ and $p^{\alpha+1} \nmid a$. Theorem 2.126. Let $a, n$ be positive integers and $p$ be an odd prime. If $p^{\alpha}$ $(\alpha \in \mathbb{N}$ ) is the exact power of $p$ that divides $a-1$, then for any integer $\beta \geq 0$, $p^{\alpha+\beta} \mid a^{n}-1$ if and only if $p^{\beta} \mid n$. (See (SL97-14).) A similar statement holds for $p=2$. If $2^{\alpha}(\alpha \in \mathbb{N})$ is the exact power of 2 that divides $a^{2}-1$, then for any integer $\beta \geq 0,2^{\alpha+\beta} \mid a^{n}-1$ if and only if $2^{\beta+1} \mid n$. (See (SL89-27).) ### 2.4.3 Quadratic Diophantine Equations Theorem 2.127. The solutions of $a^{2}+b^{2}=c^{2}$ in integers are given by $a=$ $t\left(m^{2}-n^{2}\right), b=2 t m n, c=t\left(m^{2}+n^{2}\right)$ (provided that $b$ is even), where $t, m, n \in$ $\mathbb{Z}$. The triples $(a, b, c)$ are called Pythagorean (or primitive Pythagorean if $\operatorname{gcd}(a, b, c)=1)$. Definition 2.128. Given $D \in \mathbb{N}$ that is not a perfect square, a Pell's equation is an equation of the form $x^{2}-D y^{2}=1$, where $x, y \in \mathbb{Z}$. Theorem 2.129. If $\left(x_{0}, y_{0}\right)$ is the least (nontrivial) solution in $\mathbb{N}$ of the Pell's equation $x^{2}-D y^{2}=1$, then all the integer solutions $(x, y)$ are given by $x+y \sqrt{D}= \pm\left(x_{0}+y_{0} \sqrt{D}\right)^{n}$, where $n \in \mathbb{Z}$. Definition 2.130. An integer $a$ is a quadratic residue modulo a prime $p$ if there exists $x \in \mathbb{Z}$ such that $x^{2} \equiv a(\bmod p)$. Otherwise, $a$ is a quadratic nonresidue modulo $p$. Definition 2.131. Legendre's symbol for an integer $a$ and a prime $p$ is defined by $$ \left(\frac{a}{p}\right)= \begin{cases}1 & \text { if } a \text { is a quadratic residue } \bmod p \text { and } p \nmid a ; \\ 0 & \text { if } p \mid a ; \\ -1 & \text { otherwise. }\end{cases} $$ Clearly $\left(\frac{a}{p}\right)=\left(\frac{a+p}{p}\right)$ and $\left(\frac{a^{2}}{p}\right)=1$ if $p \nmid a$. Legendre's symbol is multiplicative, i.e., $\left(\frac{a}{p}\right)\left(\frac{b}{p}\right)=\left(\frac{a b}{p}\right)$. Theorem 2.132 (Euler's criterion). For each odd prime $p$ and integer a not divisible by $p, a^{\frac{p-1}{2}} \equiv\left(\frac{a}{p}\right)(\bmod p)$. Theorem 2.133. For a prime $p>3,\left(\frac{-1}{p}\right),\left(\frac{2}{p}\right)$ and $\left(\frac{-3}{p}\right)$ are equal to 1 if and only if $p \equiv 1(\bmod 4), p \equiv \pm 1(\bmod 8)$ and $p \equiv 1(\bmod 6)$, respectively. Theorem 2.134 (Gauss's Reciprocity law). For any two distinct odd primes $p$ and $q$, $$ \left(\frac{p}{q}\right)\left(\frac{q}{p}\right)=(-1)^{\frac{p-1}{2} \cdot \frac{q-1}{2}} $$ Definition 2.135. Jacobi's symbol for an integer $a$ and an odd positive integer $b$ is defined as $$ \left(\frac{a}{b}\right)=\left(\frac{a}{p_{1}}\right)^{\alpha_{1}} \cdots\left(\frac{a}{p_{k}}\right)^{\alpha_{k}} $$ where $b=p_{1}^{\alpha_{1}} \cdots p_{k}^{\alpha_{k}}$ is the factorization of $b$ into primes. Theorem 2.136. If $\left(\frac{a}{b}\right)=-1$, then $a$ is a quadratic nonresidue modulo $b$, but the converse is false. All the above identities for Legendre symbols except Euler's criterion remain true for Jacobi symbols. ### 2.4.4 Farey Sequences Definition 2.137. For any positive integer $n$, the Farey sequence $F_{n}$ is the sequence of rational numbers $a / b$ with $0 \leq a \leq b \leq n$ and $(a, b)=1$ arranged in increasing order. For instance, $F_{3}=\left\{\frac{0}{1}, \frac{1}{3}, \frac{1}{2}, \frac{2}{3}, \frac{1}{1}\right\}$. Theorem 2.138. If $p_{1} / q_{1}, p_{2} / q_{2}$, and $p_{3} / q_{3}$ are three successive terms in a Farey sequence, then $$ p_{2} q_{1}-p_{1} q_{2}=1 \quad \text { and } \quad \frac{p_{1}+p_{3}}{q_{1}+q_{3}}=\frac{p_{2}}{q_{2}} $$ ### 2.5 Combinatorics ### 2.5.1 Counting of Objects Many combinatorial problems involving the counting of objects satisfying a given set of properties can be properly reduced to an application of one of the following concepts. Definition 2.139. A variation of order $n$ over $k$ is a 1 to 1 mapping of $\{1,2, \ldots, k\}$ into $\{1,2, \ldots, n\}$. For a given $n$ and $k$, where $n \geq k$, the number of different variations is $V_{n}^{k}=\frac{n!}{(n-k)!}$. Definition 2.140. A variation with repetition of order $n$ over $k$ is an arbitrary mapping of $\{1,2, \ldots, k\}$ into $\{1,2, \ldots, n\}$. For a given $n$ and $k$ the number of different variations with repetition is $\bar{V}_{n}^{k}=k^{n}$. Definition 2.141. A permutation of order $n$ is a bijection of $\{1,2, \ldots, n\}$ into itself (a special case of variation for $k=n$ ). For a given $n$ the number of different permutations is $P_{n}=n$ !. Definition 2.142. A combination of order $n$ over $k$ is a $k$-element subset of $\{1,2, \ldots, n\}$. For a given $n$ and $k$ the number of different combinations is $C_{n}^{k}=\binom{n}{k}$ 。 Definition 2.143. A permutation with repetition of order $n$ is a bijection of $\{1,2, \ldots, n\}$ into a multiset of $n$ elements. A multiset is defined to be a set in which certain elements are deemed mutually indistinguishable (for example, as in $\{1,1,2,3\})$. If $\{1,2 \ldots, s\}$ denotes a set of different elements in the multiset and the element $i$ appears $\alpha_{i}$ times in the multiset, then number of different permutations with repetition is $P_{n, \alpha_{1}, \ldots, \alpha_{s}}=\frac{n!}{\alpha_{1}!\cdot \alpha_{2}!\cdots \alpha_{s}!}$. A combination is a special case of permutation with repetition for a multiset with two different elements. Theorem 2.144 (The pigeonhole principle). If a set of $n k+1$ different elements is partitioned into $n$ mutually disjoint subsets, then at least one subset will contain at least $k+1$ elements. Theorem 2.145 (The inclusion-exclusion principle). Let $S_{1}, S_{2}, \ldots, S_{n}$ be a family of subsets of the set $S$. The number of elements of $S$ contained in none of the subsets is given by the formula $$ \left|S \backslash\left(S_{1} \cup \cdots \cup S_{n}\right)\right|=|S|-\sum_{k=1}^{n} \sum_{1 \leq i_{1}<\cdots Budapest-Veszprem, Hungary, July 6-16, 1961 ### 3.3.1 Contest Problems First Day 1. (HUN) Solve the following system of equations: $$ \begin{aligned} x+y+z & =a, \\ x^{2}+y^{2}+z^{2} & =b^{2}, \\ x y & =z^{2} \end{aligned} $$ where $a$ and $b$ are given real numbers. What conditions must hold on $a$ and $b$ for the solutions to be positive and distinct? 2. (POL) Let $a, b$, and $c$ be the lengths of a triangle whose area is $S$. Prove that $$ a^{2}+b^{2}+c^{2} \geq 4 S \sqrt{3} $$ In what case does equality hold? 3. (BUL) Solve the equation $\cos ^{n} x-\sin ^{n} x=1$, where $n$ is a given positive integer. ## Second Day 4. (GDR) In the interior of $\triangle P_{1} P_{2} P_{3}$ a point $P$ is given. Let $Q_{1}, Q_{2}$, and $Q_{3}$ respectively be the intersections of $P P_{1}, P P_{2}$, and $P P_{3}$ with the opposing edges of $\triangle P_{1} P_{2} P_{3}$. Prove that among the ratios $P P_{1} / P Q_{1}, P P_{2} / P Q_{2}$, and $P P_{3} / P Q_{3}$ there exists at least one not larger than 2 and at least one not smaller than 2. 5. (CZS) Construct a triangle $A B C$ if the following elements are given: $A C=b, A B=c$, and $\measuredangle A M B=\omega\left(\omega<90^{\circ}\right)$, where $M$ is the midpoint of $B C$. Prove that the construction has a solution if and only if $$ b \tan \frac{\omega}{2} \leq c Prague-Hluboka, Czechoslovakia, July 7-15, 1962 ### 3.4.1 Contest Problems First Day 1. (POL) Find the smallest natural number $n$ with the following properties: (a) In decimal representation it ends with 6. (b) If we move this digit to the front of the number, we get a number 4 times larger. 2. (HUN) Find all real numbers $x$ for which $$ \sqrt{3-x}-\sqrt{x+1}>\frac{1}{2} . $$ 3. (CZS) A cube $A B C D A^{\prime} B^{\prime} C^{\prime} D^{\prime}$ is given. The point $X$ is moving at a constant speed along the square $A B C D$ in the direction from $A$ to $B$. The point $Y$ is moving with the same constant speed along the square $B C C^{\prime} B^{\prime}$ in the direction from $B^{\prime}$ to $C^{\prime}$. Initially, $X$ and $Y$ start out from $A$ and $B^{\prime}$ respectively. Find the locus of all the midpoints of $X Y$. Second Day 4. (ROM) Solve the equation $$ \cos ^{2} x+\cos ^{2} 2 x+\cos ^{2} 3 x=1 . $$ 5. (BUL) On the circle $k$ three points $A, B$, and $C$ are given. Construct the fourth point on the circle $D$ such that one can inscribe a circle in $A B C D$. 6. (GDR) Let $A B C$ be an isosceles triangle with circumradius $r$ and inradius $\rho$. Prove that the distance $d$ between the circumcenter and incenter is given by $$ d=\sqrt{r(r-2 \rho)} . $$ 7. (USS) Prove that a tetrahedron $S A B C$ has five different spheres that touch all six lines determined by its edges if and only if it is regular. ### 3.5 The Fifth IMO
Wroclaw, Poland, July 5-13, 1963 ### 3.5.1 Contest Problems First Day 1. (CZS) Determine all real solutions of the equation $\sqrt{x^{2}-p}+2 \sqrt{x^{2}-1}=$ $x$, where $p$ is a real number. 2. (USS) Find the locus of points in space that are vertices of right angles of which one ray passes through a given point and the other intersects a given segment. 3. (HUN) Prove that if all the angles of a convex $n$-gon are equal and the lengths of consecutive edges $a_{1}, \ldots, a_{n}$ satisfy $a_{1} \geq a_{2} \geq \cdots \geq a_{n}$, then $a_{1}=a_{2}=\cdots=a_{n}$. Second Day 4. (USS) Find all solutions $x_{1}, \ldots, x_{5}$ to the system of equations $$ \left\{\begin{array}{l} x_{5}+x_{2}=y x_{1}, \\ x_{1}+x_{3}=y x_{2}, \\ x_{2}+x_{4}=y x_{3}, \\ x_{3}+x_{5}=y x_{4}, \\ x_{4}+x_{1}=y x_{5}, \end{array}\right. $$ where $y$ is a real parameter. 5. (GDR) Prove that $\cos \frac{\pi}{7}-\cos \frac{2 \pi}{7}+\cos \frac{3 \pi}{7}=\frac{1}{2}$. 6. (HUN) Five students $A, B, C, D$, and $E$ have taken part in a certain competition. Before the competition, two persons $X$ and $Y$ tried to guess the rankings. $X$ thought that the ranking would be $A, B, C, D, E$; and $Y$ thought that the ranking would be $D, A, E, C, B$. At the end, it was revealed that $X$ didn't guess correctly any rankings of the participants, and moreover, didn't guess any of the orderings of pairs of consecutive participants. On the other hand, $Y$ guessed the correct rankings of two participants and the correct ordering of two pairs of consecutive participants. Determine the rankings of the competition. ### 3.6 The Sixth IMO
Moscow, Soviet Union, June 30-July 10, 1964 ### 3.6.1 Contest Problems First Day 1. (CZS) (a) Find all natural numbers $n$ such that the number $2^{n}-1$ is divisible by 7 . (b) Prove that for all natural numbers $n$ the number $2^{n}+1$ is not divisible by 7 . 2. (HUN) Denote by $a, b, c$ the lengths of the sides of a triangle. Prove that $$ a^{2}(b+c-a)+b^{2}(c+a-b)+c^{2}(a+b-c) \leq 3 a b c $$ 3. (YUG) The incircle is inscribed in a triangle $A B C$ with sides $a, b, c$. Three tangents to the incircle are drawn, each of which is parallel to one side of the triangle $A B C$. These tangents form three smaller triangles (internal to $\triangle A B C$ ) with the sides of $\triangle A B C$. In each of these triangles an incircle is inscribed. Determine the sum of areas of all four incircles. Second Day 4. (HUN) Each of 17 students talked with every other student. They all talked about three different topics. Each pair of students talked about one topic. Prove that there are three students that talked about the same topic among themselves. 5. (ROM) Five points are given in the plane. Among the lines that connect these five points, no two coincide and no two are parallel or perpendicular. Through each point we construct an altitude to each of the other lines. What is the maximal number of intersection points of these altitudes (excluding the initial five points)? 6. (POL) Given a tetrahedron $A B C D$, let $D_{1}$ be the centroid of the triangle $A B C$ and let $A_{1}, B_{1}, C_{1}$ be the intersection points of the lines parallel to $D D_{1}$ and passing through the points $A, B, C$ with the opposite faces of the tetrahedron. Prove that the volume of the tetrahedron $A B C D$ is onethird the volume of the tetrahedron $A_{1} B_{1} C_{1} D_{1}$. Does the result remain true if the point $D_{1}$ is replaced with any point inside the triangle $A B C$ ? ### 3.7 The Seventh IMO Berlin, DR Germany, July 3-13, 1965 ### 3.7.1 Contest Problems First Day 1. (YUG) Find all real numbers $x \in[0,2 \pi]$ such that $$ 2 \cos x \leq|\sqrt{1+\sin 2 x}-\sqrt{1-\sin 2 x}| \leq \sqrt{2} $$ 2. (POL) Consider the system of equations $$ \left\{\begin{array}{l} a_{11} x_{1}+a_{12} x_{2}+a_{13} x_{3}=0 \\ a_{21} x_{1}+a_{22} x_{2}+a_{23} x_{3}=0 \\ a_{31} x_{1}+a_{32} x_{2}+a_{33} x_{3}=0 \end{array}\right. $$ whose coefficients satisfy the following conditions: (a) $a_{11}, a_{22}, a_{33}$ are positive real numbers; (b) all other coefficients are negative; (c) in each of the equations the sum of the coefficients is positive. Prove that $x_{1}=x_{2}=x_{3}=0$ is the only solution to the system. 3. (CZS) A tetrahedron $A B C D$ is given. The lengths of the edges $A B$ and $C D$ are $a$ and $b$, respectively, the distance between the lines $A B$ and $C D$ is $d$, and the angle between them is equal to $\omega$. The tetrahedron is divided into two parts by the plane $\pi$ parallel to the lines $A B$ and $C D$. Calculate the ratio of the volumes of the parts if the ratio between the distances of the plane $\pi$ from $A B$ and $C D$ is equal to $k$. Second Day 4. (USS) Find four real numbers $x_{1}, x_{2}, x_{3}, x_{4}$ such that the sum of any of the numbers and the product of other three is equal to 2 . 5. (ROM) Given a triangle $O A B$ such that $\angle A O B=\alpha<90^{\circ}$, let $M$ be an arbitrary point of the triangle different from $O$. Denote by $P$ and $Q$ the feet of the perpendiculars from $M$ to $O A$ and $O B$, respectively. Let $H$ be the orthocenter of the triangle $O P Q$. Find the locus of points $H$ when: (a) $M$ belongs to the segment $A B$; (b) $M$ belongs to the interior of $\triangle O A B$. 6. (POL) We are given $n \geq 3$ points in the plane. Let $d$ be the maximal distance between two of the given points. Prove that the number of pairs of points whose distance is equal to $d$ is less than or equal to $n$. ### 3.8 The Eighth IMO
Sofia, Bulgaria, July 3-13, 1966 ### 3.8.1 Contest Problems First Day 1. (USS) Three problems $A, B$, and $C$ were given on a mathematics olympiad. All 25 students solved at least one of these problems. The number of students who solved $B$ and not $A$ is twice the number of students who solved $C$ and not $A$. The number of students who solved only $A$ is greater by 1 than the number of students who along with $A$ solved at least one other problem. Among the students who solved only one problem, half solved $A$. How many students solved only $B$ ? 2. (HUN) If $a, b$, and $c$ are the sides and $\alpha, \beta$, and $\gamma$ the respective angles of the triangle for which $a+b=\tan \frac{\gamma}{2}(a \tan \alpha+b \tan \beta)$, prove that the triangle is isosceles. 3. (BUL) Prove that the sum of distances from the center of the circumsphere of the regular tetrahedron to its four vertices is less than the sum of distances from any other point to the four vertices. Second Day 4. (YUG) Prove the following equality: $$ \frac{1}{\sin 2 x}+\frac{1}{\sin 4 x}+\frac{1}{\sin 8 x}+\cdots+\frac{1}{\sin 2^{n} x}=\cot x-\cot 2^{n} x $$ where $n \in \mathbb{N}$ and $x \notin \pi \mathbb{Z} / 2^{k}$ for every $k \in \mathbb{N}$. 5. (CZS) Solve the following system of equations: $$ \begin{aligned} & \left|a_{1}-a_{2}\right| x_{2}+\left|a_{1}-a_{3}\right| x_{3}+\left|a_{1}-a_{4}\right| x_{4}=1, \\ & \left|a_{2}-a_{1}\right| x_{1}+\left|a_{2}-a_{3}\right| x_{3}+\left|a_{2}-a_{4}\right| x_{4}=1, \\ & \left|a_{3}-a_{1}\right| x_{1}+\left|a_{3}-a_{2}\right| x_{2}+\left|a_{3}-a_{4}\right| x_{4}=1, \\ & \left|a_{4}-a_{1}\right| x_{1}+\left|a_{4}-a_{2}\right| x_{2}+\left|a_{4}-a_{3}\right| x_{3}=1, \end{aligned} $$ where $a_{1}, a_{2}, a_{3}$, and $a_{4}$ are mutually distinct real numbers. 6. (POL) Let $M, K$, and $L$ be points on $(A B),(B C)$, and $(C A)$, respectively. Prove that the area of at least one of the three triangles $\triangle M A L$, $\triangle K B M$, and $\triangle L C K$ is less than or equal to one-fourth the area of $\triangle A B C$. ### 3.8.2 Some Longlisted Problems 1959-1966 1. (CZS) We are given $n>3$ points in the plane, no three of which lie on a line. Does there necessarily exist a circle that passes through at least three of the given points and contains none of the other given points in its interior? 2. (GDR) Given $n$ positive real numbers $a_{1}, a_{2}, \ldots, a_{n}$ such that $a_{1} a_{2} \cdots a_{n}$ $=1$, prove that $$ \left(1+a_{1}\right)\left(1+a_{2}\right) \cdots\left(1+a_{n}\right) \geq 2^{n} . $$ 3. (BUL) A regular triangular prism has height $h$ and a base of side length $a$. Both bases have small holes in the centers, and the inside of the three vertical walls has a mirror surface. Light enters through the small hole in the top base, strikes each vertical wall once and leaves through the hole in the bottom. Find the angle at which the light enters and the length of its path inside the prism. 4. (POL) Five points in the plane are given, no three of which are collinear. Show that some four of them form a convex quadrilateral. 5. (USS) Prove the inequality $$ \tan \frac{\pi \sin x}{4 \sin \alpha}+\tan \frac{\pi \cos x}{4 \cos \alpha}>1 $$ for any $x, \alpha$ with $0 \leq x \leq \pi / 2$ and $\pi / 6\frac{3}{10 n}+\log _{10} n$; (b) $\log n!>\frac{3 n}{10}\left(\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}-1\right)$. 31. (ROM) Solve the equation $\left|x^{2}-1\right|+\left|x^{2}-4\right|=m x$ as a function of the parameter $m$. Which pairs $(x, m)$ of integers satisfy this equation? 32. (BUL) The sides $a, b, c$ of a triangle $A B C$ form an arithmetic progression; the sides of another triangle $A_{1} B_{1} C_{1}$ also form an arithmetic progression. Suppose that $\angle A=\angle A_{1}$. Prove that the triangles $A B C$ and $A_{1} B_{1} C_{1}$ are similar. 33. (BUL) Two circles touch each other from inside, and an equilateral triangle is inscribed in the larger circle. From the vertices of the triangle one draws segments tangent to the smaller circle. Prove that the length of one of these segments equals the sum of the lengths of the other two. 34. (BUL) Determine all pairs of positive integers $(x, y)$ satisfying the equation $2^{x}=3^{y}+5$. 35. (POL) If $a, b, c, d$ are integers such that $a d$ is odd and $b c$ is even, prove that at least one root of the polynomial $a x^{3}+b x^{2}+c x+d$ is irrational. 36. (POL) Let $A B C D$ be a cyclic quadrilateral. Show that the centroids of the triangles $A B C, C D A, B C D, D A B$ lie on a circle. 37. (POL) Prove that the perpendiculars drawn from the midpoints of the sides of a cyclic quadrilateral to the opposite sides meet at one point. 38. (ROM) Two concentric circles have radii $R$ and $r$ respectively. Determine the greatest possible number of circles that are tangent to both these circles and mutually nonintersecting. Prove that this number lies between $\frac{3}{2} \cdot \frac{\sqrt{R}+\sqrt{r}}{\sqrt{R}-\sqrt{r}}-1$ and $\frac{63}{20} \cdot \frac{R+r}{R-r}$. 39. (ROM) In a plane, a circle with center $O$ and radius $R$ and two points $A, B$ are given. (a) Draw a chord $C D$ parallel to $A B$ so that $A C$ and $B D$ intersect at a point $P$ on the circle. (b) Prove that there are two possible positions of point $P$, say $P_{1}, P_{2}$, and find the distance between them if $O A=a, O B=b, A B=d$. 40. (CZS) For a positive real number $p$, find all real solutions to the equation $$ \sqrt{x^{2}+2 p x-p^{2}}-\sqrt{x^{2}-2 p x-p^{2}}=1 $$ 41. (CZS) If $A_{1} A_{2} \ldots A_{n}$ is a regular $n$-gon $(n \geq 3)$, how many different obtuse triangles $A_{i} A_{j} A_{k}$ exist? 42. (CZS) Let $a_{1}, a_{2}, \ldots, a_{n}(n \geq 2)$ be a sequence of integers. Show that there is a subsequence $a_{k_{1}}, a_{k_{2}}, \ldots, a_{k_{m}}$, where $1 \leq k_{1}1$, and the series terminates. Show also that $x$ can be expressed as the sum of reciprocals of different integers, each of which is greater than $10^{6}$. 19. (GBR 6) The $n$ points $P_{1}, P_{2}, \ldots, P_{n}$ are placed inside or on the boundary of a disk of radius 1 in such a way that the minimum distance $d_{n}$ between any two of these points has its largest possible value $D_{n}$. Calculate $D_{n}$ for $n=2$ to 7 and justify your answer. 20. (HUN 1) In space, $n$ points $(n \geq 3)$ are given. Every pair of points determines some distance. Suppose all distances are different. Connect every point with the nearest point. Prove that it is impossible to obtain a polygonal line in such a way. ${ }^{1}$ 21. (HUN 2) Without using any tables, find the exact value of the product $$ P=\cos \frac{\pi}{15} \cos \frac{2 \pi}{15} \cos \frac{3 \pi}{15} \cos \frac{4 \pi}{15} \cos \frac{5 \pi}{15} \cos \frac{6 \pi}{15} \cos \frac{7 \pi}{15} $$ 22. (HUN 3) The distance between the centers of the circles $k_{1}$ and $k_{2}$ with radii $r$ is equal to $r$. Points $A$ and $B$ are on the circle $k_{1}$, symmetric with respect to the line connecting the centers of the circles. Point $P$ is an arbitrary point on $k_{2}$. Prove that $$ P A^{2}+P B^{2} \geq 2 r^{2} $$ When does equality hold? 23. (HUN 4) Prove that for an arbitrary pair of vectors $f$ and $g$ in the plane, the inequality $$ a f^{2}+b f g+c g^{2} \geq 0 $$ holds if and only if the following conditions are fulfilled: $a \geq 0, c \geq 0$, $4 a c \geq b^{2}$. 24. (HUN 5) ${ }^{\text {IMO6 }}$ Father has left to his children several identical gold coins. According to his will, the oldest child receives one coin and one-seventh of the remaining coins, the next child receives two coins and one-seventh of the remaining coins, the third child receives three coins and one-seventh of the remaining coins, and so on through the youngest child. If every child inherits an integer number of coins, find the number of children and the number of coins. 25. (HUN 6) Three disks of diameter $d$ are touching a sphere at their centers. Moreover, each disk touches the other two disks. How do we choose the radius $R$ of the sphere so that the axis of the whole figure makes an angle [^0]of $60^{\circ}$ with the line connecting the center of the sphere with the point on the disks that is at the largest distance from the axis? (The axis of the figure is the line having the property that rotation of the figure through $120^{\circ}$ about that line brings the figure to its initial position. The disks are all on one side of the plane, pass through the center of the sphere, and are orthogonal to the axes.) 26. (ITA 1) Let $A B C D$ be a regular tetrahedron. To an arbitrary point $M$ on one edge, say $C D$, corresponds the point $P=P(M)$, which is the intersection of two lines $A H$ and $B K$, drawn from $A$ orthogonally to $B M$ and from $B$ orthogonally to $A M$. What is the locus of $P$ as $M$ varies? 27. (ITA 2) Which regular polygons can be obtained (and how) by cutting a cube with a plane? 28. (ITA 3) Find values of the parameter $u$ for which the expression $$ y=\frac{\tan (x-u)+\tan x+\tan (x+u)}{\tan (x-u) \tan x \tan (x+u)} $$ does not depend on $x$. 29. (ITA 4) ${ }^{\mathrm{IMO} 4}$ The triangles $A_{0} B_{0} C_{0}$ and $A^{\prime} B^{\prime} C^{\prime}$ have all their angles acute. Describe how to construct one of the triangles $A B C$, similar to $A^{\prime} B^{\prime} C^{\prime}$ and circumscribing $A_{0} B_{0} C_{0}$ (so that $A, B, C$ correspond to $A^{\prime}$, $B^{\prime}, C^{\prime}$, and $A B$ passes through $C_{0}, B C$ through $A_{0}$, and $C A$ through $B_{0}$ ). Among these triangles $A B C$, describe, and prove, how to construct the triangle with the maximum area. 30. (MON 1) Given $m+n$ numbers $a_{i}(i=1,2, \ldots, m), b_{j}(j=1,2, \ldots, n)$, determine the number of pairs $\left(a_{i}, b_{j}\right)$ for which $|i-j| \geq k$, where $k$ is a nonnegative integer. 31. (MON 2) An urn contains balls of $k$ different colors; there are $n_{i}$ balls of the $i$ th color. Balls are drawn at random from the urn, one by one, without replacement. Find the smallest number of draws necessary for getting $m$ balls of the same color. 32. (MON 3) Determine the volume of the body obtained by cutting the ball of radius $R$ by the trihedron with vertex in the center of that ball if its dihedral angles are $\alpha, \beta, \gamma$. 33. (MON 4) In what case does the system \[ $$ \begin{aligned} & x+y+m z=a, \\ & x+m y+z=b, \\ & m x+y+z=c, \end{aligned} $$ \] have a solution? Find the conditions under which the unique solution of the above system is an arithmetic progression. 34. (MON 5) The faces of a convex polyhedron are six squares and eight equilateral triangles, and each edge is a common side for one triangle and one square. All dihedral angles obtained from the triangle and square with a common edge are equal. Prove that it is possible to circumscribe a sphere around this polyhedron and compute the ratio of the squares of the volumes of the polyhedron and of the ball whose boundary is the circumscribed sphere. 35. (MON 6) Prove the identity $$ \sum_{k=0}^{n}\binom{n}{k}\left(\tan \frac{x}{2}\right)^{2 k}\left[1+2^{k} \frac{1}{\left(1-\tan ^{2}(x / 2)\right)^{k}}\right]=\sec ^{2 n} \frac{x}{2}+\sec ^{n} x $$ 36. (POL 1) Prove that the center of the sphere circumscribed around a tetrahedron $A B C D$ coincides with the center of a sphere inscribed in that tetrahedron if and only if $A B=C D, A C=B D$, and $A D=B C$. 37. (POL 2) Prove that for arbitrary positive numbers the following inequality holds: $$ \frac{1}{a}+\frac{1}{b}+\frac{1}{c} \leq \frac{a^{8}+b^{8}+c^{8}}{a^{3} b^{3} c^{3}} $$ 38. (POL 3) Does there exist an integer such that its cube is equal to $3 n^{2}+3 n+7$, where $n$ is integer? 39. (POL 4) Show that the triangle whose angles satisfy the equality $$ \frac{\sin ^{2} A+\sin ^{2} B+\sin ^{2} C}{\cos ^{2} A+\cos ^{2} B+\cos ^{2} C}=2 $$ is a right-angled triangle. 40. (POL 5) ${ }^{\mathrm{IMO} 2}$ Exactly one side of a tetrahedron is of length greater than 1. Show that its volume is less than or equal to $1 / 8$. 41. (POL 6) A line $l$ is drawn through the intersection point $H$ of the altitudes of an acute-angled triangle. Prove that the symmetric images $l_{a}$, $l_{b}, l_{c}$ of $l$ with respect to sides $B C, C A, A B$ have one point in common, which lies on the circumcircle of $A B C$. 42. (ROM 1) Decompose into real factors the expression $1-\sin ^{5} x-\cos ^{5} x$. 43. (ROM 2) The equation $$ x^{5}+5 \lambda x^{4}-x^{3}+(\lambda \alpha-4) x^{2}-(8 \lambda+3) x+\lambda \alpha-2=0 $$ is given. (a) Determine $\alpha$ such that the given equation has exactly one root independent of $\lambda$. (b) Determine $\alpha$ such that the given equation has exactly two roots independent of $\lambda$. 44. (ROM 3) Suppose $p$ and $q$ are two different positive integers and $x$ is a real number. Form the product $(x+p)(x+q)$. (a) Find the sum $S(x, n)=\sum(x+p)(x+q)$, where $p$ and $q$ take values from 1 to $n$. (b) Do there exist integer values of $x$ for which $S(x, n)=0$ ? 45. (ROM 4) (a) Solve the equation $$ \sin ^{3} x+\sin ^{3}\left(\frac{2 \pi}{3}+x\right)+\sin ^{3}\left(\frac{4 \pi}{3}+x\right)+\frac{3}{4} \cos 2 x=0 . $$ (b) Suppose the solutions are in the form of arcs $A B$ of the trigonometric circle (where $A$ is the beginning of arcs of the trigonometric circle), and $P$ is a regular $n$-gon inscribed in the circle with one vertex at $A$. (1) Find the subset of arcs with the endpoint $B$ at a vertex of the regular dodecagon. (2) Prove that the endpoint $B$ cannot be at a vertex of $P$ if $2,3 \nmid n$ or $n$ is prime. 46. (ROM 5) If $x, y, z$ are real numbers satisfying the relations $x+y+z=1$ and $\arctan x+\arctan y+\arctan z=\pi / 4$, prove that $$ x^{2 n+1}+y^{2 n+1}+z^{2 n+1}=1 $$ for all positive integers $n$. 47. (ROM 6) Prove the inequality $x_{1} x_{2} \cdots x_{k}\left(x_{1}^{n-1}+x_{2}^{n-1}+\cdots+x_{k}^{n-1}\right) \leq x_{1}^{n+k-1}+x_{2}^{n+k-1}+\cdots+x_{k}^{n+k-1}$, where $x_{i}>0(i=1,2, \ldots, k), k \in N, n \in N$. 48. (SWE 1) Determine all positive roots of the equation $x^{x}=1 / \sqrt{2}$. 49. (SWE 2) Let $n$ and $k$ be positive integers such that $1 \leq n \leq N+1$, $1 \leq k \leq N+1$. Show that $$ \min _{n \neq k}|\sin n-\sin k|<\frac{2}{N} $$ 50. (SWE 3) The function $\varphi(x, y, z)$, defined for all triples $(x, y, z)$ of real numbers, is such that there are two functions $f$ and $g$ defined for all pairs of real numbers such that $$ \varphi(x, y, z)=f(x+y, z)=g(x, y+z) $$ for all real $x, y$, and $z$. Show that there is a function $h$ of one real variable such that $$ \varphi(x, y, z)=h(x+y+z) $$ for all real $x, y$, and $z$. 51. (SWE 4) A subset $S$ of the set of integers $0, \ldots, 99$ is said to have property A if it is impossible to fill a crossword puzzle with 2 rows and 2 columns with numbers in $S$ ( 0 is written as 00,1 as 01 , and so on). Determine the maximal number of elements in sets $S$ with property A. 52. (SWE 5) In the plane a point $O$ and a sequence of points $P_{1}, P_{2}, P_{3}, \ldots$ are given. The distances $O P_{1}, O P_{2}, O P_{3}, \ldots$ are $r_{1}, r_{2}, r_{3}, \ldots$, where $r_{1} \leq$ $r_{2} \leq r_{3} \leq \cdots$. Let $\alpha$ satisfy $0<\alpha<1$. Suppose that for every $n$ the distance from the point $P_{n}$ to any other point of the sequence is greater than or equal to $r_{n}^{\alpha}$. Determine the exponent $\beta$, as large as possible, such that for some $C$ independent of $n,{ }^{2}$ $$ r_{n} \geq C n^{\beta}, \quad n=1,2, \ldots $$ 53. (SWE 6) In making Euclidean constructions in geometry it is permitted to use a straightedge and compass. In the constructions considered in this question, no compasses are permitted, but the straightedge is assumed to have two parallel edges, which can be used for constructing two parallel lines through two given points whose distance is at least equal to the breadth of the ruler. Then the distance between the parallel lines is equal to the breadth of the straightedge. Carry through the following constructions with such a straightedge. Construct: (a) The bisector of a given angle. (b) The midpoint of a given rectilinear segment. (c) The center of a circle through three given noncollinear points. (d) A line through a given point parallel to a given line. 54. (USS 1) Is it possible to put 100 (or 200) points on a wooden cube such that by all rotations of the cube the points map into themselves? Justify your answer. 55. (USS 2) Find all $x$ for which for all $n$, $$ \sin x+\sin 2 x+\sin 3 x+\cdots+\sin n x \leq \frac{\sqrt{3}}{2} $$ 56. (USS 3) In a group of interpreters each one speaks one or several foreign languages; 24 of them speak Japanese, 24 Malay, 24 Farsi. Prove that it is possible to select a subgroup in which exactly 12 interpreters speak Japanese, exactly 12 speak Malay, and exactly 12 speak Farsi. 57. (USS 4) ${ }^{\mathrm{IMO} 5}$ Consider the sequence $\left(c_{n}\right)$ : $$ \begin{gathered} c_{1}=a_{1}+a_{2}+\cdots+a_{8}, \\ c_{2}=a_{1}^{2}+a_{2}^{2}+\cdots+a_{8}^{2}, \\ \cdots \\ \cdots \cdots \cdots \\ c_{n}=a_{1}^{n}+a_{2}^{n}+\cdots+a_{8}^{n}, \end{gathered} $$ [^1]where $a_{1}, a_{2}, \ldots, a_{8}$ are real numbers, not all equal to zero. Given that among the numbers of the sequence $\left(c_{n}\right)$ there are infinitely many equal to zero, determine all the values of $n$ for which $c_{n}=0$. 58. (USS 5) A linear binomial $l(z)=A z+B$ with complex coefficients $A$ and $B$ is given. It is known that the maximal value of $|l(z)|$ on the segment $-1 \leq x \leq 1(y=0)$ of the real line in the complex plane $(z=x+i y)$ is equal to $M$. Prove that for every $z$ $$ |l(z)| \leq M \rho, $$ where $\rho$ is the sum of distances from the point $P=z$ to the points $Q_{1}$ : $z=1$ and $Q_{3}: z=-1$. 59. (USS 6) On the circle with center $O$ and radius 1 the point $A_{0}$ is fixed and points $A_{1}, A_{2}, \ldots, A_{999}, A_{1000}$ are distributed in such a way that $\angle A_{0} O A_{k}=k$ (in radians). Cut the circle at points $A_{0}, A_{1}, \ldots, A_{1000}$. How many arcs with different lengths are obtained? ### 3.10 The Tenth IMO ## Moscow-Leningrad, Soviet Union, July 5-18, 1968 ### 3.10.1 Contest Problems First Day 1. Prove that there exists a unique triangle whose side lengths are consecutive natural numbers and one of whose angles is twice the measure of one of the others. 2. Find all positive integers $x$ for which $p(x)=x^{2}-10 x-22$, where $p(x)$ denotes the product of the digits of $x$. 3. Let $a, b, c$ be real numbers. Prove that the system of equations $$ \left\{\begin{array}{r} a x_{1}^{2}+b x_{1}+c=x_{2} \\ a x_{2}^{2}+b x_{2}+c=x_{3} \\ \cdots \cdots \cdots \cdots \\ a x_{n-1}^{2}+b x_{n-1}+c=x_{n} \\ a x_{n}^{2}+b x_{n}+c=x_{1} \end{array}\right. $$ (a) has no real solutions if $(b-1)^{2}-4 a c<0$; (b) has a unique real solution if $(b-1)^{2}-4 a c=0$; (c) has more than one real solution if $(b-1)^{2}-4 a c>0$. ## Second Day 4. Prove that in any tetrahedron there is a vertex such that the lengths of its sides through that vertex are sides of a triangle. 5. Let $a>0$ be a real number and $f(x)$ a real function defined on all of $\mathbb{R}$, satisfying for all $x \in \mathbb{R}$, $$ f(x+a)=\frac{1}{2}+\sqrt{f(x)-f(x)^{2}} $$ (a) Prove that the function $f$ is periodic; i.e., there exists $b>0$ such that for all $x, f(x+b)=f(x)$. (b) Give an example of such a nonconstant function for $a=1$. 6. Let $[x]$ denote the integer part of $x$, i.e., the greatest integer not exceeding $x$. If $n$ is a positive integer, express as a simple function of $n$ the sum $$ \left[\frac{n+1}{2}\right]+\left[\frac{n+2}{4}\right]+\cdots+\left[\frac{n+2^{i}}{2^{i+1}}\right]+\cdots $$ ### 3.10.2 Shortlisted Problems 1. (SWE 2) Two ships sail on the sea with constant speeds and fixed directions. It is known that at 9:00 the distance between them was 20 miles; at 9:35, 15 miles; and at 9:55, 13 miles. At what moment were the ships the smallest distance from each other, and what was that distance? 2. (ROM 5) ${ }^{\mathrm{IMO} 1}$ Prove that there exists a unique triangle whose side lengths are consecutive natural numbers and one of whose angles is twice the measure of one of the others. 3. (POL 4) ${ }^{\mathrm{IMO} 4}$ Prove that in any tetrahedron there is a vertex such that the lengths of its sides through that vertex are sides of a triangle. 4. (BUL 2) ${ }^{\mathrm{IMO} 3}$ Let $a, b, c$ be real numbers. Prove that the system of equations $$ \left\{\begin{array}{r} a x_{1}^{2}+b x_{1}+c=x_{2} \\ a x_{2}^{2}+b x_{2}+c=x_{3} \\ \cdots \cdots \cdots \cdots \\ a x_{n-1}^{2}+b x_{n-1}+c=x_{n} \\ a x_{n}^{2}+b x_{n}+c=x_{1} \end{array}\right. $$ has a unique real solution if and only if $(b-1)^{2}-4 a c=0$. Remark. It is assumed that $a \neq 0$. 5. (BUL 5) Let $h_{n}$ be the apothem (distance from the center to one of the sides) of a regular $n$-gon $(n \geq 3)$ inscribed in a circle of radius $r$. Prove the inequality $$ (n+1) h_{n+1}-n h_{n}>r . $$ Also prove that if $r$ on the right side is replaced with a greater number, the inequality will not remain true for all $n \geq 3$. 6. (HUN 1) If $a_{i}(i=1,2, \ldots, n)$ are distinct non-zero real numbers, prove that the equation $$ \frac{a_{1}}{a_{1}-x}+\frac{a_{2}}{a_{2}-x}+\cdots+\frac{a_{n}}{a_{n}-x}=n $$ has at least $n-1$ real roots. 7. (HUN 5) Prove that the product of the radii of three circles exscribed to a given triangle does not exceed $\frac{3 \sqrt{3}}{8}$ times the product of the side lengths of the triangle. When does equality hold? 8. (ROM 2) Given an oriented line $\Delta$ and a fixed point $A$ on it, consider all trapezoids $A B C D$ one of whose bases $A B$ lies on $\Delta$, in the positive direction. Let $E, F$ be the midpoints of $A B$ and $C D$ respectively. Find the loci of vertices $B, C, D$ of trapezoids that satisfy the following: (i) $|A B| \leq a \quad(a$ fixed); (ii) $|E F|=l \quad(l$ fixed); (iii) the sum of squares of the nonparallel sides of the trapezoid is constant. Remark. The constants are chosen so that such trapezoids exist. 9. (ROM 3) Let $A B C$ be an arbitrary triangle and $M$ a point inside it. Let $d_{a}, d_{b}, d_{c}$ be the distances from $M$ to sides $B C, C A, A B ; a, b, c$ the lengths of the sides respectively, and $S$ the area of the triangle $A B C$. Prove the inequality $$ a b d_{a} d_{b}+b c d_{b} d_{c}+c a d_{c} d_{a} \leq \frac{4 S^{2}}{3} $$ Prove that the left-hand side attains its maximum when $M$ is the centroid of the triangle. 10. (ROM 4) Consider two segments of length $a, b(a>b)$ and a segment of length $c=\sqrt{a b}$. (a) For what values of $a / b$ can these segments be sides of a triangle? (b) For what values of $a / b$ is this triangle right-angled, obtuse-angled, or acute-angled? 11. (ROM 6) Find all solutions $\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ of the equation $1+\frac{1}{x_{1}}+\frac{x_{1}+1}{x_{1} x_{2}}+\frac{\left(x_{1}+1\right)\left(x_{2}+1\right)}{x_{1} x_{2} x_{3}}+\cdots+\frac{\left(x_{1}+1\right) \cdots\left(x_{n-1}+1\right)}{x_{1} x_{2} \cdots x_{n}}=0$. 12. (POL 1) If $a$ and $b$ are arbitrary positive real numbers and $m$ an integer, prove that $$ \left(1+\frac{a}{b}\right)^{m}+\left(1+\frac{b}{a}\right)^{m} \geq 2^{m+1} $$ 13. (POL 5) Given two congruent triangles $A_{1} A_{2} A_{3}$ and $B_{1} B_{2} B_{3}\left(A_{i} A_{k}=\right.$ $B_{i} B_{k}$ ), prove that there exists a plane such that the orthogonal projections of these triangles onto it are congruent and equally oriented. 14. (BUL 5) A line in the plane of a triangle $A B C$ intersects the sides $A B$ and $A C$ respectively at points $X$ and $Y$ such that $B X=C Y$. Find the locus of the center of the circumcircle of triangle $X A Y$. 15. (GBR 1) ${ }^{\mathrm{IMO} 6}$ Let $[x]$ denote the integer part of $x$, i.e., the greatest integer not exceeding $x$. If $n$ is a positive integer, express as a simple function of $n$ the sum $$ \left[\frac{n+1}{2}\right]+\left[\frac{n+2}{4}\right]+\cdots+\left[\frac{n+2^{i}}{2^{i+1}}\right]+\cdots $$ 16. (GBR 3) A polynomial $p(x)=a_{0} x^{k}+a_{1} x^{k-1}+\cdots+a_{k}$ with integer coefficients is said to be divisible by an integer $m$ if $p(x)$ is divisible by $m$ for all integers $x$. Prove that if $p(x)$ is divisible by $m$, then $k!a_{0}$ is also divisible by $m$. Also prove that if $a_{0}, k, m$ are nonnegative integers for which $k!a_{0}$ is divisible by $m$, there exists a polynomial $p(x)=a_{0} x^{k}+\cdots+$ $a_{k}$ divisible by $m$. 17. (GBR 4) Given a point $O$ and lengths $x, y, z$, prove that there exists an equilateral triangle $A B C$ for which $O A=x, O B=y, O C=z$, if and only if $x+y \geq z, y+z \geq x, z+x \geq y$ (the points $O, A, B, C$ are coplanar). 18. (ITA 2) If an acute-angled triangle $A B C$ is given, construct an equilateral triangle $A^{\prime} B^{\prime} C^{\prime}$ in space such that lines $A A^{\prime}, B B^{\prime}, C C^{\prime}$ pass through a given point. 19. (ITA 5) We are given a fixed point on the circle of radius 1, and going from this point along the circumference in the positive direction on curved distances $0,1,2, \ldots$ from it we obtain points with abscisas $n=0,1,2, \ldots$ respectively. How many points among them should we take to ensure that some two of them are less than the distance $1 / 5$ apart? 20. (CZS 1) Given $n(n \geq 3)$ points in space such that every three of them form a triangle with one angle greater than or equal to $120^{\circ}$, prove that these points can be denoted by $A_{1}, A_{2}, \ldots, A_{n}$ in such a way that for each $i, j, k, 1 \leq i0$ be a real number and $f(x)$ a real function defined on all of $\mathbb{R}$, satisfying for all $x \in \mathbb{R}$, $$ f(x+a)=\frac{1}{2}+\sqrt{f(x)-f(x)^{2}} . $$ (a) Prove that the function $f$ is periodic; i.e., there exists $b>0$ such that for all $x, f(x+b)=f(x)$. (b) Give an example of such a nonconstant function for $a=1$. [^2] ### 3.11 The Eleventh IMO Bucharest, Romania, July 5-20, 1969 ### 3.11.1 Contest Problems ## First Day (July 10) 1. Prove that there exist infinitely many natural numbers $a$ with the following property: the number $z=n^{4}+a$ is not prime for any natural number $n$. 2. Let $a_{1}, a_{2}, \ldots, a_{n}$ be real constants and $$ y(x)=\cos \left(a_{1}+x\right)+\frac{\cos \left(a_{2}+x\right)}{2}+\frac{\cos \left(a_{3}+x\right)}{2^{2}}+\cdots+\frac{\cos \left(a_{n}+x\right)}{2^{n-1}} . $$ If $x_{1}, x_{2}$ are real and $y\left(x_{1}\right)=y\left(x_{2}\right)=0$, prove that $x_{1}-x_{2}=m \pi$ for some integer $m$. 3. Find conditions on the positive real number $a$ such that there exists a tetrahedron $k$ of whose edges $(k=1,2,3,4,5)$ have length $a$, and the other $6-k$ edges have length 1 . Second Day (July 11) 4. Let $A B$ be a diameter of a circle $\gamma$. A point $C$ different from $A$ and $B$ is on the circle $\gamma$. Let $D$ be the projection of the point $C$ onto the line $A B$. Consider three other circles $\gamma_{1}, \gamma_{2}$, and $\gamma_{3}$ with the common tangent $A B: \gamma_{1}$ inscribed in the triangle $A B C$, and $\gamma_{2}$ and $\gamma_{3}$ tangent to both (the segment) $C D$ and $\gamma$. Prove that $\gamma_{1}, \gamma_{2}$, and $\gamma_{3}$ have two common tangents. 5. Given $n$ points in the plane such that no three of them are collinear, prove that one can find at least $\binom{n-3}{2}$ convex quadrilaterals with their vertices at these points. 6. Under the conditions $x_{1}, x_{2}>0, x_{1} y_{1}>z_{1}^{2}$, and $x_{2} y_{2}>z_{2}^{2}$, prove the inequality $$ \frac{8}{\left(x_{1}+x_{2}\right)\left(y_{1}+y_{2}\right)-\left(z_{1}+z_{2}\right)^{2}} \leq \frac{1}{x_{1} y_{1}-z_{1}^{2}}+\frac{1}{x_{2} y_{2}-z_{2}^{2}} $$ ### 3.11.2 Longlisted Problems 1. (BEL 1) A parabola $P_{1}$ with equation $x^{2}-2 p y=0$ and parabola $P_{2}$ with equation $x^{2}+2 p y=0, p>0$, are given. A line $t$ is tangent to $P_{2}$. Find the locus of pole $M$ of the line $t$ with respect to $P_{1}$. 2. (BEL 2) (a) Find the equations of regular hyperbolas passing through the points $A(\alpha, 0), B(\beta, 0)$, and $C(0, \gamma)$. (b) Prove that all such hyperbolas pass through the orthocenter $H$ of the triangle $A B C$. (c) Find the locus of the centers of these hyperbolas. (d) Check whether this locus coincides with the nine-point circle of the triangle $A B C$. 3. (BEL 3) Construct the circle that is tangent to three given circles. 4. (BEL 4) Let $O$ be a point on a nondegenerate conic. A right angle with vertex $O$ intersects the conic at points $A$ and $B$. Prove that the line $A B$ passes through a fixed point located on the normal to the conic through the point $O$. 5. (BEL 5) Let $G$ be the centroid of the triangle $O A B$. (a) Prove that all conics passing through the points $O, A, B, G$ are hyperbolas. (b) Find the locus of the centers of these hyperbolas. 6. (BEL 6) Evaluate $(\cos (\pi / 4)+i \sin (\pi / 4))^{10}$ in two different ways and prove that $$ \binom{10}{1}-\binom{10}{3}+\frac{1}{2}\binom{10}{5}=2^{4} $$ 7. (BUL 1) Prove that the equation $\sqrt{x^{3}+y^{3}+z^{3}}=1969$ has no integral solutions. 8. (BUL 2) Find all functions $f$ defined for all $x$ that satisfy the condition $$ x f(y)+y f(x)=(x+y) f(x) f(y) $$ for all $x$ and $y$. Prove that exactly two of them are continuous. 9. (BUL 3) One hundred convex polygons are placed on a square with edge of length 38 cm . The area of each of the polygons is smaller than $\pi \mathrm{cm}^{2}$, and the perimeter of each of the polygons is smaller than $2 \pi \mathrm{~cm}$. Prove that there exists a disk with radius 1 in the square that does not intersect any of the polygons. 10. (BUL 4) Let $M$ be the point inside the right-angled triangle $A B C$ ( $\angle C=90^{\circ}$ ) such that $$ \angle M A B=\angle M B C=\angle M C A=\varphi . $$ Let $\psi$ be the acute angle between the medians of $A C$ and $B C$. Prove that $\frac{\sin (\varphi+\psi)}{\sin (\varphi-\psi)}=5$. 11. (BUL 5) Let $Z$ be a set of points in the plane. Suppose that there exists a pair of points that cannot be joined by a polygonal line not passing through any point of $Z$. Let us call such a pair of points unjoinable. Prove that for each real $r>0$ there exists an unjoinable pair of points separated by distance $r$. 12. (CZS 1) Given a unit cube, find the locus of the centroids of all tetrahedra whose vertices lie on the sides of the cube. 13. (CZS 2) Let $p$ be a prime odd number. Is it possible to find $p-1$ natural numbers $n+1, n+2, \ldots, n+p-1$ such that the sum of the squares of these numbers is divisible by the sum of these numbers? 14. (CZS 3) Let $a$ and $b$ be two positive real numbers. If $x$ is a real solution of the equation $x^{2}+p x+q=0$ with real coefficients $p$ and $q$ such that $|p| \leq a,|q| \leq b$, prove that $$ |x| \leq \frac{1}{2}\left(a+\sqrt{a^{2}+4 b}\right) . $$ Conversely, if $x$ satisfies (1), prove that there exist real numbers $p$ and $q$ with $|p| \leq a,|q| \leq b$ such that $x$ is one of the roots of the equation $x^{2}+p x+q=0$. 15. (CZS 4) Let $K_{1}, \ldots, K_{n}$ be nonnegative integers. Prove that $$ K_{1}!K_{2}!\cdots K_{n}!\geq[K / n]!^{n} $$ where $K=K_{1}+\cdots+K_{n}$. 16. (CZS 5) A convex quadrilateral $A B C D$ with sides $A B=a, B C=b$, $C D=c, D A=d$ and angles $\alpha=\angle D A B, \beta=\angle A B C, \gamma=\angle B C D$, and $\delta=\angle C D A$ is given. Let $s=(a+b+c+d) / 2$ and $P$ be the area of the quadrilateral. Prove that $$ P^{2}=(s-a)(s-b)(s-c)(s-d)-a b c d \cos ^{2} \frac{\alpha+\gamma}{2} $$ 17. (CZS 6) Let $d$ and $p$ be two real numbers. Find the first term of an arithmetic progression $a_{1}, a_{2}, a_{3}, \ldots$ with difference $d$ such that $a_{1} a_{2} a_{3} a_{4}=p$. Find the number of solutions in terms of $d$ and $p$. 18. (FRA 1) Let $a$ and $b$ be two nonnegative integers. Denote by $H(a, b)$ the set of numbers $n$ of the form $n=p a+q b$, where $p$ and $q$ are positive integers. Determine $H(a)=H(a, a)$. Prove that if $a \neq b$, it is enough to know all the sets $H(a, b)$ for coprime numbers $a, b$ in order to know all the sets $H(a, b)$. Prove that in the case of coprime numbers $a$ and $b, H(a, b)$ contains all numbers greater than or equal to $\omega=(a-1)(b-1)$ and also $\omega / 2$ numbers smaller than $\omega$. 19. (FRA 2) Let $n$ be an integer that is not divisible by any square greater than 1 . Denote by $x_{m}$ the last digit of the number $x^{m}$ in the number system with base $n$. For which integers $x$ is it possible for $x_{m}$ to be 0 ? Prove that the sequence $x_{m}$ is periodic with period $t$ independent of $x$. For which $x$ do we have $x_{t}=1$. Prove that if $m$ and $x$ are relatively prime, then $0_{m}, 1_{m}, \ldots,(n-1)_{m}$ are different numbers. Find the minimal period $t$ in terms of $n$. If $n$ does not meet the given condition, prove that it is possible to have $x_{m}=0 \neq x_{1}$ and that the sequence is periodic starting only from some number $k>1$. 20. (FRA 3) A polygon (not necessarily convex) with vertices in the lattice points of a rectangular grid is given. The area of the polygon is $S$. If $I$ is the number of lattice points that are strictly in the interior of the polygon and $B$ the number of lattice points on the border of the polygon, find the number $T=2 S-B-2 I+2$. 21. (FRA 4) A right-angled triangle $O A B$ has its right angle at the point $B$. An arbitrary circle with center on the line $O B$ is tangent to the line $O A$. Let $A T$ be the tangent to the circle different from $O A$ ( $T$ is the point of tangency). Prove that the median from $B$ of the triangle $O A B$ intersects $A T$ at a point $M$ such that $M B=M T$. 22. (FRA 5) Let $\alpha(n)$ be the number of pairs $(x, y)$ of integers such that $x+y=n, 0 \leq y \leq x$, and let $\beta(n)$ be the number of triples $(x, y, z)$ such that $x+y+z=n$ and $0 \leq z \leq y \leq x$. Find a simple relation between $\alpha(n)$ and the integer part of the number $\frac{n+2}{2}$ and the relation among $\beta(n)$, $\beta(n-3)$ and $\alpha(n)$. Then evaluate $\beta(n)$ as a function of the residue of $n$ modulo 6 . What can be said about $\beta(n)$ and $1+\frac{n(n+6)}{12}$ ? And what about $\frac{(n+3)^{2}}{6}$ ? Find the number of triples $(x, y, z)$ with the property $x+y+z \leq n$, $0 \leq z \leq y \leq x$ as a function of the residue of $n$ modulo 6 . What can be said about the relation between this number and the number $\frac{(n+6)\left(2 n^{2}+9 n+12\right)}{72}$ ? 23. (FRA 6) Consider the integer $d=\frac{a^{b}-1}{c}$, where $a, b$, and $c$ are positive integers and $c \leq a$. Prove that the set $G$ of integers that are between 1 and $d$ and relatively prime to $d$ (the number of such integers is denoted by $\varphi(d)$ ) can be partitioned into $n$ subsets, each of which consists of $b$ elements. What can be said about the rational number $\frac{\varphi(d)}{b}$ ? 24. (GBR 1) The polynomial $P(x)=a_{0} x^{k}+a_{1} x^{k-1}+\cdots+a_{k}$, where $a_{0}, \ldots, a_{k}$ are integers, is said to be divisible by an integer $m$ if $P(x)$ is a multiple of $m$ for every integral value of $x$. Show that if $P(x)$ is divisible by $m$, then $a_{0} \cdot k$ ! is a multiple of $m$. Also prove that if $a, k, m$ are positive integers such that $a k!$ is a multiple of $m$, then a polynomial $P(x)$ with leading term $a x^{k}$ can be found that is divisible by $m$. 25. (GBR 2) Let $a, b, x, y$ be positive integers such that $a$ and $b$ have no common divisor greater than 1. Prove that the largest number not expressible in the form $a x+b y$ is $a b-a-b$. If $N(k)$ is the largest number not expressible in the form $a x+b y$ in only $k$ ways, find $N(k)$. 26. (GBR 3) A smooth solid consists of a right circular cylinder of height $h$ and base-radius $r$, surmounted by a hemisphere of radius $r$ and center $O$. The solid stands on a horizontal table. One end of a string is attached to a point on the base. The string is stretched (initially being kept in the vertical plane) over the highest point of the solid and held down at the point $P$ on the hemisphere such that $O P$ makes an angle $\alpha$ with the horizontal. Show that if $\alpha$ is small enough, the string will slacken if slightly displaced and no longer remain in a vertical plane. If then pulled tight through $P$, show that it will cross the common circular section of the hemisphere and cylinder at a point $Q$ such that $\angle S O Q=\phi, S$ being where it initially crossed this section, and $\sin \phi=\frac{r \tan \alpha}{h}$. 27. (GBR 4) The segment $A B$ perpendicularly bisects $C D$ at $X$. Show that, subject to restrictions, there is a right circular cone whose axis passes through $X$ and on whose surface lie the points $A, B, C, D$. What are the restrictions? 28. (GBR 5) Let us define $u_{0}=0, u_{1}=1$ and for $n \geq 0, u_{n+2}=a u_{n+1}+b u_{n}$, $a$ and $b$ being positive integers. Express $u_{n}$ as a polynomial in $a$ and $b$. Prove the result. Given that $b$ is prime, prove that $b$ divides $a\left(u_{b}-1\right)$. 29. (GDR 1) Find all real numbers $\lambda$ such that the equation $$ \sin ^{4} x-\cos ^{4} x=\lambda\left(\tan ^{4} x-\cot ^{4} x\right) $$ (a) has no solution, (b) has exactly one solution, (c) has exactly two solutions, (d) has more than two solutions (in the interval $(0, \pi / 4)$ ). 30. (GDR 2) ${ }^{\mathrm{IMO} 1}$ Prove that there exist infinitely many natural numbers $a$ with the following property: The number $z=n^{4}+a$ is not prime for any natural number $n$. 31. (GDR 3) Find the number of permutations $a_{1}, \ldots, a_{n}$ of the set $\{1,2, \ldots, n\}$ such that $\left|a_{i}-a_{i+1}\right| \neq 1$ for all $i=1,2, \ldots, n-1$. Find a recurrence formula and evaluate the number of such permutations for $n \leq 6$. 32. (GDR 4) Find the maximal number of regions into which a sphere can be partitioned by $n$ circles. 33. (GDR 5) Given a ring $G$ in the plane bounded by two concentric circles with radii $R$ and $R / 2$, prove that we can cover this region with 8 disks of radius $2 R / 5$. (A region is covered if each of its points is inside or on the border of some disk.) 34. (HUN 1) Let $a$ and $b$ be arbitrary integers. Prove that if $k$ is an integer not divisible by 3 , then $(a+b)^{2 k}+a^{2 k}+b^{2 k}$ is divisible by $a^{2}+a b+b^{2}$. 35. (HUN 2) Prove that $$ 1+\frac{1}{2^{3}}+\frac{1}{3^{3}}+\cdots+\frac{1}{n^{3}}<\frac{5}{4} $$ 36. (HUN 3) In the plane 4000 points are given such that each line passes through at most 2 of these points. Prove that there exist 1000 disjoint quadrilaterals in the plane with vertices at these points. 37. (HUN 4) ${ }^{\mathrm{IMO} 2}$ If $a_{1}, a_{2}, \ldots, a_{n}$ are real constants, and if $$ y=\cos \left(a_{1}+x\right)+2 \cos \left(a_{2}+x\right)+\cdots+n \cos \left(a_{n}+x\right) $$ has two zeros $x_{1}$ and $x_{2}$ whose difference is not a multiple of $\pi$, prove that $y \equiv 0$. 38. (HUN 5) Let $r$ and $m(r \leq m)$ be natural numbers and $A_{k}=\frac{2 k-1}{2 m} \pi$. Evaluate $$ \frac{1}{m^{2}} \sum_{k=1}^{m} \sum_{l=1}^{m} \sin \left(r A_{k}\right) \sin \left(r A_{l}\right) \cos \left(r A_{k}-r A_{l}\right) $$ 39. (HUN 6) Find the positions of three points $A, B, C$ on the boundary of a unit cube such that $\min \{A B, A C, B C\}$ is the greatest possible. 40. (MON 1) Find the number of five-digit numbers with the following properties: there are two pairs of digits such that digits from each pair are equal and are next to each other, digits from different pairs are different, and the remaining digit (which does not belong to any of the pairs) is different from the other digits. 41. (MON 2) Given two numbers $x_{0}$ and $x_{1}$, let $\alpha$ and $\beta$ be coefficients of the equation $1-\alpha y-\beta y^{2}=0$. Under the given conditions, find an expression for the solution of the system $$ x_{n+2}-\alpha x_{n+1}-\beta x_{n}=0, \quad n=0,1,2, \ldots $$ 42. (MON 3) Let $A_{k}(1 \leq k \leq h)$ be $n$-element sets such that each two of them have a nonempty intersection. Let $A$ be the union of all the sets $A_{k}$, and let $B$ be a subset of $A$ such that for each $k(1 \leq k \leq h)$ the intersection of $A_{k}$ and $B$ consists of exactly two different elements $a_{k}$ and $b_{k}$. Find all subsets $X$ of the set $A$ with $r$ elements satisfying the condition that for at least one index $k$, both elements $a_{k}$ and $b_{k}$ belong to $X$. 43. (MON 4) Let $p$ and $q$ be two prime numbers greater than 3 . Prove that if their difference is $2^{n}$, then for any two integers $m$ and $n$, the number $S=p^{2 m+1}+q^{2 m+1}$ is divisible by 3. 44. (MON 5) Find the radius of the circle circumscribed about the isosceles triangle whose sides are the solutions of the equation $x^{2}-a x+b=0$. 45. (MON 6) ${ }^{\mathrm{IMO5}}$ Given $n$ points in the plane such that no three of them are collinear, prove that one can find at least $\binom{n-3}{2}$ convex quadrilaterals with their vertices at these points. 46. (NET 1) The vertices of an $(n+1)$-gon are placed on the edges of a regular $n$-gon so that the perimeter of the $n$-gon is divided into equal parts. How does one choose these $n+1$ points in order to obtain the $(n+1)$ gon with (a) maximal area; (b) minimal area? 47. (NET 2) ${ }^{\mathrm{IMO} 4}$ Let $A$ and $B$ be points on the circle $\gamma$. A point $C$, different from $A$ and $B$, is on the circle $\gamma$. Let $D$ be the projection of the point $C$ onto the line $A B$. Consider three other circles $\gamma_{1}, \gamma_{2}$, and $\gamma_{3}$ with the common tangent $A B$ : $\gamma_{1}$ inscribed in the triangle $A B C$, and $\gamma_{2}$ and $\gamma_{3}$ tangent to both (the segment) $C D$ and $\gamma$. Prove that $\gamma_{1}, \gamma_{2}$, and $\gamma_{3}$ have two common tangents. 48. (NET 3) Let $x_{1}, x_{2}, x_{3}, x_{4}$, and $x_{5}$ be positive integers satisfying $$ \begin{array}{r} x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=1000 \\ x_{1}-x_{2}+x_{3}-x_{4}+x_{5}>0 \\ x_{1}+x_{2}-x_{3}+x_{4}-x_{5}>0 \\ -x_{1}+x_{2}+x_{3}-x_{4}+x_{5}>0 \\ x_{1}-x_{2}+x_{3}+x_{4}-x_{5}>0 \\ -x_{1}+x_{2}-x_{3}+x_{4}+x_{5}>0 \end{array} $$ (a) Find the maximum of $\left(x_{1}+x_{3}\right)^{x_{2}+x_{4}}$. (b) In how many different ways can we choose $x_{1}, \ldots, x_{5}$ to obtain the desired maximum? 49. (NET 4) A boy has a set of trains and pieces of railroad track. Each piece is a quarter of circle, and by concatenating these pieces, the boy obtained a closed railway. The railway does not intersect itself. In passing through this railway, the train sometimes goes in the clockwise direction, and sometimes in the opposite direction. Prove that the train passes an even number of times through the pieces in the clockwise direction and an even number of times in the counterclockwise direction. Also, prove that the number of pieces is divisible by 4. 50. (NET 5) The bisectors of the exterior angles of a pentagon $B_{1} B_{2} B_{3} B_{4} B_{5}$ form another pentagon $A_{1} A_{2} A_{3} A_{4} A_{5}$. Construct $B_{1} B_{2} B_{3} B_{4} B_{5}$ from the given pentagon $A_{1} A_{2} A_{3} A_{4} A_{5}$. 51. (NET 6) A curve determined by $$ y=\sqrt{x^{2}-10 x+52}, \quad 0 \leq x \leq 100 $$ is constructed in a rectangular grid. Determine the number of squares cut by the curve. 52. (POL 1) Prove that a regular polygon with an odd number of edges cannot be partitioned into four pieces with equal areas by two lines that pass through the center of polygon. 53. (POL 2) Given two segments $A B$ and $C D$ not in the same plane, find the locus of points $M$ such that $$ M A^{2}+M B^{2}=M C^{2}+M D^{2} $$ 54. (POL 3) Given a polynomial $f(x)$ with integer coefficients whose value is divisible by 3 for three integers $k, k+1$, and $k+2$, prove that $f(m)$ is divisible by 3 for all integers $m$. 55. (POL 4) ${ }^{\mathrm{IMO} 3}$ Find the conditions on the positive real number $a$ such that there exists a tetrahedron $k$ of whose edges $(k=1,2,3,4,5)$ have length $a$, and the other $6-k$ edges have length 1. 56. (POL 5) Let $a$ and $b$ be two natural numbers that have an equal number $n$ of digits in their decimal expansions. The first $m$ digits (from left to right) of the numbers $a$ and $b$ are equal. Prove that if $m>n / 2$, then $$ a^{1 / n}-b^{1 / n}<\frac{1}{n} . $$ 57. (POL 6) On the sides $A B$ and $A C$ of triangle $A B C$ two points $K$ and $L$ are given such that $\frac{K B}{A K}+\frac{L C}{A L}=1$. Prove that $K L$ passes through the centroid of $A B C$. 58. (SWE 1) Six points $P_{1}, \ldots, P_{6}$ are given in 3 -dimensional space such that no four of them lie in the same plane. Each of the line segments $P_{j} P_{k}$ is colored black or white. Prove that there exists one triangle $P_{j} P_{k} P_{l}$ whose edges are of the same color. 59. (SWE 2) For each $\lambda(0<\lambda<1$ and $\lambda \neq 1 / n$ for all $n=1,2,3, \ldots)$ construct a continuous function $f$ such that there do not exist $x, y$ with $0<\lambda2$, $$ (n!)!>n[(n-1)!]^{n!} $$ 65. (USS 2) Prove that for $a>b^{2}$, $$ \sqrt{a-b \sqrt{a+b \sqrt{a-b \sqrt{a+\cdots}}}}=\sqrt{a-\frac{3}{4} b^{2}}-\frac{1}{2} b . $$ 66. (USS 3) (a) Prove that if $0 \leq a_{0} \leq a_{1} \leq a_{2}$, then $$ \left(a_{0}+a_{1} x-a_{2} x^{2}\right)^{2} \leq\left(a_{0}+a_{1}+a_{2}\right)^{2}\left(1+\frac{1}{2} x+\frac{1}{3} x^{2}+\frac{1}{2} x^{3}+x^{4}\right) $$ (b) Formulate and prove the analogous result for polynomials of third degree. 67. (USS 4) ${ }^{\text {IMO6 }}$ Under the conditions $x_{1}, x_{2}>0, x_{1} y_{1}>z_{1}^{2}$, and $x_{2} y_{2}>z_{2}^{2}$, prove the inequality $$ \frac{8}{\left(x_{1}+x_{2}\right)\left(y_{1}+y_{2}\right)-\left(z_{1}+z_{2}\right)^{2}} \leq \frac{1}{x_{1} y_{1}-z_{1}^{2}}+\frac{1}{x_{2} y_{2}-z_{2}^{2}} $$ 68. (USS 5) Given 5 points in the plane, no three of which are collinear, prove that we can choose 4 points among them that form a convex quadrilateral. 69. (YUG 1) Suppose that positive real numbers $x_{1}, x_{2}, x_{3}$ satisfy $$ x_{1} x_{2} x_{3}>1, \quad x_{1}+x_{2}+x_{3}<\frac{1}{x_{1}}+\frac{1}{x_{2}}+\frac{1}{x_{3}} $$ Prove that: (a) None of $x_{1}, x_{2}, x_{3}$ equals 1 . (b) Exactly one of these numbers is less than 1. 70. (YUG 2) A park has the shape of a convex pentagon of area $5 \sqrt{3}$ ha $\left(=50000 \sqrt{3} \mathrm{~m}^{2}\right)$. A man standing at an interior point $O$ of the park notices that he stands at a distance of at most 200 m from each vertex of the pentagon. Prove that he stands at a distance of at least 100 m from each side of the pentagon. 71. (YUG 3) Let four points $A_{i}(i=1,2,3,4)$ in the plane determine four triangles. In each of these triangles we choose the smallest angle. The sum of these angles is denoted by $S$. What is the exact placement of the points $A_{i}$ if $S=180^{\circ}$ ? ### 3.12 The Twelfth IMO Budapest-Keszthely, Hungary, July 8-22, 1970 ### 3.12.1 Contest Problems First Day (July 13) 1. Given a point $M$ on the side $A B$ of the triangle $A B C$, let $r_{1}$ and $r_{2}$ be the radii of the inscribed circles of the triangles $A C M$ and $B C M$ respectively while $\rho_{1}$ and $\rho_{2}$ are the radii of the excircles of the triangles $A C M$ and $B C M$ at the sides $A M$ and $B M$ respectively. Let $r$ and $\rho$ denote the respective radii of the inscribed circle and the excircle at the side $A B$ of the triangle $A B C$. Prove that $$ \frac{r_{1}}{\rho_{1}} \frac{r_{2}}{\rho_{2}}=\frac{r}{\rho} . $$ 2. Let $a$ and $b$ be the bases of two number systems and let $$ \begin{array}{ll} A_{n}={\overline{x_{1} x_{2} \ldots x_{n}}}^{(a)}, & A_{n+1}={\overline{x_{0} x_{1} x_{2} \ldots x_{n}}}^{(a)}, \\ B_{n}={\overline{x_{1} x_{2} \ldots x_{n}}}^{(b)}, & B_{n+1}={\overline{x_{0} x_{1} x_{2} \ldots x_{n}}}^{(b)}, \end{array} $$ be numbers in the number systems with respective bases $a$ and $b$, so that $x_{0}, x_{1}, x_{2}, \ldots, x_{n}$ denote digits in the number system with base $a$ as well as in the number system with base $b$. Suppose that neither $x_{0}$ nor $x_{1}$ is zero. Prove that $a>b$ if and only if $$ \frac{A_{n}}{A_{n+1}}<\frac{B_{n}}{B_{n+1}} . $$ 3. Let $1=a_{0} \leq a_{1} \leq a_{2} \leq \cdots \leq a_{n} \leq \cdots$ be a sequence of real numbers. Consider the sequence $b_{1}, b_{2}, \ldots$ defined by $$ b_{n}=\sum_{k=1}^{n}\left(1-\frac{a_{k-1}}{a_{k}}\right) \frac{1}{\sqrt{a_{k}}} . $$ Prove that: (a) For all natural numbers $n, 0 \leq b_{n}<2$. (b) Given an arbitrary $0 \leq b<2$, there is a sequence $a_{0}, a_{1}, \ldots, a_{n}, \ldots$ of the above type such that $b_{n}>b$ is true for an infinity of natural numbers $n$. ## Second Day (July 14) 4. For what natural numbers $n$ can the product of some of the numbers $n, n+1, n+2, n+3, n+4, n+5$ be equal to the product of the remaining ones? 5. In the tetrahedron $A B C D$, the edges $B D$ and $C D$ are mutually perpendicular, and the projection of the vertex $D$ to the plane $A B C$ is the intersection of the altitudes of the triangle $A B C$. Prove that $$ (A B+B C+C A)^{2} \leq 6\left(D A^{2}+D B^{2}+D C^{2}\right) $$ For which tetrahedra does equality hold? 6. Given 100 points in the plane, no three of which are on the same line, consider all triangles that have all their vertices chosen from the 100 given points. Prove that at most $70 \%$ of these triangles are acute-angled. ### 3.12.2 Longlisted Problems 1. (AUT 1) Prove that $$ \frac{b c}{b+c}+\frac{c a}{c+a}+\frac{a b}{a+b} \leq \frac{1}{2}(a+b+c) \quad(a, b, c>0) $$ 2. (AUT 2) Prove that the two last digits of $9^{9^{9}}$ and $9^{9^{9^{9}}}$ in decimal representation are equal. 3. (AUT 3) Prove that for $a, b \in \mathbb{N}$, $a!b$ ! divides $(a+b)$ !. 4. (AUT 4) Solve the system of equations $$ \begin{aligned} & x^{2}+x y=a^{2}+a b \\ & y^{2}+x y=a^{2}-a b, \quad a, b \text { real, } a \neq 0 . \end{aligned} $$ 5. (AUT 5) Prove that $\sqrt[n]{\frac{1}{n+1}+\frac{2}{n+1}+\cdots+\frac{n}{n+1}} \geq 1$ for $n \geq 2$. 6. (BEL 1) Prove that the equation in $x$ $$ \sum_{i=1}^{n} \frac{b_{i}}{x-a_{i}}=c, \quad b_{i}>0, \quad a_{1}1$ be a natural number, $a \geq 1$ a real number, and $x_{1}, x_{2}, \ldots, x_{n}$ numbers such that $x_{1}=1, \frac{x_{k+1}}{x_{k}}=a+\alpha_{k}$ for $k=1,2, \ldots, n-$ 1 , where $\alpha_{k}$ are real numbers with $\alpha_{k} \leq \frac{1}{k(k+1)}$. Prove that $$ \sqrt[n-1]{x_{n}}\sqrt{2 a^{2}+h^{2}}$, and walks on the ground around the hole. The edges of the hole are smooth, so that the rope can freely slide along it. Find the shape and area of the territory accessible to the dog (whose size is neglected). 57. (USS 3) Let the numbers $1,2, \ldots, n^{2}$ be written in the cells of an $n \times n$ square board so that the entries in each column are arranged increasingly. What are the smallest and greatest possible sums of the numbers in the $k$ th row? ( $k$ a positive integer, $1 \leq k \leq n$.) 58. (USS 4) (SL70-12). 59. (USS 5) (SL70-7). ### 3.12.3 Shortlisted Problems 1. (BEL 3) Consider a regular $2 n$-gon and the $n$ diagonals of it that pass through its center. Let $P$ be a point of the inscribed circle and let $a_{1}, a_{2}, \ldots, a_{n}$ be the angles in which the diagonals mentioned are visible from the point $P$. Prove that $$ \sum_{i=1}^{n} \tan ^{2} a_{i}=2 n \frac{\cos ^{2} \frac{\pi}{2 n}}{\sin ^{4} \frac{\pi}{2 n}} $$ 2. (ROM 1) ${ }^{\mathrm{IMO} 2}$ Let $a$ and $b$ be the bases of two number systems and let $$ \begin{array}{ll} A_{n}={\overline{x_{1} x_{2} \ldots x_{n}}}^{(a)}, & A_{n+1}={\overline{x_{0} x_{1} x_{2} \ldots x_{n}}}^{(a)}, \\ B_{n}={\overline{x_{1} x_{2} \ldots x_{n}}}^{(b)}, & B_{n+1}={\overline{x_{0} x_{1} x_{2} \ldots x_{n}}}^{(b)}, \end{array} $$ be numbers in the number systems with respective bases $a$ and $b$, so that $x_{0}, x_{1}, x_{2}, \ldots, x_{n}$ denote digits in the number system with base $a$ as well as in the number system with base $b$. Suppose that neither $x_{0}$ nor $x_{1}$ is zero. Prove that $a>b$ if and only if $$ \frac{A_{n}}{A_{n+1}}<\frac{B_{n}}{B_{n+1}} . $$ 3. (BUL 6) ${ }^{\mathrm{IMO}}$ In the tetrahedron $S A B C$ the angle $B S C$ is a right angle, and the projection of the vertex $S$ to the plane $A B C$ is the intersection of the altitudes of the triangle $A B C$. Let $z$ be the radius of the inscribed circle of the triangle $A B C$. Prove that $$ S A^{2}+S B^{2}+S C^{2} \geq 18 z^{2} $$ 4. (CZS 1) $)^{\mathrm{IMO} 4}$ For what natural numbers $n$ can the product of some of the numbers $n, n+1, n+2, n+3, n+4, n+5$ be equal to the product of the remaining ones? 5. (CZS 3) Let $M$ be an interior point of the tetrahedron $A B C D$. Prove that $$ \begin{aligned} & \overrightarrow{M A} \operatorname{vol}(M B C D)+\overrightarrow{M B} \operatorname{vol}(M A C D) \\ & \quad+\overrightarrow{M C} \operatorname{vol}(M A B D)+\overrightarrow{M D} \operatorname{vol}(M A B C)=0 \end{aligned} $$ ( $\operatorname{vol}(P Q R S)$ denotes the volume of the tetrahedron $P Q R S)$. 6. (FRA 1) In the triangle $A B C$ let $B^{\prime}$ and $C^{\prime}$ be the midpoints of the sides $A C$ and $A B$ respectively and $H$ the foot of the altitude passing through the vertex $A$. Prove that the circumcircles of the triangles $A B^{\prime} C^{\prime}, B C^{\prime} H$, and $B^{\prime} C H$ have a common point $I$ and that the line $H I$ passes through the midpoint of the segment $B^{\prime} C^{\prime}$. 7. (USS 5) For which digits $a$ do exist integers $n \geq 4$ such that each digit of $\frac{n(n+1)}{2}$ equals $a$ ? 8. (POL 2) ${ }^{\mathrm{IMO} 1}$ Given a point $M$ on the side $A B$ of the triangle $A B C$, let $r_{1}$ and $r_{2}$ be the radii of the inscribed circles of the triangles $A C M$ and $B C M$ respectively and let $\rho_{1}$ and $\rho_{2}$ be the radii of the excircles of the triangles $A C M$ and $B C M$ at the sides $A M$ and $B M$ respectively. Let $r$ and $\rho$ denote the radii of the inscribed circle and the excircle at the side $A B$ of the triangle $A B C$ respectively. Prove that $$ \frac{r_{1}}{\rho_{1}} \frac{r_{2}}{\rho_{2}}=\frac{r}{\rho} $$ 9. (GDR 3) Let $u_{1}, u_{2}, \ldots, u_{n}, v_{1}, v_{2}, \ldots, v_{n}$ be real numbers. Prove that $$ 1+\sum_{i=1}^{n}\left(u_{i}+v_{i}\right)^{2} \leq \frac{4}{3}\left(1+\sum_{i=1}^{n} u_{i}^{2}\right)\left(1+\sum_{i=1}^{n} v_{i}^{2}\right) $$ In what case does equality hold? 10. (SWE 4) ${ }^{\mathrm{IMO} 3}$ Let $1=a_{0} \leq a_{1} \leq a_{2} \leq \cdots \leq a_{n} \leq \cdots$ be a sequence of real numbers. Consider the sequence $b_{1}, b_{2}, \ldots$ defined by: $$ b_{n}=\sum_{k=1}^{n}\left(1-\frac{a_{k-1}}{a_{k}}\right) \frac{1}{\sqrt{a_{k}}} $$ Prove that: (a) For all natural numbers $n, 0 \leq b_{n}<2$. (b) Given an arbitrary $0 \leq b<2$, there is a sequence $a_{0}, a_{1}, \ldots, a_{n}, \ldots$ of the above type such that $b_{n}>b$ is true for infinitely many natural numbers $n$. 11. (SWE 6) Let $P, Q, R$ be polynomials and let $S(x)=P\left(x^{3}\right)+x Q\left(x^{3}\right)+$ $x^{2} R\left(x^{3}\right)$ be a polynomial of degree $n$ whose roots $x_{1}, \ldots, x_{n}$ are distinct. Construct with the aid of the polynomials $P, Q, R$ a polynomial $T$ of degree $n$ that has the roots $x_{1}^{3}, x_{2}^{3}, \ldots, x_{n}^{3}$. 12. (USS 4) ${ }^{\mathrm{IMO} 6}$ We are given 100 points in the plane, no three of which are on the same line. Consider all triangles that have all vertices chosen from the 100 given points. Prove that at most $70 \%$ of these triangles are acute angled. ### 3.13 The Thirteenth IMO Bratislava-Zilina, Czechoslovakia, July 10-21, 1971 ### 3.13.1 Contest Problems First Day (July 13) 1. Prove that the following statement is true for $n=3$ and for $n=5$, and false for all other $n>2$ : For any real numbers $a_{1}, a_{2}, \ldots, a_{n}$, $$ \begin{gathered} \left(a_{1}-a_{2}\right)\left(a_{1}-a_{3}\right) \cdots\left(a_{1}-a_{n}\right)+\left(a_{2}-a_{1}\right)\left(a_{2}-a_{3}\right) \cdots\left(a_{2}-a_{n}\right)+\ldots \\ +\left(a_{n}-a_{1}\right)\left(a_{n}-a_{2}\right) \cdots\left(a_{n}-a_{n-1}\right) \geq 0 \end{gathered} $$ 2. Given a convex polyhedron $P_{1}$ with 9 vertices $A_{1}, \ldots, A_{9}$, let us denote by $P_{2}, P_{3}, \ldots, P_{9}$ the images of $P_{1}$ under the translations mapping the vertex $A_{1}$ to $A_{2}, A_{3}, \ldots, A_{9}$, respectively. Prove that among the polyhedra $P_{1}, \ldots, P_{9}$ at least two have a common interior point. 3. Prove that the sequence $2^{n}-3(n>1)$ contains a subsequence of numbers relatively prime in pairs. ## Second Day (July 14) 4. Given a tetrahedron $A B C D$ all of whose faces are acute-angled triangles, set $$ \sigma=\measuredangle D A B+\measuredangle B C D-\measuredangle A B C-\measuredangle C D A $$ Consider all closed broken lines $X Y Z T X$ whose vertices $X, Y, Z, T$ lie in the interior of segments $A B, B C, C D, D A$ respectively. Prove that: (a) if $\sigma \neq 0$, then there is no broken line $X Y Z T$ of minimal length; (b) if $\sigma=0$, then there are infinitely many such broken lines of minimal length. That length equals $2 A C \sin (\alpha / 2)$, where $$ \alpha=\measuredangle B A C+\measuredangle C A D+\measuredangle D A B $$ 5. Prove that for every natural number $m \geq 1$ there exists a finite set $S_{m}$ of points in the plane satisfying the following condition: If $A$ is any point in $S_{m}$, then there are exactly $m$ points in $S_{m}$ whose distance to $A$ equals 1. 6. Consider the $n \times n$ array of nonnegative integers $$ \left(\begin{array}{cccc} a_{11} & a_{12} & \ldots & a_{1 n} \\ a_{21} & a_{22} & \cdots & a_{2 n} \\ \vdots & \vdots & & \vdots \\ a_{n 1} & a_{n 2} & \ldots & a_{n n} \end{array}\right) $$ with the following property: If an element $a_{i j}$ is zero, then the sum of the elements of the $i$ th row and the $j$ th column is greater than or equal to $n$. Prove that the sum of all the elements is greater than or equal to $\geq \frac{1}{2} n^{2}$. ### 3.13.2 Longlisted Problems 1. (AUT 1) The points $S(i, j)$ with integer Cartesian coordinates $0\frac{76}{16} n$ holds. 3. (AUT 3) Let $a, b, c$ be positive real numbers, $0a>0$, and $d>b>0$. Show that if there exists a right circular cone with vertex $V$, with the properties: (1) its axis passes through $O$, and (2) its curved surface passes through $A, B, C$ and $D$, then $$ O V^{2}=\frac{d^{2} b^{2}(c+a)^{2}-c^{2} a^{2}(d+b)^{2}}{c a(d-b)^{2}-d b(c-a)^{2}} $$ [^3]Show also that if $\frac{c+a}{d+b}$ lies between $\frac{c a}{d b}$ and $\sqrt{\frac{c a}{d b}}$, and $\frac{c-a}{d-b}=\frac{c a}{d b}$, then for a suitable choice of $\theta$, a right circular cone exists with properties (1) and (2). 16. (GBR 3) (SL71-4). Original formulation. Two (intersecting) circles are given and a point $P$ through which it is possible to draw a straight line on which the circles intercept two equal chords. Describe a construction by straightedge and compass for the straight line and prove the validity of your construction. 17. (GDR 1) (SL71-3). Original formulation. Find all solutions of the system $$ \begin{aligned} x+y+z & =3, \\ x^{3}+y^{3}+z^{3} & =15, \\ x^{5}+y^{5}+z^{5} & =83 . \end{aligned} $$ 18. (GDR 2) Let $a_{1}, a_{2}, \ldots, a_{n}$ be positive numbers, $m_{g}=\left(a_{1} a_{2} \cdots a_{n}\right)^{1 / n}$ their geometric mean, and $m_{a}=\left(a_{1}+a_{2}+\cdots+a_{n}\right) / n$ their arithmetic mean. Prove that $$ \left(1+m_{g}\right)^{n} \leq\left(1+a_{1}\right) \cdots\left(1+a_{n}\right) \leq\left(1+m_{a}\right)^{n} $$ 19. (GDR 3) In a triangle $P_{1} P_{2} P_{3}$ let $P_{i} Q_{i}$ be the altitude from $P_{i}$ for $i=1,2,3$ ( $Q_{i}$ being the foot of the altitude). The circle with diameter $P_{i} Q_{i}$ meets the two corresponding sides at two points different from $P_{i}$. Denote the length of the segment whose endpoints are these two points by $l_{i}$. Prove that $l_{1}=l_{2}=l_{3}$. 20. (GDR 4) Let $M$ be the circumcenter of a triangle $A B C$. The line through $M$ perpendicular to $C M$ meets the lines $C A$ and $C B$ at $Q$ and $P$ respectively. Prove that $$ \frac{\overline{C P}}{\overline{C M}} \frac{\overline{C Q}}{\overline{C M}} \frac{\overline{A B}}{\overline{P Q}}=2 . $$ 21. (HUN 1) (SL71-5). 22. (HUN 2) We are given an $n \times n$ board, where $n$ is an odd number. In each cell of the board either +1 or -1 is written. Let $a_{k}$ and $b_{k}$ denote the products of numbers in the $k$ th row and in the $k$ th column respectively. Prove that the sum $a_{1}+a_{2}+\cdots+a_{n}+b_{1}+b_{2}+\cdots+b_{n}$ cannot be equal to zero. 23. (HUN 3) Find all integer solutions of the equation $$ x^{2}+y^{2}=(x-y)^{3} $$ 24. (HUN 4) Let $A, B$, and $C$ denote the angles of a triangle. If $\sin ^{2} A+$ $\sin ^{2} B+\sin ^{2} C=2$, prove that the triangle is right-angled. 25. (HUN 5) Let $A B C, A A_{1} A_{2}, B B_{1} B_{2}, C C_{1} C_{2}$ be four equilateral triangles in the plane satisfying only that they are all positively oriented (i.e., in the counterclockwise direction). Denote the midpoints of the segments $A_{2} B_{1}, B_{2} C_{1}, C_{2} A_{1}$ by $P, Q, R$ in this order. Prove that the triangle $P Q R$ is equilateral. 26. (HUN 6) An infinite set of rectangles in the Cartesian coordinate plane is given. The vertices of each of these rectangles have coordinates $(0,0),(p, 0),(p, q),(0, q)$ for some positive integers $p, q$. Show that there must exist two among them one of which is entirely contained in the other. 27. (HUN 7) (SL71-6). 28. (NET 1) (SL71-7). Original formulation. A tetrahedron $A B C D$ is given. The sum of angles of the tetrahedron at the vertex $A$ (namely $\angle B A C, \angle C A D, \angle D A B$ ) is denoted by $\alpha$, and $\beta, \gamma, \delta$ are defined analogously. Let $P, Q, R, S$ be variable points on edges of the tetrahedron: $P$ on $A D, Q$ on $B D, R$ on $B C$, and $S$ on $A C$, none of them at some vertex of $A B C D$. Prove that: (a) if $\alpha+\beta \neq 2 \pi$, then $P Q+Q R+R S+S P$ attains no minimal value; (b) if $\alpha+\beta=2 \pi$, then $$ A B \sin \frac{\alpha}{2}=C D \sin \frac{\gamma}{2} \quad \text { and } \quad P Q+Q R+R S+S P \geq 2 A B \sin \frac{\alpha}{2} $$ 29. (NET 2) A rhombus with its incircle is given. At each vertex of the rhombus a circle is constructed that touches the incircle and two edges of the rhombus. These circles have radii $r_{1}, r_{2}$, while the incircle has radius $r$. Given that $r_{1}$ and $r_{2}$ are natural numbers and that $r_{1} r_{2}=r$, find $r_{1}, r_{2}$, and $r$. 30. (NET 3) Prove that the system of equations $$ \begin{aligned} & 2 y z+x-y-z=a, \\ & 2 x z-x+y-z=a, \\ & 2 x y-x-y+z=a, \end{aligned} $$ $a$ being a parameter, cannot have five distinct solutions. For what values of $a$ does this system have four distinct integer solutions? 31. (NET 4) (SL71-8). 32. (NET 5) Two half-lines $a$ and $b$, with the common endpoint $O$, make an acute angle $\alpha$. Let $A$ on $a$ and $B$ on $b$ be points such that $O A=O B$, and let $b^{\prime}$ be the line through $A$ parallel to $b$. Let $\beta$ be the circle with center $B$ and radius $B O$. We construct a sequence of half-lines $c_{1}, c_{2}, c_{3}, \ldots$, all lying inside the angle $\alpha$, in the following manner: (i) $c_{1}$ is given arbitrarily; (ii) for every natural number $k$, the circle $\beta$ intercepts on $c_{k}$ a segment that is of the same length as the segment cut on $b^{\prime}$ by $a$ and $c_{k+1}$. Prove that the angle determined by the lines $c_{k}$ and $b$ has a limit as $k$ tends to infinity and find that limit. 33. (NET 6) A square $2 n \times 2 n$ grid is given. Let us consider all possible paths along grid lines, going from the center of the grid to the border, such that (1) no point of the grid is reached more than once, and (2) each of the squares homothetic to the grid having its center at the grid center is passed through only once. (a) Prove that the number of all such paths is equal to $4 \prod_{i=2}^{n}(16 i-9)$. (b) Find the number of pairs of such paths that divide the grid into two congruent figures. (c) How many quadruples of such paths are there that divide the grid into four congruent parts? 34. (POL 1) (SL71-9). 35. (POL 2) (SL71-10). 36. (POL 3) (SL71-11). 37. (POL 4) Let $S$ be a circle, and $\alpha=\left\{A_{1}, \ldots, A_{n}\right\}$ a family of open arcs in $S$. Let $N(\alpha)=n$ denote the number of elements in $\alpha$. We say that $\alpha$ is a covering of $S$ if $\bigcup_{k=1}^{n} A_{k} \supset S$. Let $\alpha=\left\{A_{1}, \ldots, A_{n}\right\}$ and $\beta=\left\{B_{1}, \ldots, B_{m}\right\}$ be two coverings of $S$. Show that we can choose from the family of all sets $A_{i} \cap B_{j}, i=1,2, \ldots, n$, $j=1,2, \ldots, m$, a covering $\gamma$ of $S$ such that $N(\gamma) \leq N(\alpha)+N(\beta)$. 38. (POL 5) Let $A, B, C$ be three points with integer coordinates in the plane and $K$ a circle with radius $R$ passing through $A, B, C$. Show that $A B \cdot B C \cdot C A \geq 2 R$, and if the center of $K$ is in the origin of the coordinates, show that $A B \cdot B C \cdot C A \geq 4 R$. 39. (POL 6) (SL71-12). 40. (SWE 1) Prove that $$ \left(1-\frac{1}{2^{3}}\right)\left(1-\frac{1}{3^{3}}\right)\left(1-\frac{1}{4^{3}}\right) \cdots\left(1-\frac{1}{n^{3}}\right)>\frac{1}{2}, \quad n=2,3, \ldots $$ 41. (SWE 2) Consider the set of grid points $(m, n)$ in the plane, $m, n$ integers. Let $\sigma$ be a finite subset and define $$ S(\sigma)=\sum_{(m, n) \in \sigma}(100-|m|-|n|) $$ Find the maximum of $S$, taken over the set of all such subsets $\sigma$. 42. (SWE 3) Let $L_{i}, i=1,2,3$, be line segments on the sides of an equilateral triangle, one segment on each side, with lengths $l_{i}, i=1,2,3$. By $L_{i}^{*}$ we denote the segment of length $l_{i}$ with its midpoint on the midpoint of the corresponding side of the triangle. Let $M(L)$ be the set of points in the plane whose orthogonal projections on the sides of the triangle are in $L_{1}, L_{2}$, and $L_{3}$, respectively; $M\left(L^{*}\right)$ is defined correspondingly. Prove that if $l_{1} \geq l_{2}+l_{3}$, we have that the area of $M(L)$ is less than or equal to the area of $M\left(L^{*}\right)$. 43. (SWE 4) Show that for nonnegative real numbers $a, b$ and integers $n \geq 2$, $$ \frac{a^{n}+b^{n}}{2} \geq\left(\frac{a+b}{2}\right)^{n} $$ When does equality hold? 44. (SWE 5) (SL71-13). 45. (SWE 6) Let $m$ and $n$ denote integers greater than 1 , and let $\nu(n)$ be the number of primes less than or equal to $n$. Show that if the equation $\frac{n}{\nu(n)}=m$ has a solution, then so does the equation $\frac{n}{\nu(n)}=m-1$. 46. (USS 1) (SL71-14). 47. (USS 2) (SL71-15). 48. (USS 3) A sequence of real numbers $x_{1}, x_{2}, \ldots, x_{n}$ is given such that $x_{i+1}=x_{i}+\frac{1}{30000} \sqrt{1-x_{i}^{2}}, i=1,2, \ldots$, and $x_{1}=0$. Can $n$ be equal to 50000 if $x_{n}<1$ ? 49. (USS 4) Diagonals of a convex quadrilateral $A B C D$ intersect at a point $O$. Find all angles of this quadrilateral if $\measuredangle O B A=30^{\circ}, \measuredangle O C B=$ $45^{\circ}, \measuredangle O D C=45^{\circ}$, and $\measuredangle O A D=30^{\circ}$. 50. (USS 5) (SL71-16). 51. (USS 6) Suppose that the sides $A B$ and $D C$ of a convex quadrilateral $A B C D$ are not parallel. On the sides $B C$ and $A D$, pairs of points $(M, N)$ and $(K, L)$ are chosen such that $B M=M N=N C$ and $A K=K L=L D$. Prove that the areas of triangles $O K M$ and $O L N$ are different, where $O$ is the intersection point of $A B$ and $C D$. 52. (YUG 1) (SL71-17). 53. (YUG 2) Denote by $x_{n}(p)$ the multiplicity of the prime $p$ in the canonical representation of the number $n$ ! as a product of primes. Prove that $\frac{x_{n}(p)}{n}<$ $\frac{1}{p-1}$ and $\lim _{n \rightarrow \infty} \frac{x_{n}(p)}{n}=\frac{1}{p-1}$. 54. (YUG 3) A set $M$ is formed of $\binom{2 n}{n}$ men, $n=1,2, \ldots$. Prove that we can choose a subset $P$ of the set $M$ consisting of $n+1$ men such that one of the following conditions is satisfied: (1) every member of the set $P$ knows every other member of the set $P$; (2) no member of the set $P$ knows any other member of the set $P$. 55. (YUG 4) Prove that the polynomial $x^{4}+\lambda x^{3}+\mu x^{2}+\nu x+1$ has no real roots if $\lambda, \mu, \nu$ are real numbers satisfying $$ |\lambda|+|\mu|+|\nu| \leq \sqrt{2} $$ ### 3.13.3 Shortlisted Problems 1. (BUL 2) Consider a sequence of polynomials $P_{0}(x), P_{1}(x), P_{2}(x), \ldots$, $P_{n}(x), \ldots$, where $P_{0}(x)=2, P_{1}(x)=x$ and for every $n \geq 1$ the following equality holds: $$ P_{n+1}(x)+P_{n-1}(x)=x P_{n}(x) $$ Prove that there exist three real numbers $a, b, c$ such that for all $n \geq 1$, $$ \left(x^{2}-4\right)\left[P_{n}^{2}(x)-4\right]=\left[a P_{n+1}(x)+b P_{n}(x)+c P_{n-1}(x)\right]^{2} $$ 2. (BUL 5) ${ }^{\mathrm{IMO} 5}$ Prove that for every natural number $m \geq 1$ there exists a finite set $S_{m}$ of points in the plane satisfying the following condition: If $A$ is any point in $S_{m}$, then there are exactly $m$ points in $S_{m}$ whose distance to $A$ equals 1. 3. (GDR 1) Knowing that the system $$ \begin{aligned} x+y+z & =3, \\ x^{3}+y^{3}+z^{3} & =15, \\ x^{4}+y^{4}+z^{4} & =35, \end{aligned} $$ has a real solution $x, y, z$ for which $x^{2}+y^{2}+z^{2}<10$, find the value of $x^{5}+y^{5}+z^{5}$ for that solution. 4. (GBR 3) We are given two mutually tangent circles in the plane, with radii $r_{1}, r_{2}$. A line intersects these circles in four points, determining three segments of equal length. Find this length as a function of $r_{1}$ and $r_{2}$ and the condition for the solvability of the problem. 5. (HUN 1) ${ }^{\mathrm{IMO}}$ Let $a, b, c, d, e$ be real numbers. Prove that the expression $$ \begin{gathered} (a-b)(a-c)(a-d)(a-e)+(b-a)(b-c)(b-d)(b-e)+(c-a)(c-b)(c-d)(c-e) \\ +(d-a)(d-b)(d-c)(d-e)+(e-a)(e-b)(e-c)(e-d) \end{gathered} $$ is nonnegative. 6. (HUN 7) Let $n \geq 2$ be a natural number. Find a way to assign natural numbers to the vertices of a regular $2^{n}$-gon such that the following conditions are satisfied: (1) only digits 1 and 2 are used; (2) each number consists of exactly $n$ digits; (3) different numbers are assigned to different vertices; (4) the numbers assigned to two neighboring vertices differ at exactly one digit. 7. (NET 1) ${ }^{\mathrm{IMO} /}$ Given a tetrahedron $A B C D$ whose all faces are acuteangled triangles, set $$ \sigma=\measuredangle D A B+\measuredangle B C D-\measuredangle A B C-\measuredangle C D A $$ Consider all closed broken lines $X Y Z T X$ whose vertices $X, Y, Z, T$ lie in the interior of segments $A B, B C, C D, D A$ respectively. Prove that: (a) if $\sigma \neq 0$, then there is no broken line $X Y Z T$ of minimal length; (b) if $\sigma=0$, then there are infinitely many such broken lines of minimal length. That length equals $2 A C \sin (\alpha / 2)$, where $$ \alpha=\measuredangle B A C+\measuredangle C A D+\measuredangle D A B $$ 8. (NET 4) Determine whether there exist distinct real numbers $a, b, c, t$ for which: (i) the equation $a x^{2}+b t x+c=0$ has two distinct real roots $x_{1}, x_{2}$, (ii) the equation $b x^{2}+c t x+a=0$ has two distinct real roots $x_{2}, x_{3}$, (iii) the equation $c x^{2}+a t x+b=0$ has two distinct real roots $x_{3}, x_{1}$. 9. (POL 1) Let $T_{k}=k-1$ for $k=1,2,3,4$ and $$ T_{2 k-1}=T_{2 k-2}+2^{k-2}, \quad T_{2 k}=T_{2 k-5}+2^{k} \quad(k \geq 3) $$ Show that for all $k$, $$ 1+T_{2 n-1}=\left[\frac{12}{7} 2^{n-1}\right] \quad \text { and } \quad 1+T_{2 n}=\left[\frac{17}{7} 2^{n-1}\right] $$ where $[x]$ denotes the greatest integer not exceeding $x$. 10. (POL 2) ${ }^{\mathrm{IMO} 3}$ Prove that the sequence $2^{n}-3(n>1)$ contains a subsequence of numbers relatively prime in pairs. 11. (POL 3) The matrix $$ \left(\begin{array}{ccc} a_{11} & \ldots & a_{1 n} \\ \vdots & \ldots & \vdots \\ a_{n 1} & \ldots & a_{n n} \end{array}\right) $$ satisfies the inequality $\sum_{j=1}^{n}\left|a_{j 1} x_{1}+\cdots+a_{j n} x_{n}\right| \leq M$ for each choice of numbers $x_{i}$ equal to $\pm 1$. Show that $$ \left|a_{11}+a_{22}+\cdots+a_{n n}\right| \leq M $$ 12. (POL 6) Two congruent equilateral triangles $A B C$ and $A^{\prime} B^{\prime} C^{\prime}$ in the plane are given. Show that the midpoints of the segments $A A^{\prime}, B B^{\prime}, C C^{\prime}$ either are collinear or form an equilateral triangle. 13. (SWE 5) ${ }^{\mathrm{IMO} 6}$ Consider the $n \times n$ array of nonnegative integers $$ \left(\begin{array}{cccc} a_{11} & a_{12} & \ldots & a_{1 n} \\ a_{21} & a_{22} & \ldots & a_{2 n} \\ \vdots & \vdots & & \vdots \\ a_{n 1} & a_{n 2} & \ldots & a_{n n} \end{array}\right) $$ with the following property: If an element $a_{i j}$ is zero, then the sum of the elements of the $i$ th row and the $j$ th column is greater than or equal to $n$. Prove that the sum of all the elements is greater than or equal to $\frac{1}{2} n^{2}$. 14. (USS 1) A broken line $A_{1} A_{2} \ldots A_{n}$ is drawn in a $50 \times 50$ square, so that the distance from any point of the square to the broken line is less than 1. Prove that its total length is greater than 1248. 15. (USS 2) Natural numbers from 1 to 99 (not necessarily distinct) are written on 99 cards. It is given that the sum of the numbers on any subset of cards (including the set of all cards) is not divisible by 100. Show that all the cards contain the same number. 16. (USS 5) ${ }^{\mathrm{IMO} 2}$ Given a convex polyhedron $P_{1}$ with 9 vertices $A_{1}, \ldots, A_{9}$, let us denote by $P_{2}, P_{3}, \ldots, P_{9}$ the images of $P_{1}$ under the translations mapping the vertex $A_{1}$ to $A_{2}, A_{3}, \ldots, A_{9}$ respectively. Prove that among the polyhedra $P_{1}, \ldots, P_{9}$ at least two have a common interior point. 17. (YUG 1) Prove the inequality $$ \frac{a_{1}+a_{3}}{a_{1}+a_{2}}+\frac{a_{2}+a_{4}}{a_{2}+a_{3}}+\frac{a_{3}+a_{1}}{a_{3}+a_{4}}+\frac{a_{4}+a_{2}}{a_{4}+a_{1}} \geq 4 $$ where $a_{i}>0, i=1,2,3,4$. ### 3.14 The Fourteenth IMO
Warsaw-Toruna, Poland, July 5-17, 1972 ### 3.14.1 Contest Problems First Day (July 10) 1. A set of 10 positive integers is given such that the decimal expansion of each of them has two digits. Prove that there are two disjoint subsets of the set with equal sums of their elements. 2. Prove that for each $n \geq 4$ every cyclic quadrilateral can be decomposed into $n$ cyclic quadrilaterals. 3. Let $m$ and $n$ be nonnegative integers. Prove that $\frac{(2 m)!(2 n)!}{m!n!(m+n)!}$ is an integer $(0!=1)$. Second Day (July 11) 4. Find all solutions in positive real numbers $x_{i}(i=1,2,3,4,5)$ of the following system of inequalities: $$ \begin{aligned} & \left(x_{1}^{2}-x_{3} x_{5}\right)\left(x_{2}^{2}-x_{3} x_{5}\right) \leq 0 \\ & \left(x_{2}^{2}-x_{4} x_{1}\right)\left(x_{3}^{2}-x_{4} x_{1}\right) \leq 0 \\ & \left(x_{3}^{2}-x_{5} x_{2}\right)\left(x_{4}^{2}-x_{5} x_{2}\right) \leq 0 \\ & \left(x_{4}^{2}-x_{1} x_{3}\right)\left(x_{5}^{2}-x_{1} x_{3}\right) \leq 0 \\ & \left(x_{5}^{2}-x_{2} x_{4}\right)\left(x_{1}^{2}-x_{2} x_{4}\right) \leq 0 \end{aligned} $$ 5. Let $f$ and $\varphi$ be real functions defined in the interval $(-\infty, \infty)$ satisfying the functional equation $$ f(x+y)+f(x-y)=2 \varphi(y) f(x) $$ for arbitrary real $x, y$ (give examples of such functions). Prove that if $f(x)$ is not identically 0 and $|f(x)| \leq 1$ for all $x$, then $|\varphi(x)| \leq 1$ for all $x$. 6. Given four distinct parallel planes, show that a regular tetrahedron exists with a vertex on each plane. ### 3.14.2 Longlisted Problems 1. (BUL 1) Find all integer solutions of the equation $$ 1+x+x^{2}+x^{3}+x^{4}=y^{4} $$ 2. (BUL 2) Find all real values of the parameter $a$ for which the system of equations $$ \begin{aligned} & x^{4}=y z-x^{2}+a \\ & y^{4}=z x-y^{2}+a \\ & z^{4}=x y-z^{2}+a \end{aligned} $$ has at most one real solution. 3. (BUL 3) On a line a set of segments is given of total length less than $n$. Prove that every set of $n$ points of the line can be translated in some direction along the line for a distance smaller than $n / 2$ so that none of the points remain on the segments. 4. (BUL 4) Given a triangle, prove that the points of intersection of three pairs of trisectors of the inner angles at the sides lying closest to those sides are vertices of an equilateral triangle. 5. (BUL 5) Given a pyramid whose base is an $n$-gon inscribable in a circle, let $H$ be the projection of the top vertex of the pyramid to its base. Prove that the projections of $H$ to the lateral edges of the pyramid lie on a circle. 6. (BUL 6) Prove the inequality $$ (n+1) \cos \frac{\pi}{n+1}-n \cos \frac{\pi}{n}>1 $$ for all natural numbers $n \geq 2$. 7. (BUL 7) (SL72-1). 8. (CZS 1) (SL72-2). 9. (CZS 2) Given natural numbers $k$ and $n, k \leq n, n \geq 3$, find the set of all values in the interval $(0, \pi)$ that the $k$ th-largest among the interior angles of a convex $n$ gon can take. 10. (CZS 3) Given five points in the plane, no three of which are collinear, prove that there can be found at least two obtuse-angled triangles with vertices at the given points. Construct an example in which there are exactly two such triangles. 11. (CZS 4) (SL72-3). 12. (CZS 5) A circle $k=(S, r)$ is given and a hexagon $A A^{\prime} B B^{\prime} C C^{\prime}$ inscribed in it. The lengths of sides of the hexagon satisfy $A A^{\prime}=A^{\prime} B, B B^{\prime}=B^{\prime} C$, $C C^{\prime}=C^{\prime} A$. Prove that the area $P$ of triangle $A B C$ is not greater than the area $P^{\prime}$ of triangle $A^{\prime} B^{\prime} C^{\prime}$. When does $P=P^{\prime}$ hold? 13. (CZS 6) Given a sphere $K$, determine the set of all points $A$ that are vertices of some parallelograms $A B C D$ that satisfy $A C \leq B D$ and whose entire diagonal $B D$ is contained in $K$. 14. (GBR 1) (SL72-7). 15. (GBR 2) (SL72-8). 16. (GBR 3) Consider the set $S$ of all the different odd positive integers that are not multiples of 5 and that are less than $30 m, m$ being a positive integer. What is the smallest integer $k$ such that in any subset of $k$ integers from $S$ there must be two integers one of which divides the other? Prove your result. 17. (GBR 4) A solid right circular cylinder with height $h$ and base-radius $r$ has a solid hemisphere of radius $r$ resting upon it. The center of the hemisphere $O$ is on the axis of the cylinder. Let $P$ be any point on the surface of the hemisphere and $Q$ the point on the base circle of the cylinder that is furthest from $P$ (measuring along the surface of the combined solid). A string is stretched over the surface from $P$ to $Q$ so as to be as short as possible. Show that if the string is not in a plane, the straight line $P O$ when produced cuts the curved surface of the cylinder. 18. (GBR 5) We have $p$ players participating in a tournament, each player playing against every other player exactly once. A point is scored for each victory, and there are no draws. A sequence of nonnegative integers $s_{1} \leq s_{2} \leq s_{3} \leq \cdots \leq s_{p}$ is given. Show that it is possible for this sequence to be a set of final scores of the players in the tournament if and only if (i) $\sum_{i=1}^{p} s_{i}=\frac{1}{2} p(p-1) \quad$ and (ii) for all $k 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, $01$. 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 $0
n$. 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}0, a_{i+1}>a_{i}$.) Prove that there are infinitely many $m$ for which positive integers $x, y, h, k$ can be found such that $00, a_{i+1}>a_{i}$.) Prove that there are infinitely many $m$ for which positive integers $x, y, h, k$ can be found such that $0B M \cdot D N $$ 6. (CZS 1) For each point $X$ of a given polytope, denote by $f(X)$ the sum of the distances of the point $X$ from all the planes of the faces of the polytope. Prove that if $f$ attains its maximum at an interior point of the polytope, then $f$ is constant. 7. (CZS 2) Let $P$ be a fixed point and $T$ a given triangle that contains the point $P$. Translate the triangle $T$ by a given vector $\mathbf{v}$ and denote by $T^{\prime}$ this new triangle. Let $r, R$, respectively, be the radii of the smallest disks centered at $P$ that contain the triangles $T, T^{\prime}$, respectively. Prove that $$ r+|\mathbf{v}| \leq 3 R $$ and find an example to show that equality can occur. 8. (CZS 3) (SL76-3). 9. (CZS 4) Find all (real) solutions of the system $$ \begin{aligned} & 3 x_{1}-x_{2}-x_{3} \quad-x_{5} \quad=0, \\ & \begin{array}{lll} -x_{1}+3 x_{2} & -x_{4} & -x_{6} \end{array}=0, \\ & \begin{array}{ccc} -x_{1} & +3 x_{3}-x_{4} & -x_{7} \end{array}=0, \\ & -x_{2}-x_{3}+3 x_{4} \quad-x_{8}=0, \\ & -x_{1} \quad+3 x_{5}-x_{6}-x_{7} \quad=0, \\ & \begin{array}{rll} -x_{2} & & -x_{5}+3 x_{6} \quad-x_{8}=0, \\ -x_{3} & -x_{5}+3 x_{7}-x_{8}=0, \end{array} \\ & -x_{4} \quad-x_{6}-x_{7}+3 x_{8}=0 . \end{aligned} $$ 10. (FIN 1) Show that the reciprocal of any number of the form $2\left(m^{2}+\right.$ $m+1$ ), where $m$ is a positive integer, can be represented as a sum of consecutive terms in the sequence $\left(a_{j}\right)_{j=1}^{\infty}$, $$ a_{j}=\frac{1}{j(j+1)(j+2)} . $$ 11. (FIN 2) (SL76-9). 12. (FIN 3) Five points lie on the surface of a ball of unit radius. Find the maximum of the smallest distance between any two of them. 13. (GBR 1a) (SL76-4). 14. (GBR 1b) A sequence $\left\{u_{n}\right\}$ of integers is defined by $$ \begin{aligned} u_{1} & =2, \quad u_{2}=u_{3}=7, \\ u_{n+1} & =u_{n} u_{n-1}-u_{n-2}, \quad \text { for } n \geq 3 \end{aligned} $$ Prove that for each $n \geq 1, u_{n}$ differs by 2 from an integral square. 15. (GBR 2) Let $A B C$ and $A^{\prime} B^{\prime} C^{\prime}$ be any two coplanar triangles. Let $L$ be a point such that $A L\left\|B C, A^{\prime} L\right\| B^{\prime} C^{\prime}$, and $M, N$ similarly defined. The line $B C$ meets $B^{\prime} C^{\prime}$ at $P$, and similarly defined are $Q$ and $R$. Prove that $P L, Q M, R N$ are concurrent. 16. (GBR 3) Prove that there is a positive integer $n$ such that the decimal representation of $7^{n}$ contains a block of at least $m$ consecutive zeros, where $m$ is any given positive integer. 17. (GBR 4) Show that there exists a convex polyhedron with all its vertices on the surface of a sphere and with all its faces congruent isosceles triangles whose ratio of sides are $\sqrt{3}: \sqrt{3}: 2$. 18. (GDR 1) Prove that the number $19^{1976}+76^{1976}$ : (a) is divisible by the (Fermat) prime number $F_{4}=2^{2^{4}}+1$; (b) is divisible by at least four distinct primes other than $F_{4}$. 19. (GDR 2) For a positive integer $n$, let $6^{(n)}$ be the natural number whose decimal representation consists of $n$ digits 6 . Let us define, for all natural numbers $m, k$ with $1 \leq k \leq m$, $$ \left[\begin{array}{c} m \\ k \end{array}\right]=\frac{6^{(m)} \cdot 6^{(m-1)} \cdots 6^{(m-k+1)}}{6^{(1)} \cdot 6^{(2)} \cdots 6^{(k)}} $$ Prove that for all $m, k,\left[\begin{array}{c}m \\ k\end{array}\right]$ is a natural number whose decimal representation consists of exactly $k(m+k-1)-1$ digits. 20. (GDR 3) Let $\left(a_{n}\right), n=0,1, \ldots$, be a sequence of real numbers such that $a_{0}=0$ and $$ a_{n+1}^{3}=\frac{1}{2} a_{n}^{2}-1, \quad n=0,1, \ldots $$ Prove that there exists a positive number $q, q<1$, such that for all $n=1,2, \ldots$, $$ \left|a_{n+1}-a_{n}\right| \leq q\left|a_{n}-a_{n-1}\right|, $$ and give one such $q$ explicitly. 21. (GDR 4) Find the largest positive real number $p$ (if it exists) such that the inequality $$ x_{1}^{2}+x_{2}^{2}+\cdots+x_{n}^{2} \geq p\left(x_{1} x_{2}+x_{2} x_{3}+\cdots+x_{n-1} x_{n}\right) $$ is satisfied for all real numbers $x_{i}$, and (a) $n=2$; (b) $n=5$. Find the largest positive real number $p$ (if it exists) such that the inequality (1) holds for all real numbers $x_{i}$ and all natural numbers $n, n \geq 2$. 22. (GDR 5) A regular pentagon $A_{1} A_{2} A_{3} A_{4} A_{5}$ with side length $s$ is given. At each point $A_{i}$ a sphere $K_{i}$ of radius $s / 2$ is constructed. There are two spheres $K_{1}{ }^{\prime}$ and $K_{2}{ }^{\prime}$ eah of radius $s / 2$ touching all the five spheres $K_{i}$. Decide whether $K_{1}{ }^{\prime}$ and $K_{2}{ }^{\prime}$ intersect each other, touch each other, or have no common points. 23. (NET 1) Prove that in a Euclidean plane there are infinitely many concentric circles $C$ such that all triangles inscribed in $C$ have at least one irrational side. 24. (NET 2) Let $0 \leq x_{1} \leq x_{2} \leq \cdots \leq x_{n} \leq 1$. Prove that for all $A \geq 1$ there exists an interval $I$ of length $2 \sqrt[n]{A}$ such that for all $x \in I$, $$ \left|\left(x-x_{1}\right)\left(x-x_{2}\right) \cdots\left(x-x_{n}\right)\right| \leq A $$ 25. (NET 3) (SL76-5). 26. (NET 4) (SL76-6). 27. (NET 5) In a plane three points $P, Q, R$, not on a line, are given. Let $k, l, m$ be positive numbers. Construct a triangle $A B C$ whose sides pass through $P, Q$, and $R$ such that $P$ divides the segment $A B$ in the ratio $1: k$, $Q$ divides the segment $B C$ in the ratio $1: l$, and $R$ divides the segment $C A$ in the ratio 1: $m$. 28. (POL 1a) Let $Q$ be a unit square in the plane: $Q=[0,1] \times[0,1]$. Let $T: Q \rightarrow Q$ be defined as follows: $$ T(x, y)= \begin{cases}(2 x, y / 2) & \text { if } 0 \leq x \leq 1 / 2 \\ (2 x-1, y / 2+1 / 2) & \text { if } 1 / 20$ such that $T^{n}(D) \cap D \neq \emptyset$. 29. (POL 1b) (SL76-7). 30. (POL 2) Prove that if $P(x)=(x-a)^{k} Q(x)$, where $k$ is a positive integer, $a$ is a nonzero real number, $Q(x)$ is a nonzero polynomial, then $P(x)$ has at least $k+1$ nonzero coefficients. 31. (POL 3) Into every lateral face of a quadrangular pyramid a circle is inscribed. The circles inscribed into adjacent faces are tangent (have one point in common). Prove that the points of contact of the circles with the base of the pyramid lie on a circle. 32. (POL 4) We consider the infinite chessboard covering the whole plane. In every field of the chessboard there is a nonnegative real number. Every number is the arithmetic mean of the numbers in the four adjacent fields of the chessboard. Prove that the numbers occurring in the fields of the chessboard are all equal. 33. (SWE 1) A finite set of points $P$ in the plane has the following property: Every line through two points in $P$ contains at least one more point belonging to $P$. Prove that all points in $P$ lie on a straight line. 34. (SWE 2) Let $\left\{a_{n}\right\}_{0}^{\infty}$ and $\left\{b_{n}\right\}_{0}^{\infty}$ be two sequences determined by the recursion formulas $$ \begin{aligned} & a_{n+1}=a_{n}+b_{n}, \\ & b_{n+1}=3 a_{n}+b_{n}, \quad n=0,1,2, \ldots, \end{aligned} $$ and the initial values $a_{0}=b_{0}=1$. Prove that there exists a uniquely determined constant $c$ such that $n\left|c a_{n}-b_{n}\right|<2$ for all nonnegative integers $n$. 35. (SWE 3) (SL76-8). 36. (USA 1) Three concentric circles with common center $O$ are cut by a common chord in successive points $A, B, C$. Tangents drawn to the circles at the points $A, B, C$ enclose a triangular region. If the distance from point $O$ to the common chord is equal to $p$, prove that the area of the region enclosed by the tangents is equal to $$ \frac{A B \cdot B C \cdot C A}{2 p} $$ 37. (USA 2) From a square board 11 squares long and 11 squares wide, the central square is removed. Prove that the remaining 120 squares cannot be covered by 15 strips each 8 units long and one unit wide. 38. (USA 3) Let $x=\sqrt{a}+\sqrt{b}$, where $a$ and $b$ are natural numbers, $x$ is not an integer, and $x<1976$. Prove that the fractional part of $x$ exceeds $10^{-19.76}$. 39. (USA 4) In $\triangle A B C$, the inscribed circle is tangent to side $B C$ at $X$. Segment $A X$ is drawn. Prove that the line joining the midpoint of segment $A X$ to the midpoint of side $B C$ passes through the center $I$ of the inscribed circle. 40. (USA 5) Let $g(x)$ be a fixed polynomial and define $f(x)$ by $f(x)=$ $x^{2}+x g\left(x^{3}\right)$. Show that $f(x)$ is not divisible by $x^{2}-x+1$. 41. (USA 6) (SL76-10). 42. (USS 1) For a point $O$ inside a triangle $A B C$, denote by $A_{1}, B_{1}, C_{1}$ the respective intersection points of $A O, B O, C O$ with the corresponding sides. Let $n_{1}=\frac{A O}{A_{1} O}, n_{2}=\frac{B O}{B_{1} O}, n_{3}=\frac{C O}{C_{1} O}$. What possible values of $n_{1}, n_{2}, n_{3}$ can all be positive integers? 43. (USS 2) Prove that if for a polynomial $P(x, y)$ we have $$ P(x-1, y-2 x+1)=P(x, y) $$ then there exists a polynomial $\Phi(x)$ with $P(x, y)=\Phi\left(y-x^{2}\right)$. 44. (USS 3) A circle of radius 1 rolls around a circle of radius $\sqrt{2}$. Initially, the tangent point is colored red. Afterwards, the red points map from one circle to another by contact. How many red points will be on the bigger circle when the center of the smaller one has made $n$ circuits around the bigger one? 45. (USS 4) We are given $n(n \geq 5)$ circles in a plane. Suppose that every three of them have a common point. Prove that all $n$ circles have a common point. 46. (USS 5) For $a \geq 0, b \geq 0, c \geq 0, d \geq 0$, prove the inequality $$ a^{4}+b^{4}+c^{4}+d^{4}+2 a b c d \geq a^{2} b^{2}+a^{2} c^{2}+a^{2} d^{2}+b^{2} c^{2}+b^{2} d^{2}+c^{2} d^{2} $$ 47. (VIE 1) (SL76-11). 48. (VIE 2) (SL76-12). 49. (VIE 3) Determine whether there exist 1976 nonsimilar triangles with angles $\alpha, \beta, \gamma$, each of them satisfying the relations $$ \frac{\sin \alpha+\sin \beta+\sin \gamma}{\cos \alpha+\cos \beta+\cos \gamma}=\frac{12}{7} \quad \text { and } \quad \sin \alpha \sin \beta \sin \gamma=\frac{12}{25} $$ 50. (VIE 4) Find a function $f(x)$ defined for all real values of $x$ such that for all $x$, $$ f(x+2)-f(x)=x^{2}+2 x+4 $$ and if $x \in[0,2)$, then $f(x)=x^{2}$. 51. (YUG 1) Four swallows are catching a fly. At first, the swallows are at the four vertices of a tetrahedron, and the fly is in its interior. Their maximal speeds are equal. Prove that the swallows can catch the fly. ### 3.18.3 Shortlisted Problems 1. (BUL 1) Let $A B C$ be a triangle with bisectors $A A_{1}, B B_{1}, C C_{1}\left(A_{1} \in\right.$ $B C$, etc.) and $M$ their common point. Consider the triangles $M B_{1} A$, $M C_{1} A, M C_{1} B, M A_{1} B, M A_{1} C, M B_{1} C$, and their inscribed circles. Prove that if four of these six inscribed circles have equal radii, then $A B=$ $B C=C A$. 2. (BUL 3) Let $a_{0}, a_{1}, \ldots, a_{n}, a_{n+1}$ be a sequence of real numbers satisfying the following conditions: $$ \begin{aligned} a_{0} & =a_{n+1}=0 \\ \left|a_{k-1}-2 a_{k}+a_{k+1}\right| & \leq 1 \quad(k=1,2, \ldots, n) \end{aligned} $$ Prove that $\left|a_{k}\right| \leq \frac{k(n+1-k)}{2}(k=0,1, \ldots, n+1)$. 3. (CZS 3) ${ }^{\mathrm{IMO} 1}$ In a convex quadrangle with area $32 \mathrm{~cm}^{2}$, the sum of the lengths of two nonadjacent edges and of the length of one diagonal is equal to 16 cm . (a) What is the length of the other diagonal? (b) What are the lengths of the edges of the quadrangle if the perimeter is a minimum? (c) Is it possible to choose the edges in such a way that the perimeter is a maximum? 4. (GBR 1a) ${ }^{\mathrm{IMO} 6}$ For all positive integral $n$, $u_{n+1}=u_{n}\left(u_{n-1}^{2}-2\right)-u_{1}$, $u_{0}=2$, and $u_{1}=5 / 2$. Prove that $$ 3 \log _{2}\left[u_{n}\right]=2^{n}-(-1)^{n} $$ where $[x]$ is the integral part of $x$. 5. (NET 3) ${ }^{\mathrm{IMO} 5}$ Let a set of $p$ equations be given, $$ \begin{gathered} a_{11} x_{1}+\cdots+a_{1 q} x_{q}=0 \\ a_{21} x_{1}+\cdots+a_{2 q} x_{q}=0 \\ \vdots \\ a_{p 1} x_{1}+\cdots+a_{p q} x_{q}=0, \end{gathered} $$ with coefficients $a_{i j}$ satisfying $a_{i j}=-1,0$, or +1 for all $i=1, \ldots, p$ and $j=1, \ldots, q$. Prove that if $q=2 p$, there exists a solution $x_{1}, \ldots, x_{q}$ of this system such that all $x_{j}(j=1, \ldots, q)$ are integers satisfying $\left|x_{j}\right| \leq q$ and $x_{j} \neq 0$ for at least one value of $j$. 6. (NET 4) ${ }^{\mathrm{IMO} 3} \mathrm{~A}$ rectangular box can be filled completely with unit cubes. If one places cubes with volume 2 in the box such that their edges are parallel to the edges of the box, one can fill exactly $40 \%$ of the box. Determine all possible (interior) sizes of the box. 7. (POL 1b) Let $I=(0,1]$ be the unit interval of the real line. For a given number $a \in(0,1)$ we define a map $T: I \rightarrow I$ by the formula $$ T(x, y)= \begin{cases}x+(1-a) & \text { if } 00$ such that $T^{n}(J) \cap J \neq \emptyset$. 8. (SWE 3) Let $P$ be a polynomial with real coefficients such that $P(x)>0$ if $x>0$. Prove that there exist polynomials $Q$ and $R$ with nonnegative coefficients such that $P(x)=\frac{Q(x)}{R(x)}$ if $x>0$. 9. (FIN 2) ${ }^{\mathrm{IMO} 2}$ Let $P_{1}(x)=x^{2}-2, P_{j}(x)=P_{1}\left(P_{j-1}(x)\right), j=2,3, \ldots$. Show that for arbitrary $n$ the roots of the equation $P_{n}(x)=x$ are real and different from one another. 10. (USA 6) ${ }^{\mathrm{IMO}}$ Find the largest number obtainable as the product of positive integers whose sum is 1976. 11. (VIE 1) Prove that there exist infinitely many positive integers $n$ such that the decimal representation of $5^{n}$ contains a block of 1976 consecutive zeros. 12. (VIE 2) The polynomial $1976\left(x+x^{2}+\cdots+x^{n}\right)$ is decomposed into a sum of polynomials of the form $a_{1} x+a_{2} x^{2}+\ldots+a_{n} x^{n}$, where $a_{1}, a_{2}, \cdots, a_{n}$ are distinct positive integers not greater than $n$. Find all values of $n$ for which such a decomposition is possible. ### 3.19 The Nineteenth IMO Belgrade-Arandjelovac, Yugoslavia, July 1-13, 1977 ### 3.19.1 Contest Problems First Day (July 6) 1. Equilateral triangles $A B K, B C L, C D M, D A N$ are constructed inside the square $A B C D$. Prove that the midpoints of the four segments $K L$, $L M, M N, N K$ and the midpoints of the eight segments $A K, B K, B L$, $C L, C M, D M, D N, A N$ are the twelve vertices of a regular dodecagon. 2. In a finite sequence of real numbers the sum of any seven successive terms is negative, and the sum of any eleven successive terms is positive. Determine the maximum number of terms in the sequence. 3. Let $n$ be a given integer greater than 2 , and let $V_{n}$ be the set of integers $1+k n$, where $k=1,2, \ldots$ A number $m \in V_{n}$ is called indecomposable in $V_{n}$ if there do not exist numbers $p, q \in V_{n}$ such that $p q=m$. Prove that there exists a number $r \in V_{n}$ that can be expressed as the product of elements indecomposable in $V_{n}$ in more than one way. (Expressions that differ only in order of the elements of $V_{n}$ will be considered the same.) Second Day (July 7) 4. Let $a, b, A, B$ be given constant real numbers and $$ f(x)=1-a \cos x-b \sin x-A \cos 2 x-B \sin 2 x . $$ Prove that if $f(x) \geq 0$ for all real $x$, then $$ a^{2}+b^{2} \leq 2 \quad \text { and } \quad A^{2}+B^{2} \leq 1 $$ 5. Let $a$ and $b$ be natural numbers and let $q$ and $r$ be the quotient and remainder respectively when $a^{2}+b^{2}$ is divided by $a+b$. Determine the numbers $a$ and $b$ if $q^{2}+r=1977$. 6. Let $f: \mathbb{N} \rightarrow \mathbb{N}$ be a function that satisfies the inequality $f(n+1)>f(f(n))$ for all $n \in \mathbb{N}$. Prove that $f(n)=n$ for all natural numbers $n$. ### 3.19.2 Longlisted Problems 1. (BUL 1) A pentagon $A B C D E$ inscribed in a circle for which $B CC S$. 2. (BUL 2) (SL77-1). 3. (BUL 3) In a company of $n$ persons, each person has no more than $d$ acquaintances, and in that company there exists a group of $k$ persons, $k \geq d$, who are not acquainted with each other. Prove that the number of acquainted pairs is not greater than $\left[n^{2} / 4\right]$. 4. (BUL 4) We are given $n$ points in space. Some pairs of these points are connected by line segments so that the number of segments equals $\left[n^{2} / 4\right]$, and a connected triangle exists. Prove that any point from which the maximal number of segments starts is a vertex of a connected triangle. 5. (CZS 1) (SL77-2). 6. (CZS 2) Let $x_{1}, x_{2}, \ldots, x_{n}(n \geq 1)$ be real numbers such that $0 \leq x_{j} \leq \pi$, $j=1,2, \ldots, n$. Prove that if $\sum_{j=1}^{n}\left(\cos x_{j}+1\right)$ is an odd integer, then $\sum_{j=1}^{n} \sin x_{j} \geq 1$. 7. (CZS 3) Prove the following assertion: If $c_{1}, c_{2}, \ldots, c_{n}(n \geq 2)$ are real numbers such that $$ (n-1)\left(c_{1}^{2}+c_{2}^{2}+\cdots+c_{n}^{2}\right)=\left(c_{1}+c_{2}+\cdots+c_{n}\right)^{2} $$ then either all these numbers are nonnegative or all these numbers are nonpositive. 8. (CZS 4) A hexahedron $A B C D E$ is made of two regular congruent tetrahedra $A B C D$ and $A B C E$. Prove that there exists only one isometry $\mathcal{Z}$ that maps points $A, B, C, D, E$ onto $B, C, A, E, D$, respectively. Find all points $X$ on the surface of hexahedron whose distance from $\mathcal{Z}(X)$ is minimal. 9. (CZS 5) Let $A B C D$ be a regular tetrahedron and $\mathcal{Z}$ an isometry mapping $A, B, C, D$ into $B, C, D, A$, respectively. Find the set $\mathcal{M}$ of all points $X$ of the face $A B C$ whose distance from $\mathcal{Z}(X)$ is equal to a given number $t$. Find necessary and sufficient conditions for the set $\mathcal{M}$ to be nonempty. 10. (FRG 1) (SL77-3). 11. (FRG 2) Let $n$ and $z$ be integers greater than 1 and $(n, z)=1$. Prove: (a) At least one of the numbers $z_{i}=1+z+z^{2}+\cdots+z^{i}, i=0,1, \ldots, n-1$, is divisible by $n$. (b) If $(z-1, n)=1$, then at least one of the numbers $z_{i}, i=0,1, \ldots, n-2$, is divisible by $n$. 12. (FRG 3) Let $z$ be an integer $>1$ and let $M$ be the set of all numbers of the form $z_{k}=1+z+\cdots+z^{k}, k=0,1, \ldots$. Determine the set $T$ of divisors of at least one of the numbers $z_{k}$ from $M$. 13. (FRG 4) (SL77-4). 14. (FRG 5) (SL77-5). 15. (GDR 1) Let $n$ be an integer greater than 1 . In the Cartesian coordinate system we consider all squares with integer vertices $(x, y)$ such that $1 \leq$ $x, y \leq n$. Denote by $p_{k}(k=0,1,2, \ldots)$ the number of pairs of points that are vertices of exactly $k$ such squares. Prove that $\sum_{k}(k-1) p_{k}=0$. 16. (GDR 2) (SL77-6). 17. (GDR 3) A ball $K$ of radius $r$ is touched from the outside by mutually equal balls of radius $R$. Two of these balls are tangent to each other. Moreover, for two balls $K_{1}$ and $K_{2}$ tangent to $K$ and tangent to each other there exist two other balls tangent to $K_{1}, K_{2}$ and also to $K$. How many balls are tangent to $K$ ? For a given $r$ determine $R$. 18. (GDR 4) Given an isosceles triangle $A B C$ with a right angle at $C$, construct the center $M$ and radius $r$ of a circle cutting on segments $A B, B C, C A$ the segments $D E, F G$, and $H K$, respectively, such that $\angle D M E+\angle F M G+\angle H M K=180^{\circ}$ and $D E: F G: H K=A B: B C:$ $C A$. 19. (GBR 1) Given any integer $m>1$ prove that there exist infinitely many positive integers $n$ such that the last $m$ digits of $5^{n}$ are a sequence $a_{m}, a_{m-1}, \ldots, a_{1}=5\left(0 \leq a_{j}<10\right)$ in which each digit except the last is of opposite parity to its successor (i.e., if $a_{i}$ is even, then $a_{i-1}$ is odd, and if $a_{i}$ is odd, then $a_{i-1}$ is even). 20. (GBR 2) (SL77-7). 21. (GBR 3) Given that $x_{1}+x_{2}+x_{3}=y_{1}+y_{2}+y_{3}=x_{1} y_{1}+x_{2} y_{2}+x_{3} y_{3}=0$, prove that $$ \frac{x_{1}^{2}}{x_{1}^{2}+x_{2}^{2}+x_{3}^{2}}+\frac{y_{1}^{2}}{y_{1}^{2}+y_{2}^{2}+y_{3}^{2}}=\frac{2}{3} $$ 22. (GBR 4) (SL77-8). 23. (HUN 1) (SL77-9). 24. (HUN 2) Determine all real functions $f(x)$ that are defined and continuous on the interval $(-1,1)$ and that satisfy the functional equation $$ f(x+y)=\frac{f(x)+f(y)}{1-f(x) f(y)} \quad(x, y, x+y \in(-1,1)) . $$ 25. (HUN 3) Prove the identity $$ (z+a)^{n}=z^{n}+a \sum_{k=1}^{n}\binom{n}{k}(a-k b)^{k-1}(z+k b)^{n-k} . $$ 26. (NET 1) Let $p$ be a prime number greater than 5 . Let $V$ be the collection of all positive integers $n$ that can be written in the form $n=k p+1$ or $n=k p-1(k=1,2, \ldots)$. A number $n \in V$ is called indecomposable in $V$ if it is impossible to find $k, l \in V$ such that $n=k l$. Prove that there exists a number $N \in V$ that can be factorized into indecomposable factors in $V$ in more than one way. 27. (NET 2) (SL77-10). 28. (NET 3) (SL77-11). 29. (NET 4) (SL77-12). 30. (NET 5) A triangle $A B C$ with $\angle A=30^{\circ}$ and $\angle C=54^{\circ}$ is given. On $B C$ a point $D$ is chosen such that $\angle C A D=12^{\circ}$. On $A B$ a point $E$ is chosen such that $\angle A C E=6^{\circ}$. Let $S$ be the point of intersection of $A D$ and $C E$. Prove that $B S=B C$. 31. (POL 1) Let $f$ be a function defined on the set of pairs of nonzero rational numbers whose values are positive real numbers. Suppose that $f$ satisfies the following conditions: (1) $f(a b, c)=f(a, c) f(b, c), f(c, a b)=f(c, a) f(c, b)$; (2) $f(a, 1-a)=1$. Prove that $f(a, a)=f(a,-a)=1, f(a, b) f(b, a)=1$. 32. (POL 2) In a room there are nine men. Among every three of them there are two mutually acquainted. Prove that some four of them are mutually acquainted. 33. (POL 3) A circle $K$ centered at $(0,0)$ is given. Prove that for every vector $\left(a_{1}, a_{2}\right)$ there is a positive integer $n$ such that the circle $K$ translated by the vector $n\left(a_{1}, a_{2}\right)$ contains a lattice point (i.e., a point both of whose coordinates are integers). 34. (POL 4) (SL77-13). 35. (ROM 1) Find all numbers $N=\overline{a_{1} a_{2} \ldots a_{n}}$ for which $9 \times \overline{a_{1} a_{2} \ldots a_{n}}=$ $\overline{a_{n} \ldots a_{2} a_{1}}$ such that at most one of the digits $a_{1}, a_{2}, \ldots, a_{n}$ is zero. 36. (ROM 2) Consider a sequence of numbers $\left(a_{1}, a_{2}, \ldots, a_{2^{n}}\right)$. Define the operation $$ S\left(\left(a_{1}, a_{2}, \ldots, a_{2^{n}}\right)\right)=\left(a_{1} a_{2}, a_{2} a_{3}, \ldots, a_{2^{n}-1} a_{2^{n}}, a_{2^{n}} a_{1}\right) $$ Prove that whatever the sequence $\left(a_{1}, a_{2}, \ldots, a_{2^{n}}\right)$ is, with $a_{i} \in\{-1,1\}$ for $i=1,2, \ldots, 2^{n}$, after finitely many applications of the operation we get the sequence $(1,1, \ldots, 1)$. 37. (ROM 3) Let $A_{1}, A_{2}, \ldots, A_{n+1}$ be positive integers such that $\left(A_{i}, A_{n+1}\right)$ $=1$ for every $i=1,2, \ldots, n$. Show that the equation $$ x_{1}^{A_{1}}+x_{2}^{A_{2}}+\cdots+x_{n}^{A_{n}}=x_{n+1}^{A_{n+1}} $$ has an infinite set of solutions $\left(x_{1}, x_{2}, \ldots, x_{n+1}\right)$ in positive integers. 38. (ROM 4) Let $m_{j}>0$ for $j=1,2, \ldots, n$ and $a_{1} \leq \cdots \leq a_{n}3\left(\sum_{j=1}^{n} m_{j}\right)\left[\sum_{j=1}^{n} m_{j}\left(a_{j} b_{j}+b_{j} c_{j}+c_{j} a_{j}\right)\right] . $$ 39. (ROM 5) Consider 37 distinct points in space, all with integer coordinates. Prove that we may find among them three distinct points such that their barycenter has integers coordinates. 40. (SWE 1) The numbers $1,2,3, \ldots, 64$ are placed on a chessboard, one number in each square. Consider all squares on the chessboard of size $2 \times 2$. Prove that there are at least three such squares for which the sum of the 4 numbers contained exceeds 100. 41. (SWE 2) A wheel consists of a fixed circular disk and a mobile circular ring. On the disk the numbers $1,2,3, \ldots, N$ are marked, and on the ring $N$ integers $a_{1}, a_{2}, \ldots, a_{N}$ of sum 1 are marked (see the figure). The ring can be turned into $N$ different positions in which the numbers on the disk and on the ring match each other. Multiply every number on the ring with the corresponding number on the disk and form the sum of $N$ products. In this way a ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-127.jpg?height=349&width=362&top_left_y=824&top_left_x=919) sum is obtained for every position of the ring. Prove that the $N$ sums are different. 42. (SWE 3) The sequence $a_{n, k}, k=1,2,3, \ldots, 2^{n}, n=0,1,2, \ldots$, is defined by the following recurrence formula: $$ \begin{aligned} a_{1} & =2, \quad a_{n, k}=2 a_{n-1, k}^{3}, \quad a_{n, k+2^{n-1}}=\frac{1}{2} a_{n-1, k}^{3} \\ \text { for } k & =1,2,3, \ldots, 2^{n-1}, n=0,1,2, \ldots . \end{aligned} $$ Prove that the numbers $a_{n, k}$ are all different. 43. (FIN 1) Evaluate $$ S=\sum_{k=1}^{n} k(k+1) \cdots(k+p), $$ where $n$ and $p$ are positive integers. 44. (FIN 2) Let $E$ be a finite set of points in space such that $E$ is not contained in a plane and no three points of $E$ are collinear. Show that $E$ contains the vertices of a tetrahedron $T=A B C D$ such that $T \cap E=$ $\{A, B, C, D\}$ (including interior points of $T$ ) and such that the projection of $A$ onto the plane $B C D$ is inside a triangle that is similar to the triangle $B C D$ and whose sides have midpoints $B, C, D$. 45. (FIN 2') (SL77-14). 46. (FIN 3) Let $f$ be a strictly increasing function defined on the set of real numbers. For $x$ real and $t$ positive, set $$ g(x, t)=\frac{f(x+t)-f(x)}{f(x)-f(x-t)} $$ Assume that the inequalities $$ 2^{-1}x_{1}>\cdots>x_{n}$. Prove that at least one of the numbers $\left|F\left(x_{0}\right)\right|,\left|F\left(x_{1}\right)\right|,\left|F\left(x_{2}\right)\right|, \ldots$, $\left|F\left(x_{n}\right)\right|$, where $$ F(x)=x^{n}+a_{1} x^{n-1}+\cdots+a_{n}, \quad a_{i} \in \mathbb{R}, \quad i=1, \ldots, n $$ is greater than $\frac{n!}{2^{n}}$. ### 3.19.3 Shortlisted Problems 1. (BUL 2) ${ }^{\mathrm{IMO} 06}$ Let $f: \mathbb{N} \rightarrow \mathbb{N}$ be a function that satisfies the inequality $f(n+1)>f(f(n))$ for all $n \in \mathbb{N}$. Prove that $f(n)=n$ for all natural numbers $n$. 2. (CZS 1) A lattice point in the plane is a point both of whose coordinates are integers. Each lattice point has four neighboring points: upper, lower, left, and right. Let $k$ be a circle with radius $r \geq 2$, that does not pass through any lattice point. An interior boundary point is a lattice point lying inside the circle $k$ that has a neighboring point lying outside $k$. Similarly, an exterior boundary point is a lattice point lying outside the circle $k$ that has a neighboring point lying inside $k$. Prove that there are four more exterior boundary points than interior boundary points. 3. (FRG 1) ${ }^{\mathrm{IMO} 5}$ Let $a$ and $b$ be natural numbers and let $q$ and $r$ be the quotient and remainder respectively when $a^{2}+b^{2}$ is divided by $a+b$. Determine the numbers $a$ and $b$ if $q^{2}+r=1977$. 4. (FRG 4) Describe all closed bounded figures $\Phi$ in the plane any two points of which are connectable by a semicircle lying in $\Phi$. 5. (FRG 5) There are $2^{n}$ words of length $n$ over the alphabet $\{0,1\}$. Prove that the following algorithm generates the sequence $w_{0}, w_{1}, \ldots, w_{2^{n}-1}$ of all these words such that any two consecutive words differ in exactly one digit. (1) $w_{0}=00 \ldots 0$ ( $n$ zeros). (2) Suppose $w_{m-1}=a_{1} a_{2} \ldots a_{n}, a_{i} \in\{0,1\}$. Let $e(m)$ be the exponent of 2 in the representation of $n$ as a product of primes, and let $j=$ $1+e(m)$. Replace the digit $a_{j}$ in the word $w_{m-1}$ by $1-a_{j}$. The obtained word is $w_{m}$. 6. (GDR 2) Let $n$ be a positive integer. How many integer solutions $(i, j, k, l), 1 \leq i, j, k, l \leq n$, does the following system of inequalities have: $$ \begin{aligned} & 1 \leq-j+k+l \leq n \\ & 1 \leq \quad i-k+l \leq n \\ & 1 \leq \quad i-j+l \leq n \\ & 1 \leq \quad i+j-k \leq n ? \end{aligned} $$ 7. (GBR 2) ${ }^{\mathrm{IMO} 4}$ Let $a, b, A, B$ be given constant real numbers and $$ f(x)=1-a \cos x-b \sin x-A \cos 2 x-B \sin 2 x $$ Prove that if $f(x) \geq 0$ for all real $x$, then $$ a^{2}+b^{2} \leq 2 \quad \text { and } \quad A^{2}+B^{2} \leq 1 $$ 8. (GBR 4) Let $S$ be a convex quadrilateral $A B C D$ and $O$ a point inside it. The feet of the perpendiculars from $O$ to $A B, B C, C D, D A$ are $A_{1}, B_{1}$, $C_{1}, D_{1}$ respectively. The feet of the perpendiculars from $O$ to the sides of $S_{i}$, the quadrilateral $A_{i} B_{i} C_{i} D_{i}$, are $A_{i+1} B_{i+1} C_{i+1} D_{i+1}$, where $i=1,2,3$. Prove that $S_{4}$ is similar to $S$. 9. (HUN 1) For which positive integers $n$ do there exist two polynomials $f$ and $g$ with integer coefficients of $n$ variables $x_{1}, x_{2}, \ldots, x_{n}$ such that the following equality is satisfied: $$ \left(\sum_{i=1}^{n} x_{i}\right) f\left(x_{1}, x_{2}, \ldots, x_{n}\right)=g\left(x_{1}^{2}, x_{2}^{2}, \ldots, x_{n}^{2}\right) ? $$ 10. (NET 2) ${ }^{\mathrm{IMO} 3}$ Let $n$ be an integer greater than 2 . Define $V=\{1+k n \mid$ $k=1,2, \ldots\}$. A number $p \in V$ is called indecomposable in $V$ if it is not possible to find numbers $q_{1}, q_{2} \in V$ such that $q_{1} q_{2}=p$. Prove that there exists a number $N \in V$ that can be factorized into indecomposable factors in $V$ in more than one way. 11. (NET 3) Let $n$ be an integer greater than 1 . Define $x_{1}=n, \quad y_{1}=1, \quad x_{i+1}=\left[\frac{x_{i}+y_{i}}{2}\right], \quad y_{i+1}=\left[\frac{n}{x_{i+1}}\right] \quad$ for $i=1,2, \ldots$, where $[z]$ denotes the largest integer less than or equal to $z$. Prove that $$ \min \left\{x_{1}, x_{2}, \ldots x_{n}\right\}=[\sqrt{n}] . $$ 12. (NET 4) ${ }^{\mathrm{IMO}}$ On the sides of a square $A B C D$ one constructs inwardly equilateral triangles $A B K, B C L, C D M, D A N$. Prove that the midpoints of the four segments $K L, L M, M N, N K$, together with the midpoints of the eight segments $A K, B K, B L, C L, C M, D M, D N, A N$, are the 12 vertices of a regular dodecagon. 13. (POL 4) Let $B$ be a set of $k$ sequences each having $n$ terms equal to 1 or -1 . The product of two such sequences $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$ and $\left(b_{1}, b_{2}, \ldots, b_{n}\right)$ is defined as $\left(a_{1} b_{1}, a_{2} b_{2}, \ldots, a_{n} b_{n}\right)$. Prove that there exists a sequence $\left(c_{1}, c_{2}, \ldots, c_{n}\right)$ such that the intersection of $B$ and the set containing all sequences from $B$ multiplied by $\left(c_{1}, c_{2}, \ldots, c_{n}\right)$ contains at most $k^{2} / 2^{n}$ sequences. 14. (FIN 2‘) Let $E$ be a finite set of points such that $E$ is not contained in a plane and no three points of $E$ are collinear. Show that at least one of the following alternatives holds: (i) $E$ contains five points that are vertices of a convex pyramid having no other points in common with $E$; (ii) some plane contains exactly three points from $E$. 15. (VIE 1) ${ }^{\mathrm{IMO} 2}$ The length of a finite sequence is defined as the number of terms of this sequence. Determine the maximal possible length of a finite sequence that satisfies the following condition: The sum of each seven successive terms is negative, and the sum of each eleven successive terms is positive. 16. (VIE 3) Let $E$ be a set of $n$ points in the plane $(n \geq 3)$ whose coordinates are integers such that any three points from $E$ are vertices of a nondegenerate triangle whose centroid doesn't have both coordinates integers. Determine the maximal $n$. ### 3.20 The Twentieth IMO Bucharest, Romania, 1978 ### 3.20.1 Contest Problems First Day (July 6) 1. Let $n>m \geq 1$ be natural numbers such that the groups of the last three digits in the decimal representation of $1978^{m}, 1978^{n}$ coincide. Find the ordered pair $(m, n)$ of such $m, n$ for which $m+n$ is minimal. 2. Given any point $P$ in the interior of a sphere with radius $R$, three mutually perpendicular segments $P A, P B, P C$ are drawn terminating on the sphere and having one common vertex in $P$. Consider the rectangular parallelepiped of which $P A, P B, P C$ are coterminal edges. Find the locus of the point $Q$ that is diagonally opposite $P$ in the parallelepiped when $P$ and the sphere are fixed. 3. Let $\{f(n)\}$ be a strictly increasing sequence of positive integers: $0<$ $f(1)1$ there exists a triangle whose sides have lengths $P_{1}(X)=X^{4}+X^{3}+2 X^{2}+X+1, P_{2}(X)=2 X^{3}+X^{2}+2 X+1$, and $P_{3}(X)=X^{4}-1$. Prove that all these triangles have the same greatest angle and calculate it. 7. (CUB 3) (SL78-3). 8. (CZS 1) For two given triangles $A_{1} A_{2} A_{3}$ and $B_{1} B_{2} B_{3}$ with areas $\Delta_{A}$ and $\Delta_{B}$, respectively, $A_{i} A_{k} \geq B_{i} B_{k}, i, k=1,2,3$. Prove that $\Delta_{A} \geq \Delta_{B}$ if the triangle $A_{1} A_{2} A_{3}$ is not obtuse-angled. 9. (CZS 2) (SL78-4). 10. (CZS 3) Show that for any natural number $n$ there exist two prime numbers $p$ and $q, p \neq q$, such that $n$ divides their difference. 11. (CZS 4) Find all natural numbers $n<1978$ with the following property: If $m$ is a natural number, $10$ that has two real roots $x_{1}, x_{2}$. Prove that the absolute values of both roots are less than or equal to 1 if and only if $a+b+c \geq 0, a-b+c \geq 0$, and $a-c \geq 0$. 26. (GDR 2) (SL78-5). 27. (GDR 3) Determine the sixth number after the decimal point in the number $(\sqrt{1978}+[\sqrt{1978}])^{20}$. 28. (GDR 4) Let $c, s$ be real functions defined on $\mathbb{R} \backslash\{0\}$ that are nonconstant on any interval and satisfy $$ c\left(\frac{x}{y}\right)=c(x) c(y)-s(x) s(y) \quad \text { for any } x \neq 0, y \neq 0 $$ Prove that: (a) $c(1 / x)=c(x), s(1 / x)=-s(x)$ for any $x \neq 0$, and also $c(1)=1$, $s(1)=s(-1)=0$; (b) $c$ and $s$ are either both even or both odd functions (a function $f$ is even if $f(x)=f(-x)$ for all $x$, and odd if $f(x)=-f(-x)$ for all $x$ ). Find functions $c, s$ that also satisfy $c(x)+s(x)=x^{n}$ for all $x$, where $n$ is a given positive integer. 29. (GDR 5) (Variant of GDR 4) Given a nonconstant function $f: \mathbb{R}^{+} \rightarrow \mathbb{R}$ such that $f(x y)=f(x) f(y)$ for any $x, y>0$, find functions $c, s: \mathbb{R}^{+} \rightarrow \mathbb{R}$ that satisfy $c(x / y)=c(x) c(y)-s(x) s(y)$ for all $x, y>0$ and $c(x)+s(x)=$ $f(x)$ for all $x>0$. 30. (NET 1) (SL78-10). 31. (NET 2) Let the polynomials $$ \begin{aligned} & P(x)=x^{n}+a_{n-1} x^{n-1}+\cdots+a_{1} x+a_{0} \\ & Q(x)=x^{m}+b_{m-1} x^{m-1}+\cdots+b_{1} x+b_{0} \end{aligned} $$ be given satisfying the identity $P(x)^{2}=\left(x^{2}-1\right) Q(x)^{2}+1$. Prove the identity $$ P^{\prime}(x)=n Q(x) $$ 32. (NET 3) Let $\mathcal{C}$ be the circumcircle of the square with vertices $(0,0)$, $(0,1978),(1978,0),(1978,1978)$ in the Cartesian plane. Prove that $\mathcal{C}$ contains no other point for which both coordinates are integers. 33. (SWE 1) A sequence $\left(a_{n}\right)_{0}^{\infty}$ of real numbers is called convex if $2 a_{n} \leq$ $a_{n-1}+a_{n+1}$ for all positive integers $n$. Let $\left(b_{n}\right)_{0}^{\infty}$ be a sequence of positive numbers and assume that the sequence $\left(\alpha^{n} b_{n}\right)_{0}^{\infty}$ is convex for any choice of $\alpha>0$. Prove that the sequence $\left(\log b_{n}\right)_{0}^{\infty}$ is convex. 34. (SWE 2) (SL78-11). 35. (SWE 3) A sequence $\left(a_{n}\right)_{0}^{N}$ of real numbers is called concave if $2 a_{n} \geq$ $a_{n-1}+a_{n+1}$ for all integers $n, 1 \leq n \leq N-1$. (a) Prove that there exists a constant $C>0$ such that $$ \left(\sum_{n=0}^{N} a_{n}\right)^{2} \geq C(N-1) \sum_{n=0}^{N} a_{n}^{2} $$ for all concave positive sequences $\left(a_{n}\right)_{0}^{N}$. (b) Prove that (1) holds with $C=3 / 4$ and that this constant is best possible. 36. (TUR 1) The integers 1 through 1000 are located on the circumference of a circle in natural order. Starting with 1, every fifteenth number (i.e., $1,16,31, \ldots)$ is marked. The marking is continued until an already marked number is reached. How many of the numbers will be left unmarked? 37. (TUR 2) Simplify $$ \frac{1}{\log _{a}(a b c)}+\frac{1}{\log _{b}(a b c)}+\frac{1}{\log _{c}(a b c)} $$ where $a, b, c$ are positive real numbers. 38. (TUR 3) Given a circle, construct a chord that is trisected by two given noncollinear radii. 39. (TUR 4) $A$ is a $2 m$-digit positive integer each of whose digits is $1 . B$ is an $m$-digit positive integer each of whose digits is 4 . Prove that $A+B+1$ is a perfect square. 40. (TUR 5) If $C_{n}^{p}=\frac{n!}{p!(n-p)!}(p \geq 1)$, prove the identity $$ C_{n}^{p}=C_{n-1}^{p-1}+C_{n-2}^{p-1}+\cdots+C_{p}^{p-1}+C_{p-1}^{p-1} $$ and then evaluate the sum $$ S=1 \cdot 2 \cdot 3+2 \cdot 3 \cdot 4+\cdots+97 \cdot 98 \cdot 99 $$ 41. (USA 1) (SL78-12). 42. (USA 2) $A, B, C, D, E$ are points on a circle $O$ with radius equal to $r$. Chords $A B$ and $D E$ are parallel to each other and have length equal to $x$. Diagonals $A C, A D, B E, C E$ are drawn. If segment $X Y$ on $O$ meets $A C$ at $X$ and $E C$ at $Y$, prove that lines $B X$ and $D Y$ meet at $Z$ on the circle. 43. (USA 3) If $p$ is a prime greater than 3 , show that at least one of the numbers $\frac{3}{p^{2}}, \frac{4}{p^{2}}, \ldots, \frac{p-2}{p^{2}}$ is expressible in the form $\frac{1}{x}+\frac{1}{y}$, where $x$ and $y$ are positive integers. 44. (USA 4) In $\triangle A B C$ with $\angle C=60^{\circ}$, prove that $\frac{c}{a}+\frac{c}{b} \geq 2$. 45. (USA 5) If $r>s>0$ and $a>b>c$, prove that $$ a^{r} b^{s}+b^{r} c^{s}+c^{r} a^{s} \geq a^{s} b^{r}+b^{s} c^{r}+c^{s} a^{r} . $$ 46. (USA 6) (SL78-13). 47. (VIE 1) Given the expression $$ P_{n}(x)=\frac{1}{2^{n}}\left[\left(x+\sqrt{x^{2}-1}\right)^{n}+\left(x-\sqrt{x^{2}-1}\right)^{n}\right] $$ prove: (a) $P_{n}(x)$ satisfies the identity $P_{n}(x)-x P_{n-1}(x)+\frac{1}{4} P_{n-2}(x) \equiv 0$. (b) $P_{n}(x)$ is a polynomial in $x$ of degree $n$. 48. (VIE 2) (SL78-14). 49. (VIE 3) Let $A, B, C, D$ be four arbitrary distinct points in space. (a) Prove that using the segments $A B+C D, A C+B D$ and $A D+B C$ it is always possible to construct a triangle $T$ that is nondegenerate and has no obtuse angle. (b) What should these four points satisfy in order for the triangle $T$ to be right-angled? 50. (VIE 4) A variable tetrahedron $A B C D$ has the following properties: Its edge lengths can change as well as its vertices, but the opposite edges remain equal $(B C=D A, C A=D B, A B=D C)$; and the vertices $A, B, C$ lie respectively on three fixed spheres with the same center $P$ and radii $3,4,12$. What is the maximal length of $P D$ ? 51. (VIE 5) Find the relations among the angles of the triangle $A B C$ whose altitude $A H$ and median $A M$ satisfy $\angle B A H=\angle C A M$. 52. (YUG 1) (SL78-15). 53. (YUG 2) (SL78-16). 54. (YUG 3) Let $p, q$ and $r$ be three lines in space such that there is no plane that is parallel to all three of them. Prove that there exist three planes $\alpha, \beta$, and $\gamma$, containing $p, q$, and $r$ respectively, that are perpendicular to each other $(\alpha \perp \beta, \beta \perp \gamma, \gamma \perp \alpha)$. ### 3.20.3 Shortlisted Problems 1. (BUL 1) The set $M=\{1,2, \ldots, 2 n\}$ is partitioned into $k$ nonintersecting subsets $M_{1}, M_{2}, \ldots, M_{k}$, where $n \geq k^{3}+k$. Prove that there exist even numbers $2 j_{1}, 2 j_{2}, \ldots, 2 j_{k+1}$ in $M$ that are in one and the same subset $M_{i}$ $(1 \leq i \leq k)$ such that the numbers $2 j_{1}-1,2 j_{2}-1, \ldots, 2 j_{k+1}-1$ are also in one and the same subset $M_{j}(1 \leq j \leq k)$. 2. (BUL 4) Two identically oriented equilateral triangles, $A B C$ with center $S$ and $A^{\prime} B^{\prime} C$, are given in the plane. We also have $A^{\prime} \neq S$ and $B^{\prime} \neq S$. If $M$ is the midpoint of $A^{\prime} B$ and $N$ the midpoint of $A B^{\prime}$, prove that the triangles $S B^{\prime} M$ and $S A^{\prime} N$ are similar. 3. (CUB 3) ${ }^{\mathrm{IMO} 1}$ Let $n>m \geq 1$ be natural numbers such that the groups of the last three digits in the decimal representation of $1978^{m}, 1978^{n}$ coincide. Find the ordered pair $(m, n)$ of such $m, n$ for which $m+n$ is minimal. 4. (CZS 2) Let $T_{1}$ be a triangle having $a, b, c$ as lengths of its sides and let $T_{2}$ be another triangle having $u, v, w$ as lengths of its sides. If $P, Q$ are the areas of the two triangles, prove that $$ 16 P Q \leq a^{2}\left(-u^{2}+v^{2}+w^{2}\right)+b^{2}\left(u^{2}-v^{2}+w^{2}\right)+c^{2}\left(u^{2}+v^{2}-w^{2}\right) $$ When does equality hold? 5. (GDR 2) For every integer $d \geq 1$, let $M_{d}$ be the set of all positive integers that cannot be written as a sum of an arithmetic progression with difference $d$, having at least two terms and consisting of positive integers. Let $A=M_{1}, B=M_{2} \backslash\{2\}, C=M_{3}$. Prove that every $c \in C$ may be written in a unique way as $c=a b$ with $a \in A, b \in B$. 6. (FRA 2) $)^{\mathrm{IMO} 5}$ Let $\varphi:\{1,2,3, \ldots\} \rightarrow\{1,2,3, \ldots\}$ be injective. Prove that for all $n$, $$ \sum_{k=1}^{n} \frac{\varphi(k)}{k^{2}} \geq \sum_{k=1}^{n} \frac{1}{k} $$ 7. (FRA 5) We consider three distinct half-lines $O x, O y, O z$ in a plane. Prove the existence and uniqueness of three points $A \in O x, B \in O y$, $C \in O z$ such that the perimeters of the triangles $O A B, O B C, O C A$ are all equal to a given number $2 p>0$. 8. (GBR 4) Let $S$ be the set of all the odd positive integers that are not multiples of 5 and that are less than $30 \mathrm{~m}, \mathrm{~m}$ being an arbitrary positive integer. What is the smallest integer $k$ such that in any subset of $k$ integers from $S$ there must be two different integers, one of which divides the other? 9. $\mathbf{( G B R} \mathbf{5})^{\mathrm{IMO} 3}$ Let $\{f(n)\}$ be a strictly increasing sequence of positive integers: $02$. 49. (NET 3) Let there be given two sequences of integers $f_{i}(1), f_{i}(2), \ldots$ ( $i=1,2)$ satisfying: (i) $f_{i}(n m)=f_{i}(n) f_{i}(m)$ if $\operatorname{gcd}(n, m)=1$; (ii) for every prime $P$ and all $k=2,3,4, \ldots, f_{i}\left(P^{k}\right)=f_{i}(P) f_{i}\left(P^{k-1}\right)-$ $P^{2} f\left(P^{k-2}\right)$. Moreover, for every prime $P$ : (iii) $f_{1}(P)=2 P$, (iv) $f_{2}(P)<2 P$. Prove that $\left|f_{2}(n)\right|1$ be given and a sequence $\left(n_{k}\right)$ of positive integers such that $\frac{n_{k+1}}{n_{k}}>\lambda$ for $k=1,2, \ldots$ Prove that there exists a positive integer $c$ such that no positive integer $n$ can be represented in more than $c$ ways in the form $n=n_{k}+n_{j}$ or $n=n_{r}-n_{s}$. 53. (POL 4) An infinite increasing sequence of positive integers $n_{j}$ ( $j=$ $1,2, \ldots$ ) has the property that for a certain $c, \frac{1}{N} \sum_{n_{j} \leq N} n_{j} \leq c$, for every $N>0$ Prove that there exist finitely many sequences $m_{j}^{(i)}(i=1,2, \ldots, k)$ such that $$ \begin{aligned} & \left\{n_{1}, n_{2}, \ldots\right\}=\bigcup_{i=1}^{k}\left\{m_{1}^{(i)}, m_{2}^{(i)}, \ldots\right\} \quad \text { and } \\ & m_{j+1}^{(i)}>2 m_{j}^{(i)} \quad(1 \leq i \leq k, j=1,2, \ldots) . \end{aligned} $$ 54. (ROM 1) (SL79-19). 55. (ROM 2) Let $a, b$ be coprime integers. Show that the equation $a x^{2}+$ $b y^{2}=z^{3}$ has an infinite set of solutions $(x, y, z)$ with $x, y, z \in \mathbb{Z}$ and $x, y$ mutually coprime (in each solution). 56. (ROM 3) Show that for every natural number $n, n \sqrt{2}-[n \sqrt{2}]>\frac{1}{2 n \sqrt{2}}$ and that for every $\varepsilon>0$ there exists a natural number $n$ with $n \sqrt{2}-$ $[n \sqrt{2}]<\frac{1}{2 n \sqrt{2}}+\varepsilon$. 57. (ROM 4) Let $M$ be a set, and $A, B, C$ given subsets of $M$. Find a necessary and sufficient condition for the existence of a set $X \subset M$ for which $(X \cup A) \backslash(X \cap B)=C$. Describe all such sets $X$. 58. (ROM 5) Prove that there exists a natural number $k_{0}$ such that for every natural number $k>k_{0}$ we may find a finite number of lines in the plane, not all parallel to one of them, that divide the plane exactly in $k$ regions. Find $k_{0}$. 59. (SWE 1) Determine the maximum value of $x^{2} y^{2} z^{2} w$ when $x, y, z, w \geq 0$ and $$ 2 x+x y+z+y z w=1 $$ 60. (SWE 2) (SL79-20). 61. (SWE 3) Let $a_{1} \leq a_{2} \leq \cdots \leq a_{n}$ and $b_{1} \leq b_{2} \leq \cdots \leq b_{n}$ be two sequences such that $\sum_{k=1}^{m} a_{k} \geq \sum_{k=1}^{m} b_{k}$ for all $m \leq n$ with equality for $m=n$. Let $f$ be a convex function defined on the real numbers. Prove that $$ \sum_{k=1}^{n} f\left(a_{k}\right) \leq \sum_{k=1}^{n} f\left(b_{k}\right) $$ 62. (SWE 4) $T$ is a given triangle with vertices $P_{1}, P_{2}, P_{3}$. Consider an arbitrary subdivision of $T$ into finitely many subtriangles such that no vertex of a subtriangle lies strictly between two vertices of another subtriangle. To each vertex $V$ of the subtriangles there is assigned a number $n(V)$ according to the following rules: (i) If $V=P_{i}$, then $n(V)=i$. (ii) If $V$ lies on the side $P_{i} P_{j}$ of $T$, then $n(V)=i$ or $j$. (iii) If $V$ lies inside the triangle $T$, then $n(V)$ is any of the numbers $1,2,3$. Prove that there exists at least one subtriangle whose vertices are numbered 1, 2, and 3 . 63. (USA 1) If $a_{1}, a_{2}, \ldots, a_{n}$ denote the lengths of the sides of an arbitrary $n$-gon, prove that $$ 2 \geq \frac{a_{1}}{s-a_{1}}+\frac{a_{2}}{s-a_{2}}+\cdots+\frac{a_{n}}{s-a_{n}} \geq \frac{n}{n-1} $$ where $s=a_{1}+a_{2}+\cdots+a_{n}$. 64. (USA 2) From point $P$ on arc $B C$ of the circumcircle about triangle $A B C, P X$ is constructed perpendicular to $B C, P Y$ is perpendicular to $A C$, and $P Z$ perpendicular to $A B$ (all extended if necessary). Prove that $$ \frac{B C}{P X}=\frac{A C}{P Y}+\frac{A B}{P Z} $$ 65. (USA 3) Given $f(x) \leq x$ for all real $x$ and $$ f(x+y) \leq f(x)+f(y) \quad \text { for all real } x, y, $$ prove that $f(x)=x$ for all $x$. 66. (USA 4) (SL79-23). 67. (USA 5) (SL79-24). 68. (USA 6) (SL79-25). 69. (USS 1) (SL79-21). 70. (USS 2) There are 1979 equilateral triangles: $T_{1}, T_{2}, \ldots, T_{1979}$. A side of triangle $T_{k}$ is equal to $1 / k, k=1,2, \ldots, 1979$. At what values of a number $a$ can one place all these triangles into the equilateral triangle with side length $a$ so that they don't intersect (points of contact are allowed)? 71. (USS 3) (SL79-22). 72. (VIE 1) Let $f(x)$ be a polynomial with integer coefficients. Prove that if $f(x)$ equals 1979 for four different integer values of $x$, then $f(x)$ cannot be equal to $2 \times 1979$ for any integral value of $x$. 73. (VIE 2) In a plane a finite number of equal circles are given. These circles are mutually nonintersecting (they may be externally tangent). Prove that one can use at most four colors for coloring these circles so that two circles tangent to each other are of different colors. What is the smallest number of circles that requires four colors? 74. (VIE 3) Given an equilateral triangle $A B C$ of side $a$ in a plane, let $M$ be a point on the circumcircle of the triangle. Prove that the sum $s=M A^{4}+M B^{4}+M C^{4}$ is independent of the position of the point $M$ on the circle, and determine that constant value as a function of $a$. 75. (VIE 4) Given an equilateral triangle $A B C$, let $M$ be an arbitrary point in space. (a) Prove that one can construct a triangle from the segments $M A, M B$, $M C$. (b) Suppose that $P$ and $Q$ are two points symmetric with respect to the center $O$ of $A B C$. Prove that the two triangles constructed from the segments $P A, P B, P C$ and $Q A, Q B, Q C$ are of equal area. 76. (VIE 5) Suppose that a triangle whose sides are of integer lengths is inscribed in a circle of diameter 6.25. Find the sides of the triangle. 77. (YUG 1) By $h(n)$, where $n$ is an integer greater than 1 , let us denote the greatest prime divisor of the number $n$. Are there infinitely many numbers $n$ for which $h(n)a_{100}$. 20. (SWE 2) Given the integer $n>1$ and the real number $a>0$ determine the maximum of $\sum_{i=1}^{n-1} x_{i} x_{i+1}$ taken over all nonnegative numbers $x_{i}$ with sum $a$. 21. (USS 1) Let $N$ be the number of integral solutions of the equation $$ x^{2}-y^{2}=z^{3}-t^{3} $$ satisfying the condition $0 \leq x, y, z, t \leq 10^{6}$, and let $M$ be the number of integral solutions of the equation $$ x^{2}-y^{2}=z^{3}-t^{3}+1 $$ satisfying the condition $0 \leq x, y, z, t \leq 10^{6}$. Prove that $N>M$. 22. (USS 3) ${ }^{\mathrm{IMO} 3}$ There are two circles in the plane. Let a point $A$ be one of the points of intersection of these circles. Two points begin moving simultaneously with constant speeds from the point $A$, each point along its own circle. The two points return to the point $A$ at the same time. Prove that there is a point $P$ in the plane such that at every moment of time the distances from the point $P$ to the moving points are equal. 23. (USA 4) Find all natural numbers $n$ for which $2^{8}+2^{11}+2^{n}$ is a perfect square. 24. (USA 5) A circle O with center $O$ on base $B C$ of an isosceles triangle $A B C$ is tangent to the equal sides $A B, A C$. If point $P$ on $A B$ and point $Q$ on $A C$ are selected such that $P B \times C Q=(B C / 2)^{2}$, prove that line segment $P Q$ is tangent to circle O , and prove the converse. 25. (USA 6) ${ }^{\mathrm{IMO} 4}$ Given a point $P$ in a given plane $\pi$ and also a given point $Q$ not in $\pi$, show how to determine a point $R$ in $\pi$ such that $\frac{Q P+P R}{Q R}$ is a maximum. 26. (YUG 4) Prove that the functional equations $$ \begin{aligned} f(x+y) & =f(x)+f(y) \\ \text { and } \quad f(x+y+x y) & =f(x)+f(y)+f(x y) \quad(x, y \in \mathbb{R}) \end{aligned} $$ are equivalent. ### 3.22 The Twenty-Second IMO Washington DC, United States of America, July 8-20, 1981 ### 3.22.1 Contest Problems ## First Day (July 13) 1. Find the point $P$ inside the triangle $A B C$ for which $$ \frac{B C}{P D}+\frac{C A}{P E}+\frac{A B}{P F} $$ is minimal, where $P D, P E, P F$ are the perpendiculars from $P$ to $B C$, $C A, A B$ respectively. 2. Let $f(n, r)$ be the arithmetic mean of the minima of all $r$-subsets of the set $\{1,2, \ldots, n\}$. Prove that $f(n, r)=\frac{n+1}{r+1}$. 3. Determine the maximum value of $m^{2}+n^{2}$ where $m$ and $n$ are integers satisfying $$ m, n \in\{1,2, \ldots, 1981\} \quad \text { and } \quad\left(n^{2}-m n-m^{2}\right)^{2}=1 $$ Second Day (July 14) 4. (a) For which values of $n>2$ is there a set of $n$ consecutive positive integers such that the largest number in the set in the set is a divisor of the least common multiple of the remaining $n-1$ numbers? (b) For which values of $n>2$ is there a unique set having the stated property? 5. Three equal circles touch the sides of a triangle and have one common point $O$. Show that the center of the circle inscribed in and of the circle circumscribed about the triangle $A B C$ and the point $O$ are collinear. 6. Assume that $f(x, y)$ is defined for all positive integers $x$ and $y$, and that the following equations are satisfied: $$ \begin{aligned} f(0, y) & =y+1 \\ f(x+1,0) & =f(x, 1) \\ f(x+1, y+1) & =f(x, f(x+1, y)) \end{aligned} $$ Determine $f(4,1981)$. ### 3.22.2 Shortlisted Problems 1. (BEL) ${ }^{\mathrm{IMO} 4}$ (a) For which values of $n>2$ is there a set of $n$ consecutive positive integers such that the largest number in the set is a divisor of the least common multiple of the remaining $n-1$ numbers? (b) For which values of $n>2$ is there a unique set having the stated property? 2. (BUL) A sphere $S$ is tangent to the edges $A B, B C, C D, D A$ of a tetrahedron $A B C D$ at the points $E, F, G, H$ respectively. The points $E, F, G, H$ are the vertices of a square. Prove that if the sphere is tangent to the edge $A C$, then it is also tangent to the edge $B D$. 3. (CAN) Find the minimum value of $$ \max (a+b+c, b+c+d, c+d+e, d+e+f, e+f+g) $$ subject to the constraints (i) $a, b, c, d, e, f, g \geq 0$, (ii) $a+b+c+d+e+f+g=1$. 4. (CAN) Let $\left\{f_{n}\right\}$ be the Fibonacci sequence $\{1,1,2,3,5, \ldots\}$. (a) Find all pairs $(a, b)$ of real numbers such that for each $n, a f_{n}+b f_{n+1}$ is a member of the sequence. (b) Find all pairs $(u, v)$ of positive real numbers such that for each $n$, $u f_{n}^{2}+v f_{n+1}^{2}$ is a member of the sequence. 5. (COL) A cube is assembled with 27 white cubes. The larger cube is then painted black on the outside and disassembled. A blind man reassembles it. What is the probability that the cube is now completely black on the outside? Give an approximation of the size of your answer. 6. (CUB) Let $P(z)$ and $Q(z)$ be complex-variable polynomials, with degree not less than 1. Let $$ P_{k}=\{z \in \mathbb{C} \mid P(z)=k\}, \quad Q_{k}=\{z \in \mathbb{C} \mid Q(z)=k\} $$ Let also $P_{0}=Q_{0}$ and $P_{1}=Q_{1}$. Prove that $P(z) \equiv Q(z)$. 7. (FIN) ${ }^{\mathrm{IMO} 6}$ Assume that $f(x, y)$ is defined for all positive integers $x$ and $y$, and that the following equations are satisfied: $$ \begin{aligned} f(0, y) & =y+1 \\ f(x+1,0) & =f(x, 1) \\ f(x+1, y+1) & =f(x, f(x+1, y)) \end{aligned} $$ Determine $f(2,2), f(3,3)$ and $f(4,4)$. Alternative version: Determine $f(4,1981)$. 8. (FRG) ${ }^{\mathrm{IMO} 2}$ Let $f(n, r)$ be the arithmetic mean of the minima of all $r$ subsets of the set $\{1,2, \ldots, n\}$. Prove that $f(n, r)=\frac{n+1}{r+1}$. 9. (FRG) A sequence $\left(a_{n}\right)$ is defined by means of the recursion $$ a_{1}=1, \quad a_{n+1}=\frac{1+4 a_{n}+\sqrt{1+24 a_{n}}}{16} $$ Find an explicit formula for $a_{n}$. 10. (FRA) Determine the smallest natural number $n$ having the following property: For every integer $p, p \geq n$, it is possible to subdivide (partition) a given square into $p$ squares (not necessarily equal). 11. (NET) On a semicircle with unit radius four consecutive chords $A B, B C$, $C D, D E$ with lengths $a, b, c, d$, respectively, are given. Prove that $$ a^{2}+b^{2}+c^{2}+d^{2}+a b c+b c d<4 $$ 12. (NET) ${ }^{\mathrm{IMO} 3}$ Determine the maximum value of $m^{2}+n^{2}$ where $m$ and $n$ are integers satisfying $$ m, n \in\{1,2, \ldots, 100\} \quad \text { and } \quad\left(n^{2}-m n-m^{2}\right)^{2}=1 $$ 13. (ROM) Let $P$ be a polynomial of degree $n$ satisfying $$ P(k)=\binom{n+1}{k}^{-1} \quad \text { for } k=0,1, \ldots, n $$ Determine $P(n+1)$. 14. (ROM) Prove that a convex pentagon (a five-sided polygon) $A B C D E$ with equal sides and for which the interior angles satisfy the condition $\angle A \geq \angle B \geq \angle C \geq \angle D \geq \angle E$ is a regular pentagon. 15. (GBR) ${ }^{\mathrm{IMO} 1}$ Find the point $P$ inside the triangle $A B C$ for which $$ \frac{B C}{P D}+\frac{C A}{P E}+\frac{A B}{P F} $$ is minimal, where $P D, P E, P F$ are the perpendiculars from $P$ to $B C, C A$, $A B$ respectively. 16. (GBR) A sequence of real numbers $u_{1}, u_{2}, u_{3}, \ldots$ is determined by $u_{1}$ and the following recurrence relation for $n \geq 1$ : $$ 4 u_{n+1}=\sqrt[3]{64 u_{n}+15} $$ Describe, with proof, the behavior of $u_{n}$ as $n \rightarrow \infty$. 17. (USS) ${ }^{\text {IMO5 }}$ Three equal circles touch the sides of a triangle and have one common point $O$. Show that the center of the circle inscribed in and of the circle circumscribed about the triangle $A B C$ and the point $O$ are collinear. 18. (USS) Several equal spherical planets are given in outer space. On the surface of each planet there is a set of points that is invisible from any of the remaining planets. Prove that the sum of the areas of all these sets is equal to the area of the surface of one planet. 19. (YUG) A finite set of unit circles is given in a plane such that the area of their union $U$ is $S$. Prove that there exists a subset of mutually disjoint circles such that the area of their union is greater that $\frac{2 S}{9}$. ### 3.23 The Twenty-Third IMO Budapest, Hungary, July 5-14, 1982 ### 3.23.1 Contest Problems First Day (July 9) 1. The function $f(n)$ is defined for all positive integers $n$ and takes on nonnegative integer values. Also, for all $m, n$, $$ \begin{gathered} f(m+n)-f(m)-f(n)=0 \quad \text { or } 1 \\ f(2)=0, \quad f(3)>0, \quad \text { and } \quad f(9999)=3333 \end{gathered} $$ Determine $f(1982)$. 2. A nonisosceles triangle $A_{1} A_{2} A_{3}$ is given with sides $a_{1}, a_{2}, a_{3}$ ( $a_{i}$ is the side opposite to $A_{i}$ ). For all $i=1,2,3, M_{i}$ is the midpoint of side $a_{i}$, $T_{i}$ is the point where the incircle touches side $a_{i}$, and the reflection of $T_{i}$ in the interior bisector of $A_{i}$ yields the point $S_{i}$. Prove that the lines $M_{1} S_{1}, M_{2} S_{2}$, and $M_{3} S_{3}$ are concurrent. 3. Consider the infinite sequences $\left\{x_{n}\right\}$ of positive real numbers with the following properties: $$ x_{0}=1 \quad \text { and for all } i \geq 0, x_{i+1} \leq x_{i} $$ (a) Prove that for every such sequence there is an $n \geq 1$ such that $$ \frac{x_{0}^{2}}{x_{1}}+\frac{x_{1}^{2}}{x_{2}}+\cdots+\frac{x_{n-1}^{2}}{x_{n}} \geq 3.999 $$ (b) Find such a sequence for which $\frac{x_{0}^{2}}{x_{1}}+\frac{x_{1}^{2}}{x_{2}}+\cdots+\frac{x_{n-1}^{2}}{x_{n}}<4$ for all $n$. Second Day (July 10) 4. Prove that if $n$ is a positive integer such that the equation $x^{3}-3 x y^{2}+y^{3}=$ $n$ has a solution in integers $(x, y)$, then it has at least three such solutions. Show that the equation has no solution in integers when $n=2891$. 5. The diagonals $A C$ and $C E$ of the regular hexagon $A B C D E F$ are divided by the inner points $M$ and $N$, respectively, so that $\frac{A M}{A C}=\frac{C N}{C E}=r$. Determine $r$ if $B, M$, and $N$ are collinear. 6. Let $S$ be a square with sides of length 100 and let $L$ be a path within $S$ that does not meet itself and that is composed of linear segments $A_{0} A_{1}, A_{1} A_{2}, \ldots, A_{n-1} A_{n}$ with $A_{0} \neq A_{n}$. Suppose that for every point $P$ of the boundary of $S$ there is a point of $L$ at a distance from $P$ not greater than $\frac{1}{2}$. Prove that there are two points $X$ and $Y$ in $L$ such that the distance between $X$ and $Y$ is not greater than 1 and the length of the part of $L$ that lies between $X$ and $Y$ is not smaller than 198. ### 3.23.2 Longlisted Problems 1. (AUS 1) It is well known that the binomial coefficients $\binom{n}{k}=\frac{n!}{k!(n-k)!}$, $0 \leq k \leq n$, are positive integers. The factorial $n$ ! is defined inductively by $0!=1, n!=n \cdot(n-1)$ ! for $n \geq 1$. (a) Prove that $\frac{1}{n+1}\binom{2 n}{n}$ is an integer for $n \geq 0$. (b) Given a positive integer $k$, determine the smallest integer $C_{k}$ with the property that $\frac{C_{k}}{n+k+1}\binom{2 n}{n+k}$ is an integer for all $n \geq k$. 2. (AUS 2) Given a finite number of angular regions $A_{1}, \ldots, A_{k}$ in a plane, each $A_{i}$ being bounded by two half-lines meeting at a vertex and provided with a + or - sign, we assign to each point $P$ of the plane and not on a bounding half-line the number $k-l$, where $k$ is the number of + regions and $l$ the number of - regions that contain $P$. (Note that the boundary of $A_{i}$ does not belong to $A_{i}$.) For instance, in the figure we have two + regions $Q A P$ and $R C Q$, and one - region $R B P$. Every point inside $\triangle A B C$ receives the number ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-157.jpg?height=208&width=255&top_left_y=806&top_left_x=957) +1 , while every point not inside $\triangle A B C$ and not on a boundary halfline the number 0 . We say that the interior of $\triangle A B C$ is represented as a sum of the signed angular regions $Q A P, R B P$, and $R C Q$. (a) Show how to represent the interior of any convex planar polygon as a sum of signed angular regions. (b) Show how to represent the interior of a tetrahedron as a sum of signed solid angular regions, that is, regions bounded by three planes intersecting at a vertex and provided with a + or - sign. 3. (AUS 3) Given $n$ points $X_{1}, X_{2}, \ldots, X_{n}$ in the interval $0 \leq X_{i} \leq 1$, $i=1,2, \ldots, n$, show that there is a point $y, 0 \leq y \leq 1$, such that $$ \frac{1}{n} \sum_{i=1}^{n}\left|y-X_{i}\right|=\frac{1}{2} $$ 4. (AUS 4) (SL82-14). Original formulation. Let $A B C D$ be a convex planar quadrilateral and let $A_{1}$ denote the circumcenter of $\triangle B C D$. Define $B_{1}, C_{1}, D_{1}$ in a corresponding way. (a) Prove that either all of $A_{1}, B_{1}, C_{1}, D_{1}$ coincide in one point, or they are all distinct. Assuming the latter case, show that $A_{1}, C_{1}$ are on opposite sides of the line $B_{1} D_{1}$, and similarly, $B_{1}, D_{1}$ are on opposite sides of the line $A_{1} C_{1}$. (This establishes the convexity of the quadrilateral $\left.A_{1} B_{1} C_{1} D_{1}.\right)$ (b) Denote by $A_{2}$ the circumcenter of $B_{1} C_{1} D_{1}$, and define $B_{2}, C_{2}, D_{2}$ in an analogous way. Show that the quadrilateral $A_{2} B_{2} C_{2} D_{2}$ is similar to the quadrilateral $A B C D$. (c) If the quadrilateral $A_{1} B_{1} C_{1} D_{1}$ was obtained from the quadrilateral $A B C D$ by the above process, what condition must be satisfied by the four points $A_{1}, B_{1}, C_{1}, D_{1}$ ? Assuming that the four points $A_{1}, B_{1}, C_{1}, D_{1}$ satisfying this condition are given, describe a construction by straightedge and compass to obtain the original quadrilateral $A B C D$. (It is not necessary to actually perform the construction). 5. (BEL 1) Among all triangles with a given perimeter, find the one with the maximal radius of its incircle. 6. (BEL 2) On the three distinct lines $a, b$, and $c$ three points $A, B$, and $C$ are given, respectively. Construct three collinear points $X, Y, Z$ on lines $a, b, c$, respectively, such that $\frac{B Y}{A X}=2$ and $\frac{C Z}{A X}=3$. 7. (BEL 3) Find all solutions $(x, y) \in \mathbb{Z}^{2}$ of the equation $$ x^{3}-y^{3}=2 x y+8 $$ 8. (BRA 1) (SL82-10). 9. (BRA 2) Let $n$ be a natural number, $n \geq 2$, and let $\phi$ be Euler's function; i.e., $\phi(n)$ is the number of positive integers not exceeding $n$ and coprime to $n$. Given any two real numbers $\alpha$ and $\beta, 0 \leq \alpha<\beta \leq 1$, prove that there exists a natural number $m$ such that $$ \alpha<\frac{\phi(m)}{m}<\beta $$ 10. (BRA 3) Let $r_{1}, \ldots, r_{n}$ be the radii of $n$ spheres. Call $S_{1}, S_{2}, \ldots, S_{n}$ the areas of the set of points of each sphere from which one cannot see any point of any other sphere. Prove that $$ \frac{S_{1}}{r_{1}^{2}}+\frac{S_{2}}{r_{2}^{2}}+\cdots+\frac{S_{n}}{r_{n}^{2}}=4 \pi $$ 11. (BRA 4) A rectangular pool table has a hole at each of three of its corners. The lengths of sides of the table are the real numbers $a$ and $b$. A billiard ball is shot from the fourth corner along its angle bisector. The ball falls in one of the holes. What should the relation between $a$ and $b$ be for this to happen? 12. (BRA 5) Let there be 3399 numbers arbitrarily chosen among the first 6798 integers $1,2, \ldots, 6798$ in such a way that none of them divides another. Prove that there are exactly 1982 numbers in $\{1,2, \ldots, 6798\}$ that must end up being chosen. 13. (BUL 1) A regular $n$-gonal truncated pyramid is circumscribed around a sphere. Denote the areas of the base and the lateral surfaces of the pyramid by $S_{1}, S_{2}$, and $S$, respectively. Let $\sigma$ be the area of the polygon whose vertices are the tangential points of the sphere and the lateral faces of the pyramid. Prove that $$ \sigma S=4 S_{1} S_{2} \cos ^{2} \frac{\pi}{n} $$ 14. (BUL 2) (SL82-4). 15. (CAN 1) Show that the set $S$ of natural numbers $n$ for which $3 / n$ cannot be written as the sum of two reciprocals of natural numbers ( $S=$ $\{n \mid 3 / n \neq 1 / p+1 / q$ for any $p, q \in \mathbb{N}\}$ ) is not the union of finitely many arithmetic progressions. 16. (CAN 2) (SL82-7). 17. (CAN 3) (SL82-11). 18. (CAN 4) You are given an algebraic system admitting addition and multiplication for which all the laws of ordinary arithmetic are valid except commutativity of multiplication. Show that $$ \left(a+a b^{-1} a\right)^{-1}+(a+b)^{-1}=a^{-1} $$ where $x^{-1}$ is the element for which $x^{-1} x=x x^{-1}=e$, where $e$ is the element of the system such that for all $a$ the equality $e a=a e=a$ holds. 19. (CAN 5) (SL82-15). 20. (CZS 1) Consider a cube $C$ and two planes $\sigma, \tau$, which divide Euclidean space into several regions. Prove that the interior of at least one of these regions meets at least three faces of the cube. 21. (CZS 2) All edges and all diagonals of regular hexagon $A_{1} A_{2} A_{3} A_{4} A_{5} A_{6}$ are colored blue or red such that each triangle $A_{j} A_{k} A_{m}, \quad 1 \leq j1} u_{n / d, k / d} $$ (the empty sum is defined to be equal to zero). Prove that $n \mid u_{n, k}$ for every natural number $n$ and for every $k(1 \leq k \leq n)$. 39. (POL 2) Let $S$ be the unit circle with center $O$ and let $P_{1}, P_{2}, \ldots, P_{n}$ be points of $S$ such that the sum of vectors $v_{i}=\overrightarrow{O P_{i}}$ is the zero vector. Prove that the inequality $\sum_{i=1}^{n} X P_{i} \geq n$ holds for every point $X$. 40. (POL 3) We consider a game on an infinite chessboard similar to that of solitaire: If two adjacent fields are occupied by pawns and the next field is empty (the three fields lie on a vertical or horizontal line), then we may remove these two pawns and put one of them on the third field. Prove that if in the initial position pawns fill a $3 k \times n$ rectangle, then it is impossible to reach a position with only one pawn on the board. 41. (POL 4) (SL82-8). 42. (POL 5) Let $\mathcal{F}$ be the family of all $k$-element subsets of the set $\{1,2, \ldots, 2 k+1\}$. Prove that there exists a bijective function $f: \mathcal{F} \rightarrow \mathcal{F}$ such that for every $A \in \mathcal{F}$, the sets $A$ and $f(A)$ are disjoint. 43. (TUN 1) (a) What is the maximal number of acute angles in a convex polygon? (b) Consider $m$ points in the interior of a convex $n$-gon. The $n$-gon is partitioned into triangles whose vertices are among the $n+m$ given points (the vertices of the $n$-gon and the given points). Each of the $m$ points in the interior is a vertex of at least one triangle. Find the number of triangles obtained. 44. (TUN 2) Let $A$ and $B$ be positions of two ships $M$ and $N$, respectively, at the moment when $N$ saw $M$ moving with constant speed $v$ following the line $A x$. In search of help, $N$ moves with speed $k v(k<1)$ along the line $B y$ in order to meet $M$ as soon as possible. Denote by $C$ the point of meeting of the two ships, and set $$ A B=d, \quad \angle B A C=\alpha, \quad 0 \leq \alpha<\frac{\pi}{2} $$ Determine the angle $\angle A B C=\beta$ and time $t$ that $N$ needs in order to meet $M$. 45. (TUN 3) (SL82-20). 46. (USA 1) Prove that if a diagonal is drawn in a quadrilateral inscribed in a circle, the sum of the radii of the circles inscribed in the two triangles thus formed is the same, no matter which diagonal is drawn. 47. (USA 2) Evaluate $\sec ^{\prime \prime} \frac{\pi}{4}+\sec ^{\prime \prime} \frac{3 \pi}{4}+\sec ^{\prime \prime} \frac{5 \pi}{4}+\sec ^{\prime \prime} \frac{7 \pi}{4}$. (Here $\sec ^{\prime \prime}$ means the second derivative of sec.) 48. (USA 3) Given a finite sequence of complex numbers $c_{1}, c_{2}, \ldots, c_{n}$, show that there exists an integer $k(1 \leq k \leq n)$ such that for every finite sequence $a_{1}, a_{2}, \ldots, a_{n}$ of real numbers with $1 \geq a_{1} \geq a_{2} \geq \cdots \geq a_{n} \geq 0$, the following inequality holds: $$ \left|\sum_{m=1}^{n} a_{m} c_{m} n\right| \leq\left|\sum_{m=1}^{n} c_{m}\right| $$ 49. (USA 4) Simplify $$ \sum_{k=0}^{n} \frac{(2 n)!}{(k!)^{2}((n-k)!)^{2}} $$ 50. (USS 1) Let $O$ be the midpoint of the axis of a right circular cylinder. Let $A$ and $B$ be diametrically opposite points of one base, and $C$ a point of the other base circle that does not belong to the plane $O A B$. Prove that the sum of dihedral angles of the trihedral $O A B C$ is equal to $2 \pi$. 51. (USS 2) Let $n$ numbers $x_{1}, x_{2}, \ldots, x_{n}$ be chosen in such a way that $1 \geq x_{1} \geq x_{2} \geq \cdots \geq x_{n} \geq 0$. Prove that $$ \left(1+x_{1}+x_{2}+\cdots+x_{n}\right)^{\alpha} \leq 1+x_{1}^{\alpha}+2^{\alpha-1} x_{2}^{\alpha}+\cdots+n^{\alpha-1} x_{n}^{\alpha} $$ if $0 \leq \alpha \leq 1$. 52. (USS 3) We are given $2 n$ natural numbers $$ 1,1,2,2,3,3, \ldots, n-1, n-1, n, n $$ Find all $n$ for which these numbers can be arranged in a row such that for each $k \leq n$, there are exactly $k$ numbers between the two numbers $k$. 53. (USS 4) (SL82-3). 54. (USS 5) (SL82-17). 55. (VIE 1) (SL82-6). 56. (VIE 2) Let $f(x)=a x^{2}+b x+c$ and $g(x)=c x^{2}+b x+a$. If $|f(0)| \leq 1$, $|f(1)| \leq 1,|f(-1)| \leq 1$, prove that for $|x| \leq 1$, (a) $|f(x)| \leq 5 / 4$, (b) $|g(x)| \leq 2$. 57. (YUG 1) (SL82-2). ### 3.23.3 Shortlisted Problems 1. A1 (GBR 3) ${ }^{\mathrm{IMO}}$ The function $f(n)$ is defined for all positive integers $n$ and takes on nonnegative integer values. Also, for all $m, n$, $$ \begin{gathered} f(m+n)-f(m)-f(n)=0 \text { or } 1 \\ f(2)=0, \quad f(3)>0, \quad \text { and } \quad f(9999)=3333 \end{gathered} $$ Determine $f(1982)$. 2. A2 (YUG 1) Let $K$ be a convex polygon in the plane and suppose that $K$ is positioned in the coordinate system in such a way that $$ \operatorname{area}\left(K \cap Q_{i}\right)=\frac{1}{4} \text { area } K(i=1,2,3,4,), $$ where the $Q_{i}$ denote the quadrants of the plane. Prove that if $K$ contains no nonzero lattice point, then the area of $K$ is less than 4. 3. A3 (USS 4) ${ }^{\mathrm{IMO} 3}$ Consider the infinite sequences $\left\{x_{n}\right\}$ of positive real numbers with the following properties: $$ x_{0}=1 \quad \text { and for all } i \geq 0, x_{i+1} \leq x_{i} $$ (a) Prove that for every such sequence there is an $n \geq 1$ such that $\frac{x_{0}^{2}}{x_{1}}+$ $\frac{x_{1}^{2}}{x_{2}}+\cdots+\frac{x_{n-1}^{2}}{x_{n}} \geq 3.999$. (b) Find such a sequence for which $\frac{x_{0}^{2}}{x_{1}}+\frac{x_{1}^{2}}{x_{2}}+\cdots+\frac{x_{n-1}^{2}}{x_{n}}<4$ for all $n$. 4. A4 (BUL 2) Determine all real values of the parameter $a$ for which the equation $$ 16 x^{4}-a x^{3}+(2 a+17) x^{2}-a x+16=0 $$ has exactly four distinct real roots that form a geometric progression. 5. A5 (NET 2) ${ }^{\mathrm{IMO}}$ Let $A_{1} A_{2} A_{3} A_{4} A_{5} A_{6}$ be a regular hexagon. Each of its diagonals $A_{i-1} A_{i+1}$ is divided into the same ratio $\frac{\lambda}{1-\lambda}$, where $0<\lambda<1$, by a point $B_{i}$ in such a way that $A_{i}, B_{i}$, and $B_{i+2}$ are collinear ( $i \equiv$ $1, \ldots, 6(\bmod 6))$. Compute $\lambda$. 6. A6 (VIE 1) ${ }^{\text {IMO6 }}$ Let $S$ be a square with sides of length 100 and let $L$ be a path within $S$ that does not meet itself and that is composed of linear segments $A_{0} A_{1}, A_{1} A_{2}, \ldots, A_{n-1} A_{n}$ with $A_{0} \neq A_{n}$. Suppose that for every point $P$ of the boundary of $S$ there is a point of $L$ at a distance from $P$ not greater than $\frac{1}{2}$. Prove that there are two points $X$ and $Y$ in $L$ such that the distance between $X$ and $Y$ is not greater than 1 and the length of that part of $L$ that lies between $X$ and $Y$ is not smaller than 198. 7. B1 (CAN 2) Let $p(x)$ be a cubic polynomial with integer coefficients with leading coefficient 1 and with one of its roots equal to the product of the other two. Show that $2 p(-1)$ is a multiple of $p(1)+p(-1)-2(1+p(0))$. 8. B2 (POL 4) A convex, closed figure lies inside a given circle. The figure is seen from every point of the circumference at a right angle (that is, the two rays drawn from the point and supporting the convex figure are perpendicular). Prove that the center of the circle is a center of symmetry of the figure. 9. B3 (GBR 1) Let $A B C$ be a triangle, and let $P$ be a point inside it such that $\measuredangle P A C=\measuredangle P B C$. The perpendiculars from $P$ to $B C$ and $C A$ meet these lines at $L$ and $M$, respectively, and $D$ is the midpoint of $A B$. Prove that $D L=D M$. 10. B4 (BRA 1) A box contains $p$ white balls and $q$ black balls. Beside the box there is a pile of black balls. Two balls are taken out of the box. If they have the same color, a black ball from the pile is put into the box. If they have different colors, the white ball is put back into the box. This procedure is repeated until the last two balls are removed from the box and one last ball is put in. What is the probability that this last ball is white? 11. B5 (CAN 3) (a) Find the rearrangement $\left\{a_{1}, \ldots, a_{n}\right\}$ of $\{1,2, \ldots, n\}$ that maximizes $$ a_{1} a_{2}+a_{2} a_{3}+\cdots+a_{n} a_{1}=Q $$ (b) Find the rearrangement that minimizes $Q$. 12. B6 (FIN 3) Four distinct circles $C, C_{1}, C_{2}, C_{3}$ and a line $L$ are given in the plane such that $C$ and $L$ are disjoint and each of the circles $C_{1}, C_{2}, C_{3}$ touches the other two, as well as $C$ and $L$. Assuming the radius of $C$ to be 1 , determine the distance between its center and $L$. 13. C1 (NET 1) ${ }^{\mathrm{IMO} 2} \mathrm{~A}$ scalene triangle $A_{1} A_{2} A_{3}$ is given with sides $a_{1}, a_{2}, a_{3}$ ( $a_{i}$ is the side opposite to $A_{i}$ ). For all $i=1,2,3, M_{i}$ is the midpoint of side $a_{i}, T_{i}$ is the point where the incircle touches side $a_{i}$, and the reflection of $T_{i}$ in the interior bisector of $A_{i}$ yields the point $S_{i}$. Prove that the lines $M_{1} S_{1}, M_{2} S_{2}$, and $M_{3} S_{3}$ are concurrent. 14. C2 (AUS 4) Let $A B C D$ be a convex plane quadrilateral and let $A_{1}$ denote the circumcenter of $\triangle B C D$. Define $B_{1}, C_{1}, D_{1}$ in a corresponding way. (a) Prove that either all of $A_{1}, B_{1}, C_{1}, D_{1}$ coincide in one point, or they are all distinct. Assuming the latter case, show that $A_{1}, C_{1}$ are on opposite sides of the line $B_{1} D_{1}$, and similarly, $B_{1}, D_{1}$ are on opposite sides of the line $A_{1} C_{1}$. (This establishes the convexity of the quadrilateral $A_{1} B_{1} C_{1} D_{1}$.) (b) Denote by $A_{2}$ the circumcenter of $B_{1} C_{1} D_{1}$, and define $B_{2}, C_{2}, D_{2}$ in an analogous way. Show that the quadrilateral $A_{2} B_{2} C_{2} D_{2}$ is similar to the quadrilateral $A B C D$. 15. C3 (CAN 5) Show that $$ \frac{1-s^{a}}{1-s} \leq(1+s)^{a-1} $$ holds for every $1 \neq s>0$ real and $00$, and $$ f(x)=a_{0}+\sum_{j=0}^{\infty} b\left(a_{0}\right) \cdots b\left(a_{j}\right) a_{j+1} $$ show that $0a_{i+1}$ for $i$ running from 1 up to $n-1$ ? 26. (FRG 2) Let $a, b, c$ be positive integers satisfying $(a, b)=(b, c)=(c, a)=$ 1. Show that $2 a b c-a b-b c-c a$ cannot be represented as $b c x+c a y+a b z$ with nonnegative integers $x, y, z$. 27. (FRG 3) (SL83-18). 28. (GBR 1) Show that if the sides $a, b, c$ of a triangle satisfy the equation $$ 2\left(a b^{2}+b c^{2}+c a^{2}\right)=a^{2} b+b^{2} c+c^{2} a+3 a b c $$ then the triangle is equilateral. Show also that the equation can be satisfied by positive real numbers that are not the sides of a triangle. 29. (GBR 2) Let $O$ be a point outside a given circle. Two lines $O A B, O C D$ through $O$ meet the circle at $A, B, C, D$, where $A, C$ are the midpoints of $O B, O D$, respectively. Additionally, the acute angle $\theta$ between the lines is equal to the acute angle at which each line cuts the circle. Find $\cos \theta$ and show that the tangents at $A, D$ to the circle meet on the line $B C$. 30. (GBR 3) Prove the existence of a unique sequence $\left\{u_{n}\right\}(n=0,1,2 \ldots)$ of positive integers such that $$ u_{n}^{2}=\sum_{r=0}^{n}\binom{n+r}{r} u_{n-r} \quad \text { for all } n \geq 0 $$ where $\binom{m}{r}$ is the usual binomial coefficient. 31. (GBR 4) (SL83-12). 32. (GBR 5) Let $a, b, c$ be positive real numbers and let $[x]$ denote the greatest integer that does not exceed the real number $x$. Suppose that $f$ is a function defined on the set of nonnegative integers $n$ and taking real values such that $f(0)=0$ and $$ f(n) \leq a n+f([b n])+f([c n]), \quad \text { for all } n \geq 1 $$ Prove that if $b+c<1$, there is a real number $k$ such that $$ f(n) \leq k n \quad \text { for all } n \text {, } $$ while if $b+c=1$, there is a real number $K$ such that $f(n) \leq K n \log _{2} n$ for all $n \geq 2$. Show that if $b+c=1$, there may not be a real number $k$ that satisfies (1). 33. (GDR 1) (SL83-16). 34. (GDR 2) In a plane are given $n$ points $P_{i}(i=1,2, \ldots, n)$ and two angles $\alpha$ and $\beta$. Over each of the segments $P_{i} P_{i=1}\left(P_{n+1}=P_{1}\right)$ a point $Q_{i}$ is constructed such that for all $i$ : (i) upon moving from $P_{i}$ to $P_{i+1}, Q_{i}$ is seen on the same side of $P_{i} P_{i+1}$, (ii) $\angle P_{i+1} P_{i} Q_{i}=\alpha$, (iii) $\angle P_{i} P_{i+1} Q_{i}=\beta$. Furthermore, let $g$ be a line in the same plane with the property that all the points $P_{i}, Q_{i}$ lie on the same side of $g$. Prove that $$ \sum_{i=1}^{n} d\left(P_{i}, g\right)=\sum_{i=1}^{n} d\left(Q_{i}, g\right) $$ where $d(M, g)$ denotes the distance from point $M$ to line $g$. 35. (GDR 3) (SL83-17). 36. (ISR 1) The set $X$ has 1983 members. There exists a family of subsets $\left\{S_{1}, S_{2}, \ldots, S_{k}\right\}$ such that: (i) the union of any three of these subsets is the entire set $X$, while (ii) the union of any two of them contains at most 1979 members. What is the largest possible value of $k$ ? 37. (ISR 2) The points $A_{1}, A_{2}, \ldots, A_{1983}$ are set on the circumference of a circle and each is given one of the values $\pm 1$. Show that if the number of points with the value +1 is greater than 1789 , then at least 1207 of the points will have the property that the partial sums that can be formed by taking the numbers from them to any other point, in either direction, are strictly positive. 38. (KUW 1) Let $\left\{u_{n}\right\}$ be the sequence defined by its first two terms $u_{0}, u_{1}$ and the recursion formula $$ u_{n+2}=u_{n}-u_{n+1} $$ (a) Show that $u_{n}$ can be written in the form $u_{n}=\alpha a^{n}+\beta b^{n}$, where $a, b, \alpha, \beta$ are constants independent of $n$ that have to be determined. (b) If $S_{n}=u_{0}+u_{1}+\cdots+u_{n}$, prove that $S_{n}+u_{n-1}$ is a constant independent of $n$. Determine this constant. 39. (KUW 2) If $\alpha$ is the real root of the equation $$ E(x)=x^{3}-5 x-50=0 $$ such that $x_{n+1}=\left(5 x_{n}+50\right)^{1 / 3}$ and $x_{1}=5$, where $n$ is a positive integer, prove that: (a) $x_{n+1}^{3}-\alpha^{3}=5\left(x_{n}-\alpha\right)$ (b) $\alphaj \geq 1} \cos ^{2}\left(x_{i}-x_{j}\right) \geq \frac{n(n-2)}{4} $$ 73. (VIE 1) Let $A B C$ be a nonequilateral triangle. Prove that there exist two points $P$ and $Q$ in the plane of the triangle, one in the interior and one in the exterior of the circumcircle of $A B C$, such that the orthogonal projections of any of these two points on the sides of the triangle are vertices of an equilateral triangle. 74. (VIE 2) In a plane we are given two distinct points $A, B$ and two lines $a, b$ passing through $B$ and $A$ respectively $(~ a \ni B, b \ni A$ ) such that the line $A B$ is equally inclined to $a$ and $b$. Find the locus of points $M$ in the plane such that the product of distances from $M$ to $A$ and $a$ equals the product of distances from $M$ to $B$ and $b$ (i.e., $M A \cdot M A^{\prime}=M B \cdot M B^{\prime}$, where $A^{\prime}$ and $B^{\prime}$ are the feet of the perpendiculars from $M$ to $a$ and $b$ respectively). 75. (VIE 3) Find the sum of the fiftieth powers of all sides and diagonals of a regular 100-gon inscribed in a circle of radius $R$. ### 3.24.3 Shortlisted Problems 1. (AUS 1) The localities $P_{1}, P_{2}, \ldots, P_{1983}$ are served by ten international airlines $A_{1}, A_{2}, \ldots, A_{10}$. It is noticed that there is direct service (without stops) between any two of these localities and that all airline schedules offer round-trip flights. Prove that at least one of the airlines can offer a round trip with an odd number of landings. 2. (BEL 1) Let $n$ be a positive integer. Let $\sigma(n)$ be the sum of the natural divisors $d$ of $n$ (including 1 and $n$ ). We say that an integer $m \geq 1$ is superabundant (P.Erdös, 1944) if $\forall k \in\{1,2, \ldots, m-1\}, \frac{\sigma(m)}{m}>\frac{\sigma(k)}{k}$. Prove that there exists an infinity of superabundant numbers. 3. (BEL 3) $)^{\mathrm{IMO} 4}$ We say that a set $E$ of points of the Euclidian plane is "Pythagorean" if for any partition of $E$ into two sets $A$ and $B$, at least one of the sets contains the vertices of a right-angled triangle. Decide whether the following sets are Pythagorean: (a) a circle; (b) an equilateral triangle (that is, the set of three vertices and the points of the three edges). 4. (BEL 5) On the sides of the triangle $A B C$, three similar isosceles triangles $A B P(A P=P B), A Q C(A Q=Q C)$, and $B R C(B R=R C)$ are constructed. The first two are constructed externally to the triangle $A B C$, but the third is placed in the same half-plane determined by the line $B C$ as the triangle $A B C$. Prove that $A P R Q$ is a parallelogram. 5. (BRA 1) Consider the set of all strictly decreasing sequences of $n$ natural numbers having the property that in each sequence no term divides any other term of the sequence. Let $A=\left(a_{j}\right)$ and $B=\left(b_{j}\right)$ be any two such sequences. We say that $A$ precedes $B$ if for some $k, a_{k}0$. Show that $01$ there are $a, b \in M$ such that $a+b=m$. (ii) If $a, b, c, d \in M, a, b, c, d>10$ and $a+b=c+d$, then $a=c$ or $a=d$. 16. (GDR 1) Let $F(n)$ be the set of polynomials $P(x)=a_{0}+a_{1} x+\cdots+a_{n} x^{n}$, with $a_{0}, a_{1}, \ldots, a_{n} \in \mathbb{R}$ and $0 \leq a_{0}=a_{n} \leq a_{1}=a_{n-1} \leq \cdots \leq a_{[n / 2]}=$ $a_{[(n+1) / 2]}$. Prove that if $f \in F(m)$ and $g \in F(n)$, then $f g \in F(m+n)$. 17. (GDR 3) Let $P_{1}, P_{2}, \ldots, P_{n}$ be distinct points of the plane, $n \geq 2$. Prove that $$ \max _{1 \leq i\frac{\sqrt{3}}{2}(\sqrt{n}-1) \min _{1 \leq i0$. 21. (SWE 1) Find the greatest integer less than or equal to $\sum_{k=1}^{2^{1983}} k^{1 / 1983-1}$. 22. (SWE 4) Let $n$ be a positive integer having at least two different prime factors. Show that there exists a permutation $a_{1}, a_{2}, \ldots, a_{n}$ of the integers $1,2, \ldots, n$ such that $$ \sum_{k=1}^{n} k \cdot \cos \frac{2 \pi a_{k}}{n}=0 $$ 23. (USS 1) ${ }^{\mathrm{IMO} 2}$ Let $K$ be one of the two intersection points of the circles $W_{1}$ and $W_{2}$. Let $O_{1}$ and $O_{2}$ be the centers of $W_{1}$ and $W_{2}$. The two common tangents to the circles meet $W_{1}$ and $W_{2}$ respectively in $P_{1}$ and $P_{2}$, the first tangent, and $Q_{1}$ and $Q_{2}$, the second tangent. Let $M_{1}$ and $M_{2}$ be the midpoints of $P_{1} Q_{1}$ and $P_{2} Q_{2}$, respectively. Prove that $$ \angle O_{1} K O_{2}=\angle M_{1} K M_{2} $$ 24. (USS 2) Let $d_{n}$ be the last nonzero digit of the decimal representation of $n$ !. Prove that $d_{n}$ is aperiodic; that is, there do not exist $T$ and $n_{0}$ such that for all $n \geq n_{0}, d_{n+T}=d_{n}$. 25. (USS 3) Prove that every partition of 3-dimensional space into three disjoint subsets has the following property: One of these subsets contains all possible distances; i.e., for every $a \in \mathbb{R}_{+}$, there are points $M$ and $N$ inside that subset such that distance between $M$ and $N$ is exactly $a$. ### 3.25 The Twenty-Fifth IMO Prague, Czechoslovakia, June 29-July 10, 1984 ### 3.25.1 Contest Problems First Day (July 4) 1. Let $x, y, z$ be nonnegative real numbers with $x+y+z=1$. Show that $$ 0 \leq x y+y z+z x-2 x y z \leq \frac{7}{27} $$ 2. Find two positive integers $a, b$ such that none of the numbers $a, b, a+b$ is divisible by 7 and $(a+b)^{7}-a^{7}-b^{7}$ is divisible by $7^{7}$. 3. In a plane two different points $O$ and $A$ are given. For each point $X \neq O$ of the plane denote by $\alpha(X)$ the angle $A O X$ measured in radians $(0 \leq$ $\alpha(X)<2 \pi)$ and by $C(X)$ the circle with center $O$ and radius $O X+\frac{\alpha(X)}{O X}$. Suppose each point of the plane is colored by one of a finite number of colors. Show that there exists a point $X$ with $\alpha(X)>0$ such that its color appears somewhere on the circle $C(X)$. Second Day (July 5) 4. Let $A B C D$ be a convex quadrilateral for which the circle of diameter $A B$ is tangent to the line $C D$. Show that the circle of diameter $C D$ is tangent to the line $A B$ if and only if the lines $B C$ and $A D$ are parallel. 5. Let $d$ be the sum of the lengths of all diagonals of a convex polygon of $n$ $(n>3)$ vertices, and let $p$ be its perimeter. Prove that $$ \frac{n-3}{2}<\frac{d}{p}<\frac{1}{2}\left(\left[\frac{n}{2}\right]\left[\frac{n+1}{2}\right]-2\right) $$ 6. Let $a, b, c, d$ be odd positive integers such that $ax_{j}$. Let $d(n, k)$ be the number of such permutations with exactly $k$ discordant pairs. (a) Find $d(n, 2)$. (b) Show that $$ d(n, k)=d(n, k-1)+d(n-1, k)-d(n-1, k-1) $$ with $d(n, k)=0$ for $k<0$ and $d(n, 0)=1$ for $n \geq 1$. Compute with this recursion a table of $d(n, k)$ for $n=1$ to 6 . 23. (FRG 4) A $2 \times 2 \times 12$ box fixed in space is to be filled with twenty-four $1 \times 1 \times 2$ bricks. In how many ways can this be done? 24. (FRG 5) (SL84-7). Original formulation. Consider several types of 4-cell figures: (a) ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-181.jpg?height=102&width=107&top_left_y=1372&top_left_x=317) (b) ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-181.jpg?height=62&width=173&top_left_y=1388&top_left_x=505) (c) ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-181.jpg?height=98&width=146&top_left_y=1374&top_left_x=749) (d) ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-181.jpg?height=98&width=141&top_left_y=1374&top_left_x=969) (e) ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-181.jpg?height=102&width=159&top_left_y=1372&top_left_x=1176) Find, with proof, for which of these types of figures it is not possible to number the fields of the $8 \times 8$ chessboard using the numbers $1,2, \ldots, 64$ in such a way that the sum of the four numbers in each of its parts congruent to the given figure is divisible by 4. 25. (GBR 1) (SL84-10). 26. (GBR 2) A cylindrical container has height 6 cm and radius 4 cm . It rests on a circular hoop, also of radius 4 cm , fixed in a horizontal plane with its axis vertical and with each circular rim of the cylinder touching the hoop at two points. The cylinder is now moved so that each of its circular rims still touches the hoop in two points. Find with proof the locus of one of the cylinder's vertical ends. 27. (GBR 3) The function $f(n)$ is defined on the nonnegative integers $n$ by: $f(0)=0, f(1)=1$, $$ f(n)=f\left(n-\frac{1}{2} m(m-1)\right)-f\left(\frac{1}{2} m(m+1)-n\right), $$ for $\frac{1}{2} m(m-1)\beta>\gamma>0$. From the equation $f_{1}(x)=0$ one constructs the equation $f_{2}(x)=x^{3}+a_{2} x^{2}+b_{2} x+c_{2}=x\left(x+b_{1}\right)^{2}-\left(a_{1} x+c_{1}\right)^{2}=0$. Continuing this process, we get equations $f_{3}, \ldots, f_{n}$. Prove that $$ \lim _{n \rightarrow \infty} \sqrt[2^{n-1}]{-a_{n}}=\alpha $$ 32. (LUX 2) (SL84-15). 33. (MON 1) (SL84-4). 34. (MON 2) One country has $n$ cities and every two of them are linked by a railroad. A railway worker should travel by train exactly once through the entire railroad system (reaching each city exactly once). If it is impossible for worker to travel by train between two cities, he can travel by plane. What is the minimal number of flights that the worker will have to use? 35. (MON 3) Prove that there exist distinct natural numbers $m_{1}, m_{2}, \ldots$, $m_{k}$ satisfying the conditions $$ \pi^{-1984}<25-\left(\frac{1}{m_{1}}+\frac{1}{m_{2}}+\cdots+\frac{1}{m_{k}}\right)<\pi^{-1960} $$ where $\pi$ is the ratio between circle and its diameter. 36. (MON 4) The set $\{1,2, \ldots, 49\}$ is divided into three subsets. Prove that at least one of these subsets contains three different numbers $a, b, c$ such that $a+b=c$. 37. (MOR 1) Denote by $[x]$ the greatest integer not exceeding $x$. For all real $k>1$, define two sequences: $$ a_{n}(k)=[n k] \quad \text { and } \quad b_{n}(k)=\left[\frac{n k}{k-1}\right] . $$ If $A(k)=\left\{a_{n}(k): n \in \mathbb{N}\right\}$ and $B(k)=\left\{b_{n}(k): n \in \mathbb{N}\right\}$, prove that $A(k)$ and $B(k)$ form a partition of $\mathbb{N}$ if and only if $k$ is irrational. 38. (MOR 2) Determine all continuous functions $f$ such that $$ \left(\forall(x, y) \in \mathbb{R}^{2}\right) \quad f(x+y) f(x-y)=(f(x) f(y))^{2} . $$ 39. (MOR 3) Let $A B C$ be an isosceles triangle, $A B=A C, \angle A=20^{\circ}$. Let $D$ be a point on $A B$, and $E$ a point on $A C$ such that $\angle A C D=20^{\circ}$ and $\angle A B E=30^{\circ}$. What is the measure of the angle $\angle C D E$ ? 40. (NET 1) (SL84-12). 41. (NET 2) Determine positive integers $p, q$, and $r$ such that the diagonal of a block consisting of $p \times q \times r$ unit cubes passes through exactly 1984 of the unit cubes, while its length is minimal. (The diagonal is said to pass through a unit cube if it has more than one point in common with the unit cube.) 42. (NET 3) Triangle $A B C$ is given for which $B C=A C+\frac{1}{2} A B$. The point $P$ divides $A B$ such that $R P: P A=1: 3$. Prove that $\angle C A P=2 \angle C P A$. 43. (POL 1) (SL84-16). 44. (POL 2) (SL84-9). 45. (POL 3) Let $X$ be an arbitrary nonempty set contained in the plane and let sets $A_{1}, A_{2}, \ldots, A_{m}$ and $B_{1}, B_{2}, \ldots, B_{n}$ be its images under parallel translations. Let us suppose that $$ A_{1} \cup A_{2} \cup \cdots \cup A_{m} \subset B_{1} \cup B_{2} \cup \cdots \cup B_{n} $$ and that the sets $A_{1}, A_{2}, \ldots, A_{m}$ are disjoint. Prove that $m \leq n$. 46. (ROM 1) Let $\left(a_{n}\right)_{n \geq 1}$ and $\left(b_{n}\right)_{n \geq 1}$ be two sequences of natural numbers such that $a_{n+1}=n a_{n}+1, b_{n+1}=n b_{n}-1$ for every $n \geq 1$. Show that these two sequences can have only a finite number of terms in common. 47. (ROM 2) (SL84-8). 48. (ROM 3) Let $A B C$ be a triangle with interior angle bisectors $A A_{1}$, $B B_{1}, C C_{1}$ and incenter $I$. If $\sigma\left[I A_{1} B\right]+\sigma\left[I B_{1} C\right]+\sigma\left[I C_{1} A\right]=\frac{1}{2} \sigma[A B C]$, where $\sigma[A B C]$ denotes the area of $A B C$, show that $A B C$ is isosceles. 49. (ROM 4) Let $n>1$ and $x_{i} \in \mathbb{R}$ for $i=1, \ldots, n$. Set $S_{k}=x_{1}^{k}+x_{2}^{k}+$ $\cdots+x_{n}^{k}$ for $k \geq 1$. If $S_{1}=S_{2}=\cdots=S_{n+1}$, show that $x_{i} \in\{0,1\}$ for every $i=1,2, \ldots, n$. 50. (ROM 5) (SL84-14). 51. (SPA 1) Two cyclists leave simultaneously a point $P$ in a circular runway with constant velocities $v_{1}, v_{2}\left(v_{1}>v_{2}\right)$ and in the same sense. A pedestrian leaves $P$ at the same time, moving with velocity $v_{3}=\frac{v_{1}+v_{2}}{12}$. If the pedestrian and the cyclists move in opposite directions, the pedestrian meets the second cyclist 91 seconds after he meets the first. If the pedestrian moves in the same direction as the cyclists, the first cyclist overtakes him 187 seconds before the second does. Find the point where the first cyclist overtakes the second cyclist the first time. 52. (SPA 2) Construct a scalene triangle such that $$ a(\tan B-\tan C)=b(\tan A-\tan C) $$ 53. (SPA 3) Find a sequence of natural numbers $a_{i}$ such that $a_{i}=\sum_{r=1}^{i+4} d_{r}$, where $d_{r} \neq d_{s}$ for $r \neq s$ and $d_{r}$ divides $a_{i}$. 54. (SPA 4) Let $P$ be a convex planar polygon with equal angles. Let $l_{1}, \ldots, l_{n}$ be its sides. Show that a necessary and sufficient condition for $P$ to be regular is that the sum of the ratios $\frac{l_{i}}{l_{i+1}}\left(i=1, \ldots, n ; l_{n+1}=l_{1}\right)$ equals the number of sides. 55. (SPA 5) Let $a, b, c$ be natural numbers such that $a+b+c=2 p q\left(p^{30}+q^{30}\right)$, $p>q$ being two given positive integers. (a) Prove that $k=a^{3}+b^{3}+c^{3}$ is not a prime number. (b) Prove that if $a \cdot b \cdot c$ is maximum, then 1984 divides $k$. 56. (SWE 1) Let $a, b, c$ be nonnegative integers such that $a \leq b \leq c, 2 b \neq$ $a+c$ and $\frac{a+b+c}{3}$ is an integer. Is it possible to find three nonnegative integers $d, e$, and $f$ such that $d \leq e \leq f, f \neq c$, and such that $a^{2}+b^{2}+c^{2}=$ $d^{2}+e^{2}+f^{2} ?$ 57. (SWE 2) Let $a, b, c, d$ be a permutation of the numbers $1,9,8,4$ and let $n=(10 a+b)^{10 c+d}$. Find the probability that $1984!$ is divisible by $n$. 58. (SWE 3) Let $\left(a_{n}\right)_{1}^{\infty}$ be a sequence such that $a_{n} \leq a_{n+m} \leq a_{n}+a_{m}$ for all positive integers $n$ and $m$. Prove that $\frac{a_{n}}{n}$ has a limit as $n$ approaches infinity. 59. (USA 1) Determine the smallest positive integer $m$ such that $529^{n}+m$. $132^{n}$ is divisible by 262417 for all odd positive integers $n$. 60. (USA 2) (SL84-20). 61. (USA 3) A fair coin is tossed repeatedly until there is a run of an odd number of heads followed by a tail. Determine the expected number of tosses. 62. (USA 4) From a point $P$ exterior to a circle $K$, two rays are drawn intersecting $K$ in the respective pairs of points $A, A^{\prime}$ and $B, B^{\prime}$. For any other pair of points $C, C^{\prime}$ on $K$, let $D$ be the point of intersection of the circumcircles of triangles $P A C$ and $P B^{\prime} C^{\prime}$ other than point $P$. Similarly, let $D^{\prime}$ be the point of intersection of the circumcircles of triangles $P A^{\prime} C^{\prime}$ and $P B C$ other than point $P$. Prove that the points $P, D$, and $D^{\prime}$ are collinear. 63. (USA 5) (SL84-18). 64. (USS 1) For a matrix $\left(p_{i j}\right)$ of the format $m \times n$ with real entries, set $$ a_{i}=\sum_{j=1}^{n} p_{i j} \text { for } i=1, \ldots, m \text { and } \quad b_{j}=\sum_{i=1}^{m} p_{i j} \text { for } j=1, \ldots, n $$ By integering a real number we mean replacing the number with the integer closest to it. Prove that integering the numbers $a_{i}, b_{j}, p_{i j}$ can be done in such a way that (1) still holds. 65. (USS 2) A tetrahedron is inscribed in a sphere of radius 1 such that the center of the sphere is inside the tetrahedron. Prove that the sum of lengths of all edges of the tetrahedron is greater than 6. 66. (USS 3) (SL84-3). Original formulation. All the divisors of a positive integer $n$ arranged in increasing order are $x_{1}\frac{5}{6} R $$ 68. (USS 5) In the Martian language every finite sequence of letters of the Latin alphabet letters is a word. The publisher "Martian Words" makes a collection of all words in many volumes. In the first volume there are only one-letter words, in the second, two-letter words, etc., and the numeration of the words in each of the volumes continues the numeration of the previous volume. Find the word whose numeration is equal to the sum of numerations of the words Prague, Olympiad, Mathematics. ### 3.25.3 Shortlisted Problems 1. (FRA 1) Find all solutions of the following system of $n$ equations in $n$ variables: $$ \begin{aligned} & x_{1}\left|x_{1}\right|-\left(x_{1}-a\right)\left|x_{1}-a\right|=x_{2}\left|x_{2}\right| \\ & x_{2}\left|x_{2}\right|-\left(x_{2}-a\right)\left|x_{2}-a\right|=x_{3}\left|x_{3}\right| \\ & \cdots \\ & x_{n}\left|x_{n}\right|-\left(x_{n}-a\right)\left|x_{n}-a\right|=x_{1}\left|x_{1}\right| \end{aligned} $$ where $a$ is a given number. 2. (CAN 2) Prove: (a) There are infinitely many triples of positive integers $m, n, p$ such that $4 m n-m-n=p^{2}-1$. (b) There are no positive integers $m, n, p$ such that $4 m n-m-n=p^{2}$. 3. (USS 3) Find all positive integers $n$ such that $$ n=d_{6}^{2}+d_{7}^{2}-1 $$ where $1=d_{1}3)$ vertices and let $p$ be its perimeter. Prove that $$ \frac{n-3}{2}<\frac{d}{p}<\frac{1}{2}\left(\left[\frac{n}{2}\right]\left[\frac{n+1}{2}\right]-2\right) . $$ 5. (FRG 1) ${ }^{\mathrm{IMO} 1}$ Let $x, y, z$ be nonnegative real numbers with $x+y+z=1$. Show that $$ 0 \leq x y+y z+z x-2 x y z \leq \frac{7}{27} $$ 6. (CAN 3) Let $c$ be a positive integer. The sequence $\left\{f_{n}\right\}$ is defined as follows: $$ f_{1}=1, \quad f_{2}=c, \quad f_{n+1}=2 f_{n}-f_{n-1}+2 \quad(n \geq 2) $$ Show that for each $k \in \mathbb{N}$ there exists $r \in \mathbb{N}$ such that $f_{k} f_{k+1}=f_{r}$. 7. (FRG 5) (a) Decide whether the fields of the $8 \times 8$ chessboard can be numbered by the numbers $1,2, \ldots, 64$ in such a way that the sum of the four numbers in each of its parts of one of the forms ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-186.jpg?height=171&width=587&top_left_y=1708&top_left_x=531) is divisible by four. (b) Solve the analogous problem for ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-186.jpg?height=159&width=575&top_left_y=1974&top_left_x=539) 8. (ROM 2) $)^{\mathrm{IMO} 3}$ In a plane two different points $O$ and $A$ are given. For each point $X \neq O$ of the plane denote by $\alpha(X)$ the angle $A O X$ measured in radians $(0 \leq \alpha(X)<2 \pi)$ and by $C(X)$ the circle with center $O$ and radius $O X+\frac{\alpha(X)}{O X}$. Suppose each point of the plane is colored by one of a finite number of colors. Show that there exists a point $X$ with $\alpha(X)>0$ such that its color appears somewhere on the circle $C(X)$. 9. (POL 2) Let $a, b, c$ be positive numbers with $\sqrt{a}+\sqrt{b}+\sqrt{c}=\frac{\sqrt{3}}{2}$. Prove that the system of equations $$ \begin{aligned} & \sqrt{y-a}+\sqrt{z-a}=1, \\ & \sqrt{z-b}+\sqrt{x-b}=1 \\ & \sqrt{x-c}+\sqrt{y-c}=1 \end{aligned} $$ has exactly one solution $(x, y, z)$ in real numbers. 10. (GBR 1) Prove that the product of five consecutive positive integers cannot be the square of an integer. 11. (CAN 1) Let $n$ be a natural number and $a_{1}, a_{2}, \ldots, a_{2 n}$ mutually distinct integers. Find all integers $x$ satisfying $$ \left(x-a_{1}\right) \cdot\left(x-a_{2}\right) \cdots\left(x-a_{2 n}\right)=(-1)^{n}(n!)^{2} $$ 12. (NET 1) ${ }^{\mathrm{IMO} 2}$ Find two positive integers $a, b$ such that none of the numbers $a, b, a+b$ is divisible by 7 and $(a+b)^{7}-a^{7}-b^{7}$ is divisible by $7^{7}$. 13. (BUL 5) Prove that the volume of a tetrahedron inscribed in a right circular cylinder of volume 1 does not exceed $\frac{2}{3 \pi}$. 14. (ROM 5) ${ }^{\mathrm{IMO} 4}$ Let $A B C D$ be a convex quadrilateral for which the circle with diameter $A B$ is tangent to the line $C D$. Show that the circle with diameter $C D$ is tangent to the line $A B$ if and only if the lines $B C$ and $A D$ are parallel. 15. (LUX 2) Angles of a given triangle $A B C$ are all smaller than $120^{\circ}$. Equilateral triangles $A F B, B D C$ and $C E A$ are constructed in the exterior of $\triangle A B C$. (a) Prove that the lines $A D, B E$, and $C F$ pass through one point $S$. (b) Prove that $S D+S E+S F=2(S A+S B+S C)$. 16. (POL 1) ${ }^{\mathrm{IMO} 6}$ Let $a, b, c, d$ be odd positive integers such that $ax_{j}$. Let $d(n, k)$ be the number of such permutations with exactly $k$ discordant pairs. Find $d(n, 2)$ and $d(n, 3)$. 18. (USA 5) Inside triangle $A B C$ there are three circles $k_{1}, k_{2}, k_{3}$ each of which is tangent to two sides of the triangle and to its incircle $k$. The radii of $k_{1}, k_{2}, k_{3}$ are 1, 4, and 9 . Determine the radius of $k$. 19. (CAN 5) The triangular array $\left(a_{n, k}\right)$ of numbers is given by $a_{n, 1}=1 / n$, for $n=1,2, \ldots, a_{n, k+1}=a_{n-1, k}-a_{n, k}$, for $1 \leq k \leq n-1$. Find the harmonic mean of the 1985th row. 20. (USA 2) Determine all pairs $(a, b)$ of positive real numbers with $a \neq 1$ such that $$ \log _{a} b<\log _{a+1}(b+1) $$ ### 3.26 The Twenty-Sixth IMO ## Joutsa, Finland, June 29-July 11, 1985 ### 3.26.1 Contest Problems First Day (July 4) 1. A circle whose center is on the side $E D$ of the cyclic quadrilateral $B C D E$ touches the other three sides. Prove that $E B+C D=E D$. 2. Each of the numbers in the set $N=\{1,2,3, \ldots, n-1\}$, where $n \geq 3$, is colored with one of two colors, say red or black, so that: (i) $i$ and $n-i$ always receive the same color, and (ii) for some $j \in N$ relatively prime to $n, i$ and $|j-i|$ receive the same color for all $i \in N, i \neq j$. Prove that all numbers in $N$ must receive the same color. 3. The weight $w(p)$ of a polynomial $p, p(x)=\sum_{i=0}^{n} a_{i} x^{i}$, with integer coefficients $a_{i}$ is defined as the number of its odd coefficients. For $i=0,1,2, \ldots$, let $q_{i}(x)=(1+x)^{i}$. Prove that for any finite sequence $0 \leq i_{1}0$ recursively by $$ f_{1}(x)=x, \quad f_{n+1}(x)=f_{n}(x)\left(f_{n}(x)+\frac{1}{n}\right) . $$ Prove that there exists one and only one positive number $a$ such that $01, j>1$, and $(k, j)=m$, then $f(k j)=f(m)(f(k / m)+f(j / m))$. What values can $f(1984)$ and $f(1985)$ take? 4. (BEL 1) Let $x, y$, and $z$ be real numbers satisfying $x+y+z=x y z$. Prove that $$ x\left(1-y^{2}\right)\left(1-z^{2}\right)+y\left(1-z^{2}\right)\left(1-x^{2}\right)+z\left(1-x^{2}\right)\left(1-y^{2}\right)=4 x y z $$ 5. (BEL 2) (SL85-16). 6. (BEL 3) On a one-way street, an unending sequence of cars of width $a$, length $b$ passes with velocity $v$. The cars are separated by the distance $c$. A pedestrian crosses the street perpendicularly with velocity $w$, without paying attention to the cars. (a) What is the probability that the pedestrian crosses the street uninjured? (b) Can he improve this probability by crossing the road in a direction other than perpendicular? 7. (BRA 1) A convex quadrilateral is inscribed in a circle of radius 1. Prove that the difference between its perimeter and the sum of the lengths of its diagonals is greater than zero and less than 2. 8. (BRA 2) Let $K$ be a convex set in the $x y$-plane, symmetric with respect to the origin and having area greater than 4 . Prove that there exists a point $(m, n) \neq(0,0)$ in $K$ such that $m$ and $n$ are integers. 9. (BRA 3) (SL85-2). 10. (BUL 1) (SL85-13). 11. (BUL 2) Let $a$ and $b$ be integers and $n$ a positive integer. Prove that $$ \frac{b^{n-1} a(a+b)(a+2 b) \cdots(a+(n-1) b)}{n!} $$ is an integer. 12. (CAN 1) Find the maximum value of $$ \sin ^{2} \theta_{1}+\sin ^{2} \theta_{2}+\cdots+\sin ^{2} \theta_{n} $$ subject to the restrictions $0 \leq \theta_{i} \leq \pi, \theta_{1}+\theta_{2}+\cdots+\theta_{n}=\pi$. 13. (CAN 2) Find the average of the quantity $$ \left(a_{1}-a_{2}\right)^{2}+\left(a_{2}-a_{3}\right)^{2}+\cdots+\left(a_{n-1}-a_{n}\right)^{2} $$ taken over all permutations $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$ of $(1,2, \ldots, n)$. 14. (CAN 3) Let $k$ be a positive integer. Define $u_{0}=0, u_{1}=1$, and $u_{n}=k u_{n-1}-u_{n-2}, n \geq 2$. Show that for each integer $n$, the number $u_{1}^{3}+u_{2}^{3}+\cdots+u_{n}^{3}$ is a multiple of $u_{1}+u_{2}+\cdots+u_{n}$. 15. (CAN 4) Superchess is played on on a $12 \times 12$ board, and it uses superknights, which move between opposite corner cells of any $3 \times 4$ subboard. Is it possible for a superknight to visit every other cell of a superchessboard exactly once and return to its starting cell? 16. (CAN 5) (SL85-18). 17. (CUB 1) Set $$ A_{n}=\sum_{k=1}^{n} \frac{k^{6}}{2^{k}} $$ Find $\lim _{n \rightarrow \infty} A_{n}$. 18. (CYP 1) The circles $(R, r)$ and $(P, \rho)$, where $r>\rho$, touch externally at $A$. Their direct common tangent touches $(R, r)$ at $B$ and $(P, \rho)$ at $C$. The line $R P$ meets the circle $(P, \rho)$ again at $D$ and the line $B C$ at $E$. If $|B C|=6|D E|$, prove that: (a) the lengths of the sides of the triangle $R B E$ are in an arithmetic progression, and (b) $|A B|=2|A C|$. 19. (CYP 2) Solve the system of simultaneous equations $$ \begin{aligned} \sqrt{x}-1 / y-2 w+3 z & =1 \\ x+1 / y^{2}-4 w^{2}-9 z^{2} & =3 \\ x \sqrt{x}-1 / y^{3}-8 w^{3}+27 z^{3} & =-5 \\ x^{2}+1 / y^{4}-16 w^{4}-81 z^{4} & =15 \end{aligned} $$ 20. (CZS 1) Let $T$ be the set of all lattice points (i.e., all points with integer coordinates) in three-dimensional space. Two such points $(x, y, z)$ and $(u, v, w)$ are called neighbors if $|x-u|+|y-v|+|z-w|=1$. Show that there exists a subset $S$ of $T$ such that for each $p \in T$, there is exactly one point of $S$ among $p$ and its neighbors. 21. (CZS 2) Let $A$ be a set of positive integers such that for any two elements $x, y$ of $A,|x-y| \geq \frac{x y}{25}$. Prove that $A$ contains at most nine elements. Give an example of such a set of nine elements. 22. (CZS 3) (SL85-7). 23. (CZS 4) Let $\mathbb{N}=\{1,2,3, \ldots\}$. For real $x, y$, set $S(x, y)=\{s \mid s=$ $[n x+y], n \in \mathbb{N}\}$. Prove that if $r>1$ is a rational number, there exist real numbers $u$ and $v$ such that $$ S(r, 0) \cap S(u, v)=\emptyset, S(r, 0) \cup S(u, v)=\mathbb{N} $$ 24. (FRA 1) Let $d \geq 1$ be an integer that is not the square of an integer. Prove that for every integer $n \geq 1$, $$ (n \sqrt{d}+1)|\sin (n \pi \sqrt{d})| \geq 1 $$ 25. (FRA 2) Find eight positive integers $n_{1}, n_{2}, \ldots, n_{8}$ with the following property: For every integer $k,-1985 \leq k \leq 1985$, there are eight integers $\alpha_{1}, \alpha_{2}, \ldots, \alpha_{8}$, each belonging to the set $\{-1,0,1\}$, such that $k=\sum_{i=1}^{8} \alpha_{i} n_{i}$. 26. (FRA 3) (SL85-15). 27. (FRA 4) Let $O$ be a point on the oriented Euclidean plane and (i,j) a directly oriented orthonormal basis. Let $C$ be the circle of radius 1, centered at $O$. For every real number $t$ and nonnegative integer $n$ let $M_{n}$ be the point on $C$ for which $\left\langle\mathbf{i}, \overrightarrow{O M_{n}}\right\rangle=\cos 2^{n} t\left(\right.$ or $\left.\overrightarrow{O M_{n}}=\cos 2^{n} t \mathbf{i}+\sin 2^{n} t \mathbf{j}\right)$. Let $k \geq 2$ be an integer. Find all real numbers $t \in[0,2 \pi)$ that satisfy (i) $M_{0}=M_{k}$, and (ii) if one starts from $M_{0}$ and goes once around $C$ in the positive direction, one meets successively the points $M_{0}, M_{1}, \ldots, M_{k-2}, M_{k-1}$, in this order. 28. (FRG 1) Let $M$ be the set of the lengths of an octahedron whose sides are congruent quadrangles. Prove that $M$ has at most three elements. (FRG 1a) Let an octahedron whose sides are congruent quadrangles be given. Prove that each of these quadrangles has two equal sides meeting at a common vertex. 29. (FRG 2) Call a four-digit number $(x y z t)_{B}$ in the number system with base $B$ stable if $(x y z t)_{B}=(d c b a)_{B}-(a b c d)_{B}$, where $a \leq b \leq c \leq d$ are the digits of $(x y z t)_{B}$ in ascending order. Determine all stable numbers in the number system with base $B$. (FRG 2a) The same problem with $B=1985$. (FRG 2b) With assumptions as in FRG 2, determine the number of bases $B \leq 1985$ such that there is a stable number with base $B$. 30. (GBR 1) A plane rectangular grid is given and a "rational point" is defined as a point $(x, y)$ where $x$ and $y$ are both rational numbers. Let $A, B, A^{\prime}, B^{\prime}$ be four distinct rational points. Let $P$ be a point such that $\frac{A^{\prime} B^{\prime}}{A B}=\frac{B^{\prime} P}{B C}=\frac{P A^{\prime}}{P A}$. In other words, the triangles $A B P, A^{\prime} B^{\prime} P$ are directly or oppositely similar. Prove that $P$ is in general a rational point and find the exceptional positions of $A^{\prime}$ and $B^{\prime}$ relative to $A$ and $B$ such that there exists a $P$ that is not a rational point. 31. (GBR 2) Let $E_{1}, E_{2}$, and $E_{3}$ be three mutually intersecting ellipses, all in the same plane. Their foci are respectively $F_{2}, F_{3} ; F_{3}, F_{1}$; and $F_{1}, F_{2}$. The three foci are not on a straight line. Prove that the common chords of each pair of ellipses are concurrent. 32. (GBR 3) A collection of $2 n$ letters contains 2 each of $n$ different letters. The collection is partitioned into $n$ pairs, each pair containing 2 letters, which may be the same or different. Denote the number of distinct partitions by $u_{n}$. (Partitions differing in the order of the pairs in the partition or in the order of the two letters in the pairs are not considered distinct.) Prove that $u_{n+1}=(n+1) u_{n}-\frac{n(n-1)}{2} u_{n-2}$. (GBR 3a) A pack of $n$ cards contains $n$ pairs of 2 identical cards. It is shuffled and 2 cards are dealt to each of $n$ different players. Let $p_{n}$ be the probability that every one of the $n$ players is dealt two identical cards. Prove that $\frac{1}{p_{n+1}}=\frac{n+1}{p_{n}}-\frac{n(n-1)}{2 p_{n-2}}$. 33. (GBR 4) (SL85-12). 34. (GBR 5) (SL85-20). 35. (GDR 1) We call a coloring $f$ of the elements in the set $M=\{(x, y) \mid$ $x=0,1, \ldots, k n-1 ; y=0,1, \ldots, l n-1\}$ with $n$ colors allowable if every color appears exactly $k$ and $l$ times in each row and column and there are no rectangles with sides parallel to the coordinate axes such that all the vertices in $M$ have the same color. Prove that every allowable coloring $f$ satisfies $k l \leq n(n+1)$. 36. (GDR 2) Determine whether there exist 100 distinct lines in the plane having exactly 1985 distinct points of intersection. 37. (GDR 3) Prove that a triangle with angles $\alpha, \beta, \gamma$, circumradius $R$, and area $A$ satisfies $$ \tan \frac{\alpha}{2}+\tan \frac{\beta}{2}+\tan \frac{\gamma}{2} \leq \frac{9 R^{2}}{4 A} $$ 38. (IRE 1) (SL85-21). 39. (IRE 2) Given a triangle $A B C$ and external points $X, Y$, and $Z$ such that $\measuredangle B A Z=\measuredangle C A Y, \measuredangle C B X=\measuredangle A B Z$, and $\measuredangle A C Y=\measuredangle B C X$, prove that $A X, B Y$, and $C Z$ are concurrent. 40. (IRE 3) Each of the numbers $x_{1}, x_{2}, \ldots, x_{n}$ equals 1 or -1 and $$ \begin{aligned} & x_{1} x_{2} x_{3} x_{4}+x_{2} x_{3} x_{4} x_{5}+\cdots+x_{n-3} x_{n-2} x_{n-1} x_{n} \\ & \quad+x_{n-2} x_{n-1} x_{n} x_{1}+x_{n-1} x_{n} x_{1} x_{2}+x_{n} x_{1} x_{2} x_{3}=0 \end{aligned} $$ Prove that $n$ is divisible by 4 . 41. (IRE 4) (SL85-14). 42. (ISR 1) Prove that the product of two sides of a triangle is always greater than the product of the diameters of the inscribed circle and the circumscribed circle. 43. (ISR 2) Suppose that 1985 points are given inside a unit cube. Show that one can always choose 32 of them in such a way that every (possibly degenerate) closed polygon with these points as vertices has a total length of less than $8 \sqrt{3}$. 44. (ISR 3) (SL85-19). 45. (ITA 1) Two persons, $X$ and $Y$, play with a die. $X$ wins a game if the outcome is 1 or $2 ; Y$ wins in the other cases. A player wins a match if he wins two consecutive games. For each player determine the probability of winning a match within 5 games. Determine the probabilities of winning in an unlimited number of games. If $X$ bets 1 , how much must $Y$ bet for the game to be fair? 46. (ITA 2) Let $C$ be the curve determined by the equation $y=x^{3}$ in the rectangular coordinate system. Let $t$ be the tangent to $C$ at a point $P$ of $C ; t$ intersects $C$ at another point $Q$. Find the equation of the set $L$ of the midpoints $M$ of $P Q$ as $P$ describes $C$. Is the correspondence associating $P$ and $M$ a bijection of $C$ on $L$ ? Find a similarity that transforms $C$ into $L$. 47. (ITA 3) Let $F$ be the correspondence associating with every point $P=$ $(x, y)$ the point $P^{\prime}=\left(x^{\prime}, y^{\prime}\right)$ such that $$ x^{\prime}=a x+b, \quad y^{\prime}=a y+2 b . $$ Show that if $a \neq 1$, all lines $P P^{\prime}$ are concurrent. Find the equation of the set of points corresponding to $P=(1,1)$ for $b=a^{2}$. Show that the composition of two mappings of type (1) is of the same type. 48. (ITA 4) In a given country, all inhabitants are knights or knaves. A knight never lies; a knave always lies. We meet three persons, $A, B$, and $C$. Person $A$ says, "If $C$ is a knight, $B$ is a knave." Person $C$ says, " $A$ and I are different; one is a knight and the other is a knave." Who are the knights, and who are the knaves? 49. (MON 1) (SL85-1). 50. (MON 2) From each of the vertices of a regular $n$-gon a car starts to move with constant speed along the perimeter of the $n$-gon in the same direction. Prove that if all the cars end up at a vertex $A$ at the same time, then they never again meet at any other vertex of the $n$-gon. Can they meet again at $A$ ? 51. (MON 3) Let $f_{1}=\left(a_{1}, a_{2}, \ldots, a_{n}\right), n>2$, be a sequence of integers. From $f_{1}$ one constructs a sequence $f_{k}$ of sequences as follows: if $f_{k}=$ $\left(c_{1}, c_{2}, \ldots, c_{n}\right)$, then $f_{k+1}=\left(c_{i_{1}}, c_{i_{2}}, c_{i_{3}}+1, c_{i_{4}}+1, \ldots, c_{i_{n}}+1\right)$, where $\left(c_{i_{1}}, c_{i_{2}}, \ldots, c_{i_{n}}\right)$ is a permutation of $\left(c_{1}, c_{2}, \ldots, c_{n}\right)$. Give a necessary and sufficient condition for $f_{1}$ under which it is possible for $f_{k}$ to be a constant sequence $\left(b_{1}, b_{2}, \ldots, b_{n}\right), b_{1}=b_{2}=\cdots=b_{n}$, for some $k$. 52. (MON 4) In the triangle $A B C$, let $B_{1}$ be on $A C, E$ on $A B, G$ on $B C$, and let $E G$ be parallel to $A C$. Furthermore, let $E G$ be tangent to the inscribed circle of the triangle $A B B_{1}$ and intersect $B B_{1}$ at $F$. Let $r, r_{1}$, and $r_{2}$ be the inradii of the triangles $A B C, A B B_{1}$, and $B F G$, respectively. Prove that $r=r_{1}+r_{2}$. 53. (MON 5) For each $P$ inside the triangle $A B C$, let $A(P), B(P)$, and $C(P)$ be the points of intersection of the lines $A P, B P$, and $C P$ with the sides opposite to $A, B$, and $C$, respectively. Determine $P$ in such a way that the area of the triangle $A(P) B(P) C(P)$ is as large as possible. 54. (MOR 1) Set $S_{n}=\sum_{p=1}^{n}\left(p^{5}+p^{7}\right)$. Determine the greatest common divisor of $S_{n}$ and $S_{3 n}$. 55. (MOR 2) The points $A, B, C$ are in this order on line $D$, and $A B=4 B C$. Let $M$ be a variable point on the perpendicular to $D$ through $C$. Let $M T_{1}$ and $M T_{2}$ be tangents to the circle with center $A$ and radius $A B$. Determine the locus of the orthocenter of the triangle $M T_{1} T_{2}$. 56. (MOR 3) Let $A B C D$ be a rhombus with angle $\angle A=60^{\circ}$. Let $E$ be a point, different from $D$, on the line $A D$. The lines $C E$ and $A B$ intersect at $F$. The lines $D F$ and $B E$ intersect at $M$. Determine the angle $\measuredangle B M D$ as a function of the position of $E$ on $A D$. 57. (NET 1) The solid $S$ is defined as the intersection of the six spheres with the six edges of a regular tetrahedron $T$, with edge length 1 , as diameters. Prove that $S$ contains two points at a distance $\frac{1}{\sqrt{6}}$. (NET 1a) Using the same assumptions, prove that no pair of points in $S$ has a distance larger than $\frac{1}{\sqrt{6}}$. 58. (NET 2) Prove that there are infinitely many pairs $(k, N)$ of positive integers such that $1+2+\cdots+k=(k+1)+(k+2)+\cdots+N$. 59. (NET 3) (SL85-3). 60. (NOR 1) The sequence $\left(s_{n}\right)$, where $s_{n}=\sum_{k=1}^{n} \sin k, n=1,2, \ldots$, is bounded. Find an upper and lower bound. 61. (NOR 2) Consider the set $A=\{0,1,2, \ldots, 9\}$ and let $\left(B_{1}, B_{2}, \ldots, B_{k}\right)$ be a collection of nonempty subsets of $A$ such that $B_{i} \cap B_{j}$ has at most two elements for $i \neq j$. What is the maximal value of $k$ ? 62. (NOR 3) A "large" circular disk is attached to a vertical wall. It rotates clockwise with one revolution per minute. An insect lands on the disk and immediately starts to climb vertically upward with constant speed $\frac{\pi}{3} \mathrm{~cm}$ per second (relative to the disk). Describe the path of the insect (a) relative to the disk; (b) relative to the wall. 63. (POL 1) (SL85-6). 64. (POL 2) Let $p$ be a prime. For which $k$ can the set $\{1,2, \ldots, k\}$ be partitioned into $p$ subsets with equal sums of elements? 65. (POL 3) Define the functions $f, F: \mathbb{N} \rightarrow \mathbb{N}$, by $$ f(n)=\left[\frac{3-\sqrt{5}}{2} n\right], \quad F(k)=\min \left\{n \in \mathbb{N} \mid f^{k}(n)>0\right\} $$ where $f^{k}=f \circ \cdots \circ f$ is $f$ iterated $n$ times. Prove that $F(k+2)=$ $3 F(k+1)-F(k)$ for all $k \in \mathbb{N}$. 66. (ROM 1) (SL85-5). 67. (ROM 2) Let $k \geq 2$ and $n_{1}, n_{2}, \ldots, n_{k} \geq 1$ natural numbers having the property $n_{2}\left|2^{n_{1}}-1, n_{3}\right| 2^{n_{2}}-1, \ldots, n_{k} \mid 2^{n_{k-1}}-1$, and $n_{1} \mid 2^{n_{k}}-1$. Show that $n_{1}=n_{2}=\cdots=n_{k}=1$. 68. (ROM 3) Show that the sequence $\left\{a_{n}\right\}_{n \geq 1}$ defined by $a_{n}=[n \sqrt{2}]$ contains an infinite number of integer powers of 2 . ( $[x]$ is the integer part of $x$.) 69. (ROM 4) Let $A$ and $B$ be two finite disjoint sets of points in the plane such that any three distinct points in $A \cup B$ are not collinear. Assume that at least one of the sets $A, B$ contains at least five points. Show that there exists a triangle all of whose vertices are contained in $A$ or in $B$ that does not contain in its interior any point from the other set. 70. (ROM 5) Let $C$ be a class of functions $f: \mathbb{N} \rightarrow \mathbb{N}$ that contains the functions $S(x)=x+1$ and $E(x)=x-\left[\sqrt{x}^{2}\right.$ for every $x \in \mathbb{N}$. ( $[x]$ is the integer part of $x$.) If $C$ has the property that for every $f, g \in C$, $f+g, f g, f \circ g \in C$, show that the function $\max (f(x)-g(x), 0)$ is in $C$. 71. (ROM 6) For every integer $r>1$ find the smallest integer $h(r)>1$ having the following property: For any partition of the set $\{1,2, \ldots, h(r)\}$ into $r$ classes, there exist integers $a \geq 0,1 \leq x \leq y$ such that the numbers $a+x, a+y, a+x+y$ are contained in the same class of the partition. 72. (SPA 1) Construct a triangle $A B C$ given the side $A B$ and the distance $O H$ from the circumcenter $O$ to the orthocenter $H$, assuming that $O H$ and $A B$ are parallel. 73. (SPA 2) Let $A_{1} A_{2}, B_{1} B_{2}, C_{1} C_{2}$ be three equal segments on the three sides of an equilateral triangle. Prove that in the triangle formed by the lines $B_{2} C_{1}, C_{2} A_{1}, A_{2} B_{1}$, the segments $B_{2} C_{1}, C_{2} A_{1}, A_{2} B_{1}$ are proportional to the sides in which they are contained. 74. (SPA 3) Find the triples of positive integers $x, y, z$ satisfying $$ \frac{1}{x}+\frac{1}{y}+\frac{1}{z}=\frac{4}{5} $$ 75. (SPA 4) Let $A B C D$ be a rectangle, $A B=a, B C=b$. Consider the family of parallel and equidistant straight lines (the distance between two consecutive lines being $d$ ) that are at an the angle $\phi, 0 \leq \phi \leq 90^{\circ}$, with respect to $A B$. Let $L$ be the sum of the lengths of all the segments intersecting the rectangle. Find: (a) how $L$ varies, (b) a necessary and sufficient condition for $L$ to be a constant, and (c) the value of this constant. 76. (SWE 1) Are there integers $m$ and $n$ such that $$ 5 m^{2}-6 m n+7 n^{2}=1985 ? $$ 77. (SWE 2) Two equilateral triangles are inscribed in a circle with radius $r$. Let $A$ be the area of the set consisting of all points interior to both triangles. Prove that $2 A \geq r^{2} \sqrt{3}$. 78. (SWE 3) (SL85-17). 79. (SWE 4) Let $a, b$, and $c$ be real numbers such that $$ \frac{1}{b c-a^{2}}+\frac{1}{c a-b^{2}}+\frac{1}{a b-c^{2}}=0 $$ Prove that $$ \frac{a}{\left(b c-a^{2}\right)^{2}}+\frac{b}{\left(c a-b^{2}\right)^{2}}+\frac{c}{\left(a b-c^{2}\right)^{2}}=0 . $$ 80. (TUR 1) Let $E=\{1,2, \ldots, 16\}$ and let $M$ be the collection of all $4 \times 4$ matrices whose entries are distinct members of $E$. If a matrix $A=$ $\left(a_{i j}\right)_{4 \times 4}$ is chosen randomly from $M$, compute the probability $p(k)$ of $\max _{i} \min _{j} a_{i j}=k$ for $k \in E$. Furthermore, determine $l \in E$ such that $p(l)=\max \{p(k) \mid k \in E\}$. 81. (TUR 2) Given the side $a$ and the corresponding altitude $h_{a}$ of a triangle $A B C$, find a relation between $a$ and $h_{a}$ such that it is possible to construct, with straightedge and compass, triangle $A B C$ such that the altitudes of $A B C$ form a right triangle admitting $h_{a}$ as hypotenuse. 82. (TUR 3) Find all cubic polynomials $x^{3}+a x^{2}+b x+c$ admitting the rational numbers $a, b$, and $c$ as roots. 83. (TUR 4) Let $\Gamma_{i}, i=0,1,2, \ldots$, be a circle of radius $r_{i}$ inscribed in an angle of measure $2 \alpha$ such that each $\Gamma_{i}$ is externally tangent to $\Gamma_{i+1}$ and $r_{i+1}R$. The points $M$ and $N$ are chosen on $\Lambda$ in such a way that the circle with diameter $M N$ is externally tangent to the given circle. Show that there exists a point $A$ in the plane such that all the segments $M N$ are seen in a constant angle from $A$. ### 3.26.3 Shortlisted Problems ## Proposals of the Problem Selection Committee. 1. (MON 1) ${ }^{\mathrm{IMO} 4}$ Given a set $M$ of 1985 positive integers, none of which has a prime divisor larger than 26 , prove that the set has four distinct elements whose geometric mean is an integer. 2. (BRA 3) A polyhedron has 12 faces and is such that: (i) all faces are isosceles triangles, (ii) all edges have length either $x$ or $y$, (iii) at each vertex either 3 or 6 edges meet, and (iv) all dihedral angles are equal. Find the ratio $x / y$. 3. (NET 3) ${ }^{\mathrm{IMO} 3}$ The weight $w(p)$ of a polynomial $p, p(x)=\sum_{i=0}^{n} a_{i} x^{i}$, with integer coefficients $a_{i}$ is defined as the number of its odd coefficients. For $i=0,1,2, \ldots$, let $q_{i}(x)=(1+x)^{i}$. Prove that for any finite sequence $0 \leq i_{1}0$. Prove that each $P_{m}(x, y, z)$ is symmetric, in other words, is unaltered by any permutation of $x, y, z$. 13. 4a.(BUL 1) Let $m$ boxes be given, with some balls in each box. Let $n0$ recursively by $$ f_{1}(x)=x, \quad f_{n+1}(x)=f_{n}(x)\left(f_{n}(x)+\frac{1}{n}\right) . $$ Prove that there exists one and only one positive number $a$ such that $02)$ in such a way that any two fields that have a common edge or a vertex are assigned numbers differing by at most $n+1$. What is the total number of such placements? 43. (HUN 2) (SL86-10). 44. (IRE 1) (SL86-14). 45. (IRE 2) Given $n$ real numbers $a_{1} \leq a_{2} \leq \cdots \leq a_{n}$, define $$ M_{1}=\frac{1}{n} \sum_{i=1}^{n} a_{i}, \quad M_{2}=\frac{2}{n(n-1)} \sum_{1 \leq i3$. Find at least $3(n+1)$ [easier version: $2(n+1)]$ sequences of positive integers $x, y, z$ satisfying $$ x y z=p^{n}(x+y+z) $$ that do not differ only by permutation. 5. (FRG 1) ${ }^{\mathrm{IMO1}}$ The set $S=\{2,5,13\}$ has the property that for every $a, b \in S, a \neq b$, the number $a b-1$ is a perfect square. Show that for every positive integer $d$ not in $S$, the set $S \cup\{d\}$ does not have the above property. 6. (NET 1) Find four positive integers each not exceeding 70000 and each having more than 100 divisors. 7. (FRA 5) Let real numbers $x_{1}, x_{2}, \ldots, x_{n}$ satisfy $01$ there are integers $e_{i}$ not all 0 and with $\left|e_{i}\right|0$. Prove that there exists a function $u:[1,+\infty) \rightarrow \mathbb{R}$ satisfying $u\left(\frac{x+1 / x}{2}\right)=f(x)$ for all $x>0$. 8. (BEL 2) Determine the least possible value of the natural number $n$ such that $n$ ! ends in exactly 1987 zeros. 9. (BEL 3) In the set of 20 elements $\{1,2,3,4,5,6,7,8,9,0, A, B, C$, $D, J, K, L, U, X, Y, Z\}$ we have made a random sequence of 28 throws. What is the probability that the sequence $C U B A J U L Y 1987$ appears in this order in the sequence already thrown? 10. (FIN 1) In a Cartesian coordinate system, the circle $C_{1}$ has center $O_{1}(-2,0)$ and radius 3 . Denote the point $(1,0)$ by $A$ and the origin by $O$. Prove that there is a constant $c>0$ such that for every $X$ that is exterior to $C_{1}$, $$ O X-1 \geq c \min \left\{A X, A X^{2}\right\} $$ Find the largest possible $c$. 11. (FIN 2) Let $S \subset[0,1]$ be a set of 5 points with $\{0,1\} \subset S$. The graph of a real function $f:[0,1] \rightarrow[0,1]$ is continuous and increasing, and it is linear on every subinterval $I$ in $[0,1]$ such that the endpoints but no interior points of $I$ are in $S$. We want to compute, using a computer, the extreme values of $g(x, t)=\frac{f(x+t)-f(x)}{f(x)-f(x-t)}$ for $x-t, x+t \in[0,1]$. At how many points $(x, t)$ is it necessary to compute $g(x, t)$ with the computer? 12. (FIN 3) (SL87-3). 13. (FIN 4) $A$ be an infinite set of positive integers such that every $n \in A$ is the product of at most 1987 prime numbers. Prove that there is an infinite set $B \subset A$ and a number $p$ such that the greatest common divisor of any two distinct numbers in $B$ is $b$. 14. (FRA 1) Given $n$ real numbers $01$ be a real number, and let $n$ be the largest integer smaller than $r$. Consider an arbitrary real number $x$ with $0 \leq x \leq \frac{n}{r-1}$. By a base-r expansion of $x$ we mean a representation of $x$ in the form $$ x=\frac{a_{1}}{r}+\frac{a_{2}}{r^{2}}+\frac{a_{3}}{r^{3}}+\cdots, $$ where the $a_{i}$ are integers with $0 \leq a_{i}\gamma, \beta+\gamma>\alpha, \gamma+\alpha>\beta$. Prove that it is possible to draw a triangle with the lengths of the $\operatorname{sides} \sin \alpha, \sin \beta$, $\sin \gamma$. Moreover, prove that its area is less than $$ \frac{1}{8}(\sin 2 \alpha+\sin 2 \beta+\sin 2 \gamma) $$ 69. (USS 3) (SL87-20). 70. (USS 4) (SL87-21). 71. (USS 5) To every natural number $k, k \geq 2$, there corresponds a sequence $a_{n}(k)$ according to the following rule: $$ a_{0}=k, \quad a_{n}=\tau\left(a_{n-1}\right) \text { for } n \geq 1, $$ in which $\tau(a)$ is the number of different divisors of $a$. Find all $k$ for which the sequence $a_{n}(k)$ does not contain the square of an integer. 72. (VIE 1) Is it possible to cover a rectangle of dimensions $m \times n$ with bricks that have the trimino angular shape (an arrangement of three unit squares forming the letter L) if: (a) $m \times n=1985 \times 1987$; (b) $m \times n=1987 \times 1989$ ? 73. (VIE 2) Let $f(x)$ be a periodic function of period $T>0$ defined over $\mathbb{R}$. Its first derivative is continuous on $\mathbb{R}$. Prove that there exist $x, y \in[0, T)$ such that $x \neq y$ and $$ f(x) f^{\prime}(y)=f(y) f^{\prime}(x) . $$ 74. (VIE 3) (SL87-22). 75. (VIE 4) Let $a_{k}$ be positive numbers such that $a_{1} \geq 1$ and $a_{k+1}-a_{k} \geq 1$ $(k=1,2, \ldots)$. Prove that for every $n \in \mathbb{N}$, $$ \sum_{k=1}^{n} \frac{1}{a_{k+1} \sqrt[1987]{a_{k}}}<1987 $$ 76. (VIE 5) Given two sequences of positive numbers $\left\{a_{k}\right\}$ and $\left\{b_{k}\right\}(k \in \mathbb{N})$ such that (i) $a_{k}y$ and $f(y)-y \geq v \geq f(x)-x$, then $f(z)=v+z$, for some number $z$ between $x$ and $y$. (ii) The equation $f(x)=0$ has at least one solution, and among the solutions of this equation, there is one that is not smaller than all the other solutions; (iii) $f(0)=1$. (iv) $f(1987) \leq 1988$. (v) $f(x) f(y)=f(x f(y)+y f(x)-x y)$. Find $f(1987)$. 2. (USA 3) At a party attended by $n$ married couples, each person talks to everyone else at the party except his or her spouse. The conversations involve sets of persons or cliques $C_{1}, C_{2}, \ldots, C_{k}$ with the following property: no couple are members of the same clique, but for every other pair of persons there is exactly one clique to which both members belong. Prove that if $n \geq 4$, then $k \geq 2 n$. 3. (FIN 3) Does there exist a second-degree polynomial $p(x, y)$ in two variables such that every nonnegative integer $n$ equals $p(k, m)$ for one and only one ordered pair $(k, m)$ of nonnegative integers? 4. (FRA 5) Let $A B C D E F G H$ be a parallelepiped with $A E\|B F\| C G \| D H$. Prove the inequality $$ A F+A H+A C \leq A B+A D+A E+A G $$ In what cases does equality hold? 5. (GBR 1) Find, with proof, the point $P$ in the interior of an acute-angled triangle $A B C$ for which $B L^{2}+C M^{2}+A N^{2}$ is a minimum, where $L, M, N$ are the feet of the perpendiculars from $P$ to $B C, C A, A B$ respectively. 6. (GRE 4) Show that if $a, b, c$ are the lengths of the sides of a triangle and if $2 S=a+b+c$, then $$ \frac{a^{n}}{b+c}+\frac{b^{n}}{c+a}+\frac{c^{n}}{a+b} \geq\left(\frac{2}{3}\right)^{n-2} S^{n-1}, \quad n \geq 1 $$ 7. (NET 1) Given five real numbers $u_{0}, u_{1}, u_{2}, u_{3}, u_{4}$, prove that it is always possible to find five real numbers $v_{0}, v_{1}, v_{2}, v_{3}, v_{4}$ that satisfy the following conditions: (i) $u_{i}-v_{i} \in \mathbb{N}$. (ii) $\sum_{0 \leq i1$. Prove that for any integers $a_{1}, a_{2}, \ldots, a_{m}$ and $b_{1}, b_{2}$, $\ldots, b_{k}$ there must be two products $a_{i} b_{j}$ and $a_{s} b_{t}((i, j) \neq(s, t))$ that give the same residue when divided by $m k$. 9. (HUN 2) Does there exist a set $M$ in usual Euclidean space such that for every plane $\lambda$ the intersection $M \cap \lambda$ is finite and nonempty? 10. (ICE 3) Let $S_{1}$ and $S_{2}$ be two spheres with distinct radii that touch externally. The spheres lie inside a cone $C$, and each sphere touches the cone in a full circle. Inside the cone there are $n$ additional solid spheres arranged in a ring in such a way that each solid sphere touches the cone $C$, both of the spheres $S_{1}$ and $S_{2}$ externally, as well as the two neighboring solid spheres. What are the possible values of $n$ ? 11. (POL 1) Find the number of partitions of the set $\{1,2, \ldots, n\}$ into three subsets $A_{1}, A_{2}, A_{3}$, some of which may be empty, such that the following conditions are satisfied: (i) After the elements of every subset have been put in ascending order, every two consecutive elements of any subset have different parity. (ii) If $A_{1}, A_{2}, A_{3}$ are all nonempty, then in exactly one of them the minimal number is even. 12. (POL 5) Given a nonequilateral triangle $A B C$, the vertices listed counterclockwise, find the locus of the centroids of the equilateral triangles $A^{\prime} B^{\prime} C^{\prime}$ (the vertices listed counterclockwise) for which the triples of points $A, B^{\prime}, C^{\prime} ; A^{\prime}, B, C^{\prime}$; and $A^{\prime}, B^{\prime}, C$ are collinear. 13. (GDR 2) ${ }^{\mathrm{IMO} 5}$ Is it possible to put 1987 points in the Euclidean plane such that the distance between each pair of points is irrational and each three points determine a nondegenerate triangle with rational area? 14. (FRG 1) How many words with $n$ digits can be formed from the alphabet $\{0,1,2,3,4\}$, if neighboring digits must differ by exactly one? 15. (FRG 2) $)^{\mathrm{IMO} 3}$ Suppose $x_{1}, x_{2}, \ldots, x_{n}$ are real numbers with $x_{1}^{2}+x_{2}^{2}+$ $\cdots+x_{n}^{2}=1$. Prove that for any integer $k>1$ there are integers $e_{i}$ not all 0 and with $\left|e_{i}\right|\gamma, \beta+\gamma>\alpha, \gamma+\alpha>\beta$. Prove that with the segments of lengths $\sin \alpha, \sin \beta, \sin \gamma$ we can construct a triangle and that its area is not greater than $$ \frac{1}{8}(\sin 2 \alpha+\sin 2 \beta+\sin 2 \gamma) $$ 20. (USS 3) ${ }^{\text {IMO6 }}$ Let $f(x)=x^{2}+x+p, p \in \mathbb{N}$. Prove that if the numbers $f(0), f(1), \ldots, f([\sqrt{p / 3}])$ are primes, then all the numbers $f(0), f(1), \ldots$, $f(p-2)$ are primes. 21. (USS 4) ${ }^{\mathrm{IMO} 2}$ The prolongation of the bisector $A L(L \in B C)$ in the acuteangled triangle $A B C$ intersects the circumscribed circle at point $N$. From point $L$ to the sides $A B$ and $A C$ are drawn the perpendiculars $L K$ and $L M$ respectively. Prove that the area of the triangle $A B C$ is equal to the area of the quadrilateral $A K N M$. 22. (VIE 3) ${ }^{\mathrm{IMO} 4}$ Does there exist a function $f: \mathbb{N} \rightarrow \mathbb{N}$, such that $f(f(n))=$ $n+1987$ for every natural number $n$ ? 23. (YUG 2) Prove that for every natural number $k(k \geq 2)$ there exists an irrational number $r$ such that for every natural number $m$, $$ \left[r^{m}\right] \equiv-1 \quad(\bmod k) $$ Remark. An easier variant: Find $r$ as a root of a polynomial of second degree with integer coefficients. ### 3.29 The Twenty-Ninth IMO Canberra, Australia, July 9-21, 1988 ### 3.29.1 Contest Problems First Day (July 15) 1. Consider two concentric circles of radii $R$ and $r(R>r)$ with center $O$. Fix $P$ on the small circle and consider the variable chord $P A$ of the small circle. Points $B$ and $C$ lie on the large circle; $B, P, C$ are collinear and $B C$ is perpendicular to $A P$. (a) For which value(s) of $\angle O P A$ is the sum $B C^{2}+C A^{2}+A B^{2}$ extremal? (b) What are the possible positions of the midpoints $U$ of $B A$ and $V$ of $A C$ as $\measuredangle O P A$ varies? 2. Let $n$ be an even positive integer. Let $A_{1}, A_{2}, \ldots, A_{n+1}$ be sets having $n$ elements each such that any two of them have exactly one element in common, while every element of their union belongs to at least two of the given sets. For which $n$ can one assign to every element of the union one of the numbers 0 and 1 in such a manner that each of the sets has exactly $n / 2$ zeros? 3. A function $f$ defined on the positive integers (and taking positive integer values) is given by $$ \begin{aligned} f(1) & =1, \quad f(3)=3 \\ f(2 n) & =f(n) \\ f(4 n+1) & =2 f(2 n+1)-f(n) \\ f(4 n+3) & =3 f(2 n+1)-2 f(n) \end{aligned} $$ for all positive integers $n$. Determine with proof the number of positive integers less than or equal to 1988 for which $f(n)=n$. Second Day (July 16) 4. Show that the solution set of the inequality $$ \sum_{k=1}^{70} \frac{k}{x-k} \geq \frac{5}{4} $$ is the union of disjoint half-open intervals with the sum of lengths 1988. 5. In a right-angled triangle $A B C$ let $A D$ be the altitude drawn to the hypotenuse and let the straight line joining the incenters of the triangles $A B D, A C D$ intersect the sides $A B, A C$ at the points $K, L$ respectively. If $E$ and $E_{1}$ denote the areas of the triangles $A B C$ and $A K L$ respectively, show that $\frac{E}{E_{1}} \geq 2$. 6. Let $a$ and $b$ be two positive integers such that $a b+1$ divides $a^{2}+b^{2}$. Show that $\frac{a^{2}+b^{2}}{a b+1}$ is a perfect square. ### 3.29.2 Longlisted Problems 1. (BUL 1) (SL88-1). 2. (BUL 2) Let $a_{n}=\left[\sqrt{(n+1)^{2}+n^{2}}\right], n=1,2, \ldots$, where $[x]$ denotes the integer part of $x$. Prove that (a) there are infinitely many positive integers $m$ such that $a_{m+1}-a_{m}>1$; (b) there are infinitely many positive integers $m$ such that $a_{m+1}-a_{m}=1$. 3. (BUL 3) (SL88-2). 4. (CAN 1) (SL88-3). 5. (CUB 1) Let $k$ be a positive integer and $M_{k}$ the set of all the integers that are between $2 k^{2}+k$ and $2 k^{2}+3 k$, both included. Is it possible to partition $M_{k}$ into two subsets $A$ and $B$ such that $$ \sum_{x \in A} x^{2}=\sum_{x \in B} x^{2} ? $$ 6. (CZS 1) (SL88-4). 7. (CZS 2) (SL88-5). 8. (CZS 3) (SL88-6). 9. (FRA 1) If $a_{0}$ is a positive real number, consider the sequence $\left\{a_{n}\right\}$ defined by $$ a_{n+1}=\frac{a_{n}^{2}-1}{n+1} \quad \text { for } n \geq 0 $$ Show that there exists a real number $a>0$ such that: (i) for all real $a_{0} \geq a$, the sequence $\left\{a_{n}\right\} \rightarrow+\infty(n \rightarrow \infty)$; (ii) for all real $a_{0}q^{n}=v$, where $p$ and $q$ are prime numbers, and $m$ and $n$ are natural numbers, show that $$ |A M|=1, \quad|B M|=9, \quad|D N|=8, \quad|P Q|=8 $$ 32. (HKG 3) Assuming that the roots of $x^{3}+p x^{2}+q x+r=0$ are all real and positive, find a relation between $p, q$, and $r$ that gives a necessary condition for the roots to be exactly the cosines of three angles of a triangle. 33. (HKG 4) Find a necessary and sufficient condition on the natural number $n$ for the equation $x^{n}+(2+x)^{n}+(2-x)^{n}=0$ to have a real root. 34. (HKG 5) Express the number 1988 as the sum of some positive integers in such a way that the product of these positive integers is maximal. 35. (HKG 6) In the triangle $A B C$, let $D, E$, and $F$ be the midpoints of the three sides, $X, Y$, and $Z$ the feet of the three altitudes, $H$ the orthocenter, and $P, Q$, and $R$ the midpoints of the line segments joining $H$ to the three vertices. Show that the nine points $D, E, F, P, Q, R, X, Y, Z$ lie on a circle. 36. (HUN 1) (SL88-14). 37. (HUN 2) Let $n$ points be given on the surface of a sphere. Show that the surface can be divided into $n$ congruent regions such that each of them contains exactly one of the given points. 38. (HUN 3) In a multiple choice test there were 4 questions and 3 possible answers for each question. A group of students was tested and it turned out that for any 3 of them there was a question that the three students answered differently. What is the maximal possible number of students tested? 39. (ICE 1) (SL88-15). 40. (ICE 2) A sequence of numbers $a_{n}, n=1,2, \ldots$, is defined as follows: $a_{1}=1 / 2$, and for each $n \geq 2$, $$ a_{n}=\left(\frac{2 n-3}{2 n}\right) a_{n-1} $$ Prove that $\sum_{k=1}^{n} a_{k}<1$ for all $n \geq 1$. 41. (INA 1) (a) Let $A B C$ be a triangle with $A B=12$ and $A C=16$. Suppose $M$ is the midpoint of side $B C$ and points $E$ and $F$ are chosen on sides $A C$ and $A B$ respectively, and suppose that the lines $E F$ and $A M$ intersect at $G$. If $A E=2 A F$ then find the ratio $E G / G F$. (b) Let $E$ be a point external to a circle and suppose that two chords $E A B$ and $E C D$ meet at an angle of $40^{\circ}$. If $A B=B C=C D$, find the size of $\angle A C D$. 42. (INA 2) (a) Four balls of radius 1 are mutually tangent, three resting an the floor and the fourth resting on the others. A tetrahedron, each of whose edges has length $s$, is circumscribed around the balls. Find the value of $s$. (b) Suppose that $A B C D$ and $E F G H$ are opposite faces of a rectangular solid, with $\angle D H C=45^{\circ}$ and $\angle F H B=60^{\circ}$. Find the cosine of $\angle B H D$. 43. (INA 3) (a) The polynomial $x^{2 k}+1+(x+1)^{2 k}$ is not divisible by $x^{2}+x+1$. Find the value of $k$. (b) If $p, q$, and $r$ are distinct roots of $x^{3}-x^{2}+x-2=0$, find the value of $p^{3}+q^{3}+r^{3}$. (c) If $r$ is the remainder when each of the numbers 1059, 1417, and 2312 is divided by $d$, where $d$ is an integer greater than one, find the value of $d-r$. (d) What is the smallest positive odd integer $n$ such that the product of $2^{1 / 7}, 2^{3 / 7}, \ldots, 2^{(2 n+1) / 7}$ is greater than $1000 ?$ 44. (INA 4) (a) Let $g(x)=x^{5}+x^{4}+x^{3}+x^{2}+x+1$. What is the remainder when the polynomial $g\left(x^{12}\right)$ is divided by the polynomial $g(x)$ ? (b) If $k$ is a positive integer and $f$ is a function such that for every positive number $x, f\left(x^{2}+1\right)^{\sqrt{x}}=k$, find the value of $f\left(\frac{9+y^{2}}{y^{2}}\right)^{\sqrt{12 / y}}$ for every positive number $y$. (c) The function $f$ satisfies the functional equation $f(x)+f(y)=f(x+$ $y)-x y-1$ for every pair $x, y$ of real numbers. If $f(1)=1$, find the number of integers $n$ for which $f(n)=n$. 45. (INA 5) (a) Consider a circle $K$ with diameter $A B$, a circle $L$ tangent to $A B$ and to $K$, and a circle $M$ tangent to circle $K$, circle $L$, and $A B$. Calculate the ratio of the area of circle $K$ to the area of circle $M$. (b) In triangle $A B C, A B=A C$ and $\measuredangle C A B=80^{\circ}$. If points $D, E$, and $F$ lie on sides $B C, A C$, and $A B$, respectively, and $C E=C D$ and $B F=B D$, find the measure of $\measuredangle E D F$. 46. (INA 6) (a) Calculate $x=\frac{(11+6 \sqrt{2}) \sqrt{11-6 \sqrt{2}}-(11-6 \sqrt{2}) \sqrt{11+6 \sqrt{2}}}{(\sqrt{\sqrt{5}+2}+\sqrt{\sqrt{5}-2})-(\sqrt{\sqrt{5}+1})}$. (b) For each positive number $x$, let $k=\frac{(x+1 / x)^{6}-\left(x^{6}+1 / x^{6}\right)-2}{(x+1 / x)^{3}+\left(x^{3}+1 / x^{3}\right)}$. Calculate the minimum value of $k$. 47. (IRE 1) (SL88-16). 48. (IRE 2) Find all plane triangles whose sides have integer length and whose incircles have unit radius. 49. (IRE 3) Let $-15$ is a prime, then $n$ divides $g(n)(g(n)+1)$. 51. (ISR 1) Let $A_{1}, A_{2}, \ldots, A_{29}$ be 29 different sequences of positive integers. For $1 \leq i200$. 52. (ISR 2) (SL88-17). 53. (KOR 1) Let $x=p, y=q, z=r, w=s$ be the unique solution of the system of linear equations $$ x+a_{i} y+a_{i}^{2} z+a_{i}^{3} w=a_{i}^{4}, \quad i=1,2,3,4 $$ Express the solution of the following system in terms of $p, q, r$, and $s$ : $$ x+a_{i}^{2} y+a_{i}^{4} z+a_{i}^{6} w=a_{i}^{8}, \quad i=1,2,3,4 $$ Assume the uniqueness of the solution. 54. (KOR 2) (SL88-22). 55. (KOR 3) Find all positive integers $x$ such that the product of all digits of $x$ is given by $x^{2}-10 x-22$. 56. (KOR 4) The Fibonacci sequence is defined by $$ a_{n+1}=a_{n}+a_{n-1} \quad(n \geq 1), \quad a_{0}=0, a_{1}=a_{2}=1 $$ Find the greatest common divisor of the 1960th and 1988th terms of the Fibonacci sequence. 57. (KOR 5) Let $C$ be a cube with edges of length 2. Construct a solid with fourteen faces by cutting off all eight corners of $C$, keeping the new faces perpendicular to the diagonals of the cube and keeping the newly formed faces identical. If at the conclusion of this process the fourteen faces so formed have the same area, find the area of each face of the new solid. 58. (KOR 6) For each pair of positive integers $k$ and $n$, let $S_{k}(n)$ be the base- $k$ digit sum of $n$. Prove that there are at most two primes $p$ less than 20,000 for which $S_{31}(p)$ is a composite number. 59. (LUX 1) (SL88-18). 60. (MEX 1) (SL88-19). 61. (MEX 2) Prove that the numbers $A, B$, and $C$ are equal, where we define $A$ as the number of ways that we can cover a $2 \times n$ rectangle with $2 \times 1$ rectangles, $B$ as the number of sequences of ones and twos that add up to $n$, and $C$ as $$ \begin{cases}\binom{m}{0}+\binom{m+1}{2}+\cdots+\binom{2 m}{2 m} & \text { if } n=2 m \\ \binom{m+1}{1}+\binom{m+2}{3}+\cdots+\binom{2 m+1}{2 m+1} & \text { if } n=2 m+1\end{cases} $$ 62. (MON 1) The positive integer $n$ has the property that in any set of $n$ integers chosen from the integers $1,2, \ldots, 1988$, twenty-nine of them form an arithmetic progression. Prove that $n>1788$. 63. (MON 2) Let $A B C D$ be a quadrilateral. Let $A^{\prime} B C D^{\prime}$ be the reflection of $A B C D$ in $B C$, while $A^{\prime \prime} B^{\prime} C D^{\prime}$ is the reflection of $A^{\prime} B C D^{\prime}$ in $C D^{\prime}$ and $A^{\prime \prime} B^{\prime \prime} C^{\prime} D^{\prime}$ is the reflection of $A^{\prime \prime} B^{\prime} C D^{\prime}$ in $D^{\prime} A^{\prime \prime}$. Show that if the lines $A A^{\prime \prime}$ and $B B^{\prime \prime}$ are parallel, then $A B C D$ is a cyclic quadrilateral. 64. (MON 3) Given $n$ points $A_{1}, A_{2}, \ldots, A_{n}$, no three collinear, show that the $n$-gon $A_{1} A_{2} \ldots A_{n}$ can be inscribed in a circle if and only if $$ \begin{aligned} & A_{1} A_{2} \cdot A_{3} A_{n} \cdots A_{n-1} A_{n}+A_{2} A_{3} \cdot A_{4} A_{n} \cdots A_{n-1} A_{n} \cdot A_{1} A_{n}+\cdots \\ & \quad+A_{n-1} A_{n-2} \cdot A_{1} A_{n} \cdots A_{n-3} A_{n}=A_{1} A_{n-1} \cdot A_{2} A_{n} \cdots A_{n-2} A_{n} . \end{aligned} $$ 65. (MON 4) (SL88-20). 66. (MON 5) Suppose $\alpha_{i}>0, \beta_{i}>0$ for $1 \leq i \leq n(n>1)$ and that $\sum_{i=1}^{n} \alpha_{i}=\sum_{i=1}^{n} \beta_{i}=\pi$. Prove that $$ \sum_{i=1}^{n} \frac{\cos \beta_{i}}{\sin \alpha_{i}} \leq \sum_{i=1}^{n} \cot \alpha_{i} $$ 67. (NET 1) Given a set of 1988 points in the plane, no three points of the set collinear, the points of a subset with 1788 points are colored blue, and the remaining 200 are colored red. Prove that there exists a line in the plane such that each of the two parts into which the line divides the plane contains 894 blue points and 100 red points. 68. (NET 2) Let $S$ be the set of all sequences $\left\{a_{i} \mid 1 \leq i \leq 7, a_{i}=0\right.$ or 1$\}$. The distance between two elements $\left\{a_{i}\right\}$ and $\left\{b_{i}\right\}$ of $S$ is defined as $\sum_{i=1}^{7}\left|a_{i}-b_{i}\right|$. Let $T$ be a subset of $S$ in which any two elements have a distance apart greater than or equal to 3 . Prove that $T$ contains at most 16 elements. Give an example of such a subset with 16 elements. 69. (POL 1) For a convex polygon $P$ in the plane let $P^{\prime}$ denote the convex polygon with vertices at the midpoints of the sides of $P$. Given an integer $n \geq 3$, determine sharp bounds for the ratio $\frac{\operatorname{area}\left(P^{\prime}\right)}{\operatorname{area}(P)}$ over all convex $n$-gons $P$. 70. (POL 2) In 3-dimensional space a point $O$ is given and a finite set $A$ of segments with the sum of the lengths equal to 1988. Prove that there exists a plane disjoint from $A$ such that the distance from it to $O$ does not exceed 574. 71. (POL 3) Given integers $a_{1}, \ldots, a_{10}$, prove that there exists a nonzero sequence $\left(x_{1}, \ldots, x_{10}\right)$ such that all $x_{i}$ belong to $\{-1,0,1\}$ and the number $\sum_{i=1}^{10} x_{i} a_{i}$ is divisible by 1001. 72. (POL 4) (SL88-21). 73. (SIN 1) In a group of $n$ people each one knows exactly three others. They are seated around a table. We say that the seating is perfect if everyone knows the two sitting by their sides. Show that if there is a perfect seating $S$ for the group, then there is always another perfect seating that cannot be obtained from $S$ by rotation or reflection. 74. (SIN 2) (SL88-23). 75. (SPA 1) Let $A B C$ be a triangle with inradius $r$ and circumradius $R$. Show that $$ \sin \frac{A}{2} \sin \frac{B}{2}+\sin \frac{B}{2} \sin \frac{C}{2}+\sin \frac{C}{2} \sin \frac{A}{2} \leq \frac{5}{8}+\frac{r}{4 R} $$ 76. (SPA 2) The quadrilateral $A_{1} A_{2} A_{3} A_{4}$ is cyclic and its sides are $a_{1}=$ $A_{1} A_{2}, a_{2}=A_{2} A_{3}, a_{3}=A_{3} A_{4}$, and $a_{4}=A_{4} A_{1}$. The respective circles with centers $I_{i}$ and radii $\rho_{i}$ are tangent externally to each side $a_{i}$ and to the sides $a_{i+1}$ and $a_{i-1}$ extended $\left(a_{0}=a_{4}\right)$. Show that $$ \prod_{i=1}^{4} \frac{a_{i}}{\rho_{i}}=4\left(\csc A_{1}+\csc A_{2}\right)^{2} $$ 77. (SPA 3) Consider $h+1$ chessboards. Number the squares of each board from 1 to 64 in such a way that when the perimeters of any two boards of the collection are brought into coincidence in any possible manner, no two squares in the same position have the same number. What is the maximum value of $h$ ? 78. (SWE 1) A two-person game is played with nine boxes arranged in a $3 \times 3$ square, initially empty, and with white and black stones. At each move a player puts three stones, not necessarily of the same color, in three boxes in either a horizontal or a vertical row. No box can contain stones of different colors: If, for instance, a player puts a white stone in a box containing black stones, the white stone and one of the black stones are removed from the box. The game is over when the center box and the corner boxes each contain one black stone and the other boxes are empty. At one stage of the game $x$ boxes contained one black stone each and the other boxes were empty. Determine all possible values of $x$. 79. (SWE 2) (SL88-24). 80. (SWE 3) Let $S$ be an infinite set of integers containing zero and such that the distance between successive numbers never exceeds a given fixed number. Consider the following procedure: Given a set $X$ of integers, we construct a new set consisting of all numbers $x \pm s$, where $x$ belongs to $X$ and $s$ belongs to $S$. Starting from $S_{0}=\{0\}$ we successively construct sets $S_{1}, S_{2}, S_{3}, \ldots$ using this procedure. Show that after a finite number of steps we do not obtain any new sets; i.e., $S_{k}=S_{k_{0}}$ for $k \geq k_{0}$. 81. (USA 1) There are $n \geq 3$ job openings at a factory, ranked 1 to $n$ in order of increasing pay. There are $n$ job applicants, ranked 1 to $n$ in order of increasing ability. Applicant $i$ is qualified for job $j$ if and only if $i \geq j$. The applicants arrive one at a time in random order. Each in turn is hired to the highest-ranking job for which he or she is qualified and that is lower in rank than any job already filled. (Under these rules, job 1 is always filled and hiring terminates thereafter.) Show that applicants $n$ and $n-1$ have the same probability of being hired. 82. (USA 2) The triangle $A B C$ has a right angle at $C$. The point $P$ is located on segment $A C$ such that triangles $P B A$ and $P B C$ have congruent inscribed circles. Express the length $x=P C$ in terms of $a=B C, b=C A$, and $c=A B$. 83. (USA 3) (SL88-29). 84. (USS 1) (SL88-30). 85. (USS 2) (SL88-31). 86. (USS 3) Let $a, b, c$ be integers different from zero. It is known that the equation $a x^{2}+b y^{2}+c z^{2}=0$ has a solution $(x, y, z)$ in integers different from the solution $x=y=z=0$. Prove that the equation $a x^{2}+b y^{2}+c z^{2}=$ 1 has a solution in rational numbers. 87. (USS 4) All the irreducible positive rational numbers such that the product of the numerator and the denominator is less than 1988 are written in increasing order. Prove that any two adjacent fractions $a / b$ and $c / d$, $a / b\sqrt{3 \cos \frac{\pi}{7}} $$ 92. (VIE 4) Let $p \geq 2$ be a natural number. Prove that there exists an integer $n_{0}$ such that $$ \sum_{i=1}^{n_{0}} \frac{1}{i \sqrt[p]{i+1}}>p $$ 93. (VIE 5) Given a natural number $n$, find all polynomials $P(x)$ of degree less than $n$ satisfying the following condition: $$ \sum_{i=0}^{n} P(i)(-1)^{i}\binom{n}{i}=0 $$ 94. (VIE 6) Let $n+1(n \geq 1)$ positive integers be given such that for each integer, the set of all prime numbers dividing this integer is a subset of the set of $n$ given prime numbers. Prove that among these $n+1$ integers one can find numbers (possibly one number) whose product is a perfect square. ### 3.29.3 Shortlisted Problems 1. (BUL 1) An integer sequence is defined by $$ a_{n}=2 a_{n-1}+a_{n-2} \quad(n>1), \quad a_{0}=0, \quad a_{1}=1 $$ Prove that $2^{k}$ divides $a_{n}$ if and only if $2^{k}$ divides $n$. 2. (BUL 3) Let $n$ be a positive integer. Find the number of odd coefficients of the polynomial $$ u_{n}(x)=\left(x^{2}+x+1\right)^{n} $$ 3. (CAN 1) The triangle $A B C$ is inscribed in a circle. The interior bisectors of the angles $A, B$, and $C$ meet the circle again at $A^{\prime}, B^{\prime}$, and $C^{\prime}$ respectively. Prove that the area of triangle $A^{\prime} B^{\prime} C^{\prime}$ is greater than or equal to the area of triangle $A B C$. 4. (CZS 1) An $n \times n$ chessboard $(n \geq 2)$ is numbered by the numbers $1,2, \ldots, n^{2}$ (every number occurs once). Prove that there exist two neighboring (which share a common edge) squares such that their numbers differ by at least $n$. 5. (CZS 2) ${ }^{\mathrm{IMO} 2}$ Let $n$ be an even positive integer. Let $A_{1}, A_{2}, \ldots, A_{n+1}$ be sets having $n$ elements each such that any two of them have exactly one element in common while every element of their union belongs to at least two of the given sets. For which $n$ can one assign to every element of the union one of the numbers 0 and 1 in such a manner that each of the sets has exactly $n / 2$ zeros? 6. (CZS 3) In a given tetrahedron $A B C D$ let $K$ and $L$ be the centers of edges $A B$ and $C D$ respectively. Prove that every plane that contains the line $K L$ divides the tetrahedron into two parts of equal volume. 7. (FRA 2) Let $a$ be the greatest positive root of the equation $x^{3}-3 x^{2}+1=$ 0 . Show that $\left[a^{1788}\right]$ and $\left[a^{1988}\right]$ are both divisible by 17 . ( $[x]$ denotes the integer part of $x$.) 8. (FRA 3) Let $u_{1}, u_{2}, \ldots, u_{m}$ be $m$ vectors in the plane, each of length less than or equal to 1 , which add up to zero. Show that one can rearrange $u_{1}, u_{2}, \ldots, u_{m}$ as a sequence $v_{1}, v_{2}, \ldots, v_{m}$ such that each partial sum $v_{1}, v_{1}+v_{2}, v_{1}+v_{2}+v_{3}, \ldots, v_{1}+v_{2}+\cdots+v_{m}$ has length less than or equal to $\sqrt{5}$. 9. (FRG 1) ${ }^{\text {IMO6 }}$ Let $a$ and $b$ be two positive integers such that $a b+1$ divides $a^{2}+b^{2}$. Show that $\frac{a^{2}+b^{2}}{a b+1}$ is a perfect square. 10. (GDR 1) Let $N=\{1,2, \ldots, n\}, n \geq 2$. A collection $F=\left\{A_{1}, \ldots, A_{t}\right\}$ of subsets $A_{i} \subseteq N, i=1, \ldots, t$, is said to be separating if for every pair $\{x, y\} \subseteq N$, there is a set $A_{i} \in F$ such that $A_{i} \cap\{x, y\}$ contains just one element. A collection $F$ is said to be covering if every element of $N$ is contained in at least one set $A_{i} \in F$. What is the smallest value $f(n)$ of $t$ such that there is a set $F=\left\{A_{1}, \ldots, A_{t}\right\}$ that is simultaneously separating and covering? 11. (GDR 3) The lock on a safe consists of three wheels, each of which may be set in eight different positions. Due to a defect in the safe mechanism the door will open if any two of the three wheels are in the correct position. What is the smallest number of combinations that must be tried if one is to guarantee being able to open the safe (assuming that the "right combination" is not known)? 12. (GRE 2) In a triangle $A B C$, choose any points $K \in B C, L \in A C$, $M \in A B, N \in L M, R \in M K$, and $F \in K L$. If $E_{1}, E_{2}, E_{3}, E_{4}, E_{5}$, $E_{6}$, and $E$ denote the areas of the triangles $A M R, C K R, B K F, A L F$, $B N M, C L N$, and $A B C$ respectively, show that $$ E \geq 8 \sqrt[6]{E_{1} E_{2} E_{3} E_{4} E_{5} E_{6}} $$ Remark. Points $K, L, M, N, R, F$ lie on segments $B C, A C, A B, L M$, $M K, K L$ respectively. 13. (GRE 3) ${ }^{\mathrm{IMO5}}$ In a right-angled triangle $A B C$, let $A D$ be the altitude drawn to the hypotenuse and let the straight line joining the incenters of the triangles $A B D, A C D$ intersect the sides $A B, A C$ at the points $K, L$ respectively. If $E$ and $E_{1}$ denote the areas of the triangles $A B C$ and $A K L$ respectively, show that $\frac{E}{E_{1}} \geq 2$. 14. (HUN 1) For what values of $n$ does there exist an $n \times n$ array of entries $-1,0$, or 1 such that the $2 n$ sums obtained by summing the elements of the rows and the columns are all different? 15. (ICE 1) Let $A B C$ be an acute-angled triangle. Three lines $L_{A}, L_{B}$, and $L_{C}$ are constructed through the vertices $A, B$, and $C$ respectively according to the following prescription: Let $H$ be the foot of the altitude drawn from the vertex $A$ to the side $B C$; let $S_{A}$ be the circle with diameter $A H$; let $S_{A}$ meet the sides $A B$ and $A C$ at $M$ and $N$ respectively, where $M$ and $N$ are distinct from $A$; then $L_{A}$ is the line through $A$ perpendicular to $M N$. The lines $L_{B}$ and $L_{C}$ are constructed similarly. Prove that $L_{A}$, $L_{B}$, and $L_{C}$ are concurrent. 16. (IRE 1) $)^{\mathrm{IMO} 4}$ Show that the solution set of the inequality $$ \sum_{k=1}^{70} \frac{k}{x-k} \geq \frac{5}{4} $$ is a union of disjoint intervals the sum of whose lengths is 1988. 17. (ISR 2) In the convex pentagon $A B C D E$, the sides $B C, C D, D E$ have the same length. Moreover, each diagonal of the pentagon is parallel to a side ( $A C$ is parallel to $D E, B D$ is parallel to $A E$, etc.). Prove that $A B C D E$ is a regular pentagon. 18. (LUX 1) ${ }^{\mathrm{IMO}}$ Consider two concentric circles of radii $R$ and $r(R>r)$ with center $O$. Fix $P$ on the small circle and consider the variable chord $P A$ of the small circle. Points $B$ and $C$ lie on the large circle; $B, P, C$ are collinear and $B C$ is perpendicular to $A P$. (a) For what value(s) of $\angle O P A$ is the sum $B C^{2}+C A^{2}+A B^{2}$ extremal? (b) What are the possible positions of the midpoints $U$ of $B A$ and $V$ of $A C$ as $\angle O P A$ varies? 19. (MEX 1) Let $f(n)$ be a function defined on the set of all positive integers and having its values in the same set. Suppose that $f(f(m)+f(n))=m+n$ for all positive integers $n, m$. Find all possible values for $f(1988)$. 20. (MON 4) Find the least natural number $n$ such that if the set $\{1,2, \ldots, n\}$ is arbitrarily divided into two nonintersecting subsets, then one of the subsets contains three distinct numbers such that the product of two of them equals the third. 21. (POL 4) Forty-nine students solve a set of three problems. The score for each problem is a whole number of points from 0 to 7 . Prove that there exist two students $A$ and $B$ such that for each problem, $A$ will score at least as many points as $B$. 22. (KOR 2) Let $p$ be the product of two consecutive integers greater than 2. Show that there are no integers $x_{1}, x_{2}, \ldots, x_{p}$ satisfying the equation $$ \sum_{i=1}^{p} x_{i}^{2}-\frac{4}{4 p+1}\left(\sum_{i=1}^{p} x_{i}\right)^{2}=1 $$ Alternative formulation. Show that there are only two values of $p$ for which there are integers $x_{1}, x_{2}, \ldots, x_{p}$ satisfying the above inequality. 23. (SIN 2) Let $Q$ be the center of the inscribed circle of a triangle $A B C$. Prove that for any point $P$, $a(P A)^{2}+b(P B)^{2}+c(P C)^{2}=a(Q A)^{2}+b(Q B)^{2}+c(Q C)^{2}+(a+b+c)(Q P)^{2}$, where $a=B C, b=C A$, and $c=A B$. 24. (SWE 2) Let $\left\{a_{k}\right\}_{1}^{\infty}$ be a sequence of nonnegative real numbers such that $a_{k}-2 a_{k+1}+a_{k+2} \geq 0$ and $\sum_{j=1}^{k} a_{j} \leq 1$ for all $k=1,2, \ldots$. Prove that $0 \leq\left(a_{k}-a_{k+1}\right)<\frac{2}{k^{2}}$ for all $k=1,2, \ldots$. 25. (GBR 1) A positive integer is called a double number if its decimal representation consists of a block of digits, not commencing with 0 , followed immediately by an identical block. For instance, 360360 is a double number, but 36036 is not. Show that there are infinitely many double numbers that are perfect squares. 26. (GBR 2) ${ }^{\mathrm{IMO} 3} \mathrm{~A}$ function $f$ defined on the positive integers (and taking positive integer values) is given by $$ \begin{aligned} f(1) & =1, \quad f(3)=3 \\ f(2 n) & =f(n) \\ f(4 n+1) & =2 f(2 n+1)-f(n) \\ f(4 n+3) & =3 f(2 n+1)-2 f(n) \end{aligned} $$ for all positive integers $n$. Determine with proof the number of positive integers less than or equal to 1988 for which $f(n)=n$. 27. (GBR 4) The triangle $A B C$ is acute-angled. Let $L$ be any line in the plane of the triangle and let $u, v, w$ be the lengths of the perpendiculars from $A, B, C$ respectively to $L$. Prove that $$ u^{2} \tan A+v^{2} \tan B+w^{2} \tan C \geq 2 \Delta $$ where $\Delta$ is the area of the triangle, and determine the lines $L$ for which equality holds. 28. (GBR 5) The sequence $\left\{a_{n}\right\}$ of integers is defined by $a_{1}=2, a_{2}=7$, and $$ -\frac{1}{2}1$. 29. (USA 3) A number of signal lights are equally spaced along a one-way railroad track, labeled in order $1,2, \ldots, N(N \geq 2)$. As a safety rule, a train is not allowed to pass a signal if any other train is in motion on the length of track between it and the following signal. However, there is no limit to the number of trains that can be parked motionless at a signal, one behind the other. (Assume that the trains have zero length.) A series of $K$ freight trains must be driven from Signal 1 to Signal $N$. Each train travels at a distinct but constant speed (i.e., the speed is fixed and different from that of each of the other trains) at all times when it is not blocked by the safety rule. Show that regardless of the order in which the trains are arranged, the same time will elapse between the first train's departure from Signal 1 and the last train's arrival at Signal $N$. 30. (USS 1) A point $M$ is chosen on the side $A C$ of the triangle $A B C$ in such a way that the radii of the circles inscribed in the triangles $A B M$ and $B M C$ are equal. Prove that $$ B M^{2}=\Delta \cot \frac{B}{2} $$ where $\Delta$ is the area of the triangle $A B C$. 31. (USS 2) Around a circular table an even number of persons have a discussion. After a break they sit again around the circular table in a different order. Prove that there are at least two people such that the number of participants sitting between them before and after the break is the same. ### 3.30 The Thirtieth IMO
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 i0, n>0$. Prove that $c_{m, n}=c_{n, m}$ for all $m \geq 0, n \geq 0$. 28. (GBR 4) Let $b_{1}, b_{2}, \ldots, b_{1989}$ be positive real numbers such that the equations $$ x_{r-1}-2 x_{r}+x_{r+1}+b_{r} x_{r}=0 \quad(1 \leq r \leq 1989) $$ have a solution with $x_{0}=x_{1990}=0$ but not all of $x_{1}, \ldots, x_{1989}$ are equal to zero. Prove that $$ b_{1}+b_{2}+\cdots+b_{1989} \geq \frac{2}{995} $$ 29. (GRE 1) Let $L$ denote the set of all lattice points of the plane (points with integral coordinates). Show that for any three points $A, B, C$ of $L$ there is a fourth point $D$, different from $A, B, C$, such that the interiors of the segments $A D, B D, C D$ contain no points of $L$. Is the statement true if one considers four points of $L$ instead of three? 30. (GRE 2) In a triangle $A B C$ for which $6(a+b+c) r^{2}=a b c$, we consider a point $M$ on the inscribed circle and the projections $D, E, F$ of $M$ on the sides $B C, A C$, and $A B$ respectively. Let $S, S_{1}$ denote the areas of the triangles $A B C$ and $D E F$ respectively. Find the maximum and minimum values of the quotient $\frac{S}{S_{1}}$ (here $r$ denotes the inradius of $A B C$ and, as usual, $a=B C, b=A C, c=A B)$. 31. (GRE 3) (SL89-10). 32. (HKG 1) Let $A B C$ be an equilateral triangle. Let $D, E, F, M, N$, and $P$ bee the mid-points of $B C, C A, A B, F D, F B$, and $D C$ respectively. (a) Show that the line segments $A M, E N$, and $F P$ are concurrent. (b) Let $O$ be the point of intersection of $A M, E N$, and $F P$. Find $O M$ : $O F: O N: O E: O P: O A$. 33. (HKG 2) Let $n$ be a positive integer. Show that $(\sqrt{2}+1)^{n}=\sqrt{m}+$ $\sqrt{m-1}$ for some positive integer $m$. 34. (HKG 3) Given an acute triangle find a point inside the triangle such that the sum of the distances from this point to the three vertices is the least. 35. (HKG 4) Find all square numbers $S_{1}$ and $S_{2}$ such that $S_{1}-S_{2}=1989$. 36. (HKG 5) Prove the identity $$ 1+\frac{1}{2}-\frac{2}{3}+\frac{1}{4}+\frac{1}{5}-\frac{2}{6}+\cdots+\frac{1}{478}+\frac{1}{479}-\frac{2}{480}=2 \sum_{k=0}^{159} \frac{641}{(161+k)(480-k)} $$ 37. (HUN 1) (SL89-11). 38. (HUN 2) Connecting the vertices of a regular $n$-gon we obtain a closed (not necessarily convex) $n$-gon. Show that if $n$ is even, then there are two parallel segments among the connecting segments and if $n$ is odd then there cannot be exactly two parallel segments. 39. (HUN 3) (SL89-12). 40. (ICE 1) A sequence of real numbers $x_{0}, x_{1}, x_{2}, \ldots$ is defined as follows: $x_{0}=1989$ and for each $n \geq 1$ $$ x_{n}=-\frac{1989}{n} \sum_{k=0}^{n-1} x_{k} $$ Calculate the value of $\sum_{n=0}^{1989} 2^{n} x_{n}$. 41. (ICE 2) Alice has two urns. Each urn contains four balls and on each ball a natural number is written. She draws one ball from each urn at random, notes the sum of the numbers written on them, and replaces the balls in the urns from which she took them. This she repeats a large number of times. Bill, on examining the numbers recorded, notices that the frequency with which each sum occurs is the same as if it were the sum of two natural numbers drawn at random from the range 1 to 4 . What can he deduce about the numbers on the balls? 42. (ICE 3) (SL89-13). 43. (INA 1) Let $f(x)=a \sin ^{2} x+b \sin x+c$, where $a, b$, and $c$ are real numbers. Find all values of $a, b$, and $c$ such that the following three conditions are satisfied simultaneously: (i) $f(x)=381$ if $\sin x=1 / 2$. (ii) The absolute maximum of $f(x)$ is 444 . (iii) The absolute minimum of $f(x)$ is 364 . 44. (INA 2) Let $A$ and $B$ be fixed distinct points on the $X$ axis, none of which coincides with the origin $O(0,0)$, and let $C$ be a point on the $Y$ axis of an orthogonal Cartesian coordinate system. Let $g$ be a line through the origin $O(0,0)$ and perpendicular to the line $A C$. Find the locus of the point of intersection of the lines $g$ and $B C$ as $C$ varies along the $Y$ axis. (Give an equation and a description of the locus.) 45. (INA 3) The expressions $a+b+c, a b+a c+b c$, and $a b c$ are called the elementary symmetric expressions on the three letters $a, b, c$; symmetric because if we interchange any two letters, say $a$ and $c$, the expressions remain algebraically the same. The common degree of its terms is called the order of the expression. Let $S_{k}(n)$ denote the elementary expression on $k$ different letters of order $n$; for example $S_{4}(3)=a b c+a b d+a c d+b c d$. There are four terms in $S_{4}(3)$. How many terms are there in $S_{9891}(1989)$ ? (Assume that we have 9891 different letters.) 46. (INA 4) Given two distinct numbers $b_{1}$ and $b_{2}$, their product can be formed in two ways: $b_{1} \times b_{2}$ and $b_{2} \times b_{1}$. Given three distinct numbers, $b_{1}, b_{2}, b_{3}$, their product can be formed in twelve ways: $b_{1} \times\left(b_{2} \times b_{3}\right) ;\left(b_{1} \times\right.$ $\left.b_{2}\right) \times b_{3} ; b_{1} \times\left(b_{3} \times b_{2}\right) ;\left(b_{1} \times b_{3}\right) \times b_{2} ; b_{2} \times\left(b_{1} \times b_{3}\right) ;\left(b_{2} \times b_{1}\right) \times b_{3} ;$ $b_{2} \times\left(b_{3} \times b_{1}\right) ;\left(b_{2} \times b_{3}\right) \times b_{1} ; b_{3} \times\left(b_{1} \times b_{2}\right) ;\left(b_{3} \times b_{1}\right) \times b_{2} ; b_{3} \times\left(b_{2} \times b_{1}\right) ;$ $\left(b_{3} \times b_{2}\right) \times b_{1}$. In how many ways can the product of $n$ distinct letters be formed? 47. (INA 5) Let $\log _{2}^{2} x-4 \log _{2} x-m^{2}-2 m-13=0$ be an equation in $x$. Prove: (a) For any real value of $m$ the equation has has two distinct solutions. (b) The product of the solutions of the equation does not depend on $m$. (c) One of the solutions of the equation is less than 1 , while the other solution is greater than 1. Find the minimum value of the larger solution and the maximum value of the smaller solution. 48. (INA 6) Let $S$ be the point of intersection of the two lines $l_{1}: 7 x-5 y+$ $8=0$ and $l_{2}: 3 x+4 y-13=0$. Let $P=(3,7), Q=(11,13)$, and let $A$ and $B$ be points on the line $P Q$ such that $P$ is between $A$ and $Q$, and $B$ is between $P$ and $Q$, and such that $P A / A Q=P B / B Q=2 / 3$. Without finding the coordinates of $B$ find the equations of the lines $S A$ and $S B$. 49. (IND 1) Let $A, B$ denote two distinct fixed points in space. Let $X, P$ denote variable points (in space), while $K, N, n$ denote positive integers. Call $(X, K, N, P)$ admissible if $(N-K) P A+K \cdot P B \geq N \cdot P X$. Call $(X, K, N)$ admissible if $(X, K, N, P)$ is admissible for all choices of $P$. Call $(X, N)$ admissible if $(X, K, N)$ is admissible for some choice of $K$ in the interval $01)$. Determine: (a) the set of admissible $X$; (b) the set of $X$ for which $(X, 1989)$ is admissible but not $(X, n), n<1989$. 50. (IND 2) (SL89-14). 51. (IND 3) Let $t(n)$, for $n=3,4,5, \ldots$, represent the number of distinct, incongruent, integer-sided triangles whose perimeter is $n$; e.g., $t(3)=1$. Prove that $$ t(2 n-1)-t(2 n)=\left[\frac{n}{6}\right] \text { or }\left[\frac{n}{6}+1\right] $$ 52. (IRE 1) (SL89-15). 53. (IRE 2) Let $f(x)=\left(x-a_{1}\right)\left(x-a_{2}\right) \cdots\left(x-a_{n}\right)-2$, where $n \geq 3$ and $a_{1}, a_{2}, \ldots, a_{n}$ are distinct integers. Suppose that $f(x)=g(x) h(x)$, where $g(x), h(x)$ are both nonconstant polynomials with integer coefficients. Prove that $n=3$. 54. (IRE 3) Let $f$ be a function from the real numbers to the real numbers such that $f(1)=1, f(a+b)=f(a)+f(b)$ for all $a, b$, and $f(x) f(1 / x)=1$ for all $x \neq 0$. Prove that $f(x)=x$ for all real numbers $x$. 55. (IRE 4) Let $[x]$ denote the greatest integer less than or equal to $x$. Let $\alpha$ be the positive root of the equation $x^{2}-1989 x-1=0$. Prove that there exist infinitely many natural numbers $n$ that satisfy the equation $$ [\alpha n+1989 \alpha[\alpha n]]=1989 n+\left(1989^{2}+1\right)[\alpha n] $$ 56. (IRE 5) Let $n=2 k-1$, where $k \geq 6$ is an integer. Let $T$ be the set of all $n$-tuples $\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ where $x_{i}$ is 0 or $1(i=1,2, \ldots, n)$. For $\mathbf{x}=\left(x_{1}, \ldots, x_{n}\right)$ and $\mathbf{y}=\left(y_{1}, \ldots, y_{n}\right)$ in $T$, let $d(\mathbf{x}, \mathbf{y})$ denote the number of integers $j$ with $1 \leq j \leq n$ such that $x_{j} \neq y_{j}$. (In particular $d(\mathbf{x}, \mathbf{x})=0$.) Suppose that there exists a subset $S$ of $T$ with $2^{k}$ elements that has the following property: Given any element $\mathbf{x}$ in $T$, there is a unique element $\mathbf{y}$ in $S$ with $d(\mathbf{x}, \mathbf{y}) \leq 3$. Prove that $n=23$. 57. (ISR 1) (SL89-16). 58. (ISR 2) Let $P_{1}(x), P_{2}(x), \ldots, P_{n}(x)$ be polynomials with real coefficients. Show that there exist real polynomials $A_{r}(x), B_{r}(x)(r=1,2,3)$ such that $$ \begin{aligned} \sum_{s=1}^{n}\left(P_{s}(x)\right)^{2} & =\left(A_{1}(x)\right)^{2}+\left(B_{1}(x)\right)^{2} \\ & =\left(A_{2}(x)\right)^{2}+x\left(B_{2}(x)\right)^{2} \\ & =\left(A_{3}(x)\right)^{2}-x\left(B_{3}(x)\right)^{2} . \end{aligned} $$ 59. (ISR 3) Let $v_{1}, v_{2}, \ldots, v_{1989}$ be a set of coplanar vectors with $\left|v_{r}\right| \leq 1$ for $1 \leq r \leq 1989$. Show that it is possible to find $\epsilon_{r}(1 \leq r \leq 1989)$, each equal to $\pm 1$, such that $$ \left|\sum_{r=1}^{1989} \epsilon_{r} v_{r}\right| \leq \sqrt{3} $$ 60. (KOR 1) A real-valued function $f$ on $\mathbb{Q}$ satisfies the following conditions for arbitrary $\alpha, \beta \in \mathbb{Q}$ : (i) $f(0)=0$, (ii) $f(\alpha)>0$ if $\alpha \neq 0$, (iii) $f(\alpha \beta)=f(\alpha) f(\beta)$, (iv) $f(\alpha+\beta) \leq f(\alpha)+f(\beta)$, (v) $f(m) \leq 1989$ for all $m \in \mathbb{Z}$. Prove that $f(\alpha+\beta)=\max \{f(\alpha), f(\beta)\}$ if $f(\alpha) \neq f(\beta)$. Here, $\mathbb{Z}, \mathbb{Q}$ denote the sets of integers and rational numbers, respectively. 61. (KOR 2) Let $A$ be a set of positive integers such that no positive integer greater than 1 divides all the elements of $A$. Prove that any sufficiently large positive integer can be written as a sum of elements of $A$. (Elements may occur several times in the sum.) 62. (KOR 3) (SL89-25). 63. (KOR 4) (SL89-26). 64. (KOR 5) Let a regular $(2 n+1)$-gon be inscribed in a circle of radius $r$. We consider all the triangles whose vertices are from those of the regular $(2 n+1)$-gon. (a) How many triangles among them contain the center of the circle in their interior? (b) Find the sum of the areas of all those triangles that contain the center of the circle in their interior. 65. (LUX 1) A regular $n$-gon $A_{1} A_{2} A_{3} \ldots A_{k} \ldots A_{n}$ inscribed in a circle of radius $R$ is given. If $S$ is a point on the circle, calculate $T=S A_{1}^{2}+S A_{2}^{2}+$ $\cdots+S A_{n}^{2}$. 66. (MON 1) (SL89-17). 67. (MON 2) A family of sets $A_{1}, A_{2}, \ldots, A_{n}$ has the following properties: (i) Each $A_{i}$ contains 30 elements. (ii) $A_{i} \cap A_{j}$ contains exactly one element for all $i, j, 1 \leq iT_{1989}(2)$. Justify your answer. 87. (POR 6) A balance has a left pan, a right pan, and a pointer that moves along a graduated ruler. Like many other grocer balances, this one works as follows: An object of weight $L$ is placed in the left pan and another of weight $R$ in the right pan, the pointer stops at the number $R-L$ on the graduated ruler. There are $n(\geq 2)$ bags of coins, each containing $\frac{n(n-1)}{2}+1$ coins. All coins look the same (shape, color, and so on). Of the bags, $n-1$ contain genuine coins, all with the same weight. The remaining bag (we don't know which one it is) contains counterfeit coins. All counterfeit coins have the same weight, and this weight is different from the weight of the genuine coins. A legal weighing consists of placing a certain number of coins in one of the pans, putting a certain number of coins in the other pan, and reading the number given by the pointer in the graduated ruler. With just two legal weighings it is possible to identify the bag containing counterfeit coins. Find a way to do this and explain it. 88. (ROM 1) (SL89-27). 89. (ROM 2) (SL89-28). 90. (ROM 3) Prove that the sequence $\left(a_{n}\right)_{n \geq 0}, a_{n}=[n \sqrt{2}]$, contains an infinite number of perfect squares. 91. (ROM 4) (SL89-29). 92. (ROM 5) Find the set of all $a \in \mathbb{R}$ for which there is no infinite sequence $\left(x_{n}\right)_{n \geq 0} \subset \mathbb{R}$ satisfying $x_{0}=a, x_{n+1}=\frac{x_{n}+\alpha}{\beta x_{n}+1}, n=0,1, \ldots$, where $\alpha \beta>0$. 93. (ROM 6) For $\Phi: \mathbb{N} \rightarrow \mathbb{Z}$ let us define $M_{\Phi}=\{f: \mathbb{N} \rightarrow \mathbb{Z} ; f(x)>$ $F(\Phi(x)), \forall x \in \mathbb{N}\}$. (a) Prove that if $M_{\Phi_{1}}=M_{\Phi_{2}} \neq \emptyset$, then $\Phi_{1}=\Phi_{2}$. (b) Does this property remain true if $M_{\Phi}=\{f: \mathbb{N} \rightarrow \mathbb{N} ; f(x)>$ $F(\Phi(x)), \forall x \in \mathbb{N}\}$ ? 94. (SWE 1) Prove that $a0$ and a complex number $z \neq 0$ with $\arg z \neq \pi$, define $$ B(c, z)=\{b \in \mathbb{R}| | w-z|1$ be a fixed integer. Define functions $f_{0}(x)=0$, $f_{1}(x)=1-\cos x$, and for $k>0$, $$ f_{k+1}(x)=2 f_{k}(x) \cos x-f_{k-1}(x) $$ If $F(x)=f_{1}(x)+f_{2}(x)+\cdots+f_{n}(x)$, prove that (a) $01$ for $\frac{\pi}{n+1}1$ the equation $$ \frac{x^{n}}{n!}+\frac{x^{n-1}}{(n-1)!}+\cdots+\frac{x^{2}}{2!}+\frac{x}{1!}+1=0 $$ has no rational roots. 5. (COL 1) Consider the polynomial $p(x)=x^{n}+n x^{n-1}+a_{2} x^{n-2}+\cdots+a_{n}$ having all real roots. If $r_{1}^{16}+r_{2}^{16}+\cdots+r_{n}^{16}=n$, where the $r_{j}$ are the roots of $p(x)$, find all such roots. 6. (CZS 1) For a triangle $A B C$, let $k$ be its circumcircle with radius $r$. The bisectors of the inner angles $A, B$, and $C$ of the triangle intersect respectively the circle $k$ again at points $A^{\prime}, B^{\prime}$, and $C^{\prime}$. Prove the inequality $$ 16 Q^{3} \geq 27 r^{4} P $$ where $Q$ and $P$ are the areas of the triangles $A^{\prime} B^{\prime} C^{\prime}$ and $A B C$ respectively. 7. (FIN 1) Show that any two points lying inside a regular $n$-gon $E$ can be joined by two circular arcs lying inside $E$ and meeting at an angle of at least $\left(1-\frac{2}{n}\right) \pi$. 8. (FRA 2) Let $R$ be a rectangle that is the union of a finite number of rectangles $R_{i}, 1 \leq i \leq n$, satisfying the following conditions: (i) The sides of every rectangle $R_{i}$ are parallel to the sides of $R$. (ii) The interiors of any two different $R_{i}$ are disjoint. (iii) Every $R_{i}$ has at least one side of integral length. Prove that $R$ has at least one side of integral length. 9. (FRA 4) For all integers $n, n \geq 0$, there exist uniquely determined integers $a_{n}, b_{n}, c_{n}$ such that $$ (1+4 \sqrt[3]{2}-4 \sqrt[3]{4})^{n}=a_{n}+b_{n} \sqrt[3]{2}+c_{n} \sqrt[3]{4} $$ Prove that $c_{n}=0$ implies $n=0$. 10. (GRE 3) Let $g: \mathbb{C} \rightarrow \mathbb{C}, w \in \mathbb{C}, a \in \mathbb{C}, w^{3}=1(w \neq 1)$. Show that there is one and only one function $f: \mathbb{C} \rightarrow \mathbb{C}$ such that $$ f(z)+f(w z+a)=g(z), \quad z \in \mathbb{C} $$ Find the function $f$. 11. (HUN 1) Define sequence $a_{n}$ by $\sum_{d \mid n} a_{d}=2^{n}$. Show that $n \mid a_{n}$. 12. (HUN 3) At $n$ distinct points of a circular race course there are $n$ cars ready to start. Each car moves at a constant speed and covers the circle in an hour. On hearing the initial signal, each of them selects a direction and starts moving immediately. If two cars meet, both of them change directions and go on without loss of speed. Show that at a certain moment each car will be at its starting point. 13. (ICE 3) ${ }^{\mathrm{IMO}}$ 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}} $$ 14. (IND 2) A bicentric quadrilateral is one that is both inscribable in and circumscribable about a circle. Show that for such a quadrilateral, the centers of the two associated circles are collinear with the point of intersection of the diagonals. 15. (IRE 1) Let $a, b, c, d, m, n$ be positive integers such that $a^{2}+b^{2}+c^{2}+d^{2}=$ 1989, $a+b+c+d=m^{2}$, and the largest of $a, b, c, d$ is $n^{2}$. Determine, with proof, the values of $m$ and $n$. 16. (ISR 1) The set $\left\{a_{0}, a_{1}, \ldots, a_{n}\right\}$ of real numbers satisfies the following conditions: (i) $a_{0}=a_{n}=0$; (ii) for $1 \leq k \leq n-1$, $$ a_{k}=c+\sum_{i=k}^{n-1} a_{i-k}\left(a_{i}+a_{i+1}\right) . $$ Prove that $c \leq \frac{1}{4 n}$. 17. (MON 1) Given seven points in the plane, some of them are connected by segments so that: (i) among any three of the given points, two are connected by a segment; (i) the number of segments is minimal. How many segments does a figure satisfying (i) and (ii) contain? Give an example of such a figure. 18. (MON 4) Given a convex polygon $A_{1} A_{2} \ldots A_{n}$ with area $S$, and a point $M$ in the same plane, determine the area of polygon $M_{1} M_{2} \ldots M_{n}$, where $M_{i}$ is the image of $M$ under rotation $\mathcal{R}_{A_{i}}^{\alpha}$ around $A_{i}$ by $\alpha, i=1,2, \ldots, n$. 19. (MON 6) A positive integer is written in each square of an $m \times n$ board. The allowed move is to add an integer $k$ to each of two adjacent numbers in such a way that no negative numbers are obtained. (Two squares are adjacent if they have a common side.) Find a necessary and sufficient condition for it to be possible for all the numbers to be zero by a finite sequence of moves. 20. (NET 1) ${ }^{\text {IMO3 }}$ 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} $$ 21. (NET 2) Prove that the intersection of a plane and a regular tetrahedron can be an obtuse-angled triangle and that the obtuse angle in any such triangle is always smaller than $120^{\circ}$. 22. (PHI 1) ${ }^{\text {IMO1 }}$ 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$. 23. (POL 2) ${ }^{\mathrm{IMO} 6} \mathrm{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\}$. 24. (POL 5) For points $A_{1}, \ldots, A_{5}$ on the sphere of radius 1 , what is the maximum value that $\min _{1 \leq i, j \leq 5} A_{i} A_{j}$ can take? Determine all configurations for which this maximum is attained. (Or: determine the diameter of any set $\left\{A_{1}, \ldots, A_{5}\right\}$ for which this maximum is attained.) 25. (KOR 3) Let $a, b$ be integers that are not perfect squares. Prove that if $$ x^{2}-a y^{2}-b z^{2}+a b w^{2}=0 $$ has a nontrivial solution in integers, then so does $$ x^{2}-a y^{2}-b z^{2}=0 $$ 26. (KOR 4) Let $n$ be a positive integer and let $a, b$ be given real numbers. Determine the range of $x_{0}$ for which $$ \sum_{i=0}^{n} x_{i}=a \quad \text { and } \quad \sum_{i=0}^{n} x_{i}^{2}=b $$ where $x_{0}, x_{1}, \ldots, x_{n}$ are real variables. 27. (ROM 1) Let $m$ be a positive odd integer, $m \geq 2$. Find the smallest positive integer $n$ such that $2^{1989}$ divides $m^{n}-1$. 28. (ROM 2) Consider in a plane $\Pi$ the points $O, A_{1}, A_{2}, A_{3}, A_{4}$ such that $\sigma\left(O A_{i} A_{j}\right) \geq 1$ for all $i, j=1,2,3,4, i \neq j$. Prove that there is at least one pair $i_{0}, j_{0} \in\{1,2,3,4\}$ such that $\sigma\left(O A_{i_{0}} A_{j_{0}}\right) \geq \sqrt{2}$. (We have denoted by $\sigma\left(O A_{i} A_{j}\right)$ the area of triangle $O A_{i} A_{j}$.) 29. (ROM 4) A flock of 155 birds sit down on a circle $C$. Two birds $P_{i}, P_{j}$ are mutually visible if $m\left(P_{i} P_{j}\right) \leq 10^{\circ}$. Find the smallest number of mutually visible pairs of birds. (One assumes that a position (point) on $C$ can be occupied simultaneously by several birds.) 30. (SWE 2) ${ }^{\mathrm{IMO} 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? 31. (SWE 3) Let $a_{1} \geq a_{2} \geq a_{3}$ be given positive integers and let $N\left(a_{1}, a_{2}, a_{3}\right)$ be the number of solutions $\left(x_{1}, x_{2}, x_{3}\right)$ of the equation $$ \frac{a_{1}}{x_{1}}+\frac{a_{2}}{x_{2}}+\frac{a_{3}}{x_{3}}=1 $$ where $x_{1}, x_{2}$, and $x_{3}$ are positive integers. Show that $$ N\left(a_{1}, a_{2}, a_{3}\right) \leq 6 a_{1} a_{2}\left(3+\ln \left(2 a_{1}\right)\right) $$ 32. (USA 3) The vertex $A$ of the acute triangle $A B C$ is equidistant from the circumcenter $O$ and the orthocenter $H$. Determine all possible values for the measure of angle $A$. ### 3.31 The Thirty-First IMO Beijing, China, July 8-19, 1990 ### 3.31.1 Contest Problems First Day (July 12) 1. Given a circle with two chords $A B, C D$ that meet at $E$, let $M$ be a point of chord $A B$ other than $E$. Draw the circle through $D, E$, and $M$. The tangent line to the circle $D E M$ at $E$ meets the lines $B C, A C$ at $F, G$, respectively. Given $\frac{A M}{A B}=\lambda$, find $\frac{G E}{E F}$. 2. On a circle, $2 n-1(n \geq 3)$ different points are given. Find the minimal natural number $N$ with the property that whenever $N$ of the given points are colored black, there exist two black points such that the interior of one of the corresponding arcs contains exactly $n$ of the given $2 n-1$ points. 3. Find all positive integers $n$ having the property that $\frac{2^{n}+1}{n^{2}}$ is an integer. Second Day (July 13) 4. Let $\mathbb{Q}^{+}$be the set of positive rational numbers. Construct a function $f: \mathbb{Q}^{+} \rightarrow \mathbb{Q}^{+}$such that $$ f(x f(y))=\frac{f(x)}{y}, \quad \text { for all } x, y \text { in } \mathbb{Q}^{+} $$ 5. Two players $A$ and $B$ play a game in which they choose numbers alternately according to the following rule: At the beginning, an initial natural number $n_{0}>1$ is given. Knowing $n_{2 k}$, player $A$ may choose any $n_{2 k+1} \in \mathbb{N}$ such that $$ n_{2 k} \leq n_{2 k+1} \leq n_{2 k}^{2} $$ Then player $B$ chooses a number $n_{2 k+2} \in \mathbb{N}$ such that $$ \frac{n_{2 k+1}}{n_{2 k+2}}=p^{r} $$ where $p$ is a prime number and $r \in \mathbb{N}$. It is stipulated that player $A$ wins the game if he (she) succeeds in choosing the number 1990, and player $B$ wins if he (she) succeeds in choosing 1. For which natural numbers $n_{0}$ can player $A$ manage to win the game, for which $n_{0}$ can player $B$ manage to win, and for which $n_{0}$ can players $A$ and $B$ each force a tie? 6. Is there a 1990-gon with the following properties (i) and (ii)? (i) All angles are equal; (ii) The lengths of the 1990 sides are a permutation of the numbers $1^{2}, 2^{2}, \ldots, 1989^{2}, 1990^{2}$. ### 3.31.2 Shortlisted Problems 1. (AUS 3) The integer 9 can be written as a sum of two consecutive integers: $9=4+5$. Moreover, it can be written as a sum of (more than one) consecutive positive integers in exactly two ways: $9=4+5=2+3+4$. Is there an integer that can be written as a sum of 1990 consecutive integers and that can be written as a sum of (more than one) consecutive positive integers in exactly 1990 ways? 2. (CAN 1) Given $n$ countries with three representatives each, $m$ committees $A(1), A(2), \ldots A(m)$ are called $a$ cycle if (i) each committee has $n$ members, one from each country; (ii) no two committees have the same membership; (iii) for $i=1,2, \ldots, m$, committee $A(i)$ and committee $A(i+1)$ have no member in common, where $A(m+1)$ denotes $A(1)$; (iv) if $1<|i-j|90^{\circ}$. 6. (FRG 2) ${ }^{\mathrm{IMO} 5}$ Two players $A$ and $B$ play a game in which they choose numbers alternately according to the following rule: At the beginning, an initial natural number $n_{0}>1$ is given. Knowing $n_{2 k}$, player $A$ may choose any $n_{2 k+1} \in \mathbb{N}$ such that $$ n_{2 k} \leq n_{2 k+1} \leq n_{2 k}^{2} $$ Then player $B$ chooses a number $n_{2 k+2} \in \mathbb{N}$ such that $$ \frac{n_{2 k+1}}{n_{2 k+2}}=p^{r} $$ where $p$ is a prime number and $r \in \mathbb{N}$. It is stipulated that player $A$ wins the game if he (she) succeeds in choosing the number 1990, and player $B$ wins if he (she) succeeds in choosing 1. For which natural numbers $n_{0}$ can player $A$ manage to win the game, for which $n_{0}$ can player $B$ manage to win, and for which $n_{0}$ can players $A$ and $B$ each force a tie? 7. (GRE 2) Let $f(0)=f(1)=0$ and $$ f(n+2)=4^{n+2} f(n+1)-16^{n+1} f(n)+n \cdot 2^{n^{2}}, \quad n=0,1,2,3, \ldots $$ Show that the numbers $f(1989), f(1990), f(1991)$ are divisible by 13. 8. (HUN 1) For a given positive integer $k$ denote the square of the sum of its digits by $f_{1}(k)$ and let $f_{n+1}(k)=f_{1}\left(f_{n}(k)\right)$. Determine the value of $f_{1991}\left(2^{1990}\right)$. 9. (HUN 3) The incenter of the triangle $A B C$ is $K$. The midpoint of $A B$ is $C_{1}$ and that of $A C$ is $B_{1}$. The lines $C_{1} K$ and $A C$ meet at $B_{2}$, the lines $B_{1} K$ and $A B$ at $C_{2}$. If the areas of the triangles $A B_{2} C_{2}$ and $A B C$ are equal, what is the measure of angle $\angle C A B$ ? 10. (ICE 2) A plane cuts a right circular cone into two parts. The plane is tangent to the circumference of the base of the cone and passes through the midpoint of the altitude. Find the ratio of the volume of the smaller part to the volume of the whole cone. 11. (IND $\left.3^{\prime}\right)^{\mathrm{IMO}}$ Given a circle with two chords $A B, C D$ that meet at $E$, let $M$ be a point of chord $A B$ other than $E$. Draw the circle through $D, E$, and $M$. The tangent line to the circle $D E M$ at $E$ meets the lines $B C, A C$ at $F, G$, respectively. Given $\frac{A M}{A B}=\lambda$, find $\frac{G E}{E F}$. 12. (IRE 1) Let $A B C$ be a triangle and $L$ the line through $C$ parallel to the side $A B$. Let the internal bisector of the angle at $A$ meet the side $B C$ at $D$ and the line $L$ at $E$ and let the internal bisector of the angle at $B$ meet the side $A C$ at $F$ and the line $L$ at $G$. If $G F=D E$, prove that $A C=B C$. 13. (IRE 2) An eccentric mathematician has a ladder with $n$ rungs that he always ascends and descends in the following way: When he ascends, each step he takes covers $a$ rungs of the ladder, and when he descends, each step he takes covers $b$ rungs of the ladder, where $a$ and $b$ are fixed positive integers. By a sequence of ascending and descending steps he can climb from ground level to the top rung of the ladder and come back down to ground level again. Find, with proof, the minimum value of $n$, expressed in terms of $a$ and $b$. 14. (JAP 2) In the coordinate plane a rectangle with vertices $(0,0),(m, 0)$, $(0, n),(m, n)$ is given where both $m$ and $n$ are odd integers. The rectangle is partitioned into triangles in such a way that (i) each triangle in the partition has at least one side (to be called a "good" side) that lies on a line of the form $x=j$ or $y=k$, where $j$ and $k$ are integers, and the altitude on this side has length 1 ; (ii) each "bad" side (i.e., a side of any triangle in the partition that is not a "good" one) is a common side of two triangles in the partition. Prove that there exist at least two triangles in the partition each of which has two good sides. 15. (MEX 2) Determine for which positive integers $k$ the set $$ X=\{1990,1990+1,1990+2, \ldots, 1990+k\} $$ can be partitioned into two disjoint subsets $A$ and $B$ such that the sum of the elements of $A$ is equal to the sum of the elements of $B$. 16. (NET 1) ${ }^{\text {IMO6 }}$ Is there a 1990-gon with the following properties (i) and (ii)? (i) All angles are equal; (ii) The lengths of the 1990 sides are a permutation of the numbers $1^{2}, 2^{2}, \ldots, 1989^{2}, 1990^{2}$. 17. (NET 3) Unit cubes are made into beads by drilling a hole through them along a diagonal. The beads are put on a string in such a way that they can move freely in space under the restriction that the vertices of two neighboring cubes are touching. Let $A$ be the beginning vertex and $B$ be the end vertex. Let there be $p \times q \times r$ cubes on the string $(p, q, r \geq 1)$. (a) Determine for which values of $p, q$, and $r$ it is possible to build a block with dimensions $p, q$, and $r$. Give reasons for your answers. (b) The same question as (a) with the extra condition that $A=B$. 18. (NOR) Let $a, b$ be natural numbers with $1 \leq a \leq b$, and $M=\left[\frac{a+b}{2}\right]$. Define the function $f: \mathbb{Z} \rightarrow \mathbb{Z}$ by $$ f(n)= \begin{cases}n+a, & \text { if } n6$ and let $a_{1}1$, construct an infinite and bounded sequence $x_{0}, x_{1}, x_{2}, \ldots$ such that for all natural numbers $i$ and $j, i \neq j$, the following inequality holds: $$ \left|x_{i}-x_{j} \| i-j\right|^{a} \geq 1 $$ ### 3.32.2 Shortlisted Problems 1. (PHI 3) Let $A B C$ be any triangle and $P$ any point in its interior. Let $P_{1}, P_{2}$ be the feet of the perpendiculars from $P$ to the two sides $A C$ and $B C$. Draw $A P$ and $B P$, and from $C$ drop perpendiculars to $A P$ and $B P$. Let $Q_{1}$ and $Q_{2}$ be the feet of these perpendiculars. Prove that the lines $Q_{1} P_{2}, Q_{2} P_{1}$, and $A B$ are concurrent. 2. (JAP 5) For an acute triangle $A B C, M$ is the midpoint of the segment $B C, P$ is a point on the segment $A M$ such that $P M=B M, H$ is the foot of the perpendicular line from $P$ to $B C, Q$ is the point of intersection of segment $A B$ and the line passing through $H$ that is perpendicular to $P B$, and finally, $R$ is the point of intersection of the segment $A C$ and the line passing through $H$ that is perpendicular to $P C$. Show that the circumcircle of $\triangle Q H R$ is tangent to the side $B C$ at point $H$. 3. (PRK 1) Let $S$ be any point on the circumscribed circle of $\triangle P Q R$. Then the feet of the perpendiculars from $S$ to the three sides of the triangle lie on the same straight line. Denote this line by $l(S, P Q R)$. Suppose that the hexagon $A B C D E F$ is inscribed in a circle. Show that the four lines $l(A, B D F), l(B, A C E), l(D, A B F)$, and $l(E, A B C)$ intersect at one point if and only if $C D E F$ is a rectangle. 4. (FRA 2) ${ }^{\mathrm{IMO5}}$ Let $A B C$ be a triangle and $M$ an interior point in $A B C$. Show that at least one of the angles $\measuredangle M A B, \measuredangle M B C$, and $\measuredangle M C A$ is less than or equal to $30^{\circ}$. 5. (SPA 4) In the triangle $A B C$, with $\measuredangle A=60^{\circ}$, a parallel $I F$ to $A C$ is drawn through the incenter $I$ of the triangle, where $F$ lies on the side $A B$. The point $P$ on the side $B C$ is such that $3 B P=B C$. Show that $\measuredangle B F P=\measuredangle B / 2$. 6. (USS 4) ${ }^{\mathrm{IMO}}$ Prove for each triangle $A B C$ the inequality $$ \frac{1}{4}<\frac{I A \cdot I B \cdot I C}{l_{A} l_{B} l_{C}} \leq \frac{8}{27} $$ where $I$ is the incenter and $l_{A}, l_{B}, l_{C}$ are the lengths of the angle bisectors of $A B C$. 7. (CHN 2) Let $O$ be the center of the circumsphere of a tetrahedron $A B C D$. Let $L, M, N$ be the midpoints of $B C, C A, A B$ respectively, and assume that $A B+B C=A D+C D, B C+C A=B D+A D$, and $C A+A B=$ $C D+B D$. Prove that $\angle L O M=\angle M O N=\angle N O L$. 8. (NET 1) Let $S$ be a set of $n$ points in the plane. No three points of $S$ are collinear. Prove that there exists a set $P$ containing $2 n-5$ points satisfying the following condition: In the interior of every triangle whose three vertices are elements of $S$ lies a point that is an element of $P$. 9. (FRA 3) In the plane we are given a set $E$ of 1991 points, and certain pairs of these points are joined with a path. We suppose that for every point of $E$, there exist at least 1593 other points of $E$ to which it is joined by a path. Show that there exist six points of $E$ every pair of which are joined by a path. Alternative version. Is it possible to find a set $E$ of 1991 points in the plane and paths joining certain pairs of the points in $E$ such that every point of $E$ is joined with a path to at least 1592 other points of $E$, and in every subset of six points of $E$ there exist at least two points that are not joined? 10. (USA 5) ${ }^{\mathrm{IMO} 4}$ Suppose $G$ is a connected graph with $n$ edges. Prove that it is possible to label the edges of $G$ from 1 to $n$ in such a way that in every vertex $v$ of $G$ with two or more incident edges, the set of numbers labeling those edges has no common divisor greater than 1. 11. (AUS 4) Prove that $$ \sum_{m=0}^{995} \frac{(-1)^{m}}{1991-m}\binom{1991-m}{m}=\frac{1}{1991} $$ 12. $(\mathbf{C H N} 3)^{\mathrm{IMO} 3}$ Let $S=\{1,2,3, \ldots, 280\}$. Find the minimal natural number $n$ such that in any $n$-element subset of $S$ there are five numbers that are pairwise relatively prime. 13. (POL 4) Given any integer $n \geq 2$, assume that the integers $a_{1}, a_{2}, \ldots, a_{n}$ are not divisible by $n$ and, moreover, that $n$ does not divide $a_{1}+a_{2}+$ $\cdots+a_{n}$. Prove that there exist at least $n$ different sequences $\left(e_{1}, e_{2}, \cdots, e_{n}\right)$ consisting of zeros or ones such that $e_{1} a_{1}+e_{2} a_{2}+\cdots+e_{n} a_{n}$ is divisible by $n$. 14. (POL 3) Let $a, b, c$ be integers and $p$ an odd prime number. Prove that if $f(x)=a x^{2}+b x+c$ is a perfect square for $2 p-1$ consecutive integer values of $x$, then $p$ divides $b^{2}-4 a c$. 15. (USS 2) Let $a_{n}$ be the last nonzero digit in the decimal representation of the number $n$ !. Does the sequence $a_{1}, a_{2}, \ldots, a_{n}, \ldots$ become periodic after a finite number of terms? 16. (ROM 1) ${ }^{\mathrm{IMO} 2}$ Let $n>6$ and $a_{1}1$, construct an infinite and bounded sequence $x_{0}, x_{1}, x_{2}, \ldots$ such that for all natural numbers $i$ and $j, i \neq j$, the following inequality holds: $$ \left|x_{i}-x_{j}\right||i-j|^{a} \geq 1 $$ 29. (FIN 2) We call a set $S$ on the real line $\mathbb{R}$ superinvariant if for any stretching $A$ of the set by the transformation taking $x$ to $A(x)=x_{0}+$ $a\left(x-x_{0}\right)$ there exists a translation $B, B(x)=x+b$, such that the images of $S$ under $A$ and $B$ agree; i.e., for any $x \in S$ there is a $y \in S$ such that $A(x)=B(y)$ and for any $t \in S$ there is a $u \in S$ such that $B(t)=A(u)$. Determine all superinvariant sets. Remark. It is assumed that $a>0$. 30. (BUL 3) Two students $A$ and $B$ are playing the following game: Each of them writes down on a sheet of paper a positive integer and gives the sheet to the referee. The referee writes down on a blackboard two integers, one of which is the sum of the integers written by the players. After that, the referee asks student $A$ : "Can you tell the integer written by the other student?" If $A$ answers "no," the referee puts the same question to student $B$. If $B$ answers "no," the referee puts the question back to $A$, and so on. Assume that both students are intelligent and truthful. Prove that after a finite number of questions, one of the students will answer "yes." ### 3.33 The Thirty-Third IMO Moscow, Russia, July 10-21, 1992 ### 3.33.1 Contest Problems First Day (July 15) 1. Find all integer triples $(p, q, r)$ such that $11$ 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 $0m \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 $13$ 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}34 $$ 10. (IND 5) A natural number $n$ is said to have the property $P$ if whenever $n$ divides $a^{n}-1$ for some integer $a, n^{2}$ also necessarily divides $a^{n}-1$. (a) Show that every prime number has property $P$. (b) Show that there are infinitely many composite numbers $n$ that possess property $P$. 11. (IRE 1) ${ }^{\mathrm{IMO1}}$ 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)$. 12. (IRE 2) Let $n, k$ be positive integers with $k \leq n$ and let $S$ be a set containing $n$ distinct real numbers. Let $T$ be the set of all real numbers of the form $x_{1}+x_{2}+\cdots+x_{k}$, where $x_{1}, x_{2}, \ldots, x_{k}$ are distinct elements of $S$. Prove that $T$ contains at least $k(n-k)+1$ distinct elements. 13. (IRE 3) Let $S$ be the set of all pairs $(m, n)$ of relatively prime positive integers $m, n$ with $n$ even and $m1$ and $b^{n}-1 \mid a$. Show that the representation of the number $a$ in the base $b$ contains at least $n$ digits different from zero. 20. (ROM 3) Let $c_{1}, \ldots, c_{n} \in \mathbb{R}(n \geq 2)$ such that $0 \leq \sum_{i=1}^{n} c_{i} \leq n$. Show that we can find integers $k_{1}, \ldots, k_{n}$ such that $\sum_{i=1}^{n} k_{i}=0$ and $$ 1-n \leq c_{i}+n k_{i} \leq n \quad \text { for every } i=1, \ldots, n $$ 21. (GBR 1) A circle $S$ is said to cut a circle $\Sigma$ diametrally if their common chord is a diameter of $\Sigma$. Let $S_{A}, S_{B}, S_{C}$ be three circles with distinct centers $A, B, C$ respectively. Prove that $A, B, C$ are collinear if and only if there is no unique circle $S$ that cuts each of $S_{A}, S_{B}, S_{C}$ diametrally. Prove further that if there exists more than one circle $S$ that cuts each of $S_{A}, S_{B}, S_{C}$ diametrally, then all such circles pass through two fixed points. Locate these points in relation to the circles $S_{A}, S_{B}, S_{C}$. 22. (GBR 2) ${ }^{\mathrm{IMO} 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.) 23. (GBR 3) A finite set of (distinct) positive integers is called a " $D S$-set" if each of the integers divides the sum of them all. Prove that every finite set of positive integers is a subset of some $D S$-set. 24. (USA 3) Prove that $$ \frac{a}{b+2 c+3 d}+\frac{b}{c+2 d+3 a}+\frac{c}{d+2 a+3 b}+\frac{d}{a+2 b+3 c} \geq \frac{2}{3} $$ for all positive real numbers $a, b, c, d$. 25. (VIE 1) Solve the following system of equations, in which $a$ is a given number satisfying $|a|>1$ : $$ \begin{aligned} x_{1}^{2} & =a x_{2}+1, \\ x_{2}^{2} & =a x_{3}+1 \\ \cdots & \cdots \\ x_{999}^{2} & =a x_{1000}+1 \\ x_{1000}^{2} & =a x_{1}+1 \end{aligned} $$ 26. (VIE 2) Let $a, b, c, d$ be four nonnegative numbers satisfying $a+b+c+d=$ 1. Prove the inequality $$ a b c+b c d+c d a+d a b \leq \frac{1}{27}+\frac{176}{27} a b c d $$ ### 3.35 The Thirty-Fifth IMO Hong Kong, July 9-22, 1994 ### 3.35.1 Contest Problems First Day (July 13) 1. Let $m$ and $n$ be positive integers. The set $A=\left\{a_{1}, a_{2}, \ldots, a_{m}\right\}$ is a subset of $1,2, \ldots, n$. Whenever $a_{i}+a_{j} \leq n, 1 \leq i \leq j \leq m, a_{i}+a_{j}$ also belongs to $A$. Prove that $$ \frac{a_{1}+a_{2}+\cdots+a_{m}}{m} \geq \frac{n+1}{2} $$ 2. $N$ is an arbitrary point on the bisector of $\angle B A C . P$ and $O$ are points on the lines $A B$ and $A N$, respectively, such that $\measuredangle A N P=90^{\circ}=\measuredangle A P O . Q$ is an arbitrary point on $N P$, and an arbitrary line through $Q$ meets the lines $A B$ and $A C$ at $E$ and $F$ respectively. Prove that $\measuredangle O Q E=90^{\circ}$ if and only if $Q E=Q F$. 3. For any positive integer $k, A_{k}$ is the subset of $\{k+1, k+2, \ldots, 2 k\}$ consisting of all elements whose digits in base 2 contain exactly three 1's. Let $f(k)$ denote the number of elements in $A_{k}$. (a) Prove that for any positive integer $m, f(k)=m$ has at least one solution. (b) Determine all positive integers $m$ for which $f(k)=m$ has a unique solution. ## Second Day (July 14) 4. Determine all pairs $(m, n)$ of positive integers such that $\frac{n^{3}+1}{m n-1}$ is an integer. 5 . Let $S$ be the set of real numbers greater than -1 . Find all functions $f: S \rightarrow S$ such that $$ f(x+f(y)+x f(y))=y+f(x)+y f(x) \quad \text { for all } x \text { and } y \text { in } S, $$ and $f(x) / x$ is strictly increasing for $-1k$. Remove this card, slide all cards from the $(k+1)$ st to the $l$ th position one place to the right, and replace the card $l$ in the $l$ th position. (a) Prove that the game lasts at most $2^{n}-1$ moves. (b) Prove that there exists a unique initial configuration for which the game lasts exactly $2^{n}-1$ moves. 10. C5 (SWE) At a round table are 1994 girls, playing a game with a deck of $n$ cards. Initially, one girl holds all the cards. In each turn, if at least one girl holds at least two cards, one of these girls must pass a card to each of her two neighbors. The game ends when and only when each girl is holding at most one card. (a) Prove that if $n \geq 1994$, then the game cannot end. (b) Prove that if $n<1994$, then the game must end. 11. C6 (FIN) On an infinite square grid, two players alternately mark symbols on empty cells. The first player always marks $X$ 's, the second $O$ 's. One symbol is marked per turn. The first player wins if there are 11 consecutive $X$ 's in a row, column, or diagonal. Prove that the second player can prevent the first from winning. 12. C7 (BRA) Prove that for any integer $n \geq 2$, there exists a set of $2^{n-1}$ points in the plane such that no 3 lie on a line and no $2 n$ are the vertices of a convex $2 n$-gon. 13. G1 (FRA) A semicircle $\Gamma$ is drawn on one side of a straight line $l$. $C$ and $D$ are points on $\Gamma$. The tangents to $\Gamma$ at $C$ and $D$ meet $l$ at $B$ and $A$ respectively, with the center of the semicircle between them. Let $E$ be the point of intersection of $A C$ and $B D$, and $F$ the point on $l$ such that $E F$ is perpendicular to $l$. Prove that $E F$ bisects $\angle C F D$. 14. G2 (UKR) $A B C D$ is a quadrilateral with $B C$ parallel to $A D . M$ is the midpoint of $C D, P$ that of $M A$ and $Q$ that of $M B$. The lines $D P$ and $C Q$ meet at $N$. Prove that $N$ is not outside triangle $A B M .{ }^{8}$ 15. G3 (RUS) A circle $\omega$ is tangent to two parallel lines $l_{1}$ and $l_{2}$. A second circle $\omega_{1}$ is tangent to $l_{1}$ at $A$ and to $\omega$ externally at $C$. A third circle $\omega_{2}$ is tangent to $l_{2}$ at $B$, to $\omega$ externally at $D$, and to $\omega_{1}$ externally at $E$. $A D$ intersects $B C$ at $Q$. Prove that $Q$ is the circumcenter of triangle $C D E$. [^6]16. G4 (AUS-ARM) ${ }^{\mathrm{IMO} 2} N$ is an arbitrary point on the bisector of $\angle B A C$. $P$ and $O$ are points on the lines $A B$ and $A N$, respectively, such that $\measuredangle A N P=90^{\circ}=\measuredangle A P O . Q$ is an arbitrary point on $N P$, and an arbitrary line through $Q$ meets the lines $A B$ and $A C$ at $E$ and $F$ respectively. Prove that $\measuredangle O Q E=90^{\circ}$ if and only if $Q E=Q F$. 17. G5 (CYP) A line $l$ does not meet a circle $\omega$ with center $O . E$ is the point on $l$ such that $O E$ is perpendicular to $l . M$ is any point on $l$ other than $E$. The tangents from $M$ to $\omega$ touch it at $A$ and $B . C$ is the point on $M A$ such that $E C$ is perpendicular to $M A . D$ is the point on $M B$ such that $E D$ is perpendicular to $M B$. The line $C D$ cuts $O E$ at $F$. Prove that the location of $F$ is independent of that of $M$. 18. N1 (BUL) $M$ is a subset of $\{1,2,3, \ldots, 15\}$ such that the product of any three distinct elements of $M$ is not a square. Determine the maximum number of elements in $M$. 19. N2 (AUS) ${ }^{\mathrm{IMO} 4}$ Determine all pairs $(m, n)$ of positive integers such that $\frac{n^{3}+1}{m n-1}$ is an integer. 20. N3 (FIN) ${ }^{\text {IMO6 }}$ Find a set $A$ of positive integers such that for any infinite set $P$ of prime numbers, there exist positive integers $m \in A$ and $n \notin A$, both the product of the same number of distinct elements of $P$. 21. N4 (FRA) For any positive integer $x_{0}$, three sequences $\left\{x_{n}\right\},\left\{y_{n}\right\}$, and $\left\{z_{n}\right\}$ are defined as follows: (i) $y_{0}=4$ and $z_{0}=1$; (ii) if $x_{n}$ is even for $n \geq 0, x_{n+1}=\frac{x_{n}}{2}, y_{n+1}=2 y_{n}$, and $z_{n+1}=z_{n}$; (iii) if $x_{n}$ is odd for $n \geq 0, x_{n+1}=x_{n}-\frac{y_{n}}{2}-z_{n}, y_{n+1}=y_{n}$, and $z_{n+1}=$ $y_{n}+z_{n}$. The integer $x_{0}$ is said to be good if $x_{n}=0$ for some $n \geq 1$. Find the number of good integers less than or equal to 1994. 22. N5 (ROM) ${ }^{\mathrm{IMO} 3}$ For any positive integer $k, A_{k}$ is the subset of $\{k+1, k+$ $2, \ldots, 2 k\}$ consisting of all elements whose digits in base 2 contain exactly three 1's. Let $f(k)$ denote the number of elements in $A_{k}$. (a) Prove that for any positive integer $m, f(k)=m$ has at least one solution. (b) Determine all positive integers $m$ for which $f(k)=m$ has a unique solution. 23. N6 (LAT) Let $x_{1}$ and $x_{2}$ be relatively prime positive integers. For $n \geq 2$, define $x_{n+1}=x_{n} x_{n-1}+1$. (a) Prove that for every $i>1$, there exists $j>i$ such that $x_{i}^{i}$ divides $x_{j}^{j}$. (b) Is it true that $x_{1}$ must divide $x_{j}^{j}$ for some $j>1$ ? 24. N7 (GBR) A wobbly number is a positive integer whose digits in base 10 are alternately nonzero and zero, the units digit being nonzero. Determine all positive integers that do not divide any wobbly number. ### 3.36 The Thirty-Sixth IMO Toronto, Canada, July 13-25, 1995 ### 3.36.1 Contest Problems First Day (July 19) 1. Let $A, B, C$, and $D$ be distinct points on a line, in that order. The circles with diameters $A C$ and $B D$ intersect at $X$ and $Y . O$ is an arbitrary point on the line $X Y$ but not on $A D . C O$ intersects the circle with diameter $A C$ again at $M$, and $B O$ intersects the other circle again at $N$. Prove that the lines $A M, D N$, and $X Y$ are concurrent. 2. Let $a, b$, and $c$ be positive real numbers such that $a b c=1$. Prove that $$ \frac{1}{a^{3}(b+c)}+\frac{1}{b^{3}(a+c)}+\frac{1}{c^{3}(a+b)} \geq \frac{3}{2} $$ 3. Determine all integers $n>3$ such that there are $n$ points $A_{1}, A_{2}, \ldots, A_{n}$ in the plane that satisfy the following two conditions simultaneously: (a) No three lie on the same line. (b) There exist real numbers $p_{1}, p_{2}, \ldots, p_{n}$ such that the area of $\triangle A_{i} A_{j} A_{k}$ is equal to $p_{i}+p_{j}+p_{k}$, for $1 \leq i\left(\sum_{i=1}^{n-1}(n-i) x_{i}\right)\left(\sum_{j=2}^{n}(j-1) x_{j}\right) . $$ 7. G1 (BUL) ${ }^{\mathrm{IMO} 1}$ Let $A, B, C$, and $D$ be distinct points on a line, in that order. The circles with diameters $A C$ and $B D$ intersect at $X$ and $Y . O$ is an arbitrary point on the line $X Y$ but not on $A D$. $C O$ intersects the circle with diameter $A C$ again at $M$, and $B O$ intersects the other circle again at $N$. Prove that the lines $A M, D N$, and $X Y$ are concurrent. 8. G2 (GER) Let $A, B$, and $C$ be noncollinear points. Prove that there is a unique point $X$ in the plane of $A B C$ such that $X A^{2}+X B^{2}+A B^{2}=$ $X B^{2}+X C^{2}+B C^{2}=X C^{2}+X A^{2}+C A^{2}$. 9. G3 (TUR) The incircle of $A B C$ touches $B C, C A$, and $A B$ at $D, E$, and $F$ respectively. $X$ is a point inside $A B C$ such that the incircle of $X B C$ touches $B C$ at $D$ also, and touches $C X$ and $X B$ at $Y$ and $Z$, respectively. Prove that $E F Z Y$ is a cyclic quadrilateral. 10. G4 (UKR) An acute triangle $A B C$ is given. Points $A_{1}$ and $A_{2}$ are taken on the side $B C$ (with $A_{2}$ between $A_{1}$ and $C$ ), $B_{1}$ and $B_{2}$ on the side $A C$ (with $B_{2}$ between $B_{1}$ and $A$ ), and $C_{1}$ and $C_{2}$ on the side $A B$ (with $C_{2}$ between $C_{1}$ and $B$ ) such that $$ \angle A A_{1} A_{2}=\angle A A_{2} A_{1}=\angle B B_{1} B_{2}=\angle B B_{2} B_{1}=\angle C C_{1} C_{2}=\angle C C_{2} C_{1} . $$ The lines $A A_{1}, B B_{1}$, and $C C_{1}$ form a triangle, and the lines $A A_{2}, B B_{2}$, and $C C_{2}$ form a second triangle. Prove that all six vertices of these two triangles lie on a single circle. 11. G5 (NZL) ${ }^{\mathrm{IMO} 5}$ Let $A B C D E F$ be a convex hexagon with $A B=B C=$ $C D, D E=E F=F A$, and $\measuredangle B C D=\measuredangle E F A=\pi / 3$ (that is, $60^{\circ}$ ). Let $G$ and $H$ be two points interior to the hexagon such that angles $A G B$ and $D H E$ are both $2 \pi / 3$ (that is, $120^{\circ}$ ). Prove that $A G+G B+G H+D H+$ $H E \geq C F$. 12. G6 (USA) Let $A_{1} A_{2} A_{3} A_{4}$ be a tetrahedron, $G$ its centroid, and $A_{1}^{\prime}, A_{2}^{\prime}, A_{3}^{\prime}$, and $A_{4}^{\prime}$ the points where the circumsphere of $A_{1} A_{2} A_{3} A_{4}$ intersects $G A_{1}, G A_{2}, G A_{3}$, and $G A_{4}$, respectively. Prove that $$ G A_{1} \cdot G A_{2} \cdot G A_{3} \cdot G A_{4} \leq G A_{1}^{\prime} \cdot G A_{2}^{\prime} \cdot G A_{3}^{\prime} \cdot G A_{4}^{\prime} $$ and $$ \frac{1}{G A_{1}^{\prime}}+\frac{1}{G A_{2}^{\prime}}+\frac{1}{G A_{3}^{\prime}}+\frac{1}{G A_{4}^{\prime}} \leq \frac{1}{G A_{1}}+\frac{1}{G A_{2}}+\frac{1}{G A_{3}}+\frac{1}{G A_{4}} $$ 13. G7 (LAT) $O$ is a point inside a convex quadrilateral $A B C D$ of area $S . K, L, M$, and $N$ are interior points of the sides $A B, B C, C D$, and $D A$ respectively. If $O K B L$ and $O M D N$ are parallelograms, prove that $\sqrt{S} \geq \sqrt{S_{1}}+\sqrt{S_{2}}$, where $S_{1}$ and $S_{2}$ are the areas of $O N A K$ and $O L C M$ respectively. 14. G8 (COL) Let $A B C$ be a triangle. A circle passing through $B$ and $C$ intersects the sides $A B$ and $A C$ again at $C^{\prime}$ and $B^{\prime}$, respectively. Prove that $B B^{\prime}, C C^{\prime}$, and $H H^{\prime}$ are concurrent, where $H$ and $H^{\prime}$ are the orthocenters of triangles $A B C$ and $A B^{\prime} C^{\prime}$ respectively. 15. N1 (ROM) Let $k$ be a positive integer. Prove that there are infinitely many perfect squares of the form $n 2^{k}-7$, where $n$ is a positive integer. 16. N2 (RUS) Let $\mathbb{Z}$ denote the set of all integers. Prove that for any integers $A$ and $B$, one can find an integer $C$ for which $M_{1}=\left\{x^{2}+A x+B: x \in \mathbb{Z}\right\}$ and $M_{2}=\left\{2 x^{2}+2 x+C: x \in \mathbb{Z}\right\}$ do not intersect. 17. N3 $(\mathbf{C Z E})^{\mathrm{IMO} 3}$ Determine all integers $n>3$ such that there are $n$ points $A_{1}, A_{2}, \ldots, A_{n}$ in the plane that satisfy the following two conditions simultaneously: (a) No three lie on the same line. (b) There exist real numbers $p_{1}, p_{2}, \ldots, p_{n}$ such that the area of $\triangle A_{i} A_{j} A_{k}$ is equal to $p_{i}+p_{j}+p_{k}$, for $1 \leq i1$ that satisfies the following condition? The set of positive integers can be partitioned into $n$ nonempty subsets such that an arbitrary sum of $n-1$ integers, one taken from each of any $n-1$ of the subsets, lies in the remaining subset. 22. N8 (GER) Let $p$ be an odd prime. Determine positive integers $x$ and $y$ for which $x \leq y$ and $\sqrt{2 p}-\sqrt{x}-\sqrt{y}$ is nonnegative and as small as possible. 23. S1 (UKR) Does there exist a sequence $F(1), F(2), F(3), \ldots$ of nonnegative integers that simultaneously satisfies the following three conditions? (a) Each of the integers $0,1,2, \ldots$ occurs in the sequence. (b) Each positive integer occurs in the sequence infinitely often. (c) For any $n \geq 2$, $$ F\left(F\left(n^{163}\right)\right)=F(F(n))+F(F(361)) . $$ 24. S2 (POL) ${ }^{\text {IMO4 }}$ The positive real numbers $x_{0}, x_{1}, \ldots, x_{1995}$ satisfy $x_{0}=$ $x_{1995}$ and $$ x_{i-1}+\frac{2}{x_{i-1}}=2 x_{i}+\frac{1}{x_{i}} $$ for $i=1,2, \ldots, 1995$. Find the maximum value that $x_{0}$ can have. 25. S3 (POL) For an integer $x \geq 1$, let $p(x)$ be the least prime that does not divide $x$, and define $q(x)$ to be the product of all primes less than $p(x)$. In particular, $p(1)=2$. For $x$ such that $p(x)=2$, define $q(x)=1$. Consider the sequence $x_{0}, x_{1}, x_{2}, \ldots$ defined by $x_{0}=1$ and $$ x_{n+1}=\frac{x_{n} p\left(x_{n}\right)}{q\left(x_{n}\right)} $$ for $n \geq 0$. Find all $n$ such that $x_{n}=1995$. 26. S4 (NZL) Suppose that $x_{1}, x_{2}, x_{3}, \ldots$ are positive real numbers for which $$ x_{n}^{n}=\sum_{j=0}^{n-1} x_{n}^{j} $$ for $n=1,2,3, \ldots$ Prove that for all $n$, $$ 2-\frac{1}{2^{n-1}} \leq x_{n}<2-\frac{1}{2^{n}} $$ 27. S5 (FIN) For positive integers $n$, the numbers $f(n)$ are defined inductively as follows: $f(1)=1$, and for every positive integer $n, f(n+1)$ is the greatest integer $m$ such that there is an arithmetic progression of positive integers $a_{1}0$. Let $p=\max \left\{\left|a_{1}\right|, \ldots,\left|a_{n}\right|\right\}$. Prove that $p=a_{1}$ and that $$ \left(x-a_{1}\right)\left(x-a_{2}\right) \cdots\left(x-a_{n}\right) \leq x^{n}-a_{1}^{n} $$ for all $x>a_{1}$. 3. A3 (GRE) Let $a>2$ be given, and define recursively $$ a_{0}=1, \quad a_{1}=a, \quad a_{n+1}=\left(\frac{a_{n}^{2}}{a_{n-1}^{2}}-2\right) a_{n} $$ Show that for all $k \in \mathbb{N}$, we have $$ \frac{1}{a_{0}}+\frac{1}{a_{1}}+\frac{1}{a_{2}}+\cdots+\frac{1}{a_{k}}<\frac{1}{2}\left(2+a-\sqrt{a^{2}-4}\right) . $$ 4. A4 (KOR) Let $a_{1}, a_{2}, \ldots, a_{n}$ be nonnegative real numbers, not all zero. (a) Prove that $x^{n}-a_{1} x^{n-1}-\cdots-a_{n-1} x-a_{n}=0$ has precisely one positive real root. (b) Let $A=\sum_{j=1}^{n} a_{j}, B=\sum_{j=1}^{n} j a_{j}$, and let $R$ be the positive real root of the equation in part (a). Prove that $$ A^{A} \leq R^{B} $$ 5. A5 (ROM) Let $P(x)$ be the real polynomial function $P(x)=a x^{3}+$ $b x^{2}+c x+d$. Prove that if $|P(x)| \leq 1$ for all $x$ such that $|x| \leq 1$, then $$ |a|+|b|+|c|+|d| \leq 7 $$ 6. A6 (IRE) Let $n$ be an even positive integer. Prove that there exists a positive integer $k$ such that $$ k=f(x)(x+1)^{n}+g(x)\left(x^{n}+1\right) $$ for some polynomials $f(x), g(x)$ having integer coefficients. If $k_{0}$ denotes the least such $k$, determine $k_{0}$ as a function of $n$. A6 ${ }^{\prime}$ Let $n$ be an even positive integer. Prove that there exists a positive integer $k$ such that $$ k=f(x)(x+1)^{n}+g(x)\left(x^{n}+1\right) $$ for some polynomials $f(x), g(x)$ having integer coefficients. If $k_{0}$ denotes the least such $k$, show that $k_{0}=2^{q}$, where $q$ is the odd integer determined by $n=q 2^{r}, r \in \mathbb{N}$. A6" Prove that for each positive integer $n$, there exist polynomials $f(x), g(x)$ having integer coefficients such that $$ f(x)(x+1)^{2^{n}}+g(x)\left(x^{2^{n}}+1\right)=2 . $$ 7. A7 (ARM) Let $f$ be a function from the set of real numbers $\mathbb{R}$ into itself such that for all $x \in \mathbb{R}$, we have $|f(x)| \leq 1$ and $$ f\left(x+\frac{13}{42}\right)+f(x)=f\left(x+\frac{1}{6}\right)+f\left(x+\frac{1}{7}\right) . $$ Prove that $f$ is a periodic function (that is, there exists a nonzero real number $c$ such that $f(x+c)=f(x)$ for all $x \in \mathbb{R})$. 8. A8 (ROM) ${ }^{\mathrm{IMO} 3}$ Let $\mathbb{N}_{0}$ denote the set of nonnegative integers. Find all functions $f$ from $\mathbb{N}_{0}$ into itself such that $$ f(m+f(n))=f(f(m))+f(n), \quad \forall m, n \in \mathbb{N}_{0} $$ 9. A9 (POL) Let the sequence $a(n), n=1,2,3, \ldots$, be generated as follows: $a(1)=0$, and for $n>1$, $$ a(n)=a([n / 2])+(-1)^{\frac{n(n+1)}{2}} . \quad(\text { Here }[t]=\text { the greatest integer } \leq t .) $$ (a) Determine the maximum and minimum value of $a(n)$ over $n \leq 1996$ and find all $n \leq 1996$ for which these extreme values are attained. (b) How many terms $a(n), n \leq 1996$, are equal to 0 ? 10. G1 (GBR) Let triangle $A B C$ have orthocenter $H$, and let $P$ be a point on its circumcircle, distinct from $A, B, C$. Let $E$ be the foot of the altitude $B H$, let $P A Q B$ and $P A R C$ be parallelograms, and let $A Q$ meet $H R$ in $X$. Prove that $E X$ is parallel to $A P$. 11. G2 (CAN) ${ }^{\mathrm{IMO} 2}$ Let $P$ be a point inside $\triangle A B C$ such that $$ \angle A P B-\angle C=\angle A P C-\angle B . $$ Let $D, E$ be the incenters of $\triangle A P B, \triangle A P C$ respectively. Show that $A P, B D$ and $C E$ meet in a point. 12. G3 (GBR) Let $A B C$ be an acute-angled triangle with $B C>C A$. Let $O$ be the circumcenter, $H$ its orthocenter, and $F$ the foot of its altitude $C H$. Let the perpendicular to $O F$ at $F$ meet the side $C A$ at $P$. Prove that $\angle F H P=\angle B A C$. Possible second part: What happens if $|B C| \leq|C A|$ (the triangle still being acute-angled)? 13. G4 (USA) Let $\triangle A B C$ be an equilateral triangle and let $P$ be a point in its interior. Let the lines $A P, B P, C P$ meet the sides $B C, C A, A B$ in the points $A_{1}, B_{1}, C_{1}$ respectively. Prove that $$ A_{1} B_{1} \cdot B_{1} C_{1} \cdot C_{1} A_{1} \geq A_{1} B \cdot B_{1} C \cdot C_{1} A $$ 14. G5 (ARM) ${ }^{\mathrm{IMO5}}$ Let $A B C D E F$ be a convex hexagon such that $A B$ is parallel to $D E, B C$ is parallel to $E F$, and $C D$ is parallel to $A F$. Let $R_{A}, R_{C}, R_{E}$ be the circumradii of triangles $F A B, B C D, D E F$ respectively, and let $P$ denote the perimeter of the hexagon. Prove that $$ R_{A}+R_{C}+R_{E} \geq \frac{P}{2} $$ 15. G6 (ARM) Let the sides of two rectangles be $\{a, b\}$ and $\{c, d\}$ with $aR_{B}+R_{D}$ if and only if $$ \angle A+\angle C>\angle B+\angle D . $$ 18. G9 (UKR) In the plane are given a point $O$ and a polygon $\mathcal{F}$ (not necessarily convex). Let $P$ denote the perimeter of $\mathcal{F}, D$ the sum of the distances from $O$ to the vertices of $\mathcal{F}$, and $H$ the sum of the distances from $O$ to the lines containing the sides of $\mathcal{F}$. Prove that $$ D^{2}-H^{2} \geq \frac{P^{2}}{4} $$ 19. N1 (UKR) Four integers are marked on a circle. At each step we simultaneously replace each number by the difference between this number and the next number on the circle, in a given direction (that is, the numbers $a, b, c, d$ are replaced by $a-b, b-c, c-d, d-a)$. Is it possible after 1996 such steps to have numbers $a, b, c, d$ such that the numbers $|b c-a d|,|a c-b d|,|a b-c d|$ are primes? 20. N2 (RUS) ${ }^{\mathrm{IMO} 4}$ The positive integers $a$ and $b$ are such that the numbers $15 a+16 b$ and $16 a-15 b$ are both squares of positive integers. What is the least possible value that can be taken on by the smaller of these two squares? 21. N3 (BUL) A finite sequence of integers $a_{0}, a_{1}, \ldots, a_{n}$ is called quadratic if for each $i \in\{1,2, \ldots, n\}$ we have the equality $\left|a_{i}-a_{i-1}\right|=i^{2}$. (a) Prove that for any two integers $b$ and $c$, there exist a natural number $n$ and a quadratic sequence with $a_{0}=b$ and $a_{n}=c$. (b) Find the smallest natural number $n$ for which there exists a quadratic sequence with $a_{0}=0$ and $a_{n}=1996$. 22. N4 (BUL) Find all positive integers $a$ and $b$ for which $$ \left[\frac{a^{2}}{b}\right]+\left[\frac{b^{2}}{a}\right]=\left[\frac{a^{2}+b^{2}}{a b}\right]+a b $$ where as usual, $[t]$ refers to greatest integer that is less than or equal to $t$. 23. N5 (ROM) Let $\mathbb{N}_{0}$ denote the set of nonnegative integers. Find a bijective function $f$ from $\mathbb{N}_{0}$ into $\mathbb{N}_{0}$ such that for all $m, n \in \mathbb{N}_{0}$, $$ f(3 m n+m+n)=4 f(m) f(n)+f(m)+f(n) . $$ 24. C1 (FIN) ${ }^{\mathrm{IMO} 1}$ We are given a positive integer $r$ and a rectangular board $A B C D$ with dimensions $|A B|=20,|B C|=12$. The rectangle is divided into a grid of $20 \times 12$ unit squares. The following moves are permitted on the board: One can move from one square to another only if the distance between the centers of the two squares is $\sqrt{r}$. The task is to find a sequence of moves leading from the square corresponding to vertex $A$ to the square corresponding to vertex $B$. (a) Show that the task cannot be done if $r$ is divisible by 2 or 3 . (b) Prove that the task is possible when $r=73$. (c) Is there a solution when $r=97$ ? 25. C2 (UKR) An $(n-1) \times(n-1)$ square is divided into $(n-1)^{2}$ unit squares in the usual manner. Each of the $n^{2}$ vertices of these squares is to be colored red or blue. Find the number of different colorings such that each unit square has exactly two red vertices. (Two coloring schemes are regarded as different if at least one vertex is colored differently in the two schemes.) 26. C3 (USA) Let $k, m, n$ be integers such that $11$, then the $k$ th term from the left in $R_{n}$ is equal to 1 if and only if the $k$ th term from the right in $R_{n}$ is different from 1. 3. (GER) For each finite set $U$ of nonzero vectors in the plane we define $l(U)$ to be the length of the vector that is the sum of all vectors in $U$. Given a finite set $V$ of nonzero vectors in the plane, a subset $B$ of $V$ is said to be maximal if $l(B)$ is greater than or equal to $l(A)$ for each nonempty subset $A$ of $V$. (a) Construct sets of 4 and 5 vectors that have 8 and 10 maximal subsets respectively. (b) Show that for any set $V$ consisting of $n \geq 1$ vectors, the number of maximal subsets is less than or equal to $2 n$. 4. (IRN) ${ }^{\mathrm{IMO} 4} \mathrm{An} n \times n$ matrix with entries from $\{1,2, \ldots, 2 n-1\}$ is called a coveralls matrix if for each $i$ the union of the $i$ th row and the $i$ th column contains $2 n-1$ distinct entries. Show that: (a) There exist no coveralls matrices for $n=1997$. (b) Coveralls matrices exist for infinitely many values of $n$. 5. (ROM) Let $A B C D$ be a regular tetrahedron and $M, N$ distinct points in the planes $A B C$ and $A D C$ respectively. Show that the segments $M N, B N, M D$ are the sides of a triangle. 6. (IRE) (a) Let $n$ be a positive integer. Prove that there exist distinct positive integers $x, y, z$ such that $$ x^{n-1}+y^{n}=z^{n+1} . $$ (b) Let $a, b, c$ be positive integers such that $a$ and $b$ are relatively prime and $c$ is relatively prime either to $a$ or to $b$. Prove that there exist infinitely many triples $(x, y, z)$ of distinct positive integers $x, y, z$ such that $$ x^{a}+y^{b}=z^{c} . $$ Original formulation: Let $a, b, c, n$ be positive integers such that $n$ is odd and $a c$ is relatively prime to $2 b$. Prove that there exist distinct positive integers $x, y, z$ such that (i) $x^{a}+y^{b}=z^{c}$, and (ii) $x y z$ is relatively prime to $n$. 7. (RUS) Let $A B C D E F$ be a convex hexagon such that $A B=B C, C D=$ $D E, E F=F A$. Prove that $$ \frac{B C}{B E}+\frac{D E}{D A}+\frac{F A}{F C} \geq \frac{3}{2} $$ When does equality occur? 8. (GBR) ${ }^{\mathrm{IMO} 2}$ Four different points $A, B, C, D$ are chosen on a circle $\Gamma$ such that the triangle $B C D$ is not right-angled. Prove that: (a) The perpendicular bisectors of $A B$ and $A C$ meet the line $A D$ at certain points $W$ and $V$, respectively, and that the lines $C V$ and $B W$ meet at a certain point $T$. (b) The length of one of the line segments $A D, B T$, and $C T$ is the sum of the lengths of the other two. Original formulation. In triangle $A B C$ the angle at $A$ is the smallest. A line through $A$ meets the circumcircle again at the point $U$ lying on the $\operatorname{arc} B C$ opposite to $A$. The perpendicular bisectors of $C A$ and $A B$ meet $A U$ at $V$ and $W$, respectively, and the lines $C V, B W$ meet at $T$. Show that $A U=T B+T C$. 9. (USA) Let $A_{1} A_{2} A_{3}$ be a nonisosceles triangle with incenter $I$. Let $C_{i}$, $i=1,2,3$, be the smaller circle through $I$ tangent to $A_{i} A_{i+1}$ and $A_{i} A_{i+2}$ (the addition of indices being mod 3 ). Let $B_{i}, i=1,2,3$, be the second point of intersection of $C_{i+1}$ and $C_{i+2}$. Prove that the circumcenters of the triangles $A_{1} B_{1} I, A_{2} B_{2} I, A_{3} B_{3} I$ are collinear. 10. ( $\mathbf{C Z E}$ ) Find all positive integers $k$ for which the following statement is true: If $F(x)$ is a polynomial with integer coefficients satisfying the condition $$ 0 \leq F(c) \leq k \quad \text { for each } c \in\{0,1, \ldots, k+1\} $$ then $F(0)=F(1)=\cdots=F(k+1)$. 11. (NET) Let $P(x)$ be a polynomial with real coefficients such that $P(x)>$ 0 for all $x \geq 0$. Prove that there exists a positive integer $n$ such that $(1+x)^{n} P(x)$ is a polynomial with nonnegative coefficients. 12. (ITA) Let $p$ be a prime number and let $f(x)$ be a polynomial of degree $d$ with integer coefficients such that: (i) $f(0)=0, f(1)=1$; (ii) for every positive integer $n$, the remainder of the division of $f(n)$ by $p$ is either 0 or 1. Prove that $d \geq p-1$. 13. (IND) In town $A$, there are $n$ girls and $n$ boys, and each girl knows each boy. In town $B$, there are $n$ girls $g_{1}, g_{2}, \ldots, g_{n}$ and $2 n-1$ boys $b_{1}, b_{2}, \ldots$, $b_{2 n-1}$. The girl $g_{i}, i=1,2, \ldots, n$, knows the boys $b_{1}, b_{2}, \ldots, b_{2 i-1}$, and no others. For all $r=1,2, \ldots, n$, denote by $A(r), B(r)$ the number of different ways in which $r$ girls from town $A$, respectively town $B$, can dance with $r$ boys from their own town, forming $r$ pairs, each girl with a boy she knows. Prove that $A(r)=B(r)$ for each $r=1,2, \ldots, n$. 14. (IND) Let $b, m, n$ be positive integers such that $b>1$ and $m \neq n$. Prove that if $b^{m}-1$ and $b^{n}-1$ have the same prime divisors, then $b+1$ is a power of 2 . 15. (RUS) An infinite arithmetic progression whose terms are positive integers contains the square of an integer and the cube of an integer. Show that it contains the sixth power of an integer. 16. (BLR) In an acute-angled triangle $A B C$, let $A D, B E$ be altitudes and $A P, B Q$ internal bisectors. Denote by $I$ and $O$ the incenter and the circumcenter of the triangle, respectively. Prove that the points $D, E$, and $I$ are collinear if and only if the points $P, Q$, and $O$ are collinear. 17. $(\mathbf{C Z E})^{\mathrm{IMO} 5}$ Find all pairs of integers $x, y \geq 1$ satisfying the equation $x^{y^{2}}=y^{x}$. 18. (GBR) The altitudes through the vertices $A, B, C$ of an acute-angled triangle $A B C$ meet the opposite sides at $D, E, F$, respectively. The line through $D$ parallel to $E F$ meets the lines $A C$ and $A B$ at $Q$ and $R$, respectively. The line $E F$ meets $B C$ at $P$. Prove that the circumcircle of the triangle $P Q R$ passes through the midpoint of $B C$. 19. (IRE) Let $a_{1} \geq \cdots \geq a_{n} \geq a_{n+1}=0$ be a sequence of real numbers. Prove that $$ \sqrt{\sum_{k=1}^{n} a_{k}} \leq \sum_{k=1}^{n} \sqrt{k}\left(\sqrt{a_{k}}-\sqrt{a_{k+1}}\right) $$ 20. (IRE) Let $D$ be an internal point on the side $B C$ of a triangle $A B C$. The line $A D$ meets the circumcircle of $A B C$ again at $X$. Let $P$ and $Q$ be the feet of the perpendiculars from $X$ to $A B$ and $A C$, respectively, and let $\gamma$ be the circle with diameter $X D$. Prove that the line $P Q$ is tangent to $\gamma$ if and only if $A B=A C$. 21. (RUS) ${ }^{\mathrm{IMO} 3}$ Let $x_{1}, x_{2}, \ldots, x_{n}$ be real numbers satisfying the conditions $$ \left|x_{1}+x_{2}+\cdots+x_{n}\right|=1 \quad \text { and } \quad\left|x_{i}\right| \leq \frac{n+1}{2} \quad \text { for } \quad i=1,2, \ldots, n $$ Show that there exists a permutation $y_{1}, \ldots, y_{n}$ of the sequence $x_{1}, \ldots, x_{n}$ such that $$ \left|y_{1}+2 y_{2}+\cdots+n y_{n}\right| \leq \frac{n+1}{2} $$ 22. (UKR) (a) Do there exist functions $f: \mathbb{R} \rightarrow \mathbb{R}$ and $g: \mathbb{R} \rightarrow \mathbb{R}$ such that $$ f(g(x))=x^{2} \quad \text { and } \quad g(f(x))=x^{3} \quad \text { for all } x \in \mathbb{R} ? $$ (b) Do there exist functions $f: \mathbb{R} \rightarrow \mathbb{R}$ and $g: \mathbb{R} \rightarrow \mathbb{R}$ such that $$ f(g(x))=x^{2} \quad \text { and } \quad g(f(x))=x^{4} \quad \text { for all } x \in \mathbb{R} ? $$ 23. (GBR) Let $A B C D$ be a convex quadrilateral and $O$ the intersection of its diagonals $A C$ and $B D$. If $$ O A \sin \angle A+O C \sin \angle C=O B \sin \angle B+O D \sin \angle D, $$ prove that $A B C D$ is cyclic. 24. (LIT) ${ }^{\mathrm{IMO} 6}$ For a positive integer $n$, let $f(n)$ denote the number of ways to represent $n$ as the sum of powers of 2 with nonnegative integer exponents. Representations that differ only in the ordering in their summands are not considered to be distinct. (For instance, $f(4)=4$ because the number 4 can be represented in the following four ways: $4 ; 2+2 ; 2+1+1 ; 1+1+1+1$.) Prove that the inequality $$ 2^{n^{2} / 4}3$ be a prime number. For each nonempty subset $T$ of $\{0,1,2,3, \ldots, p-1\}$ let $E(T)$ be the set of all $(p-1)$-tuples $\left(x_{1}, \ldots, x_{p-1}\right)$, where each $x_{i} \in T$ and $x_{1}+2 x_{2}+\cdots+(p-1) x_{p-1}$ is divisible by $p$ and let $|E(T)|$ denote the number of elements in $E(T)$. Prove that $$ |E(\{0,1,3\})| \geq|E(\{0,1,2\})|, $$ with equality if and only if $p=5$. ### 3.41 The Forty-First IMO
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. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-317.jpg?height=175&width=141&top_left_y=739&top_left_x=725) 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 / 22 a$ and $c>2 b$. Show that there exists a real number $t$ with the property that all the three numbers $t a, t b, t c$ have their fractional parts lying in the interval (1/3,2/3]. 9. A3 (BLR) Find all pairs of functions $f: \mathbb{R} \rightarrow \mathbb{R}, g: \mathbb{R} \rightarrow \mathbb{R}$ such that $$ f(x+g(y))=x f(y)-y f(x)+g(x) \quad \text { for all } x, y \in R $$ 10. A4 (GBR) The function $F$ is defined on the set of nonnegative integers and takes nonnegative integer values satisfying the following conditions: For every $n \geq 0$, (i) $F(4 n)=F(2 n)+F(n)$; (ii) $F(4 n+2)=F(4 n)+1$; (iii) $F(2 n+1)=F(2 n)+1$. Prove that for each positive integer $m$, the number of integers $n$ with $0 \leq n<2^{m}$ and $F(4 n)=F(3 n)$ is $F\left(2^{m+1}\right)$. 11. A5 (BLR) ${ }^{\mathrm{IMO} 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$. 12. A6 (IRE) A nonempty set $A$ of real numbers is called a $B_{3}$-set if the conditions $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}, a_{6} \in A$ and $a_{1}+a_{2}+a_{3}=a_{4}+a_{5}+a_{6}$ imply that the sequences $\left(a_{1}, a_{2}, a_{3}\right)$ and $\left(a_{4}, a_{5}, a_{6}\right)$ are identical up to a permutation. Let $A=\left\{a_{0}=0b>c>d$ be positive integers and suppose $$ a c+b d=(b+d+a-c)(b+d-a+c) $$ Prove that $a b+c d$ is not prime. ### 3.42.2 Shortlisted Problems 1. A1 (IND) Let $T$ denote the set of all ordered triples $(p, q, r)$ of nonnegative integers. Find all functions $f: T \rightarrow \mathbb{R}$ such that $$ f(p, q, r)=\left\{\begin{array}{rrr} 0 & & \text { if } p q r=0 \\ 1+\frac{1}{6} & (f(p+1, q-1, r)+f(p-1, q+1, r) & \\ & +f(p-1, q, r+1)+f(p+1, q, r-1) & \\ & +f(p, q+1, r-1)+f(p, q-1, r+1)) & \\ & \text { otherwise. } \end{array}\right. $$ 2. A2 (POL) Let $a_{0}, a_{1}, a_{2}, \ldots$ be an arbitrary infinite sequence of positive numbers. Show that the inequality $1+a_{n}>a_{n-1} \sqrt[n]{2}$ holds for infinitely many positive integers $n$. 3. A3 (ROM) Let $x_{1}, x_{2}, \ldots, x_{n}$ be arbitrary real numbers. Prove the inequality $$ \frac{x_{1}}{1+x_{1}^{2}}+\frac{x_{2}}{1+x_{1}^{2}+x_{2}^{2}}+\cdots+\frac{x_{n}}{1+x_{1}^{2}+\cdots+x_{n}^{2}}<\sqrt{n} $$ 4. A4 (LIT) Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfying $$ f(x y)(f(x)-f(y))=(x-y) f(x) f(y) $$ for all $x, y$. 5. A5 (BUL) Find all positive integers $a_{1}, a_{2}, \ldots, a_{n}$ such that $$ \frac{99}{100}=\frac{a_{0}}{a_{1}}+\frac{a_{1}}{a_{2}}+\cdots+\frac{a_{n-1}}{a_{n}} $$ where $a_{0}=1$ and $\left(a_{k+1}-1\right) a_{k-1} \geq a_{k}^{2}\left(a_{k}-1\right)$ for $k=1,2, \ldots, n-1$. 6. A6 (KOR) ${ }^{\mathrm{IMO} 2}$ Prove that for all positive real numbers $a, b, c$, $$ \frac{a}{\sqrt{a^{2}+8 b c}}+\frac{a}{\sqrt{b^{2}+8 c a}}+\frac{c}{\sqrt{c^{2}+8 a b}} \geq 1 $$ 7. $\mathbf{C 1}$ (COL) Let $A=\left(a_{1}, a_{2}, \ldots, a_{2001}\right)$ be a sequence of positive integers. Let $m$ be the number of 3 -element subsequences $\left(a_{i}, a_{j}, a_{k}\right)$ with $1 \leq i<$ $jb>c>d$ be positive integers and suppose $$ a c+b d=(b+d+a-c)(b+d-a+c) . $$ Prove that $a b+c d$ is not prime. 28. N6 (RUS) Is it possible to find 100 positive integers not exceeding 25,000 such that all pairwise sums of them are different? ### 3.43 The Forty-Third IMO Glasgow, United Kingdom, July 19-30, 2002 ### 3.43.1 Contest Problems First Day (July 24) 1. Let $n$ be a positive integer. Each point $(x, y)$ in the plane, where $x$ and $y$ are nonnegative integers with $x+y=n$, is colored red or blue, subject to the following condition: If a point $(x, y)$ is red, then so are all points $\left(x^{\prime}, y^{\prime}\right)$ with $x^{\prime} \leq x$ and $y^{\prime} \leq y$. Let $A$ be the number of ways to choose $n$ blue points with distinct $x$-coordinates, and let $B$ be the number of ways to choose $n$ blue points with distinct $y$-coordinates. Prove that $A=B$. 2. The circle $S$ has center $O$, and $B C$ is a diameter of $S$. Let $A$ be a point of $S$ such that $\measuredangle A O B<120^{\circ}$. Let $D$ be the midpoint of the $\operatorname{arc} A B$ that does not contain $C$. The line through $O$ parallel to $D A$ meets the line $A C$ at $I$. The perpendicular bisector of $O A$ meets $S$ at $E$ and at $F$. Prove that $I$ is the incenter of the triangle $C E F$. 3. Find all pairs of positive integers $m, n \geq 3$ for which there exist infinitely many positive integers $a$ such that $$ \frac{a^{m}+a-1}{a^{n}+a^{2}-1} $$ is itself an integer. Second Day (July 25) 4. Let $n \geq 2$ be a positive integer, with divisors $1=d_{1} Athens, Greece, July 7-19, 2004 ### 3.45.1 Contest Problems First Day (July 12) 1. Let $A B C$ be an acute-angled triangle with $A B \neq A C$. The circle with diameter $B C$ intersects the sides $A B$ and $A C$ at $M$ and $N$, respectively. Denote by $O$ the midpoint of $B C$. The bisectors of the angles $B A C$ and $M O N$ intersect at $R$. Prove that the circumcircles of the triangles $B M R$ and $C N R$ have a common point lying on the line segment $B C$. 2. Find all polynomials $P(x)$ with real coefficients that satisfy the equality $$ P(a-b)+P(b-c)+P(c-a)=2 P(a+b+c) $$ for all triples $a, b, c$ of real numbers such that $a b+b c+c a=0$. 3. Determine all $m \times n$ rectangles that can be covered with hooks made up of 6 unit squares, as in the figure: ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-336.jpg?height=148&width=142&top_left_y=1060&top_left_x=724) Rotations and reflections of hooks are allowed. The rectangle must be covered without gaps and overlaps. No part of a hook may cover area outside the rectangle. Second Day (July 13) 4. Let $n \geq 3$ be an integer and $t_{1}, t_{2}, \ldots, t_{n}$ positive real numbers such that $$ n^{2}+1>\left(t_{1}+t_{2}+\cdots+t_{n}\right)\left(\frac{1}{t_{1}}+\frac{1}{t_{2}}+\cdots+\frac{1}{t_{n}}\right) . $$ Show that $t_{i}, t_{j}, t_{k}$ are the side lengths of a triangle for all $i, j, k$ with $1 \leq i\left(t_{1}+t_{2}+\cdots+t_{n}\right)\left(\frac{1}{t_{1}}+\frac{1}{t_{2}}+\cdots+\frac{1}{t_{n}}\right) . $$ Show that $t_{i}, t_{j}, t_{k}$ are the side lengths of a triangle for all $i, j, k$ with $1 \leq i0$ and $a b+b c+c a=1$. Prove the inequality $$ \sqrt[3]{\frac{1}{a}+6 b}+\sqrt[3]{\frac{1}{b}+6 c}+\sqrt[3]{\frac{1}{c}+6 a} \leq \frac{1}{a b c} $$ 6. A6 (RUS) Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfying the equation $$ f\left(x^{2}+y^{2}+2 f(x y)\right)=(f(x+y))^{2} \quad \text { for all } x, y \in \mathbb{R} $$ 7. A7 (IRE) Let $a_{1}, a_{2}, \ldots, a_{n}$ be positive real numbers, $n>1$. Denote by $g_{n}$ their geometric mean, and by $A_{1}, A_{2}, \ldots, A_{n}$ the sequence of arithmetic means defined by $A_{k}=\frac{a_{1}+a_{2}+\cdots+a_{k}}{k}, k=1,2, \ldots, n$. Let $G_{n}$ be the geometric mean of $A_{1}, A_{2}, \ldots, A_{n}$. Prove the inequality $$ n \sqrt[n]{\frac{G_{n}}{A_{n}}}+\frac{g_{n}}{G_{n}} \leq n+1 $$ and establish the cases of equality. 8. C1 (PUR) There are 10001 students at a university. Some students join together to form several clubs (a student may belong to different clubs). Some clubs join together to form several societies (a club may belong to different societies). There are a total of $k$ societies. Suppose that the following conditions hold: (i) Each pair of students are in exactly one club. (ii) For each student and each society, the student is in exactly one club of the society. (iii) Each club has an odd number of students. In addition, a club with $2 m+1$ students ( $m$ is a positive integer) is in exactly $m$ societies. Find all possible values of $k$. 9. C2 (GER) Let $n$ and $k$ be positive integers. There are given $n$ circles in the plane. Every two of them intersect at two distinct points, and all points of intersection they determine are distinct. Each intersection point must be colored with one of $n$ distinct colors so that each color is used at least once, and exactly $k$ distinct colors occur on each circle. Find all values of $n \geq 2$ and $k$ for which such a coloring is possible. 10. C3 (AUS) The following operation is allowed on a finite graph: Choose an arbitrary cycle of length 4 (if there is any), choose an arbitrary edge in that cycle, and delete it from the graph. For a fixed integer $n \geq 4$, find the least number of edges of a graph that can be obtained by repeated applications of this operation from the complete graph on $n$ vertices (where each pair of vertices are joined by an edge). 11. C4 (POL) Consider a matrix of size $n \times n$ whose entries are real numbers of absolute value not exceeding 1 , and the sum of all entries is 0 . Let $n$ be an even positive integer. Determine the least number $C$ such that every such matrix necessarily has a row or a column with the sum of its entries not exceeding $C$ in absolute value. 12. C5 (NZL) Let $N$ be a positive integer. Two players $A$ and $B$, taking turns, write numbers from the set $\{1, \ldots, N\}$ on a blackboard. $A$ begins the game by writing 1 on his first move. Then, if a player has written $n$ on a certain move, his adversary is allowed to write $n+1$ or $2 n$ (provided the number he writes does not exceed $N$ ). The player who writes $N$ wins. We say that $N$ is of type $A$ or of type $B$ according as $A$ or $B$ has a winning strategy. (a) Determine whether $N=2004$ is of type $A$ or of type $B$. (b) Find the least $N>2004$ whose type is different from that of 2004. 13. C6 (IRN) For an $n \times n$ matrix $A$, let $X_{i}$ be the set of entries in row $i$, and $Y_{j}$ the set of entries in column $j, 1 \leq i, j \leq n$. We say that $A$ is golden if $X_{1}, \ldots, X_{n}, Y_{1}, \ldots, Y_{n}$ are distinct sets. Find the least integer $n$ such that there exists a $2004 \times 2004$ golden matrix with entries in the set $\{1,2, \ldots, n\}$. 14. C7 (EST) ${ }^{\mathrm{IMO} 3}$ Determine all $m \times n$ rectangles that can be covered with hooks made up of 6 unit squares, as in the figure: ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-338.jpg?height=153&width=150&top_left_y=1988&top_left_x=722) Rotations and reflections of hooks are allowed. The rectangle must be covered without gaps and overlaps. No part of a hook may cover area outside the rectangle. 15. C8 (POL) For a finite graph $G$, let $f(G)$ be the number of triangles and $g(G)$ the number of tetrahedra formed by edges of $G$. Find the least constant $c$ such that $$ g(G)^{3} \leq c \cdot f(G)^{4} \text { for every graph } G $$ 16. G1 (ROM) ${ }^{\mathrm{IMO} 1}$ Let $A B C$ be an acute-angled triangle with $A B \neq A C$. The circle with diameter $B C$ intersects the sides $A B$ and $A C$ at $M$ and $N$, respectively. Denote by $O$ the midpoint of $B C$. The bisectors of the angles $B A C$ and $M O N$ intersect at $R$. Prove that the circumcircles of the triangles $B M R$ and $C N R$ have a common point lying on the line segment $B C$. 17. G2 (KAZ) The circle $\Gamma$ and the line $\ell$ do not intersect. Let $A B$ be the diameter of $\Gamma$ perpendicular to $\ell$, with $B$ closer to $\ell$ than $A$. An arbitrary point $C \neq A, B$ is chosen on $\Gamma$. The line $A C$ intersects $\ell$ at $D$. The line $D E$ is tangent to $\Gamma$ at $E$, with $B$ and $E$ on the same side of $A C$. Let $B E$ intersect $\ell$ at $F$, and let $A F$ intersect $\Gamma$ at $G \neq A$. Prove that the reflection of $G$ in $A B$ lies on the line $C F$. 18. G3 (KOR) Let $O$ be the circumcenter of an acute-angled triangle $A B C$ with $\angle B<\angle C$. The line $A O$ meets the side $B C$ at $D$. The circumcenters of the triangles $A B D$ and $A C D$ are $E$ and $F$, respectively. Extend the sides $B A$ and $C A$ beyond $A$, and choose on the respective extension points $G$ and $H$ such that $A G=A C$ and $A H=A B$. Prove that the quadrilateral $E F G H$ is a rectangle if and only if $\angle A C B-\angle A B C=60^{\circ}$. 19. $\mathbf{G} 4 \mathbf{( P O L})^{\mathrm{IMO}}$ In a convex quadrilateral $A B C D$ the diagonal $B D$ does not bisect the angles $A B C$ and $C D A$. The point $P$ lies inside $A B C D$ and satisfies $$ \angle P B C=\angle D B A \quad \text { and } \quad \angle P D C=\angle B D A . $$ Prove that $A B C D$ is a cyclic quadrilateral if and only if $A P=C P$. 20. G5 (SMN) Let $A_{1} A_{2} \ldots A_{n}$ be a regular $n$-gon. The points $B_{1}, \ldots, B_{n-1}$ are defined as follows: (i) If $i=1$ or $i=n-1$, then $B_{i}$ is the midpoint of the side $A_{i} A_{i+1}$. (ii) If $i \neq 1, i \neq n-1$, and $S$ is the intersection point of $A_{1} A_{i+1}$ and $A_{n} A_{i}$, then $B_{i}$ is the intersection point of the bisector of the angle $A_{i} S A_{i+1}$ with $A_{i} A_{i+1}$. Prove the equality $$ \angle A_{1} B_{1} A_{n}+\angle A_{1} B_{2} A_{n}+\cdots+\angle A_{1} B_{n-1} A_{n}=180^{\circ} . $$ 21. G6 (GBR) Let $\mathcal{P}$ be a convex polygon. Prove that there is a convex hexagon that is contained in $\mathcal{P}$ and that occupies at least 75 percent of the area of $\mathcal{P}$. 22. G7 (RUS) For a given triangle $A B C$, let $X$ be a variable point on the line $B C$ such that $C$ lies between $B$ and $X$ and the incircles of the triangles $A B X$ and $A C X$ intersect at two distinct points $P$ and $Q$. Prove that the line $P Q$ passes through a point independent of $X$. 23. G8 (SMN) A cyclic quadrilateral $A B C D$ is given. The lines $A D$ and $B C$ intersect at $E$, with $C$ between $B$ and $E$; the diagonals $A C$ and $B D$ intersect at $F$. Let $M$ be the midpoint of the side $C D$, and let $N \neq M$ be a point on the circumcircle of the triangle $A B M$ such that $A N / B N=$ $A M / B M$. Prove that the points $E, F$, and $N$ are collinear. 24. N1 (BLR) Let $\tau(n)$ denote the number of positive divisors of the positive integer $n$. Prove that there exist infinitely many positive integers $a$ such that the equation $$ \tau(a n)=n $$ does not have a positive integer solution $n$. 25. N2 (RUS) The function $\psi$ from the set $\mathbb{N}$ of positive integers into itself is defined by the equality $$ \psi(n)=\sum_{k=1}^{n}(k, n), \quad n \in \mathbb{N} $$ where $(k, n)$ denotes the greatest common divisor of $k$ and $n$. (a) Prove that $\psi(m n)=\psi(m) \psi(n)$ for every two relatively prime $m, n \in$ $\mathbb{N}$. (b) Prove that for each $a \in \mathbb{N}$ the equation $\psi(x)=a x$ has a solution. (c) Find all $a \in \mathbb{N}$ such that the equation $\psi(x)=a x$ has a unique solution. 26. N3 (IRN) A function $f$ from the set of positive integers $\mathbb{N}$ into itself is such that for all $m, n \in \mathbb{N}$ the number $\left(m^{2}+n\right)^{2}$ is divisible by $f^{2}(m)+$ $f(n)$. Prove that $f(n)=n$ for each $n \in \mathbb{N}$. 27. N4 (POL) Let $k$ be a fixed integer greater than 1 , and let $m=4 k^{2}-5$. Show that there exist positive integers $a$ and $b$ such that the sequence $\left(x_{n}\right)$ defined by $$ x_{0}=a, \quad x_{1}=b, \quad x_{n+2}=x_{n+1}+x_{n} \quad \text { for } \quad n=0,1,2, \ldots $$ has all of its terms relatively prime to $m$. 28. N5 (IRN) ${ }^{\mathrm{IMO} 6}$ We call a positive integer alternate if its decimal digits are alternately odd and even. Find all positive integers $n$ such that $n$ has an alternate multiple. 29. N6 (IRE) Given an integer $n>1$, denote by $P_{n}$ the product of all positive integers $x$ less than $n$ and such that $n$ divides $x^{2}-1$. For each $n>1$, find the remainder of $P_{n}$ on division by $n$. 30. N7 (BUL) Let $p$ be an odd prime and $n$ a positive integer. In the coordinate plane, eight distinct points with integer coordinates lie on a circle with diameter of length $p^{n}$. Prove that there exists a triangle with vertices at three of the given points such that the squares of its side lengths are integers divisible by $p^{n+1}$. ## Solutions ### 4.1 Solutions to the Contest Problems of IMO 1959 1. The desired result $(14 n+3,21 n+4)=1$ follows from $$ 3(14 n+3)-2(21 n+4)=1 $$ 2. For the square roots to be real we must have $2 x-1 \geq 0 \Rightarrow x \geq 1 / 2$ and $x \geq \sqrt{2 x-1} \Rightarrow x^{2} \geq 2 x-1 \Rightarrow(x-1)^{2} \geq 0$, which always holds. Then we have $\sqrt{x+\sqrt{2 x-1}}+\sqrt{x-\sqrt{2 x-1}}=c \Longleftrightarrow$ $$ c^{2}=2 x+2 \sqrt{x^{2}-\sqrt{2 x-1}^{2}}=2 x+2|x-1|= \begin{cases}2, & 1 / 2 \leq x \leq 1 \\ 4 x-2, & x \geq 1\end{cases} $$ (a) $c^{2}=2$. The equation holds for $1 / 2 \leq x \leq 1$. (b) $c^{2}=1$. The equation has no solution. (c) $c^{2}=4$. The equation holds for $4 x-2=4 \Rightarrow x=3 / 2$. 3. Multiplying the equality by $4\left(a \cos ^{2} x-b \cos x+c\right)$, we obtain $4 a^{2} \cos ^{4} x+$ $2\left(4 a c-2 b^{2}\right) \cos ^{2} x+4 c^{2}=0$. Plugging in $2 \cos ^{2} x=1+\cos 2 x$ we obtain (after quite a bit of manipulation): $$ a^{2} \cos ^{2} 2 x+\left(2 a^{2}+4 a c-2 b^{2}\right) \cos 2 x+\left(a^{2}+4 a c-2 b^{2}+4 c^{2}\right)=0 $$ For $a=4, b=2$, and $c=-1$ we get $4 \cos ^{2} x+2 \cos x-1=0$ and $16 \cos ^{2} 2 x+8 \cos 2 x-4=0 \Rightarrow 4 \cos ^{2} 2 x+2 \cos 2 x-1=0$. 4. Analysis. Let $a$ and $b$ be the other two sides of the triangle. From the conditions of the problem we have $c^{2}=a^{2}+b^{2}$ and $c / 2=\sqrt{a b} \Leftrightarrow 3 / 2 c^{2}=$ $a^{2}+b^{2}+2 a b=(a+b)^{2} \Leftrightarrow \sqrt{3 / 2} c=a+b$. Given a desired $\triangle A B C$ let $D$ be a point on $(A C$ such that $C D=C B$. In that case, $A D=a+b=\sqrt{3 / 2} c$, and also, since $B C=C D$, it follows that $\angle A D B=45^{\circ}$. Construction. From a segment of length $c$ we elementarily construct a segment $A D$ of length $\sqrt{3 / 2} c$. We then construct a ray ( $D X$ such that $\angle A D X=45^{\circ}$ and a circle $k(A, c)$ that intersects the ray at point $B$. Finally, we construct the perpendicular from $B$ to $A D$; point $C$ is the foot of that perpendicular. Proof. It holds that $A B=c$, and, since $C B=C D$, it also holds that $A C+$ $C B=A C+C D=A D=\sqrt{3 / 2} c$. From this it follows that $\sqrt{A C \cdot C B}=$ $c / 2$. Since $B C$ is perpendicular to $A D$, it follows that $\measuredangle B C A=90^{\circ}$. Thus $A B C$ is the desired triangle. Discussion. Since $A B \sqrt{2}=\sqrt{2} c>\sqrt{3 / 2} c=A D>A B$, the circle $k$ intersects the ray $D X$ in exactly two points, which correspond to two symmetric solutions. 5. (a) It suffices to prove that $A F \perp B C$, since then for the intersection point $X$ we have $\angle A X C=\angle B X F=90^{\circ}$, implying that $X$ belongs to the circumcircles of both squares and thus that $X=N$. The relation $A F \perp B C$ holds because from $M A=M C, M F=M B$, and $\angle A M C=\angle F M B$ it follows that $\triangle A M F$ is obtained by rotating $\triangle B M C$ by $90^{\circ}$ around $M$. (b) Since $N$ is on the circumcircle of $B M F E$, it follows that $\angle A N M=$ $\angle M N B=45^{\circ}$. Hence $M N$ is the bisector of $\angle A N B$. It follows that $M N$ passes through the midpoint of the $\operatorname{arc} \widehat{A B}$ of the circle with diameter $A B$ (i.e., the circumcircle of $\triangle A B N$ ) not containing $N$. (c) Let us introduce a coordinate system such that $A=(0,0), B=(b, 0)$, and $M=(m, 0)$. Setting in general $W=\left(x_{W}, y_{W}\right)$ for an arbitrary point $W$ and denoting by $R$ the midpoint of $P Q$, we have $y_{R}=\left(y_{P}+\right.$ $\left.y_{Q}\right) / 2=(m+b-m) / 4=b / 4$ and $x_{R}=\left(x_{P}+x_{Q}\right) / 2=(m+m+b) / 4=$ $(2 m+b) / 4$, the parameter $m$ varying from 0 to $b$. Thus the locus of all points $R$ is the closed segment $R_{1} R_{2}$ where $R_{1}=(b / 4, b / 4)$ and $R_{2}=(b / 4,3 b / 4)$. 6. Analysis. For $A B \| C D$ to hold evidently neither must intersect $p$ and hence constructing lines $r$ in $\alpha$ through $A$ and $s$ in $\beta$ through $C$, both being parallel to $p$, we get that $B \in r$ and $D \in s$. Hence the problem reduces to a planar problem in $\gamma$, determined by $r$ and $s$. Denote by $A^{\prime}$ the foot of the perpendicular from $A$ to $s$. Since $A B C D$ is isosceles and has an incircle, it follows $A D=B C=(A B+C D) / 2=A^{\prime} C$. The remaining parts of the problem are now obvious. ### 4.2 Solutions to the Contest Problems of IMO 1960 1. Given the number $\overline{a c b}$, since $11 \mid \overline{a c b}$, it follows that $c=a+b$ or $c=$ $a+b-11$. In the first case, $a^{2}+b^{2}+(a+b)^{2}=10 a+b$, and in the second case, $a^{2}+b^{2}+(a+b-11)^{2}=10(a-1)+b$. In the first case the LHS is even, and hence $b \in\{0,2,4,6,8\}$, while in the second case it is odd, and hence $b \in\{1,3,5,7,9\}$. Analyzing the 10 quadratic equations for $a$ we obtain that the only valid solutions are 550 and 803. 2. The LHS term is well-defined for $x \geq-1 / 2$ and $x \neq 0$. Furthermore, $4 x^{2} /(1-\sqrt{1+2 x})^{2}=(1+\sqrt{1+2 x})^{2}$. Since $f(x)=(1+\sqrt{1+2 x})^{2}-2 x-$ $9=2 \sqrt{1+2 x}-7$ is increasing and since $f(45 / 8)=0$, it follows that the inequality holds precisely for $-1 / 2 \leq x<45 / 8$ and $x \neq 0$. 3. Let $B^{\prime} C^{\prime}$ be the middle of the $n=2 k+1$ segments and let $D$ be the foot of the perpendicular from $A$ to the hypotenuse. Let us assume $\mathcal{B}\left(C, D, C^{\prime}, B^{\prime}, B\right)$. Then from $C Da b$ there are two solutions, if $h^{2}=a b$ there is only one solution, and if $h^{2}
a^{2}>b^{2}$ and $a>0$. 2. Using $S=b c \sin \alpha / 2, a^{2}=b^{2}+c^{2}-2 b c \cos \alpha$ and $(\sqrt{3} \sin \alpha+\cos \alpha) / 2=$ $\cos \left(\alpha-60^{\circ}\right)$ we have $$ \begin{gathered} a^{2}+b^{2}+c^{2} \geq 4 S \sqrt{3} \Leftrightarrow b^{2}+c^{2} \geq b c(\sqrt{3} \sin \alpha+\cos \alpha) \Leftrightarrow \\ \Leftrightarrow(b-c)^{2}+2 b c\left(1-\cos \left(\alpha-60^{\circ}\right)\right) \geq 0, \end{gathered} $$ where equality holds if and only if $b=c$ and $\alpha=60^{\circ}$, i.e., if the triangle is equilateral. 3. For $n \geq 2$ we have $$ \begin{aligned} 1 & =\cos ^{n} x-\sin ^{n} x \leq\left|\cos ^{n} x-\sin ^{n} x\right| \\ & \leq\left|\cos ^{n} x\right|+\left|\sin ^{n} x\right| \leq \cos ^{2} x+\sin ^{2} x=1 \end{aligned} $$ Hence $\sin ^{2} x=\left|\sin ^{n} x\right|$ and $\cos ^{2} x=\left|\cos ^{n} x\right|$, from which it follows that $\sin x, \cos x \in\{1,0,-1\} \Rightarrow x \in \pi \mathbb{Z} / 2$. By inspection one obtains the set of solutions $\{m \pi \mid m \in \mathbb{Z}\}$ for even $n$ and $\{2 m \pi, 2 m \pi-\pi / 2 \mid m \in \mathbb{Z}\}$ for odd $n$. For $n=1$ we have $1=\cos x-\sin x=-\sqrt{2} \sin (x-\pi / 4)$, which yields the set of solutions $$ \{2 m \pi, 2 m \pi-\pi / 2 \mid m \in \mathbb{Z}\} $$ 4. Let $x_{i}=P P_{i} / P Q_{i}$ for $i=1,2,3$. For all $i$ we have $$ \frac{1}{x_{i}+1}=\frac{P Q_{i}}{P_{i} Q_{i}}=\frac{S_{P P_{j} P_{k}}}{S_{P_{1} P_{2} P_{3}}} $$ where the indices $j$ and $k$ are distinct and different from $i$. Hence we have $$ \begin{aligned} f\left(x_{1}, x_{2}, x_{3}\right) & =\frac{1}{x_{1}+1}+\frac{1}{x_{2}+1}+\frac{1}{x_{3}+1} \\ & =\frac{S\left(P P_{2} P_{3}\right)+S\left(P P_{1} P_{3}\right)+S\left(P P_{2} P_{3}\right)}{S\left(P_{1} P_{2} P_{3}\right)}=1 \end{aligned} $$ It follows that $1 /\left(x_{i}+1\right) \geq 1 / 3$ for some $i$ and $1 /\left(x_{j}+1\right) \leq 1 / 3$ for some $j$. Consequently, $x_{i} \leq 2$ and $x_{j} \geq 2$. 5. Analysis. Let $C_{1}$ be the midpoint of $A B$. In $\triangle A M B$ we have $M C_{1}=b / 2$, $A B=c$, and $\angle A M B=\omega$. Thus, given $A B=c$, the point $M$ is at the intersection of the circle $k\left(C^{\prime}, b / 2\right)$ and the set of points $e$ that view $A B$ at an angle of $\omega$. The construction of $A B C$ is now obvious. Discussion. It suffices to establish the conditions for which $k$ and $e$ intersect. Let $E$ be the midpoint of one of the arcs that make up $e$. A necessary and sufficient condition for $k$ to intersect $e$ is $$ \frac{c}{2}=C^{\prime} A \leq \frac{b}{2} \leq C^{\prime} E=\frac{c}{2} \cot \frac{\omega}{2} \Leftrightarrow b \tan \frac{\omega}{2} \leq c1 / 2$ and $f(1-\sqrt{31} / 8)=\sqrt{(1 / 4+\sqrt{31} / 4)^{2}}-$ $\sqrt{(1 / 4-\sqrt{31} / 4)^{2}}=1 / 2$. Hence the inequality is satisfied for $-1 \leq x<$ $1-\sqrt{31} / 8$. 3. By inspecting the four different stages of this periodic motion we easily obtain that the locus of the midpoints of $X Y$ is the edges of $M N C Q$, where $M, N$, and $Q$ are the centers of $A B B^{\prime} A^{\prime}, B C C^{\prime} B^{\prime}$, and $A B C D$, respectively. 4. Since $\cos 2 x=1+\cos ^{2} x$ and $\cos \alpha+\cos \beta=2 \cos \left(\frac{\alpha+\beta}{2}\right) \cos \left(\frac{\alpha-\beta}{2}\right)$, we have $\cos ^{2} x+\cos ^{2} 2 x+\cos ^{2} 3 x=1 \Leftrightarrow \cos 2 x+\cos 4 x+2 \cos ^{2} 3 x=$ $2 \cos 3 x(\cos x+\cos 3 x)=0 \Leftrightarrow 4 \cos 3 x \cos 2 x \cos x=0$. Hence the solutions are $x \in\{\pi / 2+m \pi, \pi / 4+m \pi / 2, \pi / 6+m \pi / 3 \mid m \in \mathbb{Z}\}$. 5. Analysis. Let $A B C D$ be the desired quadrilateral. Let us assume w.l.o.g. that $A B>B C$ (for $A B=B C$ the construction is trivial). For a tangent quadrilateral we have $A D-D C=A B-B C$. Let $X$ be a point on $A D$ such that $D X=D C$. We then have $A X=A B-B C$ and $\measuredangle A X C=$ $\measuredangle A D C+\measuredangle C D X=180^{\circ}-\angle A B C / 2$. Constructing $X$ and hence $D$ is now obvious. 6. This problem is a special case, when the triangle is isosceles, of Euler's formula, which holds for all triangles. 7. The spheres are arranged in a similar manner as in the planar case where we have one incircle and three excircles. Here we have one "insphere" and four "exspheres" corresponding to each of the four sides. Each vertex of the tetrahedron effectively has three tangent lines drawn from it to each of the five spheres. Repeatedly using the equality of the three tangent segments from a vertex (in the same vein as for tangent planar quadrilaterals) we obtain $S A+B C=S B+C A=S C+A B$ from the insphere. From the exsphere opposite of $S$ we obtain $S A-B C=S B-C A=S C-A B$, hence $S A=S B=S C$ and $A B=B C=C A$. By symmetry, we also have $A B=A C=A S$. Hence indeed, all the edges of the tetrahedron are equal in length and thus we have shown that the tetrahedron is regular. ### 4.5 Solutions to the Contest Problems of IMO 1963 1. Obviously, $x \geq 0$; hence squaring the given equation yields an equivalent equation $5 x^{2}-p-4+4 \sqrt{\left(x^{2}-1\right)\left(x^{2}-p\right)}=x^{2}$, i.e., $4 \sqrt{\left(x^{2}-1\right)\left(x^{2}-p\right)}=$ $(p+4)-4 x^{2}$. If $4 x^{2} \leq(p+4)$, we may square the equation once again to get $-16(p+1) x^{2}+16 p=-8(p+4) x^{2}+(p+4)^{2}$, which is equivalent to $x^{2}=(4-p)^{2} /[4(4-2 p)]$, i.e., $x=(4-p) /(2 \sqrt{4-2 p})$. For this to be a solution we must have $p \leq 2$ and $(4-p)^{2} /(4-2 p)=4 x^{2} \leq(p+4)$. Hence $4 / 3 \leq p \leq 2$. Otherwise there is no solution. 2. Let $A$ be the given point, $B C$ the given segment, and $\mathcal{B}_{1}, \mathcal{B}_{2}$ the closed balls with the diameters $A B$ and $A C$ respectively. Consider one right angle $\angle A O K$ with $K \in[B C]$. If $B^{\prime}, C^{\prime}$ are the feet of the perpendiculars from $B, C$ to $A O$ respectively, then $O$ lies on the segment $B^{\prime} C^{\prime}$, which implies that it lies on exactly one of the segments $A B^{\prime}, A C^{\prime}$. Hence $O$ belongs to exactly one of the balls $\mathcal{B}_{1}, \mathcal{B}_{2}$; i.e., $O \in \mathcal{B}_{1} \Delta \mathcal{B}_{2}$. This is obviously the required locus. 3. Let $\overrightarrow{O A_{1}}, \overrightarrow{O A_{2}}, \ldots, \overrightarrow{O A_{n}}$ be the vectors corresponding respectively to the edges $a_{1}, a_{2}, \ldots, a_{n}$ of the polygon. By the conditions of the problem, these vectors satisfy $\overrightarrow{O A_{1}}+\cdots+\overrightarrow{O A_{n}}=\overrightarrow{0}, \angle A_{1} O A_{2}=\angle A_{2} O A_{3}=\cdots=$ $\angle A_{n} O A_{1}=2 \pi / n$ and $O A_{1} \geq O A_{2} \geq \cdots \geq O A_{n}$. Our task is to prove that $O A_{1}=\cdots=O A_{n}$. Let $l$ be the line through $O$ perpendicular to $O A_{n}$, and $B_{1}, \ldots, B_{n-1}$ the projections of $A_{1}, \ldots, A_{n-1}$ onto $l$ respectively. By the assumptions, the sum of the $\overrightarrow{O B_{i}}$ 's is $\overrightarrow{0}$. On the other hand, since $O B_{i} \leq O B_{n-i}$ for all $i \leq n / 2$, all the sums $\overrightarrow{O B_{i}}+\overrightarrow{O B_{n-i}}$ lie on the same side of the point $O$. Hence all these sums must be equal to $\overrightarrow{0}$. Consequently, $O A_{i}=O A_{n-i}$, from which the result immediately follows. 4. Summing up all the equations yields $2\left(x_{1}+x_{2}+x_{3}+x_{4}+x_{5}\right)=y\left(x_{1}+\right.$ $x_{2}+x_{3}+x_{4}+x_{5}$ ). If $y=2$, then the given equations imply $x_{1}-x_{2}=$ $x_{2}-x_{3}=\cdots=x_{5}-x_{1}$; hence $x_{1}=x_{2}=\cdots=x_{5}$, which is clearly a solution. If $y \neq 2$, then $x_{1}+\cdots+x_{5}=0$, and summing the first three equalities gives $x_{2}=y\left(x_{1}+x_{2}+x_{3}\right)$. Using that $x_{1}+x_{3}=y x_{2}$ we obtain $x_{2}=\left(y^{2}+y\right) x_{2}$, i.e., $\left(y^{2}+y-1\right) x_{2}=0$. If $y^{2}+y-1 \neq 0$, then $x_{2}=0$, and similarly $x_{1}=\cdots=x_{5}=0$. If $y^{2}+y-1=0$, it is easy to prove that the last two equations are the consequence of the first three. Thus choosing any values for $x_{1}$ and $x_{5}$ will give exactly one solution for $x_{2}, x_{3}, x_{4}$. 5. The LHS of the desired identity equals $S=\cos (\pi / 7)+\cos (3 \pi / 7)+$ $\cos (5 \pi / 7)$. Now $$ S \sin \frac{\pi}{7}=\frac{\sin \frac{2 \pi}{7}}{2}+\frac{\sin \frac{4 \pi}{7}-\sin \frac{2 \pi}{7}}{2}+\frac{\sin \frac{6 \pi}{7}-\sin \frac{4 \pi}{7}}{2}=\frac{\sin \frac{6 \pi}{7}}{2} \Rightarrow S=\frac{1}{2} . $$ 6. The result is $E D A C B$. ### 4.6 Solutions to the Contest Problems of IMO 1964 1. Let $n=3 k+r$, where $0 \leq r<2$. Then $2^{n}=2^{3 k+r}=8^{k} \cdot 2^{r} \equiv 2^{r}(\bmod 7)$. Thus the remainder of $2^{n}$ modulo 7 is $1,2,4$ if $n \equiv 0,1,2(\bmod 3)$. Hence $2^{n}-1$ is divisible by 7 if and only if $3 \mid n$, while $2^{n}+1$ is never divisible by 7 . 2. By substituting $a=x+y, b=y+z$, and $c=z+x(x, y, z>0)$ the given inequality becomes $$ 6 x y z \leq x^{2} y+x y^{2}+y^{2} z+y z^{2}+z^{2} x+z x^{2}, $$ which follows immediately by the AM-GM inequality applied to $x^{2} y, x y^{2}$, $x^{2} z, x z^{2}, y^{2} z, y z^{2}$. 3. Let $r$ be the radius of the incircle of $\triangle A B C, r_{a}, r_{b}, r_{c}$ the radii of the smaller circles corresponding to $A, B, C$, and $h_{a}, h_{b}, h_{c}$ the altitudes from $A, B, C$ respectively. The coefficient of similarity between the smaller triangle at $A$ and the triangle $A B C$ is $1-2 r / h_{a}$, from which we easily obtain $r_{a}=\left(h_{a}-2 r\right) r / h_{a}=(s-a) r / s$. Similarly, $r_{b}=(s-b) r / s$ and $r_{c}=(s-c) r / s$. Now a straightforward computation gives that the sum of areas of the four circles is given by $$ \Sigma=\frac{(b+c-a)(c+a-b)(a+b-c)\left(a^{2}+b^{2}+c^{2}\right) \pi}{(a+b+c)^{3}} $$ 4. Let us call the topics $T_{1}, T_{2}, T_{3}$. Consider an arbitrary student $A$. By the pigeonhole principle there is a topic, say $T_{3}$, he discussed with at least 6 other students. If two of these 6 students discussed $T_{3}$, then we are done. Suppose now that the 6 students discussed only $T_{1}$ and $T_{2}$ and choose one of them, say $B$. By the pigeonhole principle he discussed one of the topics, say $T_{2}$, with three of these students. If two of these three students also discussed $T_{2}$, then we are done. Otherwise, all the three students discussed only $T_{1}$, which completes the task. 5. Let us first compute the number of intersection points of the perpendiculars passing through two distinct points $B$ and $C$. The perpendiculars from $B$ to the lines through $C$ other than $B C$ meet all perpendiculars from $C$, which counts to $3 \cdot 6=18$ intersection points. Each perpendicular from $B$ to the 3 lines not containing $C$ can intersect at most 5 of the perpendiculars passing through $C$, which counts to another $3 \cdot 5=15$ intersection points. Thus there are $18+15=33$ intersection points corresponding to $B, C$. It follows that the required total number is at most $10 \cdot 33=330$. But some of these points, namely the orthocenters of the triangles with vertices at the given points, are counted thrice. There are 10 such points. Hence the maximal number of intersection points is $330-2 \cdot 10=310$. Remark. The jury considered only the combinatorial part of the problem and didn't require an example in which 310 points appear. However, it is "easily" verified that, for instance, the set of points $A(1,1), B(e, \pi)$, $C\left(e^{2}, \pi^{2}\right), D\left(e^{3}, \pi^{3}\right), E\left(e^{4}, \pi^{4}\right)$ works. 6. We shall prove that the statement is valid in the general case, for an arbitrary point $D_{1}$ inside $\triangle A B C$. Since $D_{1}$ belongs to the plane $A B C$, there are real numbers $a, b, c$ such that $(a+b+c) \overrightarrow{D D_{1}}=a \overrightarrow{D A}+b \overrightarrow{D B}+c \overrightarrow{D C}$. Since $A A_{1} \| D D_{1}$, it holds that $\overrightarrow{A A_{1}}=k \overrightarrow{D D_{1}}$ for some $k \in \mathbb{R}$. Now it is easy to get $\overrightarrow{D A_{1}}=-(b \overrightarrow{D B}+c \overrightarrow{D C}) / a, \overrightarrow{D B_{1}}=-(a \overrightarrow{D A}+c \overrightarrow{D C}) / b$, and $\overrightarrow{D C_{1}}=-(a \overrightarrow{D A}+b \overrightarrow{D B}) / c$. This implies $$ \begin{aligned} & \overrightarrow{D_{1} A_{1}}=-\frac{a^{2} \overrightarrow{D A}+b(a+2 b+c) \overrightarrow{D B}+c(a+b+2 c) \overrightarrow{D C}}{a(a+b+c)} \\ & \overrightarrow{D_{1} B_{1}}=-\frac{a(2 a+b+c) \overrightarrow{D A}+b^{2} \overrightarrow{D B}+c(a+b+2 c) \overrightarrow{D C}}{b(a+b+c)}, \text { and } \\ & \overrightarrow{D_{1} C_{1}}=-\frac{a(2 a+b+c) \overrightarrow{D A}+b(a+2 b+c) \overrightarrow{D B}+c^{2} \overrightarrow{D C}}{c(a+b+c)} \end{aligned} $$ By using $$ 6 V_{D_{1} A_{1} B_{1} C_{1}}=\left|\left[\overrightarrow{D_{1} A_{1}}, \overrightarrow{D_{1} B_{1}}, \overrightarrow{D_{1} C_{1}}\right]\right| \text { and } 6 V_{D A B C}=|[\overrightarrow{D A}, \overrightarrow{D B}, \overrightarrow{D C}]| $$ we get $$ V_{D_{1} A_{1} B_{1} C_{1}}=\frac{\left\|\begin{array}{ccc} a^{2} & b(a+2 b+c) & c(a+b+2 c) \\ a(2 a+b+c) & b^{2} & c(a+b+2 c) \\ a(2 a+b+c) b(a+2 b+c) & c^{2} \end{array}\right\|}{6 a b c(a+b+c)^{3}}=3 V_{D A B C} $$ ### 4.7 Solutions to the Contest Problems of IMO 1965 1. Let us set $S=|\sqrt{1+\sin 2 x}-\sqrt{1-\sin 2 x}|$. Observe that $S^{2}=2-$ $2 \sqrt{1-\sin ^{2} 2 x}=2-2|\cos 2 x| \leq 2$, implying $S \leq \sqrt{2}$. Thus the righthand inequality holds for all $x$. It remains to investigate the left-hand inequality. If $\pi / 2 \leq x \leq 3 \pi / 2$, then $\cos x \leq 0$ and the inequality trivially holds. Assume now that $\cos x>$ 0 . Then the inequality is equivalent to $2+2 \cos 2 x=4 \cos ^{2} x \leq S^{2}=$ $2-2|\cos 2 x|$, which is equivalent to $\cos 2 x \leq 0$, i.e., to $x \in[\pi / 4, \pi / 2] \cup$ $[3 \pi / 2,7 \pi / 4]$. Hence the solution set is $\pi / 4 \leq x \leq 7 \pi / 4$. 2. Suppose that $\left(x_{1}, x_{2}, x_{3}\right)$ is a solution. We may assume w.l.o.g. that $\left|x_{1}\right| \geq$ $\left|x_{2}\right| \geq\left|x_{3}\right|$. Suppose that $\left|x_{1}\right|>0$. From the first equation we obtain that $$ 0=\left|x_{1}\right| \cdot\left|a_{11}+a_{12} \frac{x_{2}}{x_{1}}+a_{13} \frac{x_{3}}{x_{1}}\right| \geq\left|x_{1}\right| \cdot\left(a_{11}-\left|a_{12}\right|-\left|a_{13}\right|\right)>0 $$ which is a contradiction. Hence $\left|x_{1}\right|=0$ and consequently $x_{1}=x_{2}=x_{3}=$ 0. 3. Let $d$ denote the distance between the lines $A B$ and $C D$. Being parallel to $A B$ and $C D$, the plane $\pi$ intersects the faces of the tetrahedron in a parallelogram $E F G H$. Let $X \in A B$ be a points such that $H X \| D B$. Clearly $V_{A E H B F G}=V_{A X E H}+$ $V_{X E H B F G}$. Let $M N$ be the common perpendicular to lines $A B$ and $C D(M \in A B, N \in C D)$ and let $M N, B N$ meet the plane $\pi$ at $Q$ and $R$ respectively. Then it holds that $B R / R N=M Q / Q N=k$ and consequently $A X / X B=A E / E C=$ $A H / H D=B F / F C=B G / G D=$ $k$. Now we have $V_{A X E H} / V_{A B C D}=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-352.jpg?height=417&width=535&top_left_y=1138&top_left_x=819) $k^{3} /(k+1)^{3}$ 。 Furthermore, if $h=3 V_{A B C D} / S_{A B C}$ is the height of $A B C D$ from $D$, then $$ \begin{aligned} V_{X E H B F G} & =\frac{1}{2} S_{X B F E} \frac{k}{k+1} h \text { and } \\ S_{X B F E} & =S_{A B C}-S_{A X E}-S_{E F C}=\frac{(k+1)^{2}-1-k^{2}}{(k+1)^{2}}=\frac{2 k}{(1+k)^{2}} \end{aligned} $$ These relations give us $V_{X E H B F G} / V_{A B C D}=3 k^{2} /(1+k)^{3}$. Finally, $$ \frac{V_{A E H B F G}}{V_{A B C D}}=\frac{k^{3}+3 k^{2}}{(k+1)^{3}} $$ Similarly, $V_{C E F D H G} / V_{A B C D}=(3 k+1) /(k+1)^{3}$, and hence the required ratio is $\left(k^{3}+3 k^{2}\right) /(3 k+1)$. 4. It is easy to see that all $x_{i}$ are nonzero. Let $x_{1} x_{2} x_{3} x_{4}=p$. The given system of equations can be rewritten as $x_{i}+p / x_{i}=2, i=1,2,3,4$. The equation $x+p / x=2$ has at most two real solutions, say $y$ and $z$. Then each $x_{i}$ is equal either to $y$ or to $z$. There are three cases: (i) $x_{1}=x_{2}=x_{3}=x_{4}=y$. Then $y+y^{3}=2$ and hence $y=1$. (ii) $x_{1}=x_{2}=x_{3}=y, x_{4}=z$. Then $z+y^{3}=y+y^{2} z=2$. It is easy to obtain that the only possibilities for $(y, z)$ are $(-1,3)$ and $(1,1)$. (iii) $x_{1}=x_{2}=y, x_{3}=x_{4}$. In this case the only possibility is $y=z=1$. Hence the solutions for $\left(x_{1}, x_{2}, x_{3}, x_{4}\right)$ are $(1,1,1,1),(-1,-1,-1,3)$, and the cyclic permutations. 5. (a) Let $A^{\prime}$ and $B^{\prime}$ denote the feet of the perpendiculars from $A$ and $B$ to $O B$ and $O A$ respectively. We claim that $H \in A^{\prime} B^{\prime}$. Indeed, since $M P H Q$ is a parallelogram, we have $B^{\prime} P / B^{\prime} A=B M / B A=$ $M Q / A A^{\prime}=P H / A A^{\prime}$, which implies by Thales's theorem that $H \in$ $A^{\prime} B^{\prime}$. It is easy to see that the locus of $H$ is the whole segment $A^{\prime} B^{\prime}$. (b) In this case the locus of points $H$ is obviously the interior of the triangle $O A^{\prime} B^{\prime}$. 6. We recall the simple statement that every two diameters of a set must have a common point. Consider any point $B$ that is an endpoint of $k \geq 2$ diameters $B C_{1}, B C_{2}$, $\ldots, B C_{k}$. We may assume w.l.o.g. that all the points $C_{1}, \ldots, C_{k}$ lie on the $\operatorname{arc} C_{1} C_{k}$, whose center is $B$ and measure does not exceed $60^{\circ}$. We observe that for $1$ $S\left(K L C_{1}\right)>S\left(K B_{1} C_{1}\right)=S\left(A_{1} B_{1} C_{1}\right)=S / 4$. Hence, by the pigeonhole principle one of the remaining three triangles $\triangle M A L, \triangle K B M$, and $\triangle L C K$ must have an area less than or equal to $S / 4$. This completes the proof. ### 4.9 Solutions to the Longlisted Problems of IMO 1967 1. Let us denote the $n$th term of the given sequence by $a_{n}$. Then $$ \begin{aligned} a_{n} & =\frac{1}{3}\left(\frac{10^{3 n+3}-10^{2 n+3}}{9}+7 \frac{10^{2 n+2}-10^{n+1}}{9}+\frac{10^{n+2}-1}{9}\right) \\ & =\frac{1}{27}\left(10^{3 n+3}-3 \cdot 10^{2 n+2}+3 \cdot 10^{n+1}-1\right)=\left(\frac{10^{n+1}-1}{3}\right)^{3} . \end{aligned} $$ 2. $(n!)^{2 / n}=\left((1 \cdot 2 \cdots n)^{1 / n}\right)^{2} \leq\left(\frac{1+2+\cdots+n}{n}\right)^{2}=\left(\frac{n+1}{2}\right)^{2} \leq \frac{1}{3} n^{2}+\frac{1}{2} n+\frac{1}{6}$. 3. Consider the function $f:[0, \pi / 2] \rightarrow \mathbb{R}$ defined by $f(x)=1-x^{2} / 2+$ $x^{4} / 16-\cos x$. It is easy to calculate that $f^{\prime}(0)=f^{\prime \prime}(0)=f^{\prime \prime \prime}(0)=0$ and $f^{\prime \prime \prime \prime}(x)=$ $3 / 2-\cos x$. Since $f^{\prime \prime \prime \prime}(x)>0, f^{\prime \prime \prime}(x)$ is increasing. Together with $f^{\prime \prime \prime}(0)=0$, this gives $f^{\prime \prime \prime}(x)>0$ for $x>0$; hence $f^{\prime \prime}(x)$ is increasing, etc. Continuing in the same way we easily conclude that $f(x)>0$. 4. (a) Let $A B C D$ be a parallelogram, and $K, L$ the midpoints of segments $B C$ and $C D$ respectively. The sides of $\triangle A K L$ are equal and parallel to the medians of $\triangle A B C$. (b) Using the formulas $4 m_{a}^{2}=2 b^{2}+2 c^{2}-a^{2}$ etc., it is easy to obtain that $m_{a}^{2}+m_{b}^{2}=m_{c}^{2}$ is equivalent to $a^{2}+b^{2}=5 c^{2}$. Then $$ 5\left(a^{2}+b^{2}-c^{2}\right)=4\left(a^{2}+b^{2}\right) \geq 8 a b $$ 5. If one of $x, y, z$ is equal to 1 or -1 , then we obtain solutions $(-1,-1,-1)$ and $(1,1,1)$. We claim that these are the only solutions to the system. Let $f(t)=t^{2}+t-1$. If among $x, y, z$ one is greater than 1 , say $x>1$, we have $xf(x)=y>f(y)=z>f(z)=x$, a contradiction. This proves our claim. 6. The given system has two solutions: $(-2,-1)$ and $(-14 / 3,13 / 3)$. 7. Let $S_{k}=x_{1}^{k}+x_{2}^{k}+\cdots+x_{n}^{k}$ and let $\sigma_{k}, k=1,2, \ldots, n$ denote the $k$ th elementary symmetric polynomial in $x_{1}, \ldots, x_{n}$. The given system can be written as $S_{k}=a^{k}, k=1, \ldots, n$. Using Newton's formulas $$ k \sigma_{k}=S_{1} \sigma_{k-1}-S_{2} \sigma_{k-2}+\cdots+(-1)^{k} S_{k-1} \sigma_{1}+(-1)^{k-1} S_{k}, \quad k=1,2, \ldots, n $$ the system easily leads to $\sigma_{1}=a$ and $\sigma_{k}=0$ for $k=2, \ldots, n$. By Vieta's formulas, $x_{1}, x_{2}, \ldots, x_{n}$ are the roots of the polynomial $x^{n}-a x^{n-1}$, i.e., $a, 0,0, \ldots, 0$ in some order. Remark. This solution does not use the assumption that the $x_{j}$ 's are real. 8. The circles $K_{A}, K_{B}, K_{C}, K_{D}$ cover the parallelogram if and only if for every point $X$ inside the parallelogram, the length of one of the segments $X A, X B, X C, X D$ does not exceed 1. Let $O$ and $r$ be the center and radius of the circumcircle of $\triangle A B D$. For every point $X$ inside $\triangle A B D$, it holds that $X A \leq r$ or $X B \leq r$ or $X D \leq r$. Similarly, for $X$ inside $\triangle B C D, X B \leq r$ or $X C \leq r$ or $X D \leq r$. Hence $K_{A}, K_{B}, K_{C}, K_{D}$ cover the parallelogram if and only if $r \leq 1$, which is equivalent to $\angle A B D \geq 30^{\circ}$. However, this last is exactly equivalent to $a=A B=2 r \sin \angle A D B \leq 2 \sin \left(\alpha+30^{\circ}\right)=\sqrt{3} \sin \alpha+\cos \alpha$. 9. The incenter of any such triangle lies inside the circle $k$. We shall show that every point $S$ interior to the circle $S$ is the incenter of one such triangle. If $S$ lies on the segment $A B$, then it is obviously the incenter of an isosceles triangle inscribed in $k$ that has $A B$ as an axis of symmetry. Let us now suppose $S$ does not lie on $A B$. Let $X$ and $Y$ be the intersection points of lines $A S$ and $B S$ with $k$, and let $Z$ be the foot of the perpendicular from $S$ to $A B$. Since the quadrilateral $B Z S X$ is cyclic, we have $\angle Z X S=$ $\angle A B S=\angle S X Y$ and analogously $\angle Z Y S=\angle S Y X$, which implies that $S$ is the incenter of $\triangle X Y Z$. 10. Let $n$ be the number of triangles and let $b$ and $i$ be the numbers of vertices on the boundary and in the interior of the square, respectively. Since all the triangles are acute, each of the vertices of the square belongs to at least two triangles. Additionally, every vertex on the boundary belongs to at least three, and every vertex in the interior belongs to at least five triangles. Therefore $$ 3 n \geq 8+3 b+5 i $$ Moreover, the sum of angles at any vertex that lies in the interior, on the boundary, or at a vertex of the square is equal to $2 \pi, \pi, \pi / 2$ respectively. The sum of all angles of the triangles equals $n \pi$, which gives us $n \pi=4 \cdot \pi / 2+b \pi+2 i \pi$, i.e., $n=$ $2+b+2 i$. This relation together with (1) easily yields that $i \geq 2$. Since each of the vertices inside the square belongs to at least five triangles, and at most two contain both, it follows that $n \geq 8$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-357.jpg?height=525&width=489&top_left_y=1547&top_left_x=813) It is shown in the figure that the square can be decomposed into eight acute triangles. Obviously one of them can have an arbitrarily small perimeter. 11. We have to find the number $p_{n}$ of triples of positive integers $(a, b, c)$ satisfying $a \leq b \leq c \leq n$ and $a+b>c$. Let us denote by $p_{n}(k)$ the number of such triples with $c=k, k=1,2, \ldots, n$. For $k$ even, $p_{n}(k)=k+(k-2)+(k-4)+\cdots+2=\left(k^{2}+2 k\right) / 4$, and for $k$ odd, $p_{n}(k)=\left(k^{2}+2 k+1\right) / 4$. Hence $p_{n}=p_{n}(1)+p_{n}(2)+\cdots+p_{n}(n)= \begin{cases}n(n+2)(2 n+5) / 24, & \text { for } 2 \mid n, \\ (n+1)(n+3)(2 n+1) / 24, & \text { for } 2 \nmid n .\end{cases}$ 12. Let us denote by $M_{n}$ the set of points of the segment $A B$ obtained from $A$ and $B$ by not more than $n$ iterations of $(*)$. It can be proved by induction that $$ M_{n}=\left\{X \in A B \left\lvert\, A X=\frac{3 k}{4^{n}}\right. \text { or } \frac{3 k-2}{4^{n}} \text { for some } k \in \mathbb{N}\right\} $$ Thus (a) immediately follows from $M=\bigcup M_{n}$. It also follows that if $a, b \in \mathbb{N}$ and $a / b \in M$, then $3 \mid a(b-a)$. Therefore $1 / 2 \notin M$. 13. The maximum area is $3 \sqrt{3} r^{2} / 4$ (where $r$ is the radius of the semicircle) and is attained in the case of a trapezoid with two vertices at the endpoints of the diameter of the semicircle and the other two vertices dividing the semicircle into three equal arcs. 14. We have that $$ \left|\frac{p}{q}-\sqrt{2}\right|=\frac{|p-q \sqrt{2}|}{q}=\frac{\left|p^{2}-2 q^{2}\right|}{q(p+q \sqrt{2})} \geq \frac{1}{q(p+q \sqrt{2})} $$ because $\left|p^{2}-2 q^{2}\right| \geq 1$. The greatest solution to the equation $\left|p^{2}-2 q^{2}\right|=1$ with $p, q \leq 100$ is $(p, q)=(99,70)$. It is easy to verify using (1) that $\frac{99}{70}$ best approximates $\sqrt{2}$ among the fractions $p / q$ with $p, q \leq 100$. Second solution. By using some basic facts about Farey sequences one can find that $\frac{41}{29}<\sqrt{2}<\frac{99}{70}$ and that $\frac{41}{29}<\frac{p}{q}<\frac{99}{70}$ implies $p \geq 41+99>100$ because $99 \cdot 29-41 \cdot 70=1$. Of the two fractions $41 / 29$ and $99 / 70$, the latter is closer to $\sqrt{2}$. 15. Given that $\tan \alpha \in \mathbb{Q}$, we have that $\tan \beta$ is rational if and only if $\tan \gamma$ is rational, where $\gamma=\beta-\alpha$ and $2 \gamma=\alpha$. Putting $t=\tan \gamma$ we obtain $\frac{p}{q}=\tan 2 \gamma=\frac{2 t}{1-t^{2}}$, which leads to the quadratic equation $p t^{2}+2 q t-p=0$. This equation has rational solutions if and only if its discriminant $4\left(p^{2}+q^{2}\right)$ is a perfect square, and the result follows. 16. First let us notice that all the numbers $z_{m_{1}, m_{2}}=m_{1} r_{1}+m_{2} r_{2}$ ( $m_{1}, m_{2} \in$ $\mathbb{Z})$ are distinct, since $r_{1} / r_{2}$ is irrational. Thus for any $n \in \mathbb{N}$ the interval $\left[-n\left(\left|r_{1}\right|+\left|r_{2}\right|\right), n\left(\left|r_{1}\right|+\left|r_{2}\right|\right)\right]$ contains $(2 n+1)^{2}$ numbers $z_{m_{1}, m_{2}}$, where $\left|m_{1}\right|,\left|m_{2}\right| \leq n$. Therefore some two of these $(2 n+1)^{2}$ numbers, say $z_{m_{1}, m_{2}}, z_{n_{1}, n_{2}}$, differ by at most $\frac{2 n\left(\left|r_{1}\right|+\left|r_{2}\right|\right)}{(2 n+1)^{2}-1}=\frac{\left(\left|r_{1}\right|+\left|r_{2}\right|\right)}{2(n+1)}$. By taking $n$ large enough we can achieve that $$ z_{q_{1}, q_{2}}=\left|z_{m_{1}, m_{2}}-z_{n_{1}, n_{2}}\right| \leq p $$ If now $k$ is the integer such that $k z_{q_{1}, q_{2}} \leq x<(k+1) z_{q_{1}, q_{2}}$, then $z_{k q_{1}, k q_{2}}=$ $k z_{q_{1}, q_{2}}$ differs from $x$ by at most $p$, as desired. 17. Using $c_{r}-c_{s}=(r-s)(r+s+1)$ we can easily get $$ \frac{\left(c_{m+1}-c_{k}\right) \cdots\left(c_{m+n}-c_{k}\right)}{c_{1} c_{2} \cdots c_{n}}=\frac{(m-k+n)!}{(m-k)!n!} \cdot \frac{(m+k+n+1)!}{(m+k+1)!(n+1)!} $$ The first factor $\frac{(m-k+n)!}{(m-k)!n!}=\binom{m-k+n}{n}$ is clearly an integer. The second factor is also an integer because by the assumption, $m+k+1$ and ( $m+$ $k)!(n+1)$ ! are coprime, and $(m+k+n+1)$ ! is divisible by both; hence it is also divisible by their product. 18. In the first part, it is sufficient to show that each rational number of the form $m / n!, m, n \in \mathbb{N}$, can be written uniquely in the required form. We prove this by induction on $n$. The statement is trivial for $n=1$. Let us assume it holds for $n-1$, and let there be given a rational number $m / n$ !. Let us take $a_{n} \in\{0, \ldots, n-1\}$ such that $m-a_{n}=n m_{1}$ for some $m_{1} \in \mathbb{N}$. By the inductive hypothesis, there are unique $a_{1} \in \mathbb{N}_{0}, a_{i} \in\{0, \ldots, i-1\}(i=1, \ldots, n-1)$ such that $m_{1} /(n-1)!=\sum_{i=1}^{n-1} a_{i} / i$ !, and then $$ \frac{m}{n!}=\frac{m_{1}}{(n-1)!}+\frac{a_{n}}{n!}=\sum_{i=1}^{n} \frac{a_{i}}{i!} $$ as desired. On the other hand, if $m / n!=\sum_{i=1}^{n} a_{i} / i$ !, multiplying by $n$ ! we see that $m-a_{n}$ must be a multiple of $n$, so the choice of $a_{n}$ was unique and therefore the representation itself. This completes the induction. In particular, since $a_{i} \mid i!$ and $i!/ a_{i}>(i-1)!\geq(i-1)!/ a_{i-1}$, we conclude that each rational $q, 00$ 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 ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-361.jpg?height=299&width=312&top_left_y=991&top_left_x=935) 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\sqrt{3} / 2$. Suppose now that $2 \pi / 3 \leq x<2 \pi$. We have $$ \sin x+\cdots+\sin n x=\frac{\cos \frac{x}{2}-\cos \frac{2 n+1}{2} x}{2 \sin \frac{x}{2}} \leq \frac{\cos \frac{x}{2}+1}{2 \sin \frac{x}{2}}=\frac{\cot \frac{x}{4}}{2} \leq \frac{\sqrt{3}}{2} . $$ For $x=2 \pi$ the given inequality clearly holds for all $n$. Hence, the inequality holds for all $n$ if and only if $2 \pi / 3+2 k \pi \leq x \leq 2 \pi+2 k \pi$ for some integer $k$. 56. We shall prove by induction on $n$ the following statement: If in some group of interpreters exactly $n$ persons, $n \geq 2$, speak each of the three languages, then it is possible to select a subgroup in which each language is spoken by exactly two persons. The statement of the problem easily follows from this: it suffices to select six such groups. The case $n=2$ is trivial. Let us assume $n \geq 2$, and let $N_{j}, N_{m}, N_{f}, N_{j m}$, $N_{j f}, N_{m f}, N_{j m f}$ be the sets of those interpreters who speak only Japanese, only Malay, only Farsi, only Japanese and Malay, only Japanese and Farsi, only Malay and Farsi, and all the three languages, respectively, and $n_{j}, n_{m}$, $n_{f}, n_{j m}, n_{j f}, n_{m f}, n_{j m f}$ the cardinalities of these sets, respectively. By the condition of the problem, $n_{j}+n_{j m}+n_{j f}+n_{j m f}=n_{m}+n_{j m}+n_{m f}+n_{j m f}=$ $n_{f}+n_{j f}+n_{m f}+n_{j m f}=24$, and consequently $$ n_{j}-n_{m f}=n_{m}-n_{j f}=n_{f}-n_{j m}=c $$ Now if $c<0$, then $n_{j m}, n_{j f}, n_{m f}>0$, and it is enough to select one interpreter from each of the sets $N_{j m}, N_{j f}, N_{m f}$. If $c>0$, then $n_{j}, n_{m}, n_{f}>0$, and it is enough to select one interpreter from each of the sets $N_{j}, N_{m}, N_{f}$ and then use the inductive assumption. Also, if $c=0$, then w.l.o.g. $n_{j}=n_{m f}>0$, and it is enough to select one interpreter from each of the sets $N_{j}, N_{m f}$ and then use the inductive hypothesis. This completes the induction. 57. Obviously $c_{n}>0$ for all even $n$. Thus $c_{n}=0$ is possible only for an odd $n$. Let us assume $a_{1} \leq a_{2} \leq \cdots \leq a_{8}$ : in particular, $a_{1} \leq 0 \leq a_{8}$. If $\left|a_{1}\right|<\left|a_{8}\right|$, then there exists $n_{0}$ such that for every odd $n>n_{0}, 7\left|a_{1}\right|^{n}<$ $a_{8}^{n} \Rightarrow a_{1}^{n}+\cdots+a_{7}^{n}+a_{8}^{n}>7 a_{1}^{n}+a_{8}^{n}>0$, contradicting the condition that $c_{n}=0$ for infinitely many $n$. Similarly $\left|a_{1}\right|>\left|a_{8}\right|$ is impossible, and we conclude that $a_{1}=-a_{8}$. Continuing in the same manner we can show that $a_{2}=-a_{7}, a_{3}=-a_{6}$ and $a_{4}=-a_{5}$. Hence $c_{n}=0$ for every odd $n$. 58. The following sequence of equalities and inequalities gives an even stronger estimate than needed. $$ \begin{aligned} |l(z)| & =|A z+B|=\frac{1}{2}|(z+1)(A+B)+(z-1)(A-B)| \\ & =\frac{1}{2}|(z+1) f(1)+(z-1) f(-1)| \\ & \leq \frac{1}{2}(|z+1| \cdot|f(1)|+|z-1| \cdot|f(-1)|) \\ & \leq \frac{1}{2}(|z+1|+|z-1|) M=\frac{1}{2} \rho M . \end{aligned} $$ 59. By the $\operatorname{arc} A B$ we shall always mean the positive $\operatorname{arc} A B$. We denote by $|A B|$ the length of arc $A B$. Let a basic arc be one of the $n+1$ arcs into which the circle is partitioned by the points $A_{0}, A_{1}, \ldots, A_{n}$, where $n \in \mathbb{N}$. Suppose that $A_{p} A_{0}$ and $A_{0} A_{q}$ are the basic arcs with an endpoint at $A_{0}$, and that $x_{n}, y_{n}$ are their lengths, respectively. We show by induction on $n$ that for each $n$ the length of a basic arc is equal to $x_{n}, y_{n}$ or $x_{n}+y_{n}$. The statement is trivial for $n=1$. Assume that it holds for $n$, and let $A_{i} A_{n+1}, A_{n+1} A_{j}$ be basic arcs. We shall prove that these two arcs have lengths $x_{n}, y_{n}$, or $x_{n}+y_{n}$. If $i, j$ are both strictly positive, then $\left|A_{i} A_{n+1}\right|=$ $\left|A_{i-1} A_{n}\right|$ and $\left|A_{n+1} A_{j}\right|=\left|A_{n} A_{j-1}\right|$ are equal to $x_{n}, y_{n}$, or $x_{n}+y_{n}$ by the inductive hypothesis. Let us assume now that $i=0$, i.e., that $A_{p} A_{n+1}$ and $A_{n+1} A_{0}$ are basic arcs. Then $\left|A_{p} A_{n+1}\right|=\left|A_{0} A_{n+1-p}\right| \geq\left|A_{0} A_{q}\right|=y_{n}$ and similarly $\left|A_{n+1} A_{q}\right| \geq x_{n}$, but $\left|A_{p} A_{q}\right|=x_{n}+y_{n}$, from which it follows that $\left|A_{p} A_{n+1}\right|=\left|A_{0} A_{q}\right|=y_{n}$ and consequently $n+1=p+q$. Also, $x_{n+1}=\left|A_{n+1} A_{0}\right|=y_{n}-x_{n}$ and $y_{n+1}=y_{n}$. Now, all basic arcs have lengths $y_{n}-x_{n}, x_{n}, y_{n}, x_{n}+y_{n}$. A presence of a basic arc of length $x_{n}+y_{n}$ would spoil our inductive step. However, if any basic arc $A_{k} A_{l}$ has length $x_{n}+y_{n}$, then we must have $l-q=k-p$ because $2 \pi$ is irrational, and therefore the arc $A_{k} A_{l}$ contains either the point $A_{k-p}$ (if $k \geq p$ ) or the point $A_{k+q}$ (if $k1 \\ \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 $01 \\ \Leftrightarrow & 1+2 n\left(1-\frac{1}{1+\pi^{2} /\left(4 n^{2}\right)}\right)-\frac{\pi^{2}}{2(n+1)}>1 \\ \Leftrightarrow & 1+\frac{\pi^{2}}{2}\left(\frac{1}{n+\pi^{2} /(4 n)}-\frac{1}{n+1}\right)>1, \end{aligned} $$ where the last inequality holds because $\pi^{2}<4 n$. It is also apparent that as $n$ tends to infinity the term in parentheses tends to 0 , and hence it is not possible to strengthen the bound. This completes the proof. 6. We define $f(x)=\frac{a_{1}}{a_{1}-x}+\frac{a_{2}}{a_{2}-x}+\cdots+\frac{a_{n}}{a_{n}-x}$. Let us assume w.l.o.g. $a_{1}1$. Then $a=k b$ and $c=\sqrt{k} b$, and $a>c>b$. The segments $a, b, c$ form a triangle if and only if $k<\sqrt{k}+1$, which holds if and only if $1120^{\circ}-60^{\circ}=60^{\circ}$ (because $\angle A_{1} A_{j} A_{i}<60^{\circ}$ ); hence $\angle A_{i} A_{j} A_{k} \geq 120^{\circ}$. This proves that the denotation is correct. Remark. It is easy to show that the diameter is unique. Hence the denotation is also unique. 21. The given conditions are equivalent to $y-a_{0}$ being divisible by $a_{0}, a_{0}+$ $a_{1}, a_{0}+a_{2}, \ldots, a_{0}+a_{n}$, i.e., to $y=k\left[a_{0}, a_{0}+a_{1}, \ldots, a_{0}+a_{n}\right]+a_{0}, k \in \mathbb{N}_{0}$. 22. It can be shown by induction on the number of digits of $x$ that $p(x) \leq x$ for all $x \in \mathbb{N}$. It follows that $x^{2}-10 x-22 \leq x$, which implies $x \leq 12$. Since $0k-j$ and $9^{k-j-1} 9$ !/ $(9-j)$ ! otherwise. If the $i$ th digit is not 0 , then the above results are multiplied by 8 . 25. The answer is $$ \sum_{1 \leq p1$. 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}b$, we have that $a^{i}>b^{i}$ and hence $x_{i} a^{n} b^{n-i} \geq x_{i} b^{n} a^{n-i}$ (also, for $i \geq 1$ the inequality is strict). Summing up all these inequalities for $i=1, \ldots, n$ we get $a^{n} P(b)>b^{n} P(a)$, which completes the proof for $a>b$. On the other hand, for $aB_{n} / B_{n+1}$, while for $a=b$ we have equality. Thus $A_{n} / A_{n+1}<$ $B_{n} / B_{n+1} \Leftrightarrow a>b$. 3 . We shall use the following lemma Lemma. If an altitude of a tetrahedron passes through the orthocenter of the opposite side, then each of the other altitudes possesses the same property. Proof. Denote the tetrahedron by $S A B C$ and let $a=B C, b=C A$, $c=A B, m=S A, n=S B, p=S C$. It is enough to prove that an altitude passes through the orthocenter of the opposite side if and only if $a^{2}+m^{2}=b^{2}+n^{2}=c^{2}+p^{2}$. Suppose that the foot $S^{\prime}$ of the altitude from $S$ is the orthocenter of $A B C$. Then $S S^{\prime} \perp A B C \Rightarrow S B^{2}-S C^{2}=S^{\prime} B^{2}-S^{\prime} C^{2}$. But from $A S^{\prime} \perp B C$ it follows that $A B^{2}-A C^{2}=S^{\prime} B^{2}-S^{\prime} C^{2}$. From these two equalities it can be concluded that $n^{2}-p^{2}=c^{2}-b^{2}$, or equivalently, $n^{2}+b^{2}=c^{2}+p^{2}$. Analogously, $a^{2}+m^{2}=n^{2}+b^{2}$, so we have proved the first part of the equivalence. Now suppose that $a^{2}+m^{2}=b^{2}+n^{2}=c^{2}+p^{2}$. Defining $S^{\prime}$ as before, we get $n^{2}-p^{2}=S^{\prime} B^{2}-S^{\prime} C^{2}$. From the condition $n^{2}-p^{2}=c^{2}-b^{2}$ $\left(\Leftrightarrow b^{2}+n^{2}=c^{2}+p^{2}\right.$ ) we conclude that $A S^{\prime} \perp B C$. In the same way $C S^{\prime} \perp A B$, which proves that $S^{\prime}$ is the orthocenter of $\triangle A B C$. The lemma is thus proven. Now using the lemma it is easy to see that if one of the angles at $S$ is right, than so are the others. Indeed, suppose that $\angle A S B=\pi / 2$. From the lemma we have that the altitude from $C$ passes through the orthocenter of $\triangle A S B$, which is $S$, so $C S \perp A S B$ and $\angle C S A=\angle C S B=\pi / 2$. Therefore $m^{2}+n^{2}=c^{2}, n^{2}+p^{2}=a^{2}$, and $p^{2}+m^{2}=b^{2}$, so it follows that $m^{2}+n^{2}+p^{2}=\left(a^{2}+b^{2}+c^{2}\right) / 2$. By the inequality between the arithmetic and quadric means, we have that $\left(a^{2}+b^{2}+c^{2}\right) / 2 \geq 2 s^{2} / 3$, where $s$ denotes the semiperimeter of $\triangle A B C$. It remains to be shown that $2 s^{2} / 3 \geq 18 r^{2}$. Since $S_{\triangle A B C}=s r$, this is equivalent to $2 s^{4} / 3 \geq$ $18 S_{A B C}^{2}=18 s(s-a)(s-b)(s-c)$ by Heron's formula. This reduces to $s^{3} \geq 27(s-a)(s-b)(s-c)$, which is an obvious consequence of the AM-GM mean inequality. Remark. In the place of the lemma one could prove that the opposite edges of the tetrahedron are mutually perpendicular and proceed in the same way. 4. Suppose that $n$ is such a natural number. If a prime number $p$ divides any of the numbers $n, n+1, \ldots, n+5$, then it must divide another one of them, so the only possibilities are $p=2,3,5$. Moreover, $n+1, n+2, n+3, n+4$ have no prime divisors other than 2 and 3 (if some prime number greater than 3 divides one of them, then none of the remaining numbers can have that divisor). Since two of these numbers are odd, they must be powers of 3 (greater than 1). However, there are no two powers of 3 whose difference is 2 . Therefore there is no such natural number $n$. Second solution. Obviously, none of $n, n+1, \ldots, n+5$ is divisible by 7; hence they form a reduced system of residues. We deduce that $n(n+$ 1) $\cdots(n+5) \equiv 1 \cdot 2 \cdots 6 \equiv-1(\bmod 7)$. If $\{n, \ldots, n+5\}$ can be partitioned into two subsets with the same products, both congruent to, say, $p$ modulo 7 , then $p^{2} \equiv-1(\bmod 7)$, which is impossible. Remark. Erdős has proved that a set $n, n+1, \ldots, n+m$ of consecutive natural numbers can never be partitioned into two subsets with equal products of elements. 5. Denote respectively by $A_{1}, B_{1}, C_{1}$ and $D_{1}$ the points of intersection of the lines $A M, B M, C M$, and $D M$ with the opposite sides of the tetrahedron. Since $\operatorname{vol}(M B C D)=\operatorname{vol}(A B C D) \overrightarrow{M A_{1}} / \overrightarrow{A A_{1}}$, the relation we have to prove is equivalent to $$ \overrightarrow{M A} \cdot \frac{\overrightarrow{M A_{1}}}{\overrightarrow{A A_{1}}}+\overrightarrow{M B} \cdot \frac{\overrightarrow{M B_{1}}}{\overrightarrow{B B_{1}}}+\overrightarrow{M C} \cdot \frac{\overrightarrow{M C_{1}}}{\overrightarrow{C C_{1}}}+\overrightarrow{M D} \cdot \frac{\overrightarrow{M D_{1}}}{\overrightarrow{D D_{1}}}=0 $$ There exist unique real numbers $\alpha, \beta, \gamma$, and $\delta$ such that $\alpha+\beta+\gamma+\delta=1$ and for every point $O$ in space $$ \overrightarrow{O M}=\alpha \overrightarrow{O A}+\beta \overrightarrow{O B}+\gamma \overrightarrow{O C}+\delta \overrightarrow{O D} $$ (This follows easily from $\overrightarrow{O M}=\overrightarrow{O A}+\overrightarrow{A M}=\overrightarrow{O A}+k \overrightarrow{A B}+l \overrightarrow{A C}+m \overrightarrow{A D}=$ $\overrightarrow{A B}+k(\overrightarrow{O B}-\overrightarrow{O A})+l(\overrightarrow{O C}-\overrightarrow{O A})+m(\overrightarrow{O D}-\overrightarrow{O A})$ for some $k, l, m \in \mathbb{R}$.) Further, from the condition that $A_{1}$ belongs to the plane $B C D$ we obtain for every $O$ in space the following equality for some $\beta^{\prime}, \gamma^{\prime}, \delta^{\prime}$ : $$ \overrightarrow{O A_{1}}=\beta^{\prime} \overrightarrow{O B}+\gamma^{\prime} \overrightarrow{O C}+\delta^{\prime} \overrightarrow{O D} $$ However, for $\lambda=\overrightarrow{M A_{1}} / \overrightarrow{A A_{1}}, \overrightarrow{O M}=\lambda \overrightarrow{O A}+(1-\lambda) \overrightarrow{O A_{1}}$; hence substituting (2) and (3) in this expression and equating coefficients for $\overrightarrow{O A}$ we obtain $\lambda=\overrightarrow{M A_{1}} / \overrightarrow{A A_{1}}=\alpha$. Analogously, $\beta=\overrightarrow{M B_{1}} / \overrightarrow{B B_{1}}, \gamma=\overrightarrow{M C_{1}} / \overrightarrow{C C_{1}}$, and $\delta=\overrightarrow{M D_{1}} / \overrightarrow{D D_{1}}$; hence (1) follows immediately for $O=M$. Remark. The statement of the problem actually follows from the fact that $M$ is the center of mass of the system with masses $\operatorname{vol}(M B C D)$, $\operatorname{vol}(M A C D), \operatorname{vol}(M A B D), \operatorname{vol}(M A B C)$ at $A, B, C, D$ respectively. Our proof is actually a formal verification of this fact. 6. Let $F$ be the midpoint of $B^{\prime} C^{\prime}, A^{\prime}$ the midpoint of $B C$, and $I$ the intersection point of the line $H F$ and the circle circumscribed about $\triangle B H C^{\prime}$. Denote by $M$ the intersection point of the line $A A^{\prime}$ with the circumscribed circle about the triangle $A B C$. Triangles $H B^{\prime} C^{\prime}$ and $A B C$ are similar. Since $\angle C^{\prime} I F=\angle A B C=\angle A^{\prime} M C, \angle C^{\prime} F I=\angle A A^{\prime} B=\angle M A^{\prime} C$, $2 C^{\prime} F=C^{\prime} B^{\prime}$, and $2 A^{\prime} C=C B$, it follows that $\triangle C^{\prime} I B^{\prime} \sim \triangle C M B$, hence $\angle F I B^{\prime}=\angle A^{\prime} M B=\angle A C B$. Now one concludes that $I$ belongs to the circumscribed circles of $\triangle A B^{\prime} C^{\prime}$ (since $\left.\angle C^{\prime} I B^{\prime}=180^{\circ}-\angle C^{\prime} A B^{\prime}\right)$ and $\triangle H C B^{\prime}$. Second Solution. We denote the angles of $\triangle A B C$ by $\alpha, \beta, \gamma$. Evidently $\triangle A B C \sim \triangle H C^{\prime} B^{\prime}$. Within $\triangle H C^{\prime} B^{\prime}$ there exists a unique point $I$ such that $\angle H I B^{\prime}=180^{\circ}-\gamma, \angle H I C^{\prime}=180^{\circ}-\beta$, and $\angle C^{\prime} I B^{\prime}=180^{\circ}-\alpha$, and all three circles must contain this point. Let $H I$ and $B^{\prime} C^{\prime}$ intersect in $F$. It remains to show that $F B^{\prime}=F C^{\prime}$. From $\angle H I B^{\prime}+\angle H B^{\prime} F=180^{\circ}$ we obtain $\angle I H B^{\prime}=\angle I B^{\prime} F$. Similarly, $\angle I H C^{\prime}=\angle I C^{\prime} F$. Thus circles around $\triangle I H C^{\prime}$ and $\triangle I H B^{\prime}$ are both tangent to $B^{\prime} C^{\prime}$, giving us $F B^{\prime 2}=$ $F I \cdot F H=F C^{\prime 2}$. 7. For $a=5$ one can take $n=10$, while for $a=6$ one takes $n=11$. Now assume $a \notin\{5,6\}$. If there exists an integer $n$ such that each digit of $n(n+1) / 2$ is equal to $a$, then there is an integer $k$ such that $n(n+1) / 2=\left(10^{k}-1\right) a / 9$. After multiplying both sides of the equation by 72 , one obtains $36 n^{2}+36 n=$ $8 a \cdot 10^{k}-8 a$, which is equivalent to $$ 9(2 n+1)^{2}=8 a \cdot 10^{k}-8 a+9 $$ So $8 a \cdot 10^{k}-8 a+9$ is the square of some odd integer. This means that its last digit is 1,5 , or 9 . Therefore $a \in\{1,3,5,6,8\}$. If $a=3$ or $a=8$, the number on the RHS of (1) is divisible by 5 , but not by 25 (for $k \geq 2$ ), and thus cannot be a square. It remains to check the case $a=1$. In that case, (1) becomes $9(2 n+1)^{2}=8 \cdot 10^{k}+1$, or equivalently $[3(2 n+1)-1][3(2 n+1)+1]=8 \cdot 10^{k} \Rightarrow(3 n+1)(3 n+2)=2 \cdot 10^{k}$. Since the factors $3 n+1,3 n+2$ are relatively prime, this implies that one of them is $2^{k+1}$ and the other one is $5^{k}$. It is directly checked that their difference really equals 1 only for $k=1$ and $n=1$, which is excluded. Hence, the desired $n$ exists only for $a \in\{5,6\}$. 8. Let $A C=b, B C=a, A M=x, B M=y, C M=l$. Denote by $I_{1}$ the incenter and by $S_{1}$ the center of the excircle of $\triangle A M C$. Suppose that $P_{1}$ and $Q_{1}$ are feet of perpendiculars from $I_{1}$ and $S_{1}$, respectively, to the line $A C$. Then $\triangle I_{1} C P_{1} \sim \triangle S_{1} C Q_{1}$, hence $r_{1} / \rho_{1}=C P_{1} / C Q_{1}$. We have $C P_{1}=(A C+M C-A M) / 2=(b+l-x) / 2$ and $C Q_{1}=$ $(A C+M C+A M) / 2=(b+l+x) / 2$. Hence $$ \frac{r_{1}}{\rho_{1}}=\frac{b+l-x}{b+l+x} $$ We similarly obtain $$ \frac{r_{2}}{\rho_{2}}=\frac{b+l-y}{b+l+y} \text { and } \frac{r}{\rho}=\frac{a+b-x-y}{a+b+x+y} $$ What we have to prove is now equivalent to $$ \frac{(b+l-x)(a+l-y)}{(b+l+x)(a+l+y)}=\frac{a+b-x-y}{a+b+x+y} $$ Multiplying both sides of (1) by $(a+l+y)(b+l+x)(a+b+x+y)$ we obtain an expression that reduces to $l^{2} x+l^{2} y+x^{2} y+x y^{2}=b^{2} y+a^{2} x$. Dividing both sides by $c=x+y$, we get that (1) is equivalent to $l^{2}=$ $b^{2} y /(x+y)+a^{2} x /(x+y)-x y$, which is exactly Stewart's theorem for $l$. This finally proves the desired result. 9. Let us set $a=\sqrt{\sum_{i=1}^{n} u_{i}^{2}}$ and $b=\sqrt{\sum_{i=1}^{n} v_{i}^{2}}$. By Minkowski's inequality (for $p=2$ ) we have $\sum_{i=1}^{n}\left(u_{i}+v_{i}\right)^{2} \leq(a+b)^{2}$. Hence the LHS of the desired inequality is not greater than $1+(a+b)^{2}$, while the RHS is equal to $4\left(1+a^{2}\right)\left(1+b^{2}\right) / 3$. Now it is sufficient to prove that $$ 3+3(a+b)^{2} \leq 4\left(1+a^{2}\right)\left(1+b^{2}\right) $$ The last inequality can be reduced to the trivial $0 \leq(a-b)^{2}+(2 a b-1)^{2}$. The equality in the initial inequality holds if and only if $u_{i} / v_{i}=c$ for some $c \in \mathbb{R}$ and $a=b=1 / \sqrt{2}$. 10. (a) Since $a_{n-1}1$, and let $a_{k}=q^{k}, k=1,2, \ldots$. Then $\left(1-a_{k-1} / a_{k}\right) / \sqrt{a_{k}}=(1-1 / q) / q^{k / 2}$, and consequently $$ b_{n}=\left(1-\frac{1}{q}\right) \sum_{k=1}^{n} \frac{1}{q^{k / 2}}=\frac{\sqrt{q}+1}{q}\left(1-\frac{1}{q^{n / 2}}\right) . $$ Since $(\sqrt{q}+1) / q$ can be arbitrarily close to 2 , one can set $q$ such that $(\sqrt{q}+1) / q>b$. Then $b_{n} \geq b$ for all sufficiently large $n$. Second solution. (a) Note that $$ b_{n}=\sum_{k=1}^{n}\left(1-\frac{a_{k-1}}{a_{k}}\right) \frac{1}{\sqrt{a_{k}}}=\sum_{k=1}^{n}\left(a_{k}-a_{k-1}\right) \cdot \frac{1}{a_{k}^{3 / 2}} $$ hence $b_{n}$ represents exactly the lower Darboux sum for the function $f(x)=x^{-3 / 2}$ on the interval $\left[a_{0}, a_{n}\right]$. Then $b_{n} \leq \int_{a_{0}}^{a_{n}} x^{-3 / 2} d x<$ $\int_{1}^{+\infty} x^{-3 / 2} d x=2$. (b) For each $b<2$ there exists a number $\alpha>1$ such that $\int_{1}^{\alpha} x^{-3 / 2} d x>$ $b+(2-b) / 2$. Now, by Darboux's theorem, there exists an array $1=$ $a_{0} \leq a_{1} \leq \cdots \leq a_{n}=\alpha$ such that the corresponding Darboux sums are arbitrarily close to the value of the integral. In particular, there is an array $a_{0}, \ldots, a_{n}$ with $b_{n}>b$. 11. Let $S(x)=\left(x-x_{1}\right)\left(x-x_{2}\right) \cdots\left(x-x_{n}\right)$. We have $x^{3}-x_{i}^{3}=\left(x-x_{i}\right)(\omega x-$ $\left.x_{i}\right)\left(\omega^{2} x-x_{i}\right)$, where $\omega$ is a primitive third root of 1 . Multiplying these equalities for $i=1, \ldots, n$ we obtain $$ T\left(x^{3}\right)=\left(x^{3}-x_{1}^{3}\right)\left(x^{3}-x_{2}^{3}\right) \cdots\left(x^{3}-x_{n}^{3}\right)=S(x) S(\omega x) S\left(\omega^{2} x\right) $$ Since $S(\omega x)=P\left(x^{3}\right)+\omega x Q\left(x^{3}\right)+\omega^{2} x^{2} R\left(x^{3}\right)$ and $S\left(\omega^{2} x\right)=P\left(x^{3}\right)+$ $\omega^{2} x Q\left(x^{3}\right)+\omega x^{2} R\left(x^{3}\right)$, the above expression reduces to $$ T\left(x^{3}\right)=P^{3}\left(x^{3}\right)+x^{3} Q^{3}\left(x^{3}\right)+x^{6} R^{3}\left(x^{3}\right)-3 P\left(x^{3}\right) Q\left(x^{3}\right) R\left(x^{3}\right) $$ Therefore the zeros of the polynomial $$ T(x)=P^{3}(x)+x Q^{3}(x)+x^{2} R^{3}(x)-3 P(x) Q(x) R(x) $$ are exactly $x_{1}^{3}, \ldots, x_{n}^{3}$. It is easily verified that $\operatorname{deg} T=\operatorname{deg} S=n$, and hence $T$ is the desired polynomial. 12. Lemma. Five points are given in the plane such that no three of them are collinear. Then there are at least three triangles with vertices at these points that are not acute-angled. Proof. We consider three cases, according to whether the convex hull of these points is a triangle, quadrilateral, or pentagon. (i) Let a triangle $A B C$ be the convex hull and two other points $D$ and $E$ lie inside the triangle. At least two of the triangles $A D B, B D C$ and $C D A$ have obtuse angles at the point $D$. Similarly, at least two of the triangles $A E B, B E C$ and $C E A$ are obtuse-angled. Thus there are at least four non-acute-angled triangles. (ii) Suppose that $A B C D$ is the convex hull and that $E$ is a point of its interior. At least one angle of the quadrilateral is not acute, determining one non-acute-angled triangle. Also, the point $E$ lies in the interior of either $\triangle A B C$ or $\triangle C D A$ hence, as in the previous case, it determines another two obtuse-angled triangles. (iii) It is easy to see that at least two of the angles of the pentagon are not acute. We may assume that these two angles are among the angles corresponding to vertices $A, B$, and $C$. Now consider the quadrilateral $A C D E$. At least one its angles is not acute. Hence, there are at least three triangles that are not acute-angled. Now we consider all combinations of 5 points chosen from the given 100. There are $\binom{100}{5}$ such combinations, and for each of them there are at least three non-acute-angled triangles with vertices in it. On the other hand, vertices of each of the triangles are counted $\binom{97}{2}$ times. Hence there are at least $3\binom{100}{5} /\binom{97}{2}$ non-acute-angled triangles with vertices in the given 100 points. Since the number of all triangles with vertices in the given points is $\binom{100}{3}$, the ratio between the number of acute-angled triangles and the number of all triangles cannot be greater than $$ 1-\frac{3\binom{100}{5}}{\binom{97}{2}\binom{100}{3}}=0.7 $$ ### 4.13 Solutions to the Shortlisted Problems of IMO 1971 1. Assuming that $a, b, c$ in (1) exist, let us find what their values should be. Since $P_{2}(x)=x^{2}-2$, equation (1) for $n=1$ becomes $\left(x^{2}-4\right)^{2}=$ $\left[a\left(x^{2}-2\right)+b x+2 c\right]^{2}$. Therefore, there are two possibilities for $(a, b, c)$ : $(1,0,-1)$ and $(-1,0,1)$. In both cases we must prove that $$ \left(x^{2}-4\right)\left[P_{n}(x)^{2}-4\right]=\left[P_{n+1}(x)-P_{n-1}(x)\right]^{2} $$ It suffices to prove (2) for all $x$ in the interval $[-2,2]$. In this interval we can set $x=2 \cos t$ for some real $t$. We prove by induction that $$ P_{n}(x)=2 \cos n t \quad \text { for all } n $$ This is trivial for $n=0,1$. Assume (3) holds for some $n-1$ and $n$. Then $P_{n+1}(x)=4 \cos t \cos n t-2 \cos (n-1) t=2 \cos (n+1) t$ by the additive formula for the cosine. This completes the induction. Now (2) reduces to the obviously correct equality $$ 16 \sin ^{2} t \sin ^{2} n t=(2 \cos (n+1) t-2 \cos (n-1) t)^{2} $$ Second solution. If $x$ is fixed, the linear recurrence relation $P_{n+1}(x)+$ $P_{n-1}(x)=x P_{n}(x)$ can be solved in the standard way. The characteristic polynomial $t^{2}-x t+1$ has zeros $t_{1,2}$ with $t_{1}+t_{2}=x$ and $t_{1} t_{2}=1$; hence, the general $P_{n}(x)$ has the form $a t_{1}^{n}+b t_{2}^{n}$ for some constants $a$, $b$. From $P_{0}=2$ and $P_{1}=x$ we obtain that $$ P_{n}(x)=t_{1}^{n}+t_{2}^{n} . $$ Plugging in these values and using $t_{1} t_{2}=1$ one easily verifies (2). 2 . We will construct such a set $S_{m}$ of $2^{m}$ points. Take vectors $u_{1}, \ldots, u_{m}$ in a given plane, such that $\left|u_{i}\right|=1 / 2$ and $0 \neq\left|c_{1} u_{1}+c_{2} u_{2}+\cdots+c_{n} u_{n}\right| \neq 1 / 2$ for any choice of numbers $c_{i}$ equal to 0 or $\pm 1$. Such vectors are easily constructed by induction on $m$ : For $u_{1}, \ldots, u_{m-1}$ fixed, there are only finitely many vector values $u_{m}$ that violate the upper condition, and we may set $u_{m}$ to be any other vector of length $1 / 2$. Let $S_{m}$ be the set of all points $M_{0}+\varepsilon_{1} u_{1}+\varepsilon_{2} u_{2}+\cdots+\varepsilon_{m} u_{m}$, where $M_{0}$ is any fixed point in the plane and $\varepsilon_{i}= \pm 1$ for $i=1, \ldots, m$. Then $S_{m}$ obviously satisfies the condition of the problem. 3. Let $x, y, z$ be a solution of the given system with $x^{2}+y^{2}+z^{2}=\alpha<10$. Then $$ x y+y z+z x=\frac{(x+y+z)^{2}-\left(x^{2}+y^{2}+z^{2}\right)}{2}=\frac{9-\alpha}{2} . $$ Furthermore, $3 x y z=x^{3}+y^{3}+z^{3}-(x+y+z)\left(x^{2}+y^{2}+z^{2}-x y-y z-z x\right)$, which gives us $x y z=3(9-\alpha) / 2-4$. We now have $$ \begin{aligned} 35= & x^{4}+y^{4}+z^{4}=\left(x^{3}+y^{3}+z^{3}\right)(x+y+z) \\ & -\left(x^{2}+y^{2}+z^{2}\right)(x y+y z+z x)+x y z(x+y+z) \\ = & 45-\frac{\alpha(9-\alpha)}{2}+\frac{9(9-\alpha)}{2}-12 . \end{aligned} $$ The solutions in $\alpha$ are $\alpha=7$ and $\alpha=11$. Therefore $\alpha=7$, xyz $=-1$, $x y+x z+y z=1$, and $$ \begin{aligned} x^{5}+y^{5}+z^{5}= & \left(x^{4}+y^{4}+z^{4}\right)(x+y+z) \\ & -\left(x^{3}+y^{3}+z^{3}\right)(x y+x z+y z)+x y z\left(x^{2}+y^{2}+z^{2}\right) \\ = & 35 \cdot 3-15 \cdot 1+7 \cdot(-1)=83 . \end{aligned} $$ 4. In the coordinate system in which the $x$-axis passes through the centers of the circles and the $y$-axis is their common tangent, the circles have equations $$ x^{2}+y^{2}+2 r_{1} x=0, \quad x^{2}+y^{2}-2 r_{2} x=0 . $$ Let $p$ be the desired line with equation $y=a x+b$. The abscissas of points of intersection of $p$ with both circles satisfy one of $$ \left(1+a^{2}\right) x^{2}+2\left(a b+r_{1}\right) x+b^{2}=0, \quad\left(1+a^{2}\right) x^{2}+2\left(a b-r_{2}\right) x+b^{2}=0 $$ Let us denote the lengths of the chords and their projections onto the $x$-axis by $d$ and $d_{1}$, respectively. From these equations it follows that $$ d_{1}^{2}=\frac{4\left(a b+r_{1}\right)^{2}}{\left(1+a^{2}\right)^{2}}-\frac{4 b^{2}}{1+a^{2}}=\frac{4\left(a b-r_{2}\right)^{2}}{\left(1+a^{2}\right)^{2}}-\frac{4 b^{2}}{1+a^{2}} $$ Consider the point of intersection of $p$ with the $y$-axis. This point has equal powers with respect to both circles. Hence, if that point divides the segment determined on $p$ by the two circles on two segments of lengths $x$ and $y$, this power equals $x(x+d)=y(y+d)$, which implies $x=y=d / 2$. Thus each of the equations in (1) has two roots, one of which is thrice the other. This fact gives us $\left(a b+r_{1}\right)^{2}=4\left(1+a^{2}\right) b^{2} / 3$. From (1) and this we obtain $$ \begin{gathered} a b=\frac{r_{2}-r_{1}}{2}, \quad 4 b^{2}+a^{2} b^{2}=3\left[\left(a b+r_{1}\right)^{2}-a^{2} b^{2}\right]=3 r_{1} r_{2} \\ a^{2}=\frac{4\left(r_{2}-r_{1}\right)^{2}}{14 r_{1} r_{2}-r_{1}^{2}-r_{2}^{2}}, \quad b^{2}=\frac{14 r_{1} r_{2}-r_{1}^{2}-r_{2}^{2}}{16} \\ d_{1}^{2}=\frac{\left(14 r_{1} r_{2}-r_{1}^{2}-r_{2}^{2}\right)^{2}}{36\left(r_{1}+r_{2}\right)^{2}} \end{gathered} $$ Finally, since $d^{2}=d_{1}^{2}\left(1+a^{2}\right)$, we conclude that $$ d^{2}=\frac{1}{12}\left(14 r_{1} r_{2}-r_{1}^{2}-r_{2}^{2}\right), $$ and that the problem is solvable if and only if $7-4 \sqrt{3} \leq \frac{r_{1}}{r_{2}} \leq 7+4 \sqrt{3}$. 5. Without loss of generality, we may assume that $a \geq b \geq c \geq d \geq e$. Then $a-b=-(b-a) \geq 0, a-c \geq b-c \geq 0, a-d \geq b-d \geq 0$ and $a-e \geq b-e \geq 0$, and hence $$ (a-b)(a-c)(a-d)(a-e)+(b-a)(b-c)(b-d)(b-e) \geq 0 $$ Analogously, $(d-a)(d-b)(d-c)(d-e)+(e-a)(e-b)(e-c)(e-d) \geq 0$. Finally, $(c-a)(c-b)(c-d)(c-e) \geq 0$ as a product of two nonnegative numbers, from which the inequality stated in the problem follows. Remark. The problem in an alternative formulation, accepted for the IMO, asked to prove that the analogous inequality $$ \begin{gathered} \left(a_{1}-a_{2}\right)\left(a_{1}-a_{2}\right) \cdots\left(a_{1}-a_{n}\right)+\left(a_{2}-a_{1}\right)\left(a_{2}-a_{3}\right) \cdots\left(a_{2}-a_{n}\right)+\cdots \\ +\left(a_{n}-a_{1}\right)\left(a_{n}-a_{2}\right) \cdots\left(a_{n}-a_{n-1}\right) \geq 0 \end{gathered} $$ holds for arbitrary real numbers $a_{i}$ if and only if $n=3$ or $n=5$. The case $n=3$ is analogous to $n=5$. For $n=4$, a counterexample is $a_{1}=0, a_{2}=a_{3}=a_{4}=1$, while for $n>5$ one can take $a_{1}=a_{2}=\cdots=$ $a_{n-4}=0, a_{n-3}=a_{n-2}=a_{n-1}=2, a_{n}=1$ as a counterexample. 6. The proof goes by induction on $n$. For $n=2$, the following numeration satisfies the conditions (a)-(d): $C_{1}=11, C_{2}=12, C_{3}=22, C_{4}=21$. Suppose that $n>2$, and that the numeration $C_{1}, C_{2}, \ldots, C_{2^{n-1}}$ of a regular $2^{n-1}$-gon, in cyclical order, satisfies (i)-(iv). Then one can assign to the vertices of a $2^{n}$-gon cyclically the following numbers: $$ \overline{1 C_{1}}, \overline{1 C_{2}}, \ldots, \overline{1 C_{2^{n-1}}}, \overline{2 C_{2^{n-1}}}, \ldots, \overline{2 C_{2}}, \overline{2 C_{1}} $$ The conditions (i), (ii) obviously hold, while (iii) and (iv) follow from the inductive assumption. 7. (a) Suppose that $X, Y, Z$ are fixed on segments $A B, B C, C D$. It is proven in a standard way that if $\angle A T X \neq \angle Z T D$, then $Z T+T X$ can be reduced. It follows that if there exists a broken line $X Y Z T X$ of minimal length, then the following conditions hold: $$ \begin{aligned} & \angle D A B=\pi-\angle A T X-\angle A X T \\ & \angle A B C=\pi-\angle B X Y-\angle B Y X=\pi-\angle A X T-\angle C Y Z \\ & \angle B C D=\pi-\angle C Y Z-\angle C Z Y \\ & \angle C D A=\pi-\angle D T Z-\angle D Z T=\pi-\angle A T X-\angle C Z Y . \end{aligned} $$ Thus $\sigma=0$. (b) Now let $\sigma=0$. Let us cut the surface of the tetrahedron along the edges $A C, C D$, and $D B$ and set it down into a plane. Consider the plane figure $\mathcal{S}=A C D^{\prime} B D^{\prime \prime} C^{\prime}$ thus obtained made up of triangles $B C D^{\prime}, A B C, A B D^{\prime \prime}$, and $A C^{\prime} D^{\prime \prime}$, with $Z^{\prime}, T^{\prime}, Z^{\prime \prime}$ respectively on $C D^{\prime}, A D^{\prime \prime}, C^{\prime} D^{\prime \prime}$ (here $C^{\prime}$ corresponds to $C$, etc.). Since $\angle C^{\prime} D^{\prime \prime} A+\angle D^{\prime \prime} A B+\angle A B C+\angle B C D^{\prime}=0$ as an oriented angle (because $\sigma=0$ ), the lines $C D^{\prime}$ and $C^{\prime} D^{\prime \prime}$ are parallel and equally oriented; i.e., $C D^{\prime} D^{\prime \prime} C^{\prime}$ is a parallelogram. The broken line $X Y Z T X$ has minimal length if and only if $Z^{\prime \prime}, T^{\prime}, X$, $Y, Z^{\prime}$ are collinear (where $Z^{\prime} Z^{\prime \prime} \|$ $C C^{\prime}$ ), and then this length equals $Z^{\prime} Z^{\prime \prime}=C C^{\prime}=2 A C \sin (\alpha / 2)$. There is an infinity of such lines, one for every line $Z^{\prime} Z^{\prime \prime}$ parallel to $C C^{\prime}$ that meets the interiors of all the segments $C B, B A, A D^{\prime \prime}$. Such ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-389.jpg?height=300&width=516&top_left_y=408&top_left_x=835) $Z^{\prime} Z^{\prime \prime}$ exist. Indeed, the triangles $C A B$ and $D^{\prime \prime} A B$ are acute-angled, and thus the segment $A B$ has a common interior point with the parallelogram $C D^{\prime} D^{\prime \prime} C^{\prime}$. Therefore the desired result follows. 8. Suppose that $a, b, c, t$ satisfy all the conditions. Then $a b c \neq 0$ and $$ x_{1} x_{2}=\frac{c}{a}, \quad x_{2} x_{3}=\frac{a}{b}, \quad x_{3} x_{1}=\frac{b}{c} . $$ Multiplying these equations, we obtain $x_{1}^{2} x_{2}^{2} x_{3}^{2}=1$, and hence $x_{1} x_{2} x_{3}=$ $\varepsilon= \pm 1$. From (1) we get $x_{1}=\varepsilon b / a, x_{2}=\varepsilon c / b, x_{3}=\varepsilon a / c$. Substituting $x_{1}$ in the first equation, we get $a b^{2} / a^{2}+t \varepsilon b^{2} / a+c=0$, which gives us $$ b^{2}(1+t \varepsilon)=-a c . $$ Analogously, $c^{2}(1+t \varepsilon)=-a b$ and $a^{2}(1+t \varepsilon)=-b c$, and therefore $(1+$ $t \varepsilon)^{3}=-1$; i.e., $1+t \varepsilon=-1$, since it is real. This also implies together with (1) that $b^{2}=a c, c^{2}=a b$, and $a^{2}=b c$, and consequently $$ a=b=c \text {. } $$ Thus the three equations in the problem are equal, which is impossible. Hence, such $a, b, c, t$ do not exist. 9. We use induction. Since $T_{1}=0, T_{2}=1, T_{3}=2, T_{4}=3, T_{5}=5, T_{6}=8$, the statement is true for $n=1,2,3$. Suppose that both formulas from the problem hold for some $n \geq 3$. Then $$ \begin{aligned} & T_{2 n+1}=1+T_{2 n}+2^{n-1}=\left[\frac{17}{7} 2^{n-1}+2^{n-1}\right]=\left[\frac{12}{7} 2^{n}\right] \\ & T_{2 n+2}=1+T_{2 n-3}+2^{n+1}=\left[\frac{12}{7} 2^{n-2}+2^{n+1}\right]=\left[\frac{17}{7} 2^{n}\right] . \end{aligned} $$ Therefore the formulas hold for $n+1$, which completes the proof. 10. We use induction. Suppose that every two of the numbers $a_{1}=2^{n_{1}}-$ $3, a_{2}=2^{n_{2}}-3, \ldots, a_{k}=2^{n_{k}}-3$, where $2=n_{1}n_{k}$. 11. We use induction. The statement for $n=1$ is trivial. Suppose that it holds for $n=k$ and consider $n=k+1$. From the given condition, we have $$ \begin{gathered} \sum_{j=1}^{k}\left|a_{j, 1} x_{1}+\cdots+a_{j, k} x_{k}+a_{j, k+1}\right| \\ +\left|a_{k+1,1} x_{1}+\cdots+a_{k+1, k} x_{k}+a_{k+1, k+1}\right| \leq M \\ \sum_{j=1}^{k}\left|a_{j, 1} x_{1}+\cdots+a_{j, k} x_{k}-a_{j, k+1}\right| \\ +\left|a_{k+1,1} x_{1}+\cdots+a_{k+1, k} x_{k}-a_{k+1, k+1}\right| \leq M \end{gathered} $$ for each choice of $x_{i}= \pm 1$. Since $|a+b|+|a-b| \geq 2|a|$ for all $a, b$, we obtain $$ \begin{aligned} 2 \sum_{j=1}^{k}\left|a_{j 1} x_{1}+\cdots+a_{j k} x_{k}\right|+2\left|a_{k+1, k+1}\right| & \leq 2 M, \text { that is, } \\ \sum_{j=1}^{k}\left|a_{j 1} x_{1}+\cdots+a_{j k} x_{k}\right| & \leq M-\left|a_{k+1, k+1}\right| \end{aligned} $$ Now by the inductive assumption $\sum_{j=1}^{k}\left|a_{j j}\right| \leq M-\left|a_{k+1, k+1}\right|$, which is equivalent to the desired inequality. 12. Let us start with the case $A=A^{\prime}$. If the triangles $A B C$ and $A^{\prime} B^{\prime} C^{\prime}$ are oppositely oriented, then they are symmetric with respect to some axis, and the statement is true. Suppose that they are equally oriented. There is a rotation around $A$ by $60^{\circ}$ that maps $A B B^{\prime}$ onto $A C C^{\prime}$. This rotation also maps the midpoint $B_{0}$ of $B B^{\prime}$ onto the midpoint $C_{0}$ of $C C^{\prime}$, hence the triangle $A B_{0} C_{0}$ is equilateral. In the general case, when $A \neq A^{\prime}$, let us denote by $T$ the translation that maps $A$ onto $A^{\prime}$. Let $X^{\prime}$ be the image of a point $X$ under the (unique) isometry mapping $A B C$ onto $A^{\prime} B^{\prime} C^{\prime}$, and $X^{\prime \prime}$ the image of $X$ under $T$. Furthermore, let $X_{0}, X_{0}^{\prime}$ be the midpoints of segments $X X^{\prime}, X^{\prime} X^{\prime \prime}$. Then $X_{0}$ is the image of $X_{0}^{\prime}$ under the translation $-(1 / 2) T$. However, since it has already been proven that the triangle $A_{0}^{\prime} B_{0}^{\prime} C_{0}^{\prime}$ is equilateral, its image $A_{0} B_{0} C_{0}$ under $(1 / 2) T$ is also equilateral. The statement of the problem is thus proven. 13. Let $p$ be the least of all the sums of elements in one row or column. If $p \geq n / 2$, then the sum of all elements of the array is $s \geq n p \geq n^{2} / 2$. Now suppose that $p1248$. For each segment $l_{i}=A_{i} A_{i+1}$ of the broken line, consider the figure $V_{i}$ obtained by a circle of radius 1 whose center moves along it, and let $\overline{V_{i}}$ be obtained by cutting off the circle of radius 1 with center at the starting point of $l_{i}$. The area of $\overline{V_{i}}$ is equal to $2 A_{i} A_{i+1}$. It is clear that the union of all the figures $\overline{V_{i}}$ together with a semicircle with center in $A_{1}$ and a semicircle with center in $A_{n}$ contains $V$ completely. Therefore $$ S(V) \leq \pi+2 A_{1} A_{2}+2 A_{2} A_{3}+\cdots+2 A_{n-1} A_{n}=\pi+2 L . $$ This completes the proof. 15. Assume the opposite. Then one can numerate the cards 1 to 99, with a number $n_{i}$ written on the card $i$, so that $n_{98} \neq n_{99}$. Denote by $x_{i}$ the remainder of $n_{1}+n_{2}+\cdots+n_{i}$ upon division by 100 , for $i=1,2, \ldots, 99$. All $x_{i}$ must be distinct: Indeed, if $x_{i}=x_{j}, i0$, $10^{k \beta} \equiv 1\left(\bmod \left(10^{\beta}-1\right) m\right)$ (this is in fact a consequence of Fermat's theorem). The number $$ \frac{10^{k \beta}-1}{10^{\beta}-1} M_{\beta}=10^{(k-1) \beta} M_{\beta}+10^{(k-2) \beta} M_{\beta}+\cdots+M_{\beta} $$ is a multiple of $n=5^{\beta} m$ with the required property. 7. (i) Consider the circumscribing cube $O Q_{1} P R_{1} O_{1} Q P_{1} R$ (that is, the cube in which the edges of the tetrahedron are small diagonals), of side $b=a \sqrt{2} / 2$. The left-hand side is the sum of squares of the projections of the edges of the tetrahedron onto a perpendicular $l$ to $\pi$. On the other hand, if $l$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-395.jpg?height=363&width=333&top_left_y=609&top_left_x=936) forms angles $\varphi_{1}, \varphi_{2}, \varphi_{3}$ with $O O_{1}, O Q_{1}, O R_{1}$ respectively, then the projections of $O P$ and $Q R$ onto $l$ have lengths $b\left(\cos \varphi_{2}+\cos \varphi_{3}\right)$ and $b\left|\cos \varphi_{2}-\cos \varphi_{3}\right|$. Summing up all these expressions, we obtain $$ 4 b^{2}\left(\cos ^{2} \varphi_{1}+\cos ^{2} \varphi_{2}+\cos ^{2} \varphi_{3}\right)=4 b^{2}=2 a^{2} $$ (ii) We construct a required tetrahedron of edge length $a$ given in (i). Take $O$ arbitrarily on $\pi_{0}$, and let $p, q, r$ be the distances of $O$ from $\pi_{1}, \pi_{2}, \pi_{3}$. Since $a>p, q, r,|p-q|$, we can choose $P$ on $\pi_{1}$ anywhere at distance $a$ from $O$, and $Q$ at one of the two points on $\pi_{2}$ at distance $a$ from both $O$ and $P$. Consider the fourth vertex of the tetrahedron: its distance from $\pi_{0}$ will satisfy the equation from (i); i.e., there are two values for this distance; clearly, one of them is $r$, putting $R$ on $\pi_{3}$. 8. Let $f(m, n)=\frac{(2 m)!(2 n)!}{m!n!(m+n)!}$. Then it is directly shown that $$ f(m, n)=4 f(m, n-1)-f(m+1, n-1), $$ and thus $n$ may be successively reduced until one obtains $f(m, n)=$ $\sum_{r} c_{r} f(r, 0)$. Now $f(r, 0)$ is a simple binomial coefficient, and the $c_{r}$ 's are integers. Second solution. For each prime $p$, the greatest exponents of $p$ that divide the numerator $(2 m)!(2 n)$ ! and denominator $m!n!(m+n)$ ! are respectively $$ \sum_{k>0}\left(\left[\frac{2 m}{p^{k}}\right]+\left[\frac{2 n}{p^{k}}\right]\right) \quad \text { and } \quad \sum_{k>0}\left(\left[\frac{m}{p^{k}}\right]+\left[\frac{n}{p^{k}}\right]+\left[\frac{m+n}{p^{k}}\right]\right) $$ hence it suffices to show that the first exponent is not less than the second one for every $p$. This follows from the fact that for each real $x,[2 x]+[2 y] \geq$ $[x]+[y]+[x+y]$, which is straightforward to prove (for example, using $[2 x]=[x]+[x+1 / 2])$. 9. Clearly $x_{1}=x_{2}=x_{3}=x_{4}=x_{5}$ is a solution. We shall show that this describes all solutions. Suppose that not all $x_{i}$ are equal. Then among $x_{3}, x_{5}, x_{2}, x_{4}, x_{1}$ two consecutive are distinct: Assume w.l.o.g. that $x_{3} \neq x_{5}$. Moreover, since $\left(1 / x_{1}, \ldots, 1 / x_{5}\right)$ is a solution whenever $\left(x_{1}, \ldots, x_{5}\right)$ is, we may assume that $x_{3}x_{3}$. Then $x_{5}^{2}>x_{1} x_{3}$, which together with (iv) gives $x_{4}^{2} \leq x_{1} x_{3}x_{5} x_{3}$, a contradiction. Consider next the case $x_{1}>x_{2}$. We infer from (i) that $x_{1} \geq \sqrt{x_{3} x_{5}}>x_{3}$ and $x_{2} \leq \sqrt{x_{3} x_{5}}x_{2}$. Second solution. $$ \begin{aligned} 0 & \geq L_{1}=\left(x_{1}^{2}-x_{3} x_{5}\right)\left(x_{2}^{2}-x_{3} x_{5}\right)=x_{1}^{2} x_{2}^{2}+x_{3}^{2} x_{5}^{2}-\left(x_{1}^{2}+x_{2}^{2}\right) x_{3} x_{5} \\ & \geq x_{1}^{2} x_{2}^{2}+x_{3}^{2} x_{5}^{2}-\frac{1}{2}\left(x_{1}^{2} x_{3}^{2}+x_{1}^{2} x_{5}^{2}+x_{2}^{2} x_{3}^{2}+x_{2}^{2} x_{5}^{2}\right) \end{aligned} $$ and analogously for $L_{2}, \ldots, L_{5}$. Therefore $L_{1}+L_{2}+L_{3}+L_{4}+L_{5} \geq 0$, with the only case of equality $x_{1}=x_{2}=x_{3}=x_{4}=x_{5}$. 10. Consider first a triangle. It can be decomposed into $k=3$ cyclic quadrilaterals by perpendiculars from some interior point of it to the sides; also, it can be decomposed into a cyclic quadrilateral and a triangle, and it follows by induction that this decomposition is possible for every $k$. Since every triangle can be cut into two triangles, the required decomposition is possible for each $n \geq 6$. It remains to treat the cases $n=4$ and $n=5$. $n=4$. If the center $O$ of the circumcircle is inside a cyclic quadrilateral $A B C D$, then the required decomposition is effected by perpendiculars from $O$ to the four sides. Otherwise, let $C$ and $D$ be the vertices of the obtuse angles of the quadrilateral. Draw the perpendiculars at $C$ and $D$ to the lines $B C$ and $A D$ respectively, and choose points $P$ and $Q$ on them such that $P Q \| A B$. Then the required decomposition is effected by $C P, P Q, Q D$ and the perpendiculars from $P$ and $Q$ to $A B$. $n=5$. If $A B C D$ is an isosceles trapezoid with $A B \| C D$ and $A D=B C$, then it is trivially decomposed by lines parallel to $A B$. Otherwise, $A B C D$ can be decomposed into a cyclic quadrilateral and a trapezoid; this trapezoid can be cut into an isosceles trapezoid and a triangle, which can further be cut into three cyclic quadrilaterals and an isosceles trapezoid. Remark. It can be shown that the assertion is not true for $n=2$ and $n=3$. 11. Let $\angle A=2 x, \angle B=2 y, \angle C=2 z$. (a) Denote by $M_{i}$ the center of $K_{i}, i=1,2, \ldots$ If $N_{1}, N_{2}$ are the projections of $M_{1}, M_{2}$ onto $A B$, we have $A N_{1}=r_{1} \cot x, N_{2} B=r_{2} \cot y$, and $N_{1} N_{2}=\sqrt{\left(r_{1}+r_{2}\right)^{2}-\left(r_{1}-r_{2}\right)^{2}}=2 \sqrt{r_{1} r_{2}}$. The required relation between $r_{1}, r_{2}$ follows from $A B=A N_{1}+N_{1} N_{2}+N_{2} B$. If this relation is further considered as a quadratic equation in $\sqrt{r_{2}}$, then its discriminant, which equals $$ \Delta=4\left(r(\cot x+\cot y) \cot y-r_{1}(\cot x \cot y-1)\right), $$ must be nonnegative, and therefore $r_{1} \leq r \cot y \cot z$. Then $t_{1}, t_{2}, \ldots$ exist, and we can assume that $t_{i} \in[0, \pi / 2]$. (b) Substituting $r_{1}=r \cot y \cot z \sin ^{2} t_{1}, r_{2}=r \cot z \cot x \sin ^{2} t_{2}$ in the relation of (a) we obtain that $\sin ^{2} t_{1}+\sin ^{2} t_{2}+k^{2}+2 k \sin t_{1} \sin t_{2}=1$, where we set $k=\sqrt{\tan x \tan y}$. It follows that $\left(k+\sin t_{1} \sin t_{2}\right)^{2}=$ $\left(1-\sin ^{2} t_{1}\right)\left(1-\sin ^{2} t_{2}\right)=\cos ^{2} t_{1} \cos ^{2} t_{2}$, and hence $$ \cos \left(t_{1}+t_{2}\right)=\cos t_{1} \cos t_{2}-\sin t_{1} \sin t_{2}=k=\sqrt{\tan x \tan y} $$ which is constant. Writing the analogous relations for each $t_{i}, t_{i+1}$ we conclude that $t_{1}+t_{2}=t_{4}+t_{5}, t_{2}+t_{3}=t_{5}+t_{6}$, and $t_{3}+t_{4}=t_{6}+t_{7}$. It follows that $t_{1}=t_{7}$, i.e., $K_{1}=K_{7}$. 12. First we observe that it is not essential to require the subsets to be disjoint (if they aren't, one simply excludes their intersection). There are $2^{10}-1=$ 1023 different subsets and at most 990 different sums. By the pigeonhole principle there are two different subsets with equal sums. ### 4.15 Solutions to the Shortlisted Problems of IMO 1973 1. The condition of the point $P$ can be written in the form $\frac{A P^{2}}{A P \cdot P A_{1}}+\frac{B P^{2}}{B P \cdot P B_{1}}+$ $\frac{C P^{2}}{C P \cdot P C_{1}}+\frac{D P^{2}}{D P \cdot P D_{1}}=4$. All the four denominators are equal to $R^{2}-O P^{2}$, i.e., to the power of $P$ with respect to $S$. Thus the condition becomes $$ A P^{2}+B P^{2}+C P^{2}+D P^{2}=4\left(R^{2}-O P^{2}\right) $$ Let $M$ and $N$ be the midpoints of segments $A B$ and $C D$ respectively, and $G$ the midpoint of $M N$, or the centroid of $A B C D$. By Stewart's formula, an arbitrary point $P$ satisfies $$ \begin{aligned} A P^{2}+B P^{2}+C P^{2}+D P^{2} & =2 M P^{2}+2 N P^{2}+\frac{1}{2} A B^{2}+\frac{1}{2} C D^{2} \\ & =4 G P^{2}+M N^{2}+\frac{1}{2}\left(A B^{2}+C D^{2}\right) \end{aligned} $$ Particularly, for $P \equiv O$ we get $4 R^{2}=4 O G^{2}+M N^{2}+\frac{1}{2}\left(A B^{2}+C D^{2}\right)$, and the above equality becomes $$ A P^{2}+B P^{2}+C P^{2}+D P^{2}=4 G P^{2}+4 R^{2}-4 O G^{2} $$ Therefore (1) is equivalent to $O G^{2}=O P^{2}+G P^{2} \Leftrightarrow \angle O P G=90^{\circ}$. Hence the locus of points $P$ is the sphere with diameter $O G$. Now the converse is easy. 2. Let $D^{\prime}$ be the reflection of $D$ across $A$. Since $B C A D^{\prime}$ is then a parallelogram, the condition $B D \geq A C$ is equivalent to $B D \geq B D^{\prime}$, which is in turn equivalent to $\angle B A D \geq \angle B A D^{\prime}$, i.e. to $\angle B A D \geq 90^{\circ}$. Thus the needed locus is actually the locus of points $A$ for which there exist points $B, D$ inside $K$ with $\angle B A D=90^{\circ}$. Such points $B, D$ exist if and only if the two tangents from $A$ to $K$, say $A P$ and $A Q$, determine an obtuse angle. Then if $P, Q \in K$, we have $\angle P A O=\angle Q A O=\varphi>45^{\circ}$; hence $O A=\frac{O P}{\sin \varphi}0$. Point $G$ belongs to a plane $A B C$ with $A \in O x, B \in O y, C \in O z$ if and only if there exist positive real numbers $\lambda, \mu, \nu$ with sum 1 such that $\lambda \overrightarrow{O A}+\mu \overrightarrow{O B}+\nu \overrightarrow{O C}=\overrightarrow{O G}$, which is equivalent to $\lambda \alpha=\mu \beta=\nu \gamma=1$. Such $\lambda, \mu, \nu$ exist if and only if $$ \alpha, \beta, \gamma>0 \quad \text { and } \quad \frac{1}{\alpha}+\frac{1}{\beta}+\frac{1}{\gamma}=1 $$ Since the volume of $O A B C$ is proportional to the product $\alpha \beta \gamma$, it is minimized when $\frac{1}{\alpha} \cdot \frac{1}{\beta} \cdot \frac{1}{\gamma}$ is maximized, which occurs when $\alpha=\beta=\gamma=3$ and $G$ is the centroid of $\triangle A B C$. 10. Let $b_{k}=a_{1} q^{k-1}+\cdots+a_{k-1} q+a_{k}+a_{k+1} q+\cdots+a_{n} q^{n-k}, \quad k=1,2, \ldots, n$. We show that these numbers satisfy the required conditions. Obviously $b_{k} \geq a_{k}$. Further, $$ b_{k+1}-q b_{k}=-\left[\left(q^{2}-1\right) a_{k+1}+\cdots+q^{n-k-1}\left(q^{2}-1\right) a_{n}\right]>0 $$ we analogously obtain $q b_{k+1}-b_{k}<0$. Finally, $$ \begin{aligned} b_{1}+b_{2}+\cdots+b_{n}= & a_{1}\left(q^{n-1}+\cdots+q+1\right)+\ldots \\ & +a_{k}\left(q^{n-k}+\cdots+q+1+q+\cdots+q^{k-1}\right)+\ldots \\ \leq & \left(a_{1}+a_{2}+\cdots+a_{n}\right)\left(1+2 q+2 q^{2}+\cdots+2 q^{n-1}\right) \\ < & \frac{1+q}{1-q}\left(a_{1}+\cdots+a_{n}\right) \end{aligned} $$ 11. Putting $x+\frac{1}{x}=t$ we also get $x^{2}+\frac{1}{x^{2}}=t^{2}-2$, and the given equation reduces to $t^{2}+a t+b-2=0$. Since $x=\frac{t \pm \sqrt{t^{2}-4}}{2}, x$ will be real if and only if $|t| \geq 2, t \in \mathbb{R}$. Thus we need the minimum value of $a^{2}+b^{2}$ under the condition $a t+b=-\left(t^{2}-2\right),|t| \geq 2$. However, by the Cauchy-Schwarz inequality we have $$ \left(a^{2}+b^{2}\right)\left(t^{2}+1\right) \geq(a t+b)^{2}=\left(t^{2}-2\right)^{2} $$ It follows that $a^{2}+b^{2} \geq h(t)=\frac{\left(t^{2}-2\right)^{2}}{t^{2}+1}$. Since $h(t)=\left(t^{2}+1\right)+\frac{9}{t^{2}+1}-6$ is increasing for $t \geq 2$, we conclude that $a^{2}+b^{2} \geq h(2)=\frac{4}{5}$. The cases of equality are easy to examine: These are $a= \pm \frac{4}{5}$ and $b=-\frac{2}{5}$. Second solution. In fact, there was no need for considering $x=t+1 / t$. By the Cauchy-Schwarz inequality we have $\left(a^{2}+2 b^{2}+a^{2}\right)\left(x^{6}+x^{4} / 2+x^{2}\right) \geq$ $\left(a x^{3}+b x^{2}+a x\right)^{2}=\left(x^{4}+1\right)^{2}$. Hence $$ a^{2}+b^{2} \geq \frac{\left(x^{4}+1\right)^{2}}{2 x^{6}+x^{4}+2 x^{2}} \geq \frac{4}{5} $$ with equality for $x=1$. 12. Observe that the absolute values of the determinants of the given matrices are invariant under all the admitted operations. The statement follows from $\operatorname{det} A=16 \neq \operatorname{det} B=0$. 13. Let $S_{1}, S_{2}, S_{3}, S_{4}$ denote the areas of the faces of the tetrahedron, $V$ its volume, $h_{1}, h_{2}, h_{3}, h_{4}$ its altitudes, and $r$ the radius of its inscribed sphere. Since $$ 3 V=S_{1} h_{1}=S_{2} h_{2}=S_{3} h_{3}=S_{4} h_{4}=\left(S_{1}+S_{2}+S_{3}+S_{4}\right) r, $$ it follows that $$ \frac{1}{h_{1}}+\frac{1}{h_{2}}+\frac{1}{h_{3}}+\frac{1}{h_{4}}=\frac{1}{r} . $$ In our case, $h_{1}, h_{2}, h_{3}, h_{4} \geq 1$, hence $r \geq 1 / 4$. On the other hand, it is clear that a sphere of radius greater than $1 / 4$ cannot be inscribed in a tetrahedron all of whose altitudes have length equal to 1 . Thus the answer is $1 / 4$. 14. Suppose that the soldier starts at the vertex $A$ of the equilateral triangle $A B C$ of side length $a$. Let $\varphi, \psi$ be the arcs of circles with centers $B$ and $C$ and radii $a \sqrt{3} / 4$ respectively, that lie inside the triangle. In order to check the vertices $B, C$, he must visit some points $D \in \varphi$ and $E \in \psi$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-401.jpg?height=324&width=394&top_left_y=1496&top_left_x=887) Thus his path cannot be shorter than the path $A D E$ (or $A E D$ ) itself. The length of the path $A D E$ is $A D+D E \geq A D+D C-a \sqrt{3} / 4$. Let $F$ be the reflection of $C$ across the line $M N$, where $M, N$ are the midpoints of $A B$ and $B C$. Then $D C \geq D F$ and hence $A D+D C \geq A D+D F \geq A F$. Consequently $A D+D E \geq A F-a \frac{\sqrt{3}}{4}=a\left(\frac{\sqrt{7}}{2}-\frac{\sqrt{3}}{4}\right)$, with equality if and only if $D$ is the midpoint of $\operatorname{arc} \varphi$ and $E=(C D) \cap \psi$. Moreover, it is easy to verify that, in following the path $A D E$, the soldier will check the whole region. Therefore this path (as well as the one symmetric to it) is shortest possible path that the soldier can take in order to check the entire field. 15. If $z=\cos \theta+i \sin \theta$, then $z-z^{-1}=2 i \sin \theta$. Now put $z=\cos \frac{\pi}{2 n+1}+$ $i \sin \frac{\pi}{2 n+1}$. Using de Moivre's formula we transform the required equality into $$ A=\prod_{k=1}^{n}\left(z^{k}-z^{-k}\right)=i^{n} \sqrt{2 n+1} $$ On the other hand, the complex numbers $z^{2 k}(k=-n,-n+1, \ldots, n)$ are the roots of $x^{2 n+1}-1$, and hence $$ \prod_{k=1}^{n}\left(x-z^{2 k}\right)\left(x-z^{-2 k}\right)=\frac{x^{2 n+1}-1}{x-1}=x^{2 n}+\cdots+x+1 $$ Now we go back to proving (1). We have $$ (-1)^{n} z^{n(n+1) / 2} A=\prod_{k=1}^{n}\left(1-z^{2 k}\right) \quad \text { and } \quad z^{-n(n+1) / 2} A=\prod_{k=1}^{n}\left(1-z^{-2 k}\right) $$ Multiplying these two equalities, we obtain $(-1)^{n} A^{2}=\prod_{k=1}^{n}\left(1-z^{2 k}\right)(1-$ $\left.z^{-2 k}\right)=2 n+1$, by (2). Therefore $A= \pm i^{-n} \sqrt{2 n+1}$. This actually implies that the required product is $\pm \sqrt{2 n+1}$, but it must be positive, since all the sines are, and the result follows. 16. First, we have $P(x)=Q(x) R(x)$ for $Q(x)=x^{m}-|a|^{m} e^{i \theta}$ and $R(x)=$ $x^{m}-|a|^{m} e^{-i \theta}$, where $e^{i \varphi}$ means of course $\cos \varphi+i \sin \varphi$. It remains to factor both $Q$ and $R$. Suppose that $Q(x)=\left(x-q_{1}\right) \cdots\left(x-q_{m}\right)$ and $R(x)=\left(x-r_{1}\right) \cdots\left(x-r_{m}\right)$. Considering $Q(x)$, we see that $\left|q_{k}^{m}\right|=|a|^{m}$ and also $\left|q_{k}\right|=|a|$ for $k=$ $1, \ldots, m$. Thus we may put $q_{k}=|a| e^{i \beta_{k}}$ and obtain by de Moivre's formula $q_{k}^{m}=|a|^{m} e^{i m \beta_{k}}$. It follows that $m \beta_{k}=\theta+2 j \pi$ for some $j \in \mathbb{Z}$, and we have exactly $m$ possibilities for $\beta_{k}$ modulo $2 \pi$ : $\beta_{k}=\frac{\theta+2(k-1) \pi}{m}$ for $k=1,2, \ldots, m$. Thus $q_{k}=|a| e^{i \beta_{k}}$; analogously we obtain for $R(x)$ that $r_{k}=|a| e^{-i \beta_{k}}$. Consequently, $x^{m}-|a|^{m} e^{i \theta}=\prod_{k=1}^{m}\left(x-|a| e^{i \beta_{k}}\right) \quad$ and $\quad x^{m}-|a|^{m} e^{-i \theta}=\prod_{k=1}^{m}\left(x-|a| e^{-i \beta_{k}}\right)$. Finally, grouping the $k$ th factors of both polynomials, we get $$ \begin{aligned} P(x) & =\prod_{k=1}^{m}\left(x-|a| e^{i \beta_{k}}\right)\left(x-|a| e^{-i \beta_{k}}\right)=\prod_{k=1}^{m}\left(x^{2}-2|a| x \cos \beta_{k}+a^{2}\right) \\ & =\prod_{k=1}^{m}\left(x^{2}-2|a| x \cos \frac{\theta+2(k-1) \pi}{m}+a^{2}\right) \end{aligned} $$ 17. Let $f_{1}(x)=a x+b$ and $f_{2}(x)=c x+d$ be two functions from $\mathcal{F}$. We define $g(x)=f_{1} \circ f_{2}(x)=a c x+(a d+b)$ and $h(x)=f_{2} \circ f_{1}(x)=a c x+(b c+d)$. By the condition for $\mathcal{F}$, both $g(x)$ and $h(x)$ belong to $\mathcal{F}$. Moreover, there exists $h^{-1}(x)=\frac{x-(b c+d)}{a c}$, and $$ h^{-1} \circ g(x)=\frac{a c x+(a d+b)-(b c+d)}{a c}=x+\frac{(a d+b)-(b c+d)}{a c} $$ belongs to $\mathcal{F}$. Now it follows that we must have $a d+b=b c+d$ for every $f_{1}, f_{2} \in \mathcal{F}$, which is equivalent to $\frac{b}{a-1}=\frac{d}{c-1}=k$. But these formulas exactly describe the fixed points of $f_{1}$ and $f_{2}: f_{1}(x)=a x+b=x \Rightarrow x=$ $\frac{b}{a-1}$. Hence all the functions in $\mathcal{F}$ fix the point $k$. ### 4.16 Solutions to the Shortlisted Problems of IMO 1974 1. Denote by $n$ the number of exams. We have $n(A+B+C)=20+10+9=39$, and since $A, B, C$ are distinct, their sum is at least 6 ; therefore $n=3$ and $A+B+C=13$. Assume w.l.o.g. that $A>B>C$. Since Betty gained $A$ points in arithmetic, but fewer than 13 points in total, she had $C$ points in both remaining exams (in spelling as well). Furthermore, Carol also gained fewer than 13 points, but with at least $B$ points on two examinations (on which Betty scored $C$ ), including spelling. If she had $A$ in spelling, then she would have at least $A+B+C=13$ points in total, a contradiction. Hence, Carol scored $B$ and placed second in spelling. Remark. Moreover, it follows that Alice, Betty, and Carol scored $B+A+A$, $A+C+C$, and $C+B+B$ respectively, and that $A=8, B=4, C=1$. 2. We denote by $q_{i}$ the square with side $\frac{1}{i}$. Let us divide the big square into rectangles $r_{i}$ by parallel lines, where the size of $r_{i}$ is $\frac{3}{2} \times \frac{1}{2^{i}}$ for $i=2,3, \ldots$ and $\frac{3}{2} \times 1$ for $i=1$ (this can be done because $1+\sum_{i=2}^{\infty} \frac{1}{2^{i}}=\frac{3}{2}$ ). In rectangle $r_{1}$, one can put the squares $q_{1}, q_{2}, q_{3}$, as is done on the figure. Also, since $\frac{1}{2^{i}}+\cdots+\frac{1}{2^{i+1}-1}<2^{i} \cdot \frac{1}{2^{i}}=1<\frac{3}{2}$, in each $r_{i}, i \geq 2$, one can put $q_{2^{i}}, \ldots, q_{2^{i+1}-1}$. This completes the proof. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-404.jpg?height=252&width=254&top_left_y=1103&top_left_x=664) Remark. It can be shown that the squares $q_{1}, q_{2}$ cannot fit in any square of side less than $\frac{3}{2}$. 3. For $\operatorname{deg}(P) \leq 2$ the statement is obvious, since $n(P) \leq \operatorname{deg}\left(P^{2}\right)=$ $2 \operatorname{deg}(P) \leq \operatorname{deg}(P)+2$ 。 Suppose now that $\operatorname{deg}(P) \geq 3$ and $n(P)>\operatorname{deg}(P)+2$. Then there is at least one integer $b$ for which $P(b)=-1$, and at least one $x$ with $P(x)=1$. We may assume w.l.o.g. that $b=0$ (if necessary, we consider the polynomial $P(x+b)$ instead). If $k_{1}, \ldots, k_{m}$ are all integers for which $P\left(k_{i}\right)=1$, then $P(x)=Q(x)\left(x-k_{1}\right) \cdots\left(x-k_{m}\right)+1$ for some polynomial $Q(x)$ with integer coefficients. Setting $x=0$ we obtain $(-1)^{m} Q(0) k_{1} \cdots k_{m}=1-P(0)=2$. It follows that $k_{1} \cdots k_{m} \mid 2$, and hence $m$ is at most 3 . The same holds for the polynomial $-P(x)$, and thus $P(x)=-1$ also has at most 3 integer solutions. This counts for 6 solutions of $P^{2}(x)=1$ in total, implying the statement for $\operatorname{deg}(P) \geq 4$. It remains to verify the statement for $n=3$. If $\operatorname{deg}(P)=3$ and $n(P)=6$, then it follows from the above consideration that $P(x)$ is either $-\left(x^{2}-\right.$ $1)(x-2)+1$ or $\left(x^{2}-1\right)(x+2)+1$. It is directly checked that $n(P)$ equals only 4 in both cases. 4. Assume w.l.o.g. that $a_{1} \leq a_{2} \leq a_{3} \leq a_{4} \leq a_{5}$. If $m$ is the least value of $\left|a_{i}-a_{j}\right|, i \neq j$, then $a_{i+1}-a_{i} \geq m$ for $i=1,2, \ldots, 5$, and consequently $a_{i}-a_{j} \geq(i-j) m$ for any $i, j \in\{1, \ldots, 5\}, i>j$. Then it follows that $$ \sum_{i>j}\left(a_{i}-a_{j}\right)^{2} \geq m^{2} \sum_{i>j}(i-j)^{2}=50 m^{2} $$ On the other hand, by the condition of the problem, $$ \sum_{i>j}\left(a_{i}-a_{j}\right)^{2}=5 \sum_{i=1}^{5} a_{i}^{2}-\left(a_{1}+\cdots+a_{5}\right)^{2} \leq 5 $$ Therefore $50 m^{2} \leq 5$; i.e., $m^{2} \leq \frac{1}{10}$. 5. All the angles are assumed to be oriented and measured modulo $180^{\circ}$. Denote by $\alpha_{i}, \beta_{i}, \gamma_{i}$ the angles of triangle $\triangle_{i}$, at $A_{i}, B_{i}, C_{i}$ respectively. Let us determine the angles of $\triangle_{i+1}$. If $D_{i}$ is the intersection of lines $B_{i} B_{i+1}$ and $C_{i} C_{i+1}$, we have $\angle B_{i+1} A_{i+1} C_{i+1}=\angle D_{i} B_{i} C_{i+1}=\angle B_{i} D_{i} C_{i+1}+$ $\angle D_{i} C_{i+1} B_{i}=\angle B_{i} D_{i} C_{i}-\angle B_{i} C_{i+1} C_{i}=-2 \angle B_{i} A_{i} C_{i}$. We conclude that $$ \alpha_{i+1}=-2 \alpha_{i}, \quad \text { and analogously } \quad \beta_{i+1}=-2 \beta_{i}, \quad \gamma_{i+1}=-2 \gamma_{i} $$ Therefore $\alpha_{r+t}=(-2)^{t} \alpha_{r}$. However, since $(-2)^{12} \equiv 1(\bmod 45)$ and consequently $(-2)^{14} \equiv(-2)^{2}(\bmod 180)$, it follows that $\alpha_{15}=\alpha_{3}$, since all values are modulo $180^{\circ}$. Analogously, $\beta_{15}=\beta_{3}$ and $\gamma_{15}=\gamma_{3}$, and moreover, $\triangle_{3}$ and $\triangle_{15}$ are inscribed in the same circle; hence $\triangle_{3} \cong \triangle_{15}$. 6. We set $$ \begin{aligned} & x=\sum_{k=0}^{n}\binom{2 n+1}{2 k+1} 2^{3 k}=\frac{1}{\sqrt{8}} \sum_{k=0}^{n}\binom{2 n+1}{2 k+1} \sqrt{8}^{2 k+1}, \\ & y=\sum_{k=0}^{n}\binom{2 n+1}{2 k} 2^{3 k}=\sum_{k=0}^{n}\binom{2 n+1}{2 k} \sqrt{8}^{2 k} \end{aligned} $$ Both $x$ and $y$ are positive integers. Also, from the binomial formula we obtain $$ y+x \sqrt{8}=\sum_{i=0}^{2 n+1}\binom{2 n+1}{i} \sqrt{8}^{i}=(1+\sqrt{8})^{2 n+1} $$ and similarly $$ y-x \sqrt{8}=(1-\sqrt{8})^{2 n+1} . $$ Multiplying these equalities, we get $y^{2}-8 x^{2}=(1+\sqrt{8})^{2 n+1}(1-\sqrt{8})^{2 n+1}=$ $-7^{2 n+1}$. Reducing modulo 5 gives us $$ 3 x^{2}-y^{2} \equiv 2^{2 n+1} \equiv 2 \cdot(-1)^{n} $$ Now we see that if $x$ is divisible by 5 , then $y^{2} \equiv \pm 2(\bmod 5)$, which is impossible. Therefore $x$ is never divisible by 5 . Second solution. Another standard way is considering recurrent formulas. If we set $$ x_{m}=\sum_{k}\binom{m}{2 k+1} 8^{k}, \quad y_{m}=\sum_{k}\binom{m}{2 k} 8^{k} $$ then since $\binom{a}{b}=\binom{a-1}{b}+\binom{a-1}{b-1}$, it follows that $x_{m+1}=x_{m}+y_{m}$ and $y_{m+1}=8 x_{m}+y_{m}$; therefore $x_{m+1}=2 x_{m}+7 x_{m-1}$. We need to show that none of $x_{2 n+1}$ are divisible by 5 . Considering the sequence $\left\{x_{m}\right\}$ modulo 5 , we get that $x_{m}=0,1,2,1,1,4,0,3,1,3,3,2,0,4,3,4,4,1, \ldots$ Zeros occur in the initial position of blocks of length 6 , where each subsequent block is obtained by multiplying the previous one by 3 (modulo 5 ). Consequently, $x_{m}$ is divisible by 5 if and only if $m$ is a multiple of 6 , which cannot happen if $m=2 n+1$. 7. Consider an arbitrary prime number $p$. If $p \mid m$, then there exists $b_{i}$ that is divisible by the same power of $p$ as $m$. Then $p$ divides neither $a_{i} \frac{m}{b_{i}}$ nor $a_{i}$, because $\left(a_{i}, b_{i}\right)=1$. If otherwise $p \nmid m$, then $\frac{m}{b_{i}}$ is not divisible by $p$ for any $i$, hence $p$ divides $a_{i}$ and $a_{i} \frac{m}{b_{i}}$ to the same power. Therefore $\left(a_{1}, \ldots, a_{k}\right)$ and $\left(a_{1} \frac{m}{b_{1}}, \ldots, a_{k} \frac{m}{b_{k}}\right)$ have the same factorization; hence they are equal. Second solution. For $k=2$ we easily verify the formula $\left(m \frac{a_{1}}{b_{1}}, m \frac{a_{2}}{b_{2}}\right)=$ $\frac{m}{b_{1} b_{2}}\left(a_{1} b_{2}, a_{2} b_{1}\right)=\frac{1}{b_{1} b_{2}}\left[b_{1}, b_{2}\right]\left(a_{1}, a_{2}\right)\left(b_{1}, b_{2}\right)=\left(a_{1}, a_{2}\right)$, since $\left[b_{1}, b_{2}\right]$. $\left(b_{1}, b_{2}\right)=b_{1} b_{2}$. We proceed by induction: $$ \begin{aligned} \left(a_{1} \frac{m}{b_{1}}, \ldots, a_{k} \frac{m}{b_{k}}, a_{k+1} \frac{m}{b_{k+1}}\right) & =\left(\frac{m}{\left[b_{1}, \ldots, b_{k}\right]}\left(a_{1}, \ldots, a_{k}\right), a_{k+1} \frac{m}{b_{k+1}}\right) \\ & =\left(a_{1}, \ldots, a_{k}, a_{k+1}\right) . \end{aligned} $$ 8. It is clear that $$ \begin{gathered} \frac{a}{a+b+c+d}+\frac{b}{a+b+c+d}+\frac{c}{a+b+c+d}+\frac{d}{a+b+c+d}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 $i\Delta a_{n+1}$. Suppose that for some $n, \Delta a_{n}<0$ : Then for each $k \geq n, \Delta a_{k}<\Delta a_{n}$; hence $a_{n}-a_{n+m}=\Delta a_{n}+\cdots+\Delta a_{n+m-1}0$, or equivalently, let the graph of $f_{a}$ lie below the graph of $f$. In this case also $f(2 a)>f(a)$, since otherwise, the graphs of $f$ and $f_{a}$ would intersect between $a$ and $2 a$. Continuing in this way we are led to $0=f(0)<$ $f(a)f(1-a)>f(1-2 a)>\cdots>f(1-n a)$. Choosing values of $f$ at $i a, 1-i a, i=1, \ldots, n$, so that they satisfy $f(1-n a)<\cdots1, a_{k_{i}} \equiv a_{k_{1}}\left(\bmod a_{1}\right)$; hence $a_{k_{i}}=a_{k_{1}}+y a_{1}$ for some integer $y>0$. It follows that for every $r=0,1, \ldots, a_{1}-1$ there is exactly one member of the corresponding $\left(a_{k_{i}}\right)_{i \geq 1}$ that cannot be represented as $x a_{l}+y a_{m}$, and hence at most $a_{1}+1$ members of $\left(a_{k}\right)$ in total are not representable in the given form. 12. Since $\sin 2 x_{i}=2 \sin x_{i} \cos x_{i}$ and $\sin \left(x_{i}+x_{i+1}\right)+\sin \left(x_{i}-x_{i+1}\right)=$ $2 \sin x_{i} \cos x_{i+1}$, the inequality from the problem is equivalent to $$ \begin{gathered} \left(\cos x_{1}-\cos x_{2}\right) \sin x_{1}+\left(\cos x_{2}-\cos x_{3}\right) \sin x_{2}+\cdots \\ \cdots+\left(\cos x_{\nu-1}-\cos x_{\nu}\right) \sin x_{\nu-1}<\frac{\pi}{4} \end{gathered} $$ Consider the unit circle with center at $O(0,0)$ and points $M_{i}\left(\cos x_{i}, \sin x_{i}\right)$ on it. Also, choose the points $N_{i}\left(\cos x_{i}, 0\right)$ and $M_{i}^{\prime}\left(\cos x_{i+1}, \sin x_{i}\right)$. It is clear that $\left(\cos x_{i}-\cos x_{i+1}\right) \sin x_{i}$ is equal to the area of the rectangle $M_{i} N_{i} N_{i+1} M_{i}^{\prime}$. Since all these rectangles are disjoint and lie inside the quarter circle in the first quadrant whose area is $\frac{\pi}{4}$, inequality (1) follows. 13. Suppose that $A_{k} A_{k+1} \cap A_{m} A_{m+1} \neq \emptyset$ for some $k, m>k+1$. Without loss of generality we may suppose that $k=0, m=n-1$ and that no two segments $A_{k} A_{k+1}$ and $A_{m} A_{m+1}$ intersect for $0 \leq kA_{0} A_{1}$, hence $\angle A_{0} A_{1} A_{2}>$ $\angle A_{1} A_{2} A_{3}$, a contradiction. Let $n=4$. From $A_{3} A_{2}>A_{1} A_{2}$ we conclude that $\angle A_{3} A_{1} A_{2}>\angle A_{1} A_{3} A_{2}$. Using the inequality $\angle A_{0} A_{3} A_{2}>\angle A_{0} A_{1} A_{2}$ we obtain that $\angle A_{0} A_{3} A_{1}>$ $\angle A_{0} A_{1} A_{3}$ implying $A_{0} A_{1}>A_{0} A_{3}$. Now we have $A_{2} A_{3}\cdots>\alpha_{n-1}$; hence $\alpha_{n-1}<\frac{360^{\circ}}{n-1} \leq 90^{\circ}$. Consequently $\angle A_{n-2} A_{n-1} A_{0} \geq 90^{\circ}$ and $A_{0} A_{n-2}>A_{n-1} A_{n-2}$. On the other hand, $A_{0} A_{n-2}2$. Adding these up we obtain $x_{n}^{2} \geq x_{0}^{2}+2 n$, which proves the first inequality. On the other hand, $x_{k+1}=x_{k}+\frac{1}{x_{k}} \leq x_{k}+0.2$ (for $x_{k} \geq 5$ ), and one also deduces from (1) that $x_{k+1}^{2}-x_{k}^{2}-0.2\left(x_{k+1}-x_{k}\right)=\left(x_{k+1}+x_{k}-\right.$ $0.2)\left(x_{k+1}-x_{k}\right) \leq 2$. Again, adding these inequalities up, $(k=0, \ldots, n-1)$ yields $$ x_{n}^{2} \leq 2 n+x_{0}^{2}+0.2\left(x_{n}-x_{0}\right)=2 n+24+0.2 x_{n} $$ Solving the corresponding quadratic equation, we obtain $x_{n}<0.1+$ $\sqrt{2 n+24.01}<0.1++\sqrt{2 n+25}$. 15. Assume that the center of the circle is at the origin $O(0,0)$, and that the points $A_{1}, A_{2}, \ldots, A_{1975}$ are arranged on the upper half-circle so that $\angle A_{i} O A_{1}=\alpha_{i}\left(\alpha_{1}=0\right)$. The distance $A_{i} A_{j}$ equals $2 \sin \frac{\alpha_{j}-\alpha_{i}}{2}=$ $2 \sin \frac{\alpha_{j}}{2} \cos \frac{\alpha_{i}}{2}-\cos \frac{\alpha_{j}}{2} \sin \frac{\alpha_{i}}{2}$, and it will be rational if all $\sin \frac{\alpha_{k}}{2}, \cos \frac{\alpha_{k}}{2}$ are rational. Finally, observe that there exist infinitely many angles $\alpha$ such that both $\sin \alpha, \cos \alpha$ are rational, and that such $\alpha$ can be arbitrarily small. For example, take $\alpha$ so that $\sin \alpha=\frac{2 t}{t^{2}+1}$ and $\cos \alpha=\frac{t^{2}-1}{t^{2}+1}$ for any $t \in \mathbb{Q}$. ### 4.18 Solutions to the Shortlisted Problems of IMO 1976 1. Let $r$ denote the common inradius. Some two of the four triangles with the inradii $\rho$ have cross angles at $M$ : Suppose these are $\triangle A M B_{1}$ and $\triangle B M A_{1}$. We shall show that $\triangle A M B_{1} \cong \triangle B M A_{1}$. Indeed, the altitudes of these two triangles are both equal to $r$, the inradius of $\triangle A B C$, and their interior angles at $M$ are equal to some angle $\varphi$. If $P$ is the point of tangency of the incircle of $\triangle A_{1} M B$ with $M B$, then $\frac{r}{\rho}=\frac{A_{1} M+B M+A_{1} B}{A_{1} B}$, which also implies $\frac{r-2 \rho}{\rho}=\frac{A_{1} M+B M-A_{1} B}{A_{1} B}=\frac{2 M P}{A_{1} B}=\frac{2 r \cot (\varphi / 2)}{A_{1} B}$. Since similarly $\frac{r-2 \rho}{\rho}=\frac{2 r \cot (\varphi / 2)}{B_{1} A}$, we obtain $A_{1} B=B_{1} A$ and consequently $\triangle A M B_{1} \cong \triangle B M A_{1}$. Thus $\angle B A C=\angle A B C$ and $C C_{1} \perp A B$. There are two alternatives for the other two incircles: (i) If the inradii of $A M C_{1}$ and $A M B_{1}$ are equal to $r$, it is easy to obtain that $\triangle A M C_{1} \cong \triangle A M B_{1}$. Hence $\angle A B_{1} M=\angle A C_{1} M=90^{\circ}$, and $\triangle A B C$ is equilateral. (ii) The inradii of $A M B_{1}$ and $C M B_{1}$ are equal to $r$. Put $x=\angle M A C_{1}=$ $\angle M B C_{1}$. In this case $\varphi=2 x$ and $\angle B_{1} M C=90^{\circ}-x$. Now we have $\frac{A B_{1}}{C B_{1}}=\frac{S_{A M B_{1}}}{S_{C M B_{1}}}=\frac{A M+M B_{1}+A B_{1}}{C M+M B_{1}+C B_{1}}=\frac{A M+M B_{1}-A B_{1}}{C M+M B_{1}-C B_{1}}=\frac{\mathrm{cot} x}{\cot \left(45^{\circ}-x / 2\right)}$. On the other hand, $\frac{A B_{1}}{C B_{1}}=\frac{A B}{B C}=2 \cos 2 x$. Thus we have an equation for $x: \tan \left(45^{\circ}-x / 2\right)=2 \cos 2 x \tan x$, or equivalently $$ 2 \tan \left(45^{\circ}-\frac{x}{2}\right) \sin \left(45^{\circ}-\frac{x}{2}\right) \cos \left(45^{\circ}-\frac{x}{2}\right)=2 \cos 2 x \sin x . $$ Hence $\sin 3 x-\sin x=2 \sin ^{2}\left(45^{\circ}-\frac{x}{2}\right)=1-\sin x$, implying $\sin 3 x=1$, i.e., $x=30^{\circ}$. Therefore $\triangle A B C$ is equilateral. 2. Let us put $b_{i}=i(n+1-i) / 2$, and let $c_{i}=a_{i}-b_{i}, i=0,1, \ldots, n+1$. It is easy to verify that $b_{0}=b_{n+1}=0$ and $b_{i-1}-2 b_{i}+b_{i+1}=-1$. Subtracting this inequality from $a_{i-1}-2 a_{i}+a_{i+1} \geq-1$, we obtain $c_{i-1}-2 c_{i}+c_{i+1} \geq 0$, i.e., $2 c_{i} \leq c_{i-1}+c_{i+1}$. We also have $c_{0}=c_{n+1}=0$. Suppose that there exists $i \in\{1, \ldots, n\}$ for which $c_{i}>0$, and let $c_{k}$ be the maximal such $c_{i}$. Assuming w.l.o.g. that $c_{k-1}2$, then $a / b \leq 5 / 3$, and if $a>5$, then $a / b \leq 3 / 2$. If $a_{1}>2$, then $\frac{a_{1}}{b_{1}} \cdot \frac{a_{2}}{b_{2}} \cdot \frac{a_{3}}{b_{3}}<(5 / 3)^{3}<5$, a contradiction. Hence $a_{1}=2$. If also $a_{2}=2$, then $a_{3} / b_{3}=5 / 4 \leq \sqrt[3]{2}$, which is impossible. Also, if $a_{2} \geq 6$, then $\frac{a_{2}}{b_{2}} \cdot \frac{a_{3}}{b_{3}} \leq(1.5)^{2}<2.5$, again a contradiction. We thus have the following cases: (i) $a_{1}=2, a_{2}=3$, then $a_{3} / b_{3}=5 / 3$, which holds only if $a_{3}=5$; (ii) $a_{1}=2, a_{2}=4$, then $a_{3} / b_{3}=15 / 8$, which is impossible; (iii) $a_{1}=2, a_{2}=5$, then $a_{3} / b_{3}=3 / 2$, which holds only if $a_{3}=6$. The only possible sizes of the box are therefore $(2,3,5)$ and $(2,5,6)$. 7. The map $T$ transforms the interval $(0, a]$ onto $(1-a, 1]$ and the interval $(a, 1]$ onto $(0,1-a]$. Clearly $T$ preserves the measure. Since the measure of the interval $[0,1]$ is finite, there exist two positive integers $k, l>k$ such that $T^{k}(J)$ and $T^{l}(J)$ are not disjoint. But the map $T$ is bijective; hence $T^{l-k}(J)$ and $J$ are not disjoint. 8. Every polynomial with real coefficients can be factored as a product of linear and quadratic polynomials with real coefficients. Thus it suffices to prove the result only for a quadratic polynomial $P(x)=x^{2}-2 a x+b^{2}$, with $a>0$ and $b^{2}>a^{2}$. Using the identity $$ \left(x^{2}+b^{2}\right)^{2 n}-(2 a x)^{2 n}=\left(x^{2}-2 a x+b^{2}\right) \sum_{k=0}^{2 n-1}\left(x^{2}+b^{2}\right)^{k}(2 a x)^{2 n-k-1} $$ we have solved the problem if we can choose $n$ such that $b^{2 n}\binom{2 n}{n}>2^{2 n} a^{2 n}$. However, it is is easy to show that $2 n\binom{2 n}{n}<2^{2 n}$; hence it is enough to take $n$ such that $(b / a)^{2 n}>2 n$. Since $\lim _{n \rightarrow \infty}(2 n)^{1 /(2 n)}=12$, then by simple induction $P_{n}(x)>x$ for all $n$. Similarly, if $x<-1$, then $P_{1}(x)>2$, which implies $P_{n}(x)>2$ for all $n$. It follows that all real roots of the equation $P_{n}(x)=x$ lie in the interval $[-2,2]$, and thus have the form $x=2 \cos t$. Now we observe that $P_{1}(2 \cos t)=4 \cos ^{2} t-2=2 \cos 2 t$, and in general $P_{n}(2 \cos t)=2 \cos 2^{n} t$. Our equation becomes $$ \cos 2^{n} t=\cos t $$ which indeed has $2^{n}$ different solutions $t=\frac{2 \pi m}{2^{n}-1}\left(m=0,1, \ldots, 2^{n-1}-1\right)$ and $t=\frac{2 \pi m}{2^{n}+1}\left(m=1,2, \ldots, 2^{n-1}\right)$. 10. Let $a_{1}a_{i}$. Since $4=2^{2}$, we may assume that all $a_{i}$ are either 2 or 3 , and $M=2^{k} 3^{l}$, where $2 k+3 l=1976$. (4) $k \geq 3$ does not yield the maximal value, since $2 \cdot 2 \cdot 2<3 \cdot 3$. Hence $k \leq 2$ and $2 k \equiv 1976(\bmod 3)$ gives us $k=1, l=658$ and $M=2 \cdot 3^{658}$. 11. We shall show by induction that $5^{2^{k}}-1=2^{k+2} q_{k}$ for each $k=0,1, \ldots$, where $q_{k} \in \mathbb{N}$. Indeed, the statement is true for $k=0$, and if it holds for some $k$ then $5^{2^{k+1}}-1=\left(5^{2^{k}}+1\right)\left(5^{2^{k}}-1\right)=2^{k+3} d_{k+1}$ where $d_{k+1}=$ $\left(5^{2^{k}}+1\right) d_{k} / 2$ is an integer by the inductive hypothesis. Let us now choose $n=2^{k}+k+2$. We have $5^{n}=10^{k+2} q_{k}+5^{k+2}$. It follows from $5^{4}<10^{3}$ that $5^{k+2}$ has at most $[3(k+2) / 4]+2$ nonzero digits, while $10^{k+2} q_{k}$ ends in $k+2$ zeros. Hence the decimal representation of $5^{n}$ contains at least $[(k+2) / 4]-2$ consecutive zeros. Now it suffices to take $k>4 \cdot 1978$. 12. Suppose the decomposition into $k$ polynomials is possible. The sum of coefficients of each polynomial $a_{1} x+a_{2} x^{2}+\cdots+a_{n} x^{n}$ equals $1+\cdots+$ $n=n(n+1) / 2$ while the sum of coefficients of $1976\left(x+x^{2}+\cdots+x^{n}\right)$ is $1976 n$. Hence we must have $1976 n=k n(n+1) / 2$, which reduces to $(n+1) \mid 3952=2^{4} \cdot 13 \cdot 19$. In other words, $n$ is of the form $n=2^{\alpha} 13^{\beta} 19^{\gamma}-1$, with $0 \leq \alpha \leq 4,0 \leq \beta \leq 1,0 \leq \gamma \leq 1$. We can immediately eliminate the values $n=0$ and $n=3951$ that correspond to $\alpha=\beta=\gamma=0$ and $\alpha=4, \beta=\gamma=1$. We claim that all other values $n$ are permitted. There are two cases. $\alpha \leq 3$. In this case $k=3952 /(n+1)$ is even. The simple choice of the polynomials $P=x+2 x^{2}+\cdots+n x^{n}$ and $P^{\prime}=n x+(n-1) x^{2}+\cdots+x^{n}$ suffices, since $k\left(P+P^{\prime}\right) / 2=1976\left(x+x^{2}+\cdots+x^{n}\right)$. $\alpha=4$. Then $k$ is odd. Consider $(k-3) / 2$ pairs $\left(P, P^{\prime}\right)$ of the former case and $$ \begin{aligned} P_{1}= & {\left[n x+(n-1) x^{3}+\cdots+\frac{n+1}{2} x^{n}\right] } \\ & +\left[\frac{n-1}{2} x^{2}+\frac{n-3}{2} x^{4}+\cdots+x^{n-1}\right] \\ P_{2}= & {\left[\frac{n+1}{2} x+\frac{n-1}{2} x^{3}+\cdots+x^{n}\right] } \\ & +\left[n x^{2}+(n-1) x^{4}+\cdots+\frac{n+3}{2} x^{n-1}\right] \end{aligned} $$ Then $P+P_{1}+P_{2}=3(n+1)\left(x+x^{2}+\cdots+x^{n}\right) / 2$ and therefore $(k-3)\left(P+P^{\prime}\right) / 2+\left(P+P_{1}+P_{2}\right)=1976\left(x+x^{2}+\cdots+x^{n}\right)$. It follows that the desired decomposition is possible if and only if $1C S$ is equivalent to $B P>C P$. The conditions of the problem imply that $P A>P B$ and $P A>P E$. The locus of such points $P$ is the region of the plane that is determined by the perpendicular bisectors of segments $A B$ and $A E$ and that contains the point diametrically opposite $A$. But since $A Bf(n)$ whenever $x>n$. The case $n=0$ is trivial. Suppose that $n \geq 1$ and that $x>k$ implies $f(x)>f(k)$ for all $kn$, then $m-1 \geq n$ and consequently $f(m-1) \geq n$. But in this case the inequality $f(m)>$ $f(f(m-1))$ contradicts the minimality property of $m$. The inductive proof is thus completed. It follows that $f$ is strictly increasing, so $f(n+1)>f(f(n))$ implies that $n+1>f(n)$. But since $f(n) \geq n$ we must have $f(n)=n$. 3. Let $v_{1}, v_{2}, \ldots, v_{k}$ be $k$ persons who are not acquainted with each other. Let us denote by $m$ the number of acquainted couples and by $d_{j}$ the number of acquaintances of person $v_{j}$. Then $m \leq d_{k+1}+d_{k+2}+\cdots+d_{n} \leq d(n-k) \leq k(n-k) \leq\left(\frac{k+(n-k)}{2}\right)^{2}=\frac{n^{2}}{4}$. 4. Consider any vertex $v_{n}$ from which the maximal number $d$ of segments start, and suppose it is not a vertex of a triangle. Let $\mathcal{A}=$ $\left\{v_{1}, v_{2}, \ldots, v_{d}\right\}$ be the set of points that are connected to $v_{n}$, and let $\mathcal{B}=\left\{v_{d+1}, v_{d+2}, \ldots, v_{n}\right\}$ be the set of the other points. Since $v_{n}$ is not a vertex of a triangle, there is no segment both of whose vertices lie in $\mathcal{A}$; i.e., each segment has an end in $\mathcal{B}$. Thus, if $d_{j}$ denotes the number of segments at $v_{j}$ and $m$ denotes the total number of segments, we have $$ m \leq d_{d+1}+d_{d+2}+\cdots+d_{n} \leq d(n-d) \leq\left[\frac{n^{2}}{4}\right]=m $$ This means that each inequality must be equality, implying that each point in $\mathcal{B}$ is a vertex of $d$ segments, and each of these segments has the other end in $\mathcal{A}$. Then there is no triangle at all, which is a contradiction. 5. Let us denote by $I$ and $E$ the sets of interior boundary points and exterior boundary points. Let $A B C D$ be the square inscribed in the circle $k$ with sides parallel to the coordinate axes. Lines $A B, B C, C D, D A$ divide the plane into 9 regions: $\mathcal{R}, \mathcal{R}_{A}, \mathcal{R}_{B}$, $\mathcal{R}_{C}, \mathcal{R}_{D}, \mathcal{R}_{A B}, \mathcal{R}_{B C}, \mathcal{R}_{C D}, \mathcal{R}_{D A}$. There is a unique pair of lattice points $A_{I} \in \mathcal{R}, A_{E} \in$ $\mathcal{R}_{A}$ that are opposite vertices of a unit square. We similarly define $B_{I}, C_{I}, D_{I}, B_{E}, C_{E}, D_{E}$. Let us form a graph $G$ by connecting each point from $E$ lying in $\mathcal{R}_{A B}$ (respectively $\mathcal{R}_{B C}, \mathcal{R}_{C D}, \mathcal{R}_{D A}$ ) to its up- ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-420.jpg?height=389&width=505&top_left_y=271&top_left_x=825) per (respectively left, lower, right) neighbor point (which clearly belongs to $I$ ). It is easy to see that: (i) All vertices from $I$ other than $A_{I}, B_{I}, C_{I}, D_{I}$ have degree 1. (ii) $A_{E}$ is not in $E$ if and only if $A_{I} \in I$ and $\operatorname{deg} A_{I}=2$. (iii) No other lattice points inside $\mathcal{R}_{A}$ belong to $E$. Thus if $m$ is the number of edges of the graph $G$ and $s$ is the number of points among $A_{E}, B_{E}, C_{E}$, and $D_{E}$ that are in $E$, using (i)-(iii) we easily obtain $|E|=m+s$ and $|I|=m-(4-s)=|E|+4$. 6. Let $\langle y\rangle$ denote the distance from $y \in \mathbb{R}$ to the closest even integer. We claim that $$ \langle 1+\cos x\rangle \leq \sin x \quad \text { for all } x \in[0, \pi] $$ Indeed, if $\cos x \geq 0$, then $\langle 1+\cos x\rangle=1-\cos x \leq 1-\cos ^{2} x=\sin ^{2} x \leq$ $\sin x$; the proof is similar if $\cos x<0$. We note that $\langle x+y\rangle \leq\langle x\rangle+\langle y\rangle$ holds for all $x, y \in \mathbb{R}$. Therefore $$ \sum_{j=1}^{n} \sin x_{j} \geq \sum_{j=1}^{n}\left\langle 1+\cos x_{j}\right\rangle \geq\left\langle\sum_{j=1}^{n}\left(1+\cos x_{j}\right)\right\rangle=1 $$ 7. Let us suppose that $c_{1} \leq c_{2} \leq \cdots \leq c_{n}$ and that $c_{1}<01977-90=1887$ it follows that $q>43$; hence $q=44$ and $r=41$. It remains to find positive integers $a$ and $b$ satisfying $a^{2}+b^{2}=44(a+b)+41$, or equivalently $$ (a-22)^{2}+(b-22)^{2}=1009 $$ The only solutions to this Diophantine equation are $(|a-22|,|b-22|) \in$ $\{(15,28),(28,15)\}$, which yield $(a, b) \in\{(7,50),(37,50),(50,7),(50,37)\}$. 11. (a) Suppose to the contrary that none of the numbers $z_{0}, z_{1}, \ldots, z_{n-1}$ is divisible by $n$. Then two of these numbers, say $z_{k}$ and $z_{l}(0 \leq k90^{\circ}$ ). Let $h^{\prime}$ and $\overline{h^{\prime}}$ be the two semicircles with diameter $A P$, where $M \in h^{\prime}$. Since $\overline{h^{\prime}}$ contains a point $C$ such that $B C>A B$, it cannot be contained in $\Phi$, implying that $h^{\prime} \subset \Phi$. Hence $M$ belongs to $\Phi$. Since $\Phi$ contains no points outside the circle $k$, it must coincide with the disk determined by $k$. On the other hand, any disk has the required property. 14. We prove by induction on $n$ that independently of the word $w_{0}$, the given algorithm generates all words of length $n$. This is clear for $n=1$. Suppose now the statement is true for $n-1$, and that we are given a word $w_{0}=$ $c_{1} c_{2} \ldots c_{n}$ of length $n$. Obviously, the words $w_{0}, w_{1}, \ldots, w_{2^{n-1}-1}$ all have the $n$th digit $c_{n}$, and by the inductive hypothesis these are all words whose $n$th digit is $c_{n}$. Similarly, by the inductive hypothesis $w_{2^{n-1}}, \ldots, w_{2^{n-1}}$ are all words whose $n$th digit is $1-c_{n}$, and the induction is complete. 15. Each segment is an edge of at most two squares and a diagonal of at most one square. Therefore $p_{k}=0$ for $k>3$, and we have to prove that $$ p_{0}=p_{2}+2 p_{3} $$ Let us calculate the number $q(n)$ of considered squares. Each of these squares is inscribed in a square with integer vertices and sides parallel to the coordinate axes. There are $(n-s)^{2}$ squares of side $s$ with integer vertices and sides parallel to the coordinate axes, and each of them circumscribes exactly $s$ of the considered squares. It follows that $q(n)=\sum_{s=1}^{n-1}(n-s)^{2} s=n^{2}\left(n^{2}-1\right) / 12$. Computing the number of edges and diagonals of the considered squares in two ways, we obtain that $$ p_{1}+2 p_{2}+3 p_{3}=6 q(n) $$ On the other hand, the total number of segments with endpoints in the considered integer points is given by $$ p_{0}+p_{1}+p_{2}+p_{3}=\binom{n^{2}}{2}=\frac{n^{2}\left(n^{2}-1\right)}{2}=6 q(n) . $$ Now (1) follows immediately from (2) and (3). 16. For $i=k$ and $j=l$ the system is reduced to $1 \leq i, j \leq n$, and has exactly $n^{2}$ solutions. Let us assume that $i \neq k$ or $j \neq l$. The points $A(i, j), B(k, l)$, $C(-j+k+l, i-k+l), D(i-j+l, i+j-k)$ are vertices of a negatively oriented square with integer vertices lying inside the square $[1, n] \times[1, n]$, and each of these squares corresponds to exactly 4 solutions to the system. By the previous problem there are exactly $q(n)=n^{2}\left(n^{2}-1\right) / 12$ such squares. Hence the number of solutions is equal to $n^{2}+4 q(n)=n^{2}\left(n^{2}+2\right) / 3$. 17. Centers of the balls that are tangent to $K$ are vertices of a regular polyhedron with triangular faces, with edge length $2 R$ and radius of circumscribed sphere $r+R$. Therefore the number $n$ of these balls is 4,6 , or 20 . It is straightforward to obtain that: (i) If $n=4$, then $r+R=2 R(\sqrt{6} / 4)$, whence $R=r(2+\sqrt{6})$. (ii) If $n=6$, then $r+R=2 R(\sqrt{2} / 2)$, whence $R=r(1+\sqrt{2})$. (iii) If $n=20$, then $r+R=2 R \sqrt{5+\sqrt{5}} / 8$, whence $R=r[\sqrt{5-2 \sqrt{5}}+$ $$ (3-\sqrt{5}) / 2] $$ 18. Let $U$ be the midpoint of the segment $A B$. The point $M$ belongs to $C U$ and $C M=(\sqrt{5}-1) C U / 2, r=C U \sqrt{\sqrt{5}-2}$. 19. We shall prove the statement by induction on $m$. For $m=2$ it is trivial, since each power of 5 greater than 5 ends in 25 . Suppose that the statement is true for some $m \geq 2$, and that the last $m$ digits of $5^{n}$ alternate in parity. It can be shown by induction that the maximum power of 2 that divides $5^{2^{m-2}}-1$ is $2^{m}$, and consequently the difference $5^{n+2^{m-2}}-5^{n}$ is divisible by $10^{m}$ but not by $2 \cdot 10^{m}$. It follows that the last $m$ digits of the numbers $5^{n+2^{m-2}}$ and $5^{n}$ coincide, but the digits at the position $m+1$ have opposite parity. Hence the last $m+1$ digits of one of these two powers of 5 alternate in parity. The inductive proof is completed. 20. There exist $u, v$ such that $a \cos x+b \sin x=r \cos (x-u)$ and $A \cos 2 x+$ $B \sin 2 x=R \cos 2(x-v)$, where $r=\sqrt{a^{2}+b^{2}}$ and $R=\sqrt{A^{2}+B^{2}}$. Then $1-f(x)=r \cos (x-u)+R \cos 2(x-v) \leq 1$ holds for all $x \in \mathbb{R}$. There exists $x \in \mathbb{R}$ such that $\cos (x-u) \geq 0$ and $\cos 2(x-v)=1$ (indeed, either $x=v$ or $x=v+\pi$ works). It follows that $R \leq 1$. Similarly, there exists $x \in \mathbb{R}$ such that $\cos (x-u)=1 / \sqrt{2}$ and $\cos 2(x-v) \geq 0$ (either $x=u-\pi / 4$ or $x=u+\pi / 4$ works). It follows that $r \leq \sqrt{2}$. Remark. The proposition of this problem contained as an addendum the following, more difficult, inequality: $$ \sqrt{a^{2}+b^{2}}+\sqrt{A^{2}+B^{2}} \leq 2 . $$ The proof follows from the existence of $x \in \mathbb{R}$ such that $\cos (x-u) \geq 1 / 2$ and $\cos 2(x-v) \geq 1 / 2$. 21. Let us consider the vectors $v_{1}=\left(x_{1}, x_{2}, x_{3}\right), v_{2}=\left(y_{1}, y_{2}, y_{3}\right), v_{3}=(1,1,1)$ in space. The given equalities express the condition that these three vectors are mutually perpendicular. Also, $\frac{x_{1}^{2}}{x_{1}^{2}+x_{2}^{2}+x_{3}^{2}}, \frac{y_{1}^{2}}{y_{1}^{2}+y_{2}^{2}+y_{3}^{2}}$, and $1 / 3$ are the squares of the projections of the vector $(1,0,0)$ onto the directions of $v_{1}, v_{2}, v_{3}$, respectively. The result follows from the fact that the sum of squares of projections of a unit vector on three mutually perpendicular directions is 1. 22. Since the quadrilateral $O A_{1} B B_{1}$ is cyclic, $\angle O A_{1} B_{1}=\angle O B C$. By using the analogous equalities we obtain $\angle O A_{4} B_{4}=\angle O B_{3} C_{3}=\angle O C_{2} D_{2}=$ $\angle O D_{1} A_{1}=\angle O A B$, and similarly $\angle O B_{4} A_{4}=\angle O B A$. Hence $\triangle O A_{4} B_{4} \sim$ $\triangle O A B$. Analogously, we have for the other three pairs of triangles $\triangle O B_{4} C_{4} \sim \triangle O B C, \triangle O C_{4} D_{4} \sim \triangle O C D, \triangle O D_{4} A_{4} \sim \triangle O D A$, and consequently $A B C D \sim A_{4} B_{4} C_{4} D_{4}$. 23. Every polynomial $q\left(x_{1}, \ldots, x_{n}\right)$ with integer coefficients can be expressed in the form $q=r_{1}+x_{1} r_{2}$, where $r_{1}, r_{2}$ are polynomials in $x_{1}, \ldots, x_{n}$ with integer coefficients in which the variable $x_{1}$ occurs only with even exponents. Thus if $q_{1}=r_{1}-x_{1} r_{2}$, the polynomial $q q_{1}=r_{1}^{2}-x_{1}^{2} r_{2}^{2}$ contains $x_{1}$ only with even exponents. We can continue inductively constructing polynomials $q_{j}, j=2,3, \ldots, n$, such that $q q_{1} q_{2} \cdots q_{j}$ contains each of variables $x_{1}, x_{2}, \ldots, x_{j}$ only with even exponents. Thus the polynomial $q q_{1} \cdots q_{n}$ is a polynomial in $x_{1}^{2}, \ldots, x_{n}^{2}$. The polynomials $f$ and $g$ exist for every $n \in \mathbb{N}$. In fact, it suffices to construct $q_{1}, \ldots, q_{n}$ for the polynomial $q=x_{1}+\cdots+x_{n}$ and take $f=$ $q_{1} q_{2} \cdots q_{n}$. 24. Setting $x=y=0$ gives us $f(0)=0$. Let us put $g(x)=\arctan f(x)$. The given functional equation becomes $\tan g(x+y)=\tan (g(x)+g(y))$; hence $$ g(x+y)=g(x)+g(y)+k(x, y) \pi $$ where $k(x, y)$ is an integer function. But $k(x, y)$ is continuous and $k(0,0)=$ 0 , therefore $k(x, y)=0$. Thus we obtain the classical Cauchy's functional equation $g(x+y)=g(x)+g(y)$ on the interval $(-1,1)$, all of whose continuous solutions are of the form $g(x)=a x$ for some real $a$. Moreover, $g(x) \in(-\pi, \pi)$ implies $|a| \leq \pi / 2$. Therefore $f(x)=\tan a x$ for some $|a| \leq \pi / 2$, and this is indeed a solution to the given equation. 25. Let $$ f_{n}(z)=z^{n}+a \sum_{k=1}^{n}\binom{n}{k}(a-k b)^{k-1}(z+k b)^{n-k} . $$ We shall prove by induction on $n$ that $f_{n}(z)=(z+a)^{n}$. This is trivial for $n=1$. Suppose that the statement is true for some positive integer $n-1$. Then $$ \begin{aligned} f_{n}^{\prime}(z) & =n z^{n-1}+a \sum_{k=1}^{n-1}\binom{n}{k}(n-k)(a-k b)^{k-1}(z+k b)^{n-k-1} \\ & =n z^{n-1}+n a \sum_{k=1}^{n-1}\binom{n-1}{k}(a-k b)^{k-1}(z+k b)^{n-k-1} \\ & =n f_{n-1}(z)=n(z+a)^{n-1} \end{aligned} $$ It remains to prove that $f_{n}(-a)=0$. For $z=-a$ we have by the lemma of (SL81-13), $$ \begin{aligned} f_{n}(-a) & =(-a)^{n}+a \sum_{k=1}^{n}\binom{n}{k}(-1)^{n-k}(a-k b)^{n-1} \\ & =a \sum_{k=0}^{n}\binom{n}{k}(-1)^{n-k}(a-k b)^{n-1}=0 . \end{aligned} $$ 26. The result is an immediate consequence (for $G=\{-1,1\}$ ) of the following generalization. (1) Let $G$ be a proper subgroup of $\mathbb{Z}_{n}^{*}$ (the multiplicative group of residue classes modulo $n$ coprime to $n$ ), and let $V$ be the union of elements of $G$. A number $m \in V$ is called indecomposable in $V$ if there do not exist numbers $p, q \in V, p, q \notin\{-1,1\}$, such that $p q=m$. There exists a number $r \in V$ that can be expressed as a product of elements indecomposable in $V$ in more than one way. First proof. We shall start by proving the following lemma. Lemma. There are infinitely many primes not in $V$ that do not divide $n$. Proof. There is at least one such prime: In fact, any number other than $\pm 1$ not in $V$ must have a prime factor not in $V$, since $V$ is closed under multiplication. If there were a finite number of such primes, say $p_{1}, p_{2}, \ldots, p_{k}$, then one of the numbers $p_{1} p_{2} \cdots p_{k}+n, p_{1}^{2} p_{2} \cdots p_{k}+n$ is not in $V$ and is coprime to $n$ and $p_{1}, \ldots, p_{k}$, which is a contradiction. [This lemma is actually a direct consequence of Dirichlet's theorem.] Let us consider two such primes $p, q$ that are congruent modulo $n$. Let $p^{k}$ be the least power of $p$ that is in $V$. Then $p^{k}, q^{k}, p^{k-1} q, p q^{k-1}$ belong to $V$ and are indecomposable in $V$. It follows that $$ r=p^{k} \cdot q^{k}=p^{k-1} q \cdot p q^{k-1} $$ has the desired property. Second proof. Let $p$ be any prime not in $V$ that does not divide $n$, and let $p^{k}$ be the least power of $p$ that is in $V$. Obviously $p^{k}$ is indecomposable in $V$. Then the number $$ r=p^{k} \cdot\left(p^{k-1}+n\right)(p+n)=p\left(p^{k-1}+n\right) \cdot p^{k-1}(p+n) $$ has at least two different factorizations into indecomposable factors. 27. The result is a consequence of the generalization from the previous problem for $G=\{1\}$. Remark. There is an explicit example: $r=(n-1)^{2} \cdot(2 n-1)^{2}=[(n-$ 1) $(2 n-1)]^{2}$. 28. The recurrent relations give us that $$ x_{i+1}=\left[\frac{x_{i}+\left[n / x_{i}\right]}{2}\right]=\left[\frac{x_{i}+n / x_{i}}{2}\right] \geq[\sqrt{n}] $$ On the other hand, if $x_{i}>[\sqrt{n}]$ for some $i$, then we have $x_{i+1}\left(x_{i}+n / x_{i}\right) / 2$, i.e., to $x_{i}^{2}>n$. Therefore $x_{i}=[\sqrt{n}]$ holds for at least one $i \leq n-[\sqrt{n}]+1$. Remark. If $n+1$ is a perfect square, then $x_{i}=[\sqrt{n}]$ implies $x_{i+1}=$ $[\sqrt{n}]+1$. Otherwise, $x_{i}=[\sqrt{n}]$ implies $x_{i+1}=[\sqrt{n}]$. 29. Let us denote the midpoints of segments $L M, A N, B L, M N, B K, C M$, $N K, C L, D N, K L, D M, A K$ by $P_{1}, P_{2}, P_{3}, P_{4}, P_{5}, P_{6}, P_{7}, P_{8}, P_{9}, P_{10}$, $P_{11}, P_{12}$, respectively. We shall prove that the dodecagon $P_{1} P_{2} P_{3} \ldots P_{11} P_{12}$ is regular. From $B L=B A$ and $\angle A B L=30^{\circ}$ it follows that $\angle B A L=75^{\circ}$. Similarly $\angle D A M=75^{\circ}$, and therefore $\angle L A M=60^{\circ}$, which together with $A L=A M$ implies that the triangle $A L M$ is equilateral. Now, from the triangles $O L M$ and $A L N$, we get ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-426.jpg?height=383&width=433&top_left_y=233&top_left_x=863) $O P_{1}=L M / 2, O P_{2}=A L / 2$ and $O P_{2} \| A L$. Hence $O P_{1}=O P_{2}$, $\angle P_{1} O P_{2}=\angle P_{1} A L=30^{\circ}$ and $\angle P_{2} O M=\angle L A D=15^{\circ}$. The desired result follows from symmetry. 30. Suppose $\angle S B A=x$. By the trigonometric form of Ceva's theorem we have $$ \frac{\sin \left(96^{\circ}-x\right)}{\sin x} \frac{\sin 18^{\circ}}{\sin 12^{\circ}} \frac{\sin 6^{\circ}}{\sin 48^{\circ}}=1 $$ We claim that $x=12^{\circ}$ is a solution of this equation. To prove this, it is enough to show that $\sin 84^{\circ} \sin 6^{\circ} \sin 18^{\circ}=\sin 48^{\circ} \sin 12^{\circ} \sin 12^{\circ}$, which is equivalent to $\sin 18^{\circ}=2 \sin 48^{\circ} \sin 12^{\circ}=\cos 36^{\circ}-\cos 60^{\circ}$. The last equality can be checked directly. Since the equation is equivalent to $\left(\sin 96^{\circ} \cot x-\cos 96^{\circ}\right) \sin 6^{\circ} \sin 18^{\circ}=$ $\sin 48^{\circ} \sin 12^{\circ}$, the solution $x \in[0, \pi)$ is unique. Hence $x=12^{\circ}$. Second solution. We know that if $a, b, c, a^{\prime}, b^{\prime}, c^{\prime}$ are points on the unit circle in the complex plane, the lines $a a^{\prime}, b b^{\prime}, c c^{\prime}$ are concurrent if and only if $$ \left(a-b^{\prime}\right)\left(b-c^{\prime}\right)\left(c-a^{\prime}\right)=\left(a-c^{\prime}\right)\left(b-a^{\prime}\right)\left(c-b^{\prime}\right) $$ We shall prove that $x=12^{\circ}$. We may suppose that $A B C$ is the triangle in the complex plane with vertices $a=1, b=\epsilon^{9}, c=\epsilon^{14}$, where $\epsilon=$ $\cos \frac{\pi}{15}+i \sin \frac{\pi}{15}$. If $a^{\prime}=\epsilon^{12}, b^{\prime}=\epsilon^{28}, c^{\prime}=\epsilon$, our task is the same as proving that lines $a a^{\prime}, b b^{\prime}, c c^{\prime}$ are concurrent, or by (1) that $$ \left(1-\epsilon^{28}\right)\left(\epsilon^{9}-\epsilon\right)\left(\epsilon^{14}-\epsilon^{12}\right)-(1-\epsilon)\left(\epsilon^{9}-\epsilon^{12}\right)\left(\epsilon^{14}-\epsilon^{28}\right)=0 . $$ The last equality holds, since the left-hand side is divisible by the minimum polynomial of $\epsilon: z^{8}+z^{7}-z^{5}-z^{4}-z^{3}+z+1$. 31. We obtain from (1) that $f(1, c)=f(1, c) f(1, c)$; hence $f(1, c)=1$ and consequently $f(-1, c) f(-1, c)=f(1, c)=1$, i.e. $f(-1, c)=1$. Analogously, $f(c, 1)=f(c,-1)=1$. Clearly $f(1,1)=f(-1,1)=f(1,-1)=1$. Now let us assume that $a \neq 1$. Observe that $f\left(x^{-1}, y\right)=f\left(x, y^{-1}\right)=f(x, y)^{-1}$. Thus by (1) and (2) we get $$ \begin{aligned} 1 & =f(a, 1-a) f(1 / a, 1-1 / a) \\ & =f(a, 1-a) f\left(a, \frac{1}{1-1 / a}\right)=f\left(a, \frac{1-a}{1-1 / a}\right)=f(a,-a) \end{aligned} $$ We now have $f(a, a)=f(a,-1) f(a,-a)=1 \cdot 1=1$ and $1=f(a b, a b)=$ $f(a, a b) f(b, a b)=f(a, a) f(a, b) f(b, a) f(b, b)=f(a, b) f(b, a)$. 32. It is a known result that among six persons there are 3 mutually acquainted or 3 mutually unacquainted. By the condition of the problem the last case is excluded. If there is a man in the room who is not acquainted with four of the others, then these four men are mutually acquainted. Otherwise, each man is acquainted with at least five others, and since the sum of numbers of acquaintances of all men in the room is even, one of the men is acquainted with at least six men. Among these six there are three mutually acquainted, and they together with the first one make a group of four mutually acquainted men. 33. Let $r$ be the radius of $K$ and $s>\sqrt{2} / r$ an integer. Consider the points $A_{k}\left(k a_{1}-\left[k a_{1}\right], k a_{2}-\left[k a_{2}\right]\right)$, where $k=0,1,2, \ldots, s^{2}$. Since all these points are in the unit square, two of them, say $A_{p}, A_{q}, q>p$, are in a small square with side $1 / s$, and consequently $A_{p} A_{q} \leq \sqrt{2} / s1$ there exist $q \in \mathbb{N}, r \in\{-1,0,1\}$ such that $s=3 q+r$, and $q$ has a unique representation of the form (1). 43. Since $\left.k(k+1) \cdots(k+p)=(p+1)!\binom{k+p}{p+1}=(p+1)!\left[\begin{array}{c}k+p+1 \\ p+2\end{array}\right)-\binom{k+p}{p+2}\right]$, it follows that $\sum_{k=1}^{n} k(k+1) \cdots(k+p)=(p+1)!\binom{n+p+1}{p+2}=\frac{n(n+1) \cdots(n+p+1)}{p+2}$. 44. Let $d(X, \sigma)$ denote the distance from a point $X$ to a plane $\sigma$. Let us consider the pair $(A, \pi)$ where $A \in E$ and $\pi$ is a plane containing some three points $B, C, D \in E$ such that $d(A, \pi)$ is the smallest possible. We may suppose that $B, C, D$ are selected such that $\triangle B C D$ contains no other points of $E$. Let $A^{\prime}$ be the projection of $A$ on $\pi$, and let $l_{b}, l_{c}, l_{d}$ be lines through $B, C, D$ parallel to $C D, D B, B C$ respectively. If $A^{\prime}$ is in the half-plane determined by $l_{d}$ not containing $B C$, then $d(D, A B C) \leq d\left(A^{\prime}, A B C\right)|x|$. There is no loss of generality in assuming $x>0$. To obtain the estimate from below, set $$ \begin{aligned} a_{1} & =f\left(-\frac{x+t}{2}\right)-f(-(x+t)), & a_{2}=f(0)-f\left(-\frac{x+t}{2}\right), \\ a_{3} & =f\left(\frac{x+t}{2}\right)-f(0), & a_{4}=f(x+t)-f\left(\frac{x+t}{2}\right) . \end{aligned} $$ Since $-(x+t)\frac{a_{4}}{a_{1}+a_{2}+a_{3}}>\frac{a_{3} / 2}{4 a_{3}+2 a_{3}+a_{3}}=14^{-1} . $$ To obtain the estimate from above, set $$ \begin{aligned} b_{1} & =f(0)-f\left(-\frac{x+t}{3}\right), & b_{2}=f\left(\frac{x+t}{3}\right)-f(0), \\ b_{3} & =f\left(\frac{2(x+t)}{3}\right)-f\left(\frac{x+t}{3}\right), & b_{4}=f(x+t)-f\left(\frac{2(x+t)}{3}\right) . \end{aligned} $$ If $t<2 x$, then $x-t<-(x+t) / 3$ and therefore $f(x)-f(x-t) \geq b_{1}$. If $t \geq 2 x$, then $(x+t) / 3 \leq x$ and therefore $f(x)-f(x-t) \geq b_{2}$. Since $2^{-1}2 C D / 3$, then $N$ coincides with C . 48. Let a plane cut the edges $A B, B C, C D, D A$ at points $K, L, M, N$ respectively. Let $D^{\prime}, A^{\prime}, B^{\prime}$ be distinct points in the plane $A B C$ such that the triangles $B C D^{\prime}, C D^{\prime} A^{\prime}, D^{\prime} A^{\prime} B^{\prime}$ are equilateral, and $M^{\prime} \in\left[C D^{\prime}\right], N^{\prime} \in\left[D^{\prime} A^{\prime}\right]$, and $K^{\prime} \in\left[A^{\prime} B^{\prime}\right]$ such that $C M^{\prime}=C M$, $A^{\prime} N^{\prime}=A N$, and $A^{\prime} K^{\prime}=A K$. The perimeter $P$ of the quadrilateral $K L M N$ is equal to the length of the polygonal line $K L M^{\prime} N^{\prime} K^{\prime}$, which is not less than $K K^{\prime}$. It follows that $P \geq 2 a$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-430.jpg?height=265&width=548&top_left_y=997&top_left_x=810) Let us consider all quadrilaterals $K L M N$ that are obtained by intersecting the tetrahedron by a plane parallel to a fixed plane $\alpha$. The lengths of the segments $K L, L M, M N, N K$ are linear functions in $A K$, and so is $P$. Thus $P$ takes its maximum at an endpoint of the interval, i.e., when the plane $K L M N$ passes through one of the vertices $A, B, C, D$, and it is easy to see that in this case $P \leq 3 a$. 49. If one of $p, q$, say $p$, is zero, then $-q$ is a perfect square. Conversely, $(p, q)=\left(0,-t^{2}\right)$ and $(p, q)=\left(-t^{2}, 0\right)$ satisfy the conditions for $t \in \mathbb{Z}$. We now assume that $p, q$ are nonzero. If the trinomial $x^{2}+p x+q$ has two integer roots $x_{1}, x_{2}$, then $|q|=\left|x_{1} x_{2}\right| \geq\left|x_{1}\right|+\left|x_{2}\right|-1 \geq|p|-1$. Similarly, if $x^{2}+q x+p$ has integer roots, then $|p| \geq|q|-1$ and $q^{2}-4 p$ is a square. Thus we have two cases to investigate: (i) $|p|=|q|$. Then $p^{2}-4 q=p^{2} \pm 4 p$ is a square, so $(p, q)=(4,4)$. (ii) $|p|=|q| \pm 1$. The solutions for $(p, q)$ are $(t,-1-t)$ for $t \in \mathbb{Z}$ and $(5,6)$, $(6,5)$. 50. Suppose that $P_{n}(x)=n$ for $x \in\left\{x_{1}, x_{2}, \ldots, x_{n}\right\}$. Then $$ P_{n}(x)=\left(x-x_{1}\right)\left(x-x_{2}\right) \cdots\left(x-x_{n}\right)+n . $$ From $P_{n}(0)=0$ we obtain $n=\left|x_{1} x_{2} \cdots x_{n}\right| \geq 2^{n-2}$ (because at least $n-2$ factors are different from $\pm 1$ ) and therefore $n \geq 2^{n-2}$. It follows that $n \leq 4$. For each positive integer $n \leq 4$ there exists a polynomial $P_{n}$. Here is the list of such polynomials: $$ \begin{array}{ll} n=1: \pm x, & n=2: 2 x^{2}, x^{2} \pm x,-x^{2} \pm 3 x \\ n=3: \pm\left(x^{3}-x\right)+3 x^{2}, & n=4:-x^{4}+5 x^{2} . \end{array} $$ 51. We shall use the following algorithm: Choose a segment of maximum length ("basic" segment) and put on it unused segments of the opposite color without overlapping, each time of the maximum possible length, as long as it is possible. Repeat the procedure with remaining segments until all the segments are used. Let us suppose that the last basic segment is black. Then the length of the used part of any white basic segment is greater than the free part, and consequently at least one-half of the length of the white segments has been used more than once. Therefore all basic segments have total length at most 1.5 and can be distributed on a segment of length 1.51. On the other hand, if we are given two white segments of lengths 0.5 and two black segments of lengths 0.999 and 0.001 , we cannot distribute them on a segment of length less than 1.499. 52. The maximum and minimum are $2 R \sqrt{4-2 k^{2}}$ and $2 R\left(1+\sqrt{1-k^{2}}\right)$ respectively. 53. The discriminant of the given equation considered as a quadratic equation in $b$ is $196-75 a^{2}$. Thus $75 a^{2} \leq 196$ and hence $-1 \leq a \leq 1$. Now the integer solutions of the given equation are easily found: $(-1,3),(0,0),(1,2)$. 54. We shall use the following lemma. Lemma. If a real function $f$ is convex on the interval $I$ and $x, y, z \in I$, $x \leq y \leq z$, then $$ (y-z) f(x)+(z-x) f(y)+(x-y) f(z) \leq 0 . $$ Proof. The inequality is obvious for $x=y=z$. If $xs_{k+m}$ for $0 \leq k \leq l-m$ and $s_{k}a_{k}$ in the ring, then $q n=r m$, which implies $m^{\prime}\left|q, n^{\prime}\right| p$ and thus $k=p+q \geq m^{\prime}+n^{\prime}$. But since all $i_{1}, i_{2}, \ldots, i_{k}$ are congruent modulo $d$, we have $k \leq m^{\prime}+n^{\prime}-1$, a contradiction. Hence there exists a sequence of length $m+n-d-1$ with the required property. 58. The following inequality (Finsler and Hadwiger, 1938) is sharper than the one we have to prove: $$ 2 a b+2 b c+2 c a-a^{2}-b^{2}-c^{2} \geq 4 S \sqrt{3} $$ First proof. Let us set $2 x=b+c-a, 2 y=c+a-b, 2 z=a+b-c$. Then $x, y, z>0$ and the inequality (1) becomes $$ y^{2} z^{2}+z^{2} x^{2}+x^{2} y^{2} \geq x y z(x+y+z) $$ which is equivalent to the obvious inequality $(x y-y z)^{2}+(y z-z x)^{2}+$ $(z x-x y)^{2} \geq 0$. Second proof. Using the known relations for a triangle $$ \begin{aligned} a^{2}+b^{2}+c^{2} & =2 s^{2}-2 r^{2}-8 r R, \\ a b+b c+c a & =s^{2}+r^{2}+4 r R, \\ S & =r s, \end{aligned} $$ where $r$ and $R$ are the radii of the incircle and the circumcircle, $s$ the semiperimeter and $S$ the area, we can transform (1) into $$ s \sqrt{3} \leq 4 R+r . $$ The last inequality is a consequence of the inequalities $2 r \leq R$ and $s^{2} \leq$ $4 R^{2}+4 R r+3 r^{2}$, where the last one follows from the equality $H I^{2}=$ $4 R^{2}+4 R r+3 r^{2}-s^{2}$ ( $H$ and $I$ being the orthocenter and the incenter of the triangle). 59. Let us consider the set $R$ of pairs of coordinates of the points from $E$ reduced modulo 3 . If some element of $R$ occurs thrice, then the corresponding points are vertices of a triangle with integer barycenter. Also, no three elements from $E$ can have distinct $x$-coordinates and distinct $y$ coordinates. By an easy discussion we can conclude that the set $R$ contains at most four elements. Hence $|E| \leq 8$. An example of a set $E$ consisting of 8 points that satisfies the required condition is $$ E=\{(0,0),(1,0),(0,1),(1,1),(3,6),(4,6),(3,7),(4,7)\} $$ 60. By Lagrange's interpolation formula we have $$ F(x)=\sum_{j=0}^{n} F\left(x_{j}\right) \frac{\prod_{i \neq j}\left(x-x_{j}\right)}{\prod_{i \neq j}\left(x_{i}-x_{j}\right)} . $$ Since the leading coefficient in $F(x)$ is 1 , it follows that $$ 1=\sum_{j=0}^{n} \frac{F\left(x_{j}\right)}{\prod_{i \neq j}\left(x_{i}-x_{j}\right)} $$ Since $$ \left|\prod_{i \neq j}\left(x_{i}-x_{j}\right)\right|=\prod_{i=0}^{j-1}\left|x_{i}-x_{j}\right| \prod_{i=j+1}^{n}\left|x_{i}-x_{j}\right| \geq j!(n-j)! $$ we have $$ 1 \leq \sum_{j=0}^{n} \frac{\left|F\left(x_{j}\right)\right|}{\left|\prod_{i \neq j}\left(x_{i}-x_{j}\right)\right|} \leq \frac{1}{n!} \sum_{j=0}^{n}\binom{n}{j}\left|F\left(x_{j}\right)\right| \leq \frac{2^{n}}{n!} \max \left|F\left(x_{j}\right)\right| . $$ Now the required inequality follows immediately. ### 4.20 Solutions to the Shortlisted Problems of IMO 1978 1. There exists an $M_{s}$ that contains at least $2 n / k=2\left(k^{2}+1\right)$ elements. It follows that $M_{s}$ contains either at least $k^{2}+1$ even numbers or at least $k^{2}+1$ odd numbers. In the former case, consider the predecessors of those $k^{2}+1$ numbers: among them, at least $\frac{k^{2}+1}{k+1}>k$, i.e., at least $k+1$, belong to the same subset, say $M_{t}$. Then we choose $s, t$. The latter case is similar. Second solution. For all $i, j \in\{1,2, \ldots, k\}$, consider the set $N_{i j}=\{r \mid$ $\left.2 r \in M_{i}, 2 r-1 \in M_{j}\right\}$. Then $\left\{N_{i j} \mid i, j\right\}$ is a partition of $\{1,2, \ldots, n\}$ into $k^{2}$ subsets. For $n \geq k^{3}+1$ one of these subsets contains at least $k+1$ elements, and the statement follows. Remark. The statement is not necessarily true when $n=k^{3}$. 2. Consider the transformation $\phi$ of the plane defined as the homothety $\mathcal{H}$ with center $B$ and coefficient 2 followed by the rotation $\mathcal{R}$ about the center $O$ through an angle of $60^{\circ}$. Being direct, this mapping must be a rotational homothety. We also see that $\mathcal{H}$ maps $S$ into the point symmetric to $S$ with respect to $O A$, and $\mathcal{R}$ takes it back to $S$. Hence $S$ is a fixed point, and is consequently also the center of $\phi$. Therefore $\phi$ is the rotational homothety about $S$ with the angle $60^{\circ}$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-435.jpg?height=319&width=462&top_left_y=920&top_left_x=858) and coefficient 2. (In fact, this could also be seen from the fact that $\phi$ preserves angles of triangles and maps the segment $S R$ onto $S B$, where $R$ is the midpoint of $A B$.) Since $\phi(M)=B^{\prime}$, we conclude that $\angle M S B^{\prime}=60^{\circ}$ and $S B^{\prime} / S M=2$. Similarly, $\angle N S A^{\prime}=60^{\circ}$ and $S A^{\prime} / S N=2$, so triangles $M S B^{\prime}$ and $N S A^{\prime}$ are indeed similar. Second solution. Probably the simplest way here is using complex numbers. Put the origin at $O$ and complex numbers $a, a^{\prime}$ at points $A, A^{\prime}$, and denote the primitive sixth root of 1 by $\omega$. Then the numbers at $B, B^{\prime}$, $S$ and $N$ are $\omega a, \omega a^{\prime},(a+\omega a) / 3$, and $\left(a+\omega a^{\prime}\right) / 2$ respectively. Now it is easy to verify that $(n-s)=\omega\left(a^{\prime}-s\right) / 2$, i.e., that $\angle N S A^{\prime}=60^{\circ}$ and $S A^{\prime} / S N=2$. 3. What we need are $m, n$ for which $1978^{m}\left(1978^{n-m}-1\right)$ is divisible by $1000=8 \cdot 125$. Since $1978^{n-m}-1$ is odd, it follows that $1978^{m}$ is divisible by 8 , so $m \geq 3$. Also, $1978^{n-m}-1$ is divisible by 125 , i.e., $1978^{n-m} \equiv 1(\bmod 125)$. Note that $1978 \equiv-2(\bmod 5)$, and consequently also $-2^{n-m} \equiv 1$. Hence $4 \mid n-m=4 k, k \geq 1$. It remains to find the least $k$ such that $1978^{4 k} \equiv 1$ $(\bmod 125)$. Since $1978^{4} \equiv(-22)^{4}=484^{2} \equiv(-16)^{2}=256 \equiv 6$, we reduce it to $6^{k} \equiv 1$. Now $6^{k}=(1+5)^{k} \equiv 1+5 k+25\binom{k}{2}(\bmod 125)$, which reduces to $125 \mid 5 k(5 k-3)$. But $5 k-3$ is not divisible by 5 , and so $25 \mid k$. Therefore $100 \mid n-m$, and the desired values are $m=3, n=103$. 4. Let $\gamma, \varphi$ be the angles of $T_{1}$ and $T_{2}$ opposite to $c$ and $w$ respectively. By the cosine theorem, the inequality is transformed into $$ \begin{aligned} & a^{2}\left(2 v^{2}-2 u v \cos \varphi\right)+b^{2}\left(2 u^{2}-2 u v \cos \varphi\right) \\ & \quad+2\left(a^{2}+b^{2}-2 a b \cos \gamma\right) u v \cos \varphi \geq 4 a b u v \sin \gamma \sin \varphi \end{aligned} $$ This is equivalent to $2\left(a^{2} v^{2}+b^{2} u^{2}\right)-4 a b u v(\cos \gamma \cos \varphi+\sin \gamma \sin \varphi) \geq 0$, i.e., to $$ 2(a v-b u)^{2}+4 a b u v(1-\cos (\gamma-\varphi)) \geq 0 $$ which is clearly satisfied. Equality holds if and only if $\gamma=\varphi$ and $a / b=$ $u / v$, i.e., when the triangles are similar, $a$ corresponding to $u$ and $b$ to $v$. 5. We first explicitly describe the elements of the sets $M_{1}, M_{2}$. $x \notin M_{1}$ is equivalent to $x=a+(a+1)+\cdots+(a+n-1)=n(2 a+n-1) / 2$ for some natural numbers $n, a, n \geq 2$. Among $n$ and $2 a+n-1$, one is odd and the other even, and both are greater than 1 ; so $x$ has an odd factor $\geq 3$. On the other hand, for every $x$ with an odd divisor $p>3$ it is easy to see that there exist corresponding $a, n$. Therefore $M_{1}=\left\{2^{k} \mid k=0,1,2, \ldots\right\}$. $x \notin M_{2}$ is equivalent to $x=a+(a+2)+\cdots+(a+2(n-1))=n(a+n-1)$, where $n \geq 2$, i.e. to $x$ being composite. Therefore $M_{2}=\{1\} \cup\{p \mid$ $p=$ prime $\}$. $x \notin M_{3}$ is equivalent to $x=a+(a+3)+\cdots+(a+3(n-1))=$ $n(2 a+3(n-1)) / 2$. It remains to show that every $c \in M_{3}$ can be written as $c=2^{k} p$ with $p$ prime. Suppose the opposite, that $c=2^{k} p q$, where $p, q$ are odd and $q \geq p \geq 3$. Then there exist positive integers $a, n(n \geq 2)$ such that $c=n(2 a+3(n-1)) / 2$ and hence $c \notin M_{3}$. Indeed, if $k=0$, then $n=2$ and $2 a+3=p q$ work; otherwise, setting $n=p$ one obtains $a=2^{k} q-$ $3(p-1) / 2 \geq 2 q-3(p-1) / 2 \geq(p+3) / 2>1$. 6. For fixed $n$ and the set $\{\varphi(1), \ldots, \varphi(n)\}$, there are finitely many possibilities for mapping $\varphi$ to $\{1, \ldots, n\}$. Suppose $\varphi$ is the one among these for which $\sum_{k=1}^{n} \varphi(k) / k^{2}$ is minimal. If $i0 \end{aligned} $$ which contradicts the assumption. This shows that $\varphi(1)<\cdots<\varphi(n)$, and consequently $\varphi(k) \geq k$ for all $k$. Hence $$ \sum_{k=1}^{n} \frac{\varphi(k)}{k^{2}} \geq \sum_{k=1}^{n} \frac{k}{k^{2}}=\sum_{k=1}^{n} \frac{1}{k} $$ 7. Let $x=O A, y=O B, z=O C, \alpha=\angle B O C, \beta=\angle C O A, \gamma=\angle A O B$. The conditions yield the equation $x+y+\sqrt{x^{2}+y^{2}-2 x y \cos \gamma}=2 p$, which transforms to $(2 p-x-y)^{2}=x^{2}+y^{2}-2 x y \cos \gamma$, i.e. $(p-x)(p-y)=$ $x y(1-\cos \gamma)$. Thus $$ \frac{p-x}{x} \cdot \frac{p-y}{y}=1-\cos \gamma $$ and analogously $\frac{p-y}{y} \cdot \frac{p-z}{z}=1-\cos \alpha, \frac{p-z}{z} \cdot \frac{p-x}{x}=1-\cos \beta$. Setting $u=\frac{p-x}{x}, v=\frac{p-y}{y}, w=\frac{p-z}{z}$, the above system becomes $$ u v=1-\cos \gamma, \quad v w=1-\cos \alpha, \quad w u=1-\cos \beta $$ This system has a unique solution in positive real numbers $u, v, w$ : $u=\sqrt{\frac{(1-\cos \beta)(1-\cos \gamma)}{1-\cos \alpha}}$, etc. Finally, the values of $x, y, z$ are uniquely determined from $u, v, w$. Remark. It is not necessary that the three lines be in the same plane. Also, there could be any odd number of lines instead of three. 8. Take the subset $\left\{a_{i}\right\}=\{1,7,11,13,17,19,23,29, \ldots, 30 m-1\}$ of $S$ containing all the elements of $S$ that are not multiples of 3 . There are 8 m such elements. Every element in $S$ can be uniquely expressed as $3^{t} a_{i}$ for some $i$ and $t \geq 0$. In a subset of $S$ with $8 m+1$ elements, two of them will have the same $a_{i}$, hance one will divide the other. On the other hand, for each $i=1,2, \ldots, 8 m$ choose $t \geq 0$ such that $10 \mathrm{~m}<$ $b_{i}=3^{t} a_{i}<30 \mathrm{~m}$. Then there are $8 \mathrm{~m} b_{i}$ 's in the interval $(10 \mathrm{~m}, 30 \mathrm{~m})$, and the quotient of any two of them is less than 3 , so none of them can divide any other. Thus the answer is 8 m . 9. Since the $n$th missing number (gap) is $f(f(n))+1$ and $f(f(n))$ is a member of the sequence, there are exactly $n-1$ gaps less than $f(f(n))$. This leads to $$ f(f(n))=f(n)+n-1 $$ Since 1 is not a gap, we have $f(1)=1$. The first gap is $f(f(1))+1=2$. Two consecutive integers cannot both be gaps (the predecessor of a gap is of the form $f(f(m))$ ). Now we deduce $f(2)=3$; a repeated application of the formula above gives $f(3)=3+1=4, f(4)=4+2=6, f(6)=9$, $f(9)=14, f(14)=22, f(22)=35, f(35)=56, f(56)=90, f(90)=145$, $f(145)=234, f(234)=378$. Also, $f(f(35))+1=91$ is a gap, so $f(57)=92$. Then by $(1), f(92)=148$, $f(148)=239, f(239)=386$. Finally, here $f(f(148))+1=387$ is a gap, so $f(240)=388$. Second solution. As above, we arrive at formula (1). Then by simple induction it follows that $f\left(F_{n}+1\right)=F_{n+1}+1$, where $F_{k}$ is the Fibonacci sequence ( $F_{1}=F_{2}=1$ ). We now prove by induction (on $n$ ) that $f\left(F_{n}+x\right)=F_{n+1}+f(x)$ for all $x$ with $1 \leq x \leq F_{n-1}$. This is trivially true for $n=0,1$. Supposing that it holds for $n-1$, we shall prove it for $n$ : (i) If $x=f(y)$ for some $y$, then by the inductive assumption and (1) $$ \begin{aligned} f\left(F_{n}+x\right) & =f\left(F_{n}+f(y)\right)=f\left(f\left(F_{n-1}+y\right)\right) \\ & =F_{n}+f(y)+F_{n-1}+y-1=F_{n+1}+f(x) \end{aligned} $$ (ii) If $x=f(f(y))+1$ is a gap, then $f\left(F_{n}+x-1\right)+1=F_{n+1}+f(x-1)+1$ is a gap also: $$ \begin{aligned} F_{n+1}+f(x)+1 & =F_{n+1}+f(f(f(y)))+1 \\ & =f\left(F_{n}+f(f(y))\right)+1=f\left(f\left(F_{n-1}+f(y)\right)\right)+1 \end{aligned} $$ It follows that $f\left(F_{n}+x\right)=F_{n+1}+f(x-1)+2=F_{n+1}+f(x)$. Now, since we know that each positive integer $x$ is expressible as $x=$ $F_{k_{1}}+F_{k_{2}}+\cdots+F_{k_{r}}$, where $0R$. We claim that the locus of $Q$ is the whole sphere $\left(O, \sqrt{3 R^{2}-O P^{2}}\right)$. Choose any point $Q$ on this sphere. Since $O Q>R>O P$, the sphere with diameter $P Q$ intersects $S$ on a circle. Let $C$ be an arbitrary point on this circle, and $X$ the point opposite $C$ in the rectangle $P C Q X$. By the lemma, $O P^{2}+O Q^{2}=O C^{2}+O X^{2}$, hence $O X^{2}=2 R^{2}-O P^{2}>R^{2}$. The plane passing through $P$ and perpendicular to $P C$ intersects $S$ in a circle $\gamma$; both $P, X$ belong to this plane, $P$ being inside and $X$ outside the circle, so that the circle with diameter $P X$ intersects $\gamma$ at some point $B$. Finally, we choose $A$ to be the point opposite $B$ in the rectangle $P B X A$ : we deduce that $O A^{2}+O B^{2}=O P^{2}+O X^{2}$, and consequently $A \in S$. By the construction, there is a rectangular parallelepiped through $P, A, B, C, X, Q$. 14. We label the cells of the cube by $\left(a_{1}, a_{2}, a_{3}\right), a_{i} \in\{1,2, \ldots, 2 n+1\}$, in a natural way: for example, as Cartesian coordinates of centers of the cells $\left((1,1,1)\right.$ is one corner, etc.). Notice that there should be $(2 n+1)^{3}-$ $2 n(2 n+1) \cdot 2(n+1)=2 n+1$ void cells, i.e., those not covered by any piece of soap. $n=1$. In this case, six pieces of soap $1 \times 2 \times 2$ can be placed on the following positions: $[(1,1,1),(2,2,1)],[(3,1,1),(3,2,2)],[(2,3,1),(3,3,2)]$ and the symmetric ones with respect to the center of the box. (Here $[A, B]$ denotes the rectangle with opposite corners at $A, B$.) $n$ is even. Each of the $2 n+1$ planes $P_{k}=\left\{\left(a_{1}, a_{2}, k\right) \mid a_{i}=1, \ldots, 2 n+1\right\}$ can receive $2 n$ pieces of soap: In fact, $P_{k}$ can be partitioned into four $n \times(n+1)$ rectangles at the corners and the central cell, while an $n \times(n+1)$ rectangle can receive $n / 2$ pieces of soap. $n$ is odd, $n>1$. Let us color a cell $\left(a_{1}, a_{2}, a_{3}\right)$ blue, red, or yellow if exactly three, two or one $a_{i}$ respectively is equal to $n+1$. Thus there are 1 blue, $6 n$ red, and $12 n^{2}$ yellow cells. We notice that each piece of soap must contain at least one colored cell (because $2(n+1)>2 n+1)$. Also, every piece of soap contains an even number (actually, $1 \cdot 2,1(n+1)$, or $2(n+1)$ ) of cells in $P_{k}$. On the other hand, $2 n+1$ cells are void, i.e., one in each plane. There are several cases for a piece of soap $S$ : (i) $S$ consists of 1 blue, $n+1$ red and $n$ yellow cells; (ii) $S$ consists of 2 red and $2 n$ yellow cells (and no blue cells); (iii) $S$ contains 1 red cell, $n+1$ yellow cells, and the are rest uncolored; (iv) $S$ contains 2 yellow cells and no blue or red ones. From the descriptions of the last three cases, we can deduce that if $S$ contains $r$ red cells and no blue, then it contains exactly $2+(n-1) r$ red ones. $\quad(*)$ Now, let $B_{1}, \ldots, B_{k}$ be all boxes put in the cube, with a possible exception for the one covering the blue cell: thus $k=2 n(2 n+1)$ if the blue cell is void, or $k=2 n(2 n+1)-1$ otherwise. Let $r_{i}$ and $y_{i}$ respectively be the numbers of red and yellow cells inside $B_{i}$. By (*) we have $y_{1}+\cdots+y_{k}=2 k+(n-1)\left(r_{1}+\cdots+r_{k}\right)$. If the blue cell is void, then $r_{1}+\cdots+r_{k}=6 n$ and consequently $y_{1}+\cdots+y_{k}=$ $4 n(2 n+1)+6 n(n-1)=14 n^{2}-2 n$, which is impossible because there are only $12 n^{2}<14 n^{2}-2 n$ yellow cells. Otherwise, $r_{1}+\cdots+r_{k} \geq 5 n-2$ (because $n+1$ red cells are covered by the box containing the blue cell, and one can be void) and consequently $y_{1}+\cdots+y_{k} \geq 4 n(2 n+$ $1)-2+(n-1)(5 n-2)=13 n^{2}-3 n$; since there are $n$ more yellow cells in the box containing the blue one, this counts for $13 n^{2}-2 n>12 n^{2}$ ( $n \geq 3$ ), again impossible. Remark. The following solution of the case $n$ odd is simpler, but does not work for $n=3$. For $k=1,2,3$, let $m_{k}$ be the number of pieces whose long sides are perpendicular to the plane $\pi_{k}\left(a_{k}=n+1\right)$. Each of these $m_{k}$ pieces covers exactly 2 cells of $\pi_{k}$, while any other piece covers $n+1$, $2(n+1)$, or none. It follows that $4 n^{2}+4 n-2 m_{k}$ is divisible by $n+1$, and so is $2 m_{k}$. This further implies that $2 m_{1}+2 m_{2}+2 m_{3}=4 n(2 n+1)$ is a multiple of $n+1$, which is impossible for each odd $n$ except $n=1$ and $n=3$. 15. Let $C_{n}=\left\{a_{1}, \ldots, a_{n}\right\}\left(C_{0}=\emptyset\right)$ and $P_{n}=\left\{f(B) \mid B \subseteq C_{n}\right\}$. We claim that $P_{n}$ contains at least $n+1$ distinct elements. First note that $P_{0}=\{0\}$ contains one element. Suppose that $P_{n+1}=P_{n}$ for some $n$. Since $P_{n+1}=$ $\left\{a_{n+1}+r \mid r \in P_{n}\right\}$, it follows that for each $r \in P_{n}$, also $r+b_{n} \in P_{n}$. Then obviously $0 \in P_{n}$ implies $k b_{n} \in P_{n}$ for all $k$; therefore $P_{n}=P$ has at least $p \geq n+1$ elements. Otherwise, if $P_{n+1} \supset P_{n}$ for all $n$, then $\left|P_{n+1}\right| \geq\left|P_{n}\right|+1$ and hence $\left|P_{n}\right| \geq n+1$, as claimed. Consequently, $\left|P_{p-1}\right| \geq p$. (All the operations here are performed modulo $p$.) 16. Clearly $|x| \leq 1$. As $x$ runs over $[-1,1]$, the vector $u=\left(a x, a \sqrt{1-x^{2}}\right)$ runs over all vectors of length $a$ in the plane having a nonnegative vertical component. Putting $v=\left(b y, b \sqrt{1-y^{2}}\right), w=\left(c z, c \sqrt{1-z^{2}}\right)$, the system becomes $u+v=w$, with vectors $u, v, w$ of lengths $a, b, c$ respectively in the upper half-plane. Then $a, b, c$ are sides of a (possibly degenerate) triangle; i.e, $|a-b| \leq c \leq a+b$ is a necessary condition. Conversely, if $a, b, c$ satisfy this condition, one constructs a triangle $O M N$ with $O M=a, O N=b, M N=c$. If the vectors $\overrightarrow{O M}, \overrightarrow{O N}$ have a positive nonnegative component, then so does their sum. For every such triangle, putting $u=\overrightarrow{O M}, v=\overrightarrow{O N}$, and $w=\overrightarrow{O M}+\overrightarrow{O N}$ gives a solution, and every solution is given by one such triangle. This triangle is uniquely determined up to congruence: $\alpha=\angle M O N=\angle(u, v)$ and $\beta=\angle(u, w)$. Therefore, all solutions of the system are $$ \begin{aligned} & x=\cos t, \quad y=\cos (t+\alpha), \quad z=y=\cos (t+\beta), \quad t \in[0, \pi-\alpha] \quad \text { or } \\ & x=\cos t, \quad y=\cos (t-\alpha), \quad z=y=\cos (t-\beta), \quad t \in[\alpha, \pi] . \end{aligned} $$ 17. Let $z_{0} \geq 1$ be a positive integer. Supposing that the statement is true for all triples $(x, y, z)$ with $z1$ and $x_{0}2\left(z_{0}-z_{0}\right)=0$. Moreover, $x y-z^{2}=x_{0}\left(x_{0}+y_{0}-\right.$ $\left.2 z_{0}\right)-\left(z_{0}-x_{0}\right)^{2}=x_{0} y_{0}-z_{0}^{2}=1$ and $z0$. Now it follows from the first part that there exist integers $a, b$ such that $x=p=a^{2}+b^{2}$. Second solution. Another possibility is using arithmetic of Gaussian integers. Lemma. Suppose $m, n, p, q$ are elements of $\mathbb{Z}$ or any other unique factorization domain, with $m n=p q$. then there exist elements $a, b, c, d$ such that $m=a b, n=c d, p=a c, q=b d$. Proof is direct, for example using factorization of $a, b, c, d$ into primes. We now apply this lemma to the Gaussian integers in our case (because $\mathbb{Z}[i]$ has the unique factorization property), having in mind that $x y=$ $z^{2}+1=(z+i)(z-i)$. We obtain (1) $x=a b$, (2) $y=c d$, (3) $z+i=a c$, (4) $z-i=b d$ for some $a, b, c, d \in \mathbb{Z}[i]$. Let $a=a_{1}+a_{2} i$, etc. By (3) and (4), $\operatorname{gcd}\left(a_{1}, a_{2}\right)=$ $\cdots=\operatorname{gcd}\left(d_{1}, d_{2}\right)$. Then (1) and (2) give us $b=\bar{a}, c=\bar{d}$. The statement follows at once: $x=a b=a \bar{a}=a_{1}^{2}+a_{2}^{2}, y=d \bar{d}=d_{1}^{2}+d_{2}^{2}$ and $z+i=$ $\left(a_{1} d_{1}+a_{2} d_{2}\right)+\imath\left(a_{2} d_{1}-a_{1} d_{2}\right) \Rightarrow z=a_{1} d_{1}+a_{2} d_{2}$. ### 4.21 Solutions to the Shortlisted Problems of IMO 1979 1. We prove more generally, by induction on $n$, that any $2 n$-gon with equal edges and opposite edges parallel to each other can be dissected. For $n=2$ the only possible such $2 n$-gon is a single lozenge, so our theorem holds in this case. We will now show that it holds for general $n$. Assume by induction that it holds for $n-1$. Let $A_{1} A_{2} \ldots A_{2 n}$ be an arbitrary $2 n$-gon with equal edges and opposite edges parallel to each other. Then we can construct points $B_{i}$ for $i=3,4, \ldots, n$ such that $\overrightarrow{A_{i} B_{i}}=\overrightarrow{A_{2} A_{1}}=\overrightarrow{A_{n+1} A_{n+2}}$. We set $B_{2}=A_{2 n+1}=A_{1}$ and $B_{n+1}=A_{n+2}$. It follows that $A_{i} B_{i} B_{i+1} A_{i+1}$ for $i=2,3,4, \ldots, n$ are all lozenges. It also follows that $B_{i} B_{i+1}$ for $i=2,3,4, \ldots, n$ are equal to the edges of $A_{1} A_{2} \ldots A_{2 n}$ and parallel to $A_{i} A_{i+1}$ and hence to $A_{n+i} A_{n+i+1}$. Thus $B_{2} \ldots B_{n+1} A_{n+3} \ldots A_{2 n}$ is a $2(n-1)$-gon with equal edges and opposite sides parallel and hence, by the induction hypothesis, can be dissected into lozenges. We have thus provided a dissection for $A_{1} A_{2} \ldots A_{2 n}$. This completes the proof. 2. The only way to arrive at the latter alternative is to draw four different socks in the first drawing or to draw only one pair in the first drawing and then draw two different socks in the last drawing. We will call these probabilities respectively $p_{1}, p_{2}, p_{3}$. We calculate them as follows: $$ p_{1}=\frac{\binom{5}{4} 2^{4}}{\binom{10}{4}}=\frac{8}{21}, \quad p_{2}=\frac{5\binom{4}{2} 2^{2}}{\binom{10}{4}}=\frac{4}{7}, \quad p_{3}=\frac{4}{\binom{6}{2}}=\frac{4}{15} . $$ We finally calculate the desired probability: $P=p_{1}+p_{2} p_{3}=\frac{8}{15}$. 3. An obvious solution is $f(x)=0$. We now look for nonzero solutions. We note that plugging in $x=0$ we get $f(0)^{2}=f(0)$; hence $f(0)=0$ or $f(0)=1$. If $f(0)=0$, then $f$ is of the form $f(x)=x^{k} g(x)$, where $g(0) \neq 0$. Plugging this formula into $f(x) f\left(2 x^{2}\right)=f\left(2 x^{3}+x\right)$ we get $2^{k} x^{2 k} g(x) g\left(2 x^{2}\right)=\left(2 x^{2}+1\right)^{k} g\left(2 x^{3}+x\right)$. Plugging in $x=0$ gives us $g(0)=0$, which is a contradiction. Hence $f(0)=1$. For an arbitrary root $\alpha$ of the polynomial $f, 2 \alpha^{3}+\alpha$ must also be a root. Let $\alpha$ be a root of the largest modulus. If $|\alpha|>1$ then $\left|2 \alpha^{3}+\alpha\right|>$ $2|\alpha|^{3}-|\alpha|>|\alpha|$, which is impossible. It follows that $|\alpha| \leq 1$ and hence all roots of $f$ have modules less than or equal to 1 . But the product of all roots of $f$ is $|f(0)|=1$, which implies that all the roots have modulus 1. Consequently, for a root $\alpha$ it holds that $|\alpha|=\left|2 \alpha^{3}-\alpha\right|=1$. This is possible only if $\alpha= \pm \imath$. Since the coefficients of $f$ are real it follows that $f$ must be of the form $f(x)=\left(x^{2}+1\right)^{k}$ where $k \in \mathbb{N}_{0}$. These polynomials satisfy the original formula. Hence, the solutions for $f$ are $f(x)=0$ and $f(x)=\left(x^{2}+1\right)^{k}, k \in \mathbb{N}_{0}$. 4. Let us prove first that the edges $A_{1} A_{2}, A_{2} A_{3}, \ldots, A_{5} A_{1}$ are of the same color. Assume the contrary, and let w.l.o.g. $A_{1} A_{2}$ be red and $A_{2} A_{3}$ be green. Three of the segments $A_{2} B_{l}(l=1,2,3,4,5)$, say $A_{2} B_{i}, A_{2} B_{j}, A_{2} B_{k}$, have to be of the same color, let it w.l.o.g. be red. Then $A_{1} B_{i}, A_{1} B_{j}, A_{1} B_{k}$ must be green. At least one of the sides of triangle $B_{i} B_{j} B_{k}$, say $B_{i} B_{j}$, must be an edge of the prism. Then looking at the triangles $A_{1} B_{i} B_{j}$ and $A_{2} B_{i} B_{j}$ we deduce that $B_{i} B_{j}$ can be neither green nor red, which is a contradiction. Hence all five edges of the pentagon $A_{1} A_{2} A_{3} A_{4} A_{5}$ have the same color. Similarly, all five edges of $B_{1} B_{2} B_{3} B_{4} B_{5}$ have the same color. We now show that the two colors are the same. Assume otherwise, i.e., that w.l.o.g. the $A$ edges are painted red and the $B$ edges green. Let us call segments of the form $A_{i} B_{j}$ diagonal ( $i$ and $j$ may be equal). We now count the diagonal segments by grouping the red segments based on their $A$ point, and the green segments based on their $B$ point. As above, the assumption that three of $A_{i} B_{j}$ for fixed $i$ are red leads to a contradiction. Hence at most two diagonal segments out of each $A_{i}$ may be red, which counts up to at most 10 red segments. Similarly, at most 10 diagonal segments can be green. But then we can paint at most 20 diagonal segments out of 25 , which is a contradiction. Hence all edges in the pentagons $A_{1} A_{2} A_{3} A_{4} A_{5}$ and $B_{1} B_{2} B_{3} B_{4} B_{5}$ have the same color. 5. Let $A=\{x \mid(x, y) \in M\}$ and $B=\{y \mid(x, y) \in M$. Then $A$ and $B$ are disjoint and hence $$ |M| \leq|A| \cdot|B| \leq \frac{(|A|+|B|)^{2}}{4} \leq\left[\frac{n^{2}}{4}\right] $$ These cardinalities can be achieved for $M=\{(a, b) \mid a=1,2, \ldots,[n / 2]$, $b=[n / 2]+1, \ldots, n\}$. 6. Setting $q=x^{2}+x-p$, the given equation becomes $$ \sqrt{(x+1)^{2}-2 q}+\sqrt{(x+2)^{2}-q}=\sqrt{(2 x+3)^{2}-3 q} . $$ Taking squares of both sides we get $2 \sqrt{\left((x+1)^{2}-2 q\right)\left((x+2)^{2}-q\right)}=$ $2(x+1)(x+2)$. Taking squares again we get $$ q\left(2 q-2(x+2)^{2}-(x+1)^{2}\right)=0 $$ If $2 q=2(x+2)^{2}+(x+1)^{2}$, at least one of the expressions under the three square roots in (1) is negative, and in that case the square root is not well-defined. Thus, we must have $q=0$. Now (1) is equivalent to $|x+1|+|x+2|=|2 x+3|$, which holds if and only if $x \notin(-2,-1)$. The number of real solutions $x$ of $q=x^{2}+x-p=0$ which are not in the interval $(-2,-1)$ is zero if $p<-1 / 4$, one if $p=-1 / 4$ or $02 / 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 $00$ for $0 \leq x<1 / 2$. Now the desired inequality $\frac{20}{60}=\frac{1}{3}<\sin 20^{\circ}<\frac{21}{60}=\frac{7}{20}$ follows from $$ f\left(\frac{1}{3}\right)<\frac{\sqrt{3}}{2}0$ for $x>1$, the function $f(x)$ takes its maximum at a point $x$ for which $f^{\prime}(x)=(1-\ln x) / x^{2}=0$. Hence $$ \max f(x)=f(e)=e^{1 / e} . $$ It follows that the set of values of $f(x)$ for $x \in \mathbb{R}^{+}$is the interval $\left(-\infty, e^{1 / e}\right)$, and consequently the desired set of bases $a$ of logarithms is $(0,1) \cup\left(1, e^{1 / e}\right]$. 15. We note that $\sum_{i=1}^{5} i\left(a-i^{2}\right)^{2} x_{i}=a^{2} \sum_{i=1}^{5} i x_{i}-2 a \sum_{i=1}^{5} i^{3} x_{i}+\sum_{i=1}^{5} i^{5} x_{i}=a^{2} \cdot a-2 a \cdot a^{2}+a^{3}=0$. Since the terms in the sum on the left are all nonnegative, it follows that all the terms have to be 0 . Thus, either $x_{i}=0$ for all $i$, in which case $a=0$, or $a=j^{2}$ for some $j$ and $x_{i}=0$ for $i \neq j$. In this case, $x_{j}=a / j=j$. Hence, the only possible values of $a$ are $\{0,1,4,9,16,25\}$. 16. Obviously, no two elements of $F$ can be complements of each other. If one of the sets has one element, then the conclusion is trivial. If there exist two different 2-element sets, then they must contain a common element, which in turn must then be contained in all other sets. Thus we can assume that there exists at most one 2 -element subset of $K$ in $F$. Since there can be at most 6 subsets of more than 3 elements of a 5 -element set, it follows that at least 9 out of 10 possible 3 -element subsets of $K$ belong to $F$. Let us assume, without loss of generality, that all sets but $\{c, d, e\}$ belong to $F$. Then sets $\{a, b, c\},\{a, d, e\}$, and $\{b, c, d\}$ have no common element, which is a contradiction. Hence it follows that all sets have a common element. 17. Let $K, L$, and $M$ be intersections of $C Q$ and $B R, A R$ and $C P$, and $A Q$ and $B P$, respectively. Let $\angle X$ denote the angle of the hexagon $K Q M P L R$ at the vertex $X$, where $X$ is one of the six points. By an elementary calculation of angles we get $\angle K=140^{\circ}, \angle L=130^{\circ}, \angle M=150^{\circ}, \angle P=100^{\circ}, \angle Q=95^{\circ}, \angle R=105^{\circ}$. Since $\angle K B C=\angle K C B$, it follows that $K$ is on the symmetry line of $A B C$ through $A$. Analogous statements hold for $L$ and $M$. Let $K_{R}$ and $K_{Q}$ be points symmetric to $K$ with respect to $A R$ and $A Q$, respectively. Since $\angle A K_{Q} Q=\angle A K_{Q} K_{R}=70^{\circ}$ and $\angle A K_{R} R=\angle A K_{R} K_{Q}=70^{\circ}$, it follows that $K_{R}, R, Q$, and $K_{Q}$ are collinear. Hence $\angle Q R K=$ $2 \angle R-180^{\circ}$ and $\angle R Q K=2 \angle Q-$ $180^{\circ}$. We analogously get $\angle P R L=$ $2 \angle R-180^{\circ}, \angle R P L=2 \angle P-$ $180^{\circ}, \angle Q P M=2 \angle P-180^{\circ}$ and $\angle P Q M=2 \angle Q-180^{\circ}$. From these formulas we easily get $\angle R P Q=$ $60^{\circ}, \angle R Q P=75^{\circ}$, and $\angle Q R P=$ $45^{\circ}$. 18. Let us write all $a_{i}$ in binary representation. For $S \subseteq\{1,2, \ldots, m\}$ let us define $b(S)$ as the number in whose binary representation ones appear in exactly the slots where ones appear in all $a_{i}$ where $i \subseteq S$ and don't appear in any other $a_{i}$. Some $b(S)$, including $b(\emptyset)$, will equal 0 , and hence there are fewer than $2^{m}$ different positive $b(S)$. We note that no two positive $b\left(S_{1}\right)$ and $b\left(S_{2}\right)\left(S_{1} \neq S_{2}\right)$ have ones in the same decimal places. Hence sums of distinct $b(S)$ 's are distinct. Moreover $$ a_{i}=\sum_{i \in S} b(S) $$ and hence the positive $b(S)$ are indeed the numbers $b_{1}, \ldots, b_{n}$ whose existence we had to prove. 19. Let us define $i_{j}$ for two positive integers $i$ and $j$ in the following way: $i_{1}=i$ and $i_{j+1}=i^{i_{j}}$ for all positive integers $j$. Thus we must find the smallest $m$ such that $100_{m}>3_{100}$. Since $100_{1}=100>27=3_{2}$, we inductively have $100_{j}=10^{100_{j-1}}>3^{100_{j-1}}>3^{3_{j}}=3_{j+1}$ and hence $m \leq 99$. We now prove that $m=99$ by proving $100_{98}<3_{100}$. We note that $\left(100_{1}\right)^{2}=10^{4}<27^{4}=3^{12}<3^{27}=3_{3}$. We also note for $d>12$ (which trivially holds for all $d=100_{i}$ ) that if $c>d^{2}$, then we have $$ 3^{c}>3^{d^{2}}>3^{12 d}=\left(3^{12}\right)^{d}>10000^{d}=\left(100^{d}\right)^{2} $$ Hence from $3_{3}>\left(100_{1}\right)^{2}$ it inductively follows that $3_{j}>\left(100_{j-2}\right)^{2}>$ $100_{j-2}$ and hence that $100_{99}>3_{100}>100_{98}$. Hence $m=99$. 20. Let $x_{k}=\max \left\{x_{1}, x_{2}, \ldots, x_{n}\right\}$. Then $x_{i} x_{i+1} \leq x_{i} x_{k}$ for $i=1,2, \ldots, k-1$ and $x_{i} x_{i+1} \leq x_{k} x_{i+1}$ for $i=k, \ldots, n-1$. Summing up these inequalities for $i=1,2, \ldots, n-1$ we obtain $$ \sum_{i=1}^{n-1} \leq x_{k}\left(x_{1}+\cdots+x_{k-1}+x_{k+1}+\cdots+x_{n}\right)=x_{k}\left(a-x_{k}\right) \leq \frac{a^{2}}{4} $$ We note that the value $a^{2} / 4$ is attained for $x_{1}=x_{2}=a / 2$ and $x_{3}=\cdots=$ $x_{n}=0$. Hence $a^{2} / 4$ is the required maximum. 21. Let $f(n)$ be the number of different ways $n \in \mathbb{N}$ can be expressed as $x^{2}+y^{3}$ where $x, y \in\left\{0,1, \ldots, 10^{6}\right\}$. Clearly $f(n)=0$ for $n<0$ or $n>10^{12}+10^{18}$. The first equation can be written as $x^{2}+t^{3}=y^{2}+z^{3}=n$, whereas the second equation can be written as $x^{2}+t^{3}=n+1, y^{2}+z^{3}=n$. Hence we obtain the following formulas for $M$ and $N$ : $$ M=\sum_{i=0}^{m} f(i)^{2}, \quad N=\sum_{i=0}^{m-1} f(i) f(i+1) . $$ Using the AM-GM inequality we get $$ \begin{aligned} N & =\sum_{i=0}^{m-1} f(i) f(i+1) \\ & \leq \sum_{i=0}^{m-1} \frac{f(i)^{2}+f(i+1)^{2}}{2}=\frac{f(0)^{2}}{2}+\sum_{i=1}^{m-1} f(i)^{2}+\frac{f(m)^{2}}{2}0$. This completes our proof. 22. Let the centers of the two circles be denoted by $O$ and $O_{1}$ and their respective radii by $r$ and $r_{1}$, and let the positions of the points on the circles at time $t$ be denoted by $M(t)$ and $N(t)$. Let $Q$ be the point such that $O A O_{1} Q$ is a parallelogram. We will show that $Q$ is the point $P$ we are looking for, i.e., that $Q M(t)=$ $Q N(t)$ for all $t$. We note that $O Q=$ $O_{1} A=r_{1}, O_{1} Q=O A=r$ and ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-449.jpg?height=353&width=469&top_left_y=1504&top_left_x=850) $\angle Q O A=\angle Q O_{1} A=\phi$. Since the two points return to $A$ at the same time, it follows that $\angle M(t) O A=\angle N(t) O_{1} A=\omega t$. Therefore $\angle Q O M(t)=$ $\angle Q O_{1} N(t)=\phi+\omega t$, from which it follows that $\triangle Q O M(t) \cong \triangle Q O_{1} N(t)$. Hence $Q M(t)=Q N(t)$, as we claimed. 23. It is easily verified that no solutions exist for $n \leq 8$. Let us now assume that $n>8$. We note that $2^{8}+2^{11}+2^{n}=2^{8} \cdot\left(9+2^{n-8}\right)$. Hence $9+2^{n-8}$ must also be a square, say $9+2^{n-8}=x^{2}, x \in \mathbb{N}$, i.e., $2^{n-8}=x^{2}-9=$ $(x-3)(x+3)$. Thus $x-3$ and $x+3$ are both powers of 2 , which is possible only for $x=5$ and $n=12$. Hence, $n=12$ is the only solution. 24. Clearly $O$ is the midpoint of $B C$. Let $M$ and $N$ be the points of tangency of the circle with $A B$ and $A C$, respectively, and let $\angle B A C=2 \varphi$. Then $\angle B O M=\angle C O N=\varphi$. Let us assume that $P Q$ touches the circle in $X$. If we set $\angle P O M=$ $\angle P O X=x$ and $\angle Q O N=\angle Q O X=y$, then $2 x+2 y=\angle M O N=$ $180^{\circ}-2 \varphi$, i.e., $y=90^{\circ}-\varphi-x$. It follows that $\angle O Q C=180^{\circ}-\angle Q O C-$ $\angle O C Q=180^{\circ}-(\varphi+y)-\left(90^{\circ}-\varphi\right)=90^{\circ}-y=x+\varphi=\angle B O P$. Hence the triangles $B O P$ and $C Q O$ are similar, and consequently $B P \cdot C Q=$ $B O \cdot C O=(B C / 2)^{2}$. Conversely, let $B P \cdot C Q=(B C / 2)^{2}$ and let $Q^{\prime}$ be the point on $(A C)$ such that $P Q^{\prime}$ is tangent to the circle. Then $B P \cdot C Q^{\prime}=(B C / 2)^{2}$, which implies $Q \equiv Q^{\prime}$. 25. Let us first look for such a point $R$ on a line $l$ in $\pi$ going through $P$. Let $\angle Q P R=2 \theta$. Consider a point $Q^{\prime}$ on $l$ such that $Q^{\prime} P=Q P$. Then we have $$ \frac{Q P+P R}{Q R}=\frac{R Q^{\prime}}{Q R}=\frac{\sin Q^{\prime} Q R}{\sin Q Q^{\prime} R} $$ Since $Q Q^{\prime} P$ is fixed, the maximal value of the expression occurs when $\angle Q Q^{\prime} R=90^{\circ}$. In this case $(Q P+P R) / Q R=1 / \sin \theta$. Looking at all possible lines $l$, we see that $\theta$ is minimized when $l$ equals the projection of $P Q$ onto $\pi$. Hence, the point $R$ is the intersection of the projection of $P Q$ onto $\pi$ and the plane through $Q$ perpendicular to $P Q$. 26. Let us assume that $f(x+y)=f(x)+f(y)$ for all reals. In this case we trivially apply the equation to get $f(x+y+x y)=f(x+y)+f(x y)=$ $f(x)+f(y)+f(x y)$. Hence the equivalence is proved in the first direction. Now let us assume that $f(x+y+x y)=f(x)+f(y)+f(x y)$ for all reals. Plugging in $x=y=0$ we get $f(0)=0$. Plugging in $y=-1$ we get $f(x)=-f(-x)$. Plugging in $y=1$ we get $f(2 x+1)=2 f(x)+f(1)$ and hence $f(2(u+v+u v)+1)=2 f(u+v+u v)+f(1)=2 f(u v)+$ $2 f(u)+2 f(v)+f(1)$ for all real $u$ and $v$. On the other hand, plugging in $x=u$ and $y=2 v+1$ we get $f(2(u+v+u v)+1)=f(u+(2 v+$ 1) $+u(2 v+1))=f(u)+2 f(v)+f(1)+f(2 u v+u)$. Hence it follows that $2 f(u v)+2 f(u)+2 f(v)+f(1)=f(u)+2 f(v)+f(1)+f(2 u v+u)$, i.e., $$ f(2 u v+u)=2 f(u v)+f(u) $$ Plugging in $v=-1 / 2$ we get $0=2 f(-u / 2)+f(u)=-2 f(u / 2)+f(u)$. Hence, $f(u)=2 f(u / 2)$ and consequently $f(2 x)=2 f(x)$ for all reals. Now (1) reduces to $f(2 u v+u)=f(2 u v)+f(u)$. Plugging in $u=y$ and $x=2 u v$, we obtain $f(x)+f(y)=f(x+y)$ for all nonzero reals $x$ and $y$. Since $f(0)=0$, it trivially holds that $f(x+y)=f(x)+f(y)$ when one of $x$ and $y$ is 0 . ### 4.22 Solutions to the Shortlisted Problems of IMO 1981 1. Assume that the set $\{a-n+1, a-n+2, \ldots, a\}$ of $n$ consecutive numbers satisfies the condition $a \mid \operatorname{lcm}[a-n+1, \ldots, a-1]$. Let $a=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \ldots p_{r}^{\alpha_{r}}$ be the canonic representation of $a$, where $p_{1}0$. Then for each $j=1,2, \ldots, r$, there exists $m, m=$ $1,2, \ldots, n-1$, such that $p_{j}^{\alpha_{j}} \mid a-m$, i.e., such that $p_{j}^{\alpha_{j}} \mid m$. Thus $p_{j}^{\alpha_{j}} \leq$ $n-1$. If $r=1$, then $a=p_{1}^{\alpha_{1}} \leq n-1$, which is impossible. Therefore $r \geq 2$. But then there must exist two distinct prime numbers less than $n$; hence $n \geq 4$. For $n=4$, we must have $p_{1}^{\alpha_{1}}, p_{2}^{\alpha_{2}} \leq 3$, which leads to $p_{1}=2, p_{2}=3$, $\alpha_{1}=\alpha_{2}=1$. Therefore $a=6$, and $\{3,4,5,6\}$ is a unique set satisfying the condition of the problem. For every $n \geq 5$ there exist at least two such sets. In fact, for $n=5$ we easily find two sets: $\{2,3,4,5,6\}$ and $\{8,9,10,11,12\}$. Suppose that $n \geq 6$. Let $r, s, t$ be natural numbers such that $2^{r} \leq n-1<2^{r+1}$, $3^{s} \leq n-1<3^{s+1}, 5^{t} \leq n-1<5^{t+1}$. Taking $a=2^{r} \cdot 3^{s}$ and $a=2^{r} \cdot 5^{t}$ we obtain two distinct sets with the required property. Thus the answers are (a) $n \geq 4$ and (b) $n=4$. 2. Lemma. Let $E, F, G, H, I$, and $K$ be points on edges $A B, B C, C D, D A$, $A C$, and $B D$ of a tetrahedron. Then there is a sphere that touches the edges at these points if and only if $$ \begin{aligned} & A E=A H=A I, \quad B E=B F=B K, \\ & C F=C G=C I, \quad D G=D H=D K . \end{aligned} $$ Proof. The "only if" side of the equivalence is obvious. We now assume (*). Denote by $\epsilon, \phi, \gamma, \eta, \iota$, and $\kappa$ planes through $E, F, G, H, I, K$ perpendicular to $A B, B C, C D, D A, A C$ and $B D$ respectively. Since the three planes $\epsilon, \eta$, and $\iota$ are not mutually parallel, they intersect in a common point $O$. Clearly, $\triangle A E O \cong$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-451.jpg?height=324&width=496&top_left_y=1374&top_left_x=845) $\triangle A H O \cong \triangle A I O$; hence $O E=O H=O I=r$, and the sphere $\sigma(O, r)$ is tangent to $A B, A D, A C$. To prove that $\sigma$ is also tangent to $B C, C D, B D$ it suffices to show that planes $\phi, \gamma$, and $\kappa$ also pass through $O$. Without loss of generality we can prove this for just $\phi$. By the conditions for $E, F, I$, these are exactly the points of tangency of the incircle of $\triangle A B C$ and its sides, and if $S$ is the incenter, then $S E \perp A B, S F \perp B C, S I \perp A C$. Hence $\epsilon, \iota$, and $\phi$ all pass through $S$ and are perpendicular to the plane $A B C$, and consequently all share the line $l$ through $S$ perpendicular to $A B C$. Since $l=\epsilon \cap \iota$, the point $O$ will be situated on $l$, and hence $\phi$ will also contain $O$. This completes our proof of the lemma. Let $A H=A E=x, B E=B F=y, C F=C G=z$, and $D G=D H=w$. If the sphere is also tangent to $A C$ at some point $I$, then $A I=x$ and $I C=z$. Using the stated lemma it suffices to prove that if $A C=x+z$, then $B D=y+w$. Let $E F=F G=G H=H I=t, \angle B A D=\alpha, \angle A B C=\beta, \angle B C D=\gamma$, and $\angle A D C=\delta$. We get $$ t^{2}=E H^{2}=A E^{2}+A H^{2}-2 \cdot A E \cdot A H \cos \alpha=2 x^{2}(1-\cos \alpha) $$ We similarly conclude that $t^{2}=2 y^{2}(1-\cos \beta)=2 z^{2}(1-\cos \gamma)=2 w^{2}(1-$ $\cos \delta$ ). Further, using that $A B=x+y, B C=y+z, \cos \beta=1-t^{2} / 2 y^{2}$, we obtain $$ A C^{2}=A B^{2}+B C^{2}-2 A B \cdot B C \cos \beta=(x-z)^{2}+t^{2}\left(\frac{x}{y}+1\right)\left(\frac{z}{y}+1\right) $$ Analogously, from the triangle $A D C$ we get $A C^{2}=(x-z)^{2}+t^{2}(x / w+$ $1)(z / w+1)$, which gives $(x / y+1)(z / y+1)=(x / w+1)(z / w+1)$. Since $f(s)=(x / s+1)(z / s+1)$ is a decreasing function in $s$, it follows that $y=w$; similarly $x=z$. Hence $C F=C G=x$ and $D G=D H=y$. Hence $A C \| E F$ and $A C: t=$ $A C: E F=A B: E B=(x+y): y$; i.e., $A C=t(x+y) / y$. Similarly, from the triangle $A B D$, we get that $B D=t(x+y) / x$. Hence if $A C=x+z=2 x$, it follows that $2 x=t(x+y) / y \Rightarrow 2 x y=t(x+y) \Rightarrow B D=t(x+y) / x=$ $2 y=y+w$. This completes the proof. Second solution. Without loss of generality, assume that $E F=2$. Consider the Cartesian system in which points $O, E, F, G, H$ respectively have coordinates $(0,0,0),(-1,-1, a),(1,-1, a),(1,1, a),(-1,1, a)$. Line $A H$ is perpendicular to $O H$ and $A E$ is perpendicular to $O E$; hence from Pythagoras's theorem $A O^{2}=A H^{2}+H O^{2}=A E^{2}+E O^{2}=A E^{2}+H O^{2}$, which implies $A H=A E$. Therefore the $y$-coordinate of $A$ is zero; analogously the $x$-coordinates of $B$ and $D$ and the $y$-coordinate of $C$ are 0 . Let $A$ have coordinates $\left(x_{0}, 0, z_{1}\right)$ : then $\overrightarrow{E A}\left(x_{0}+1,1, z_{1}-a\right) \perp \overrightarrow{E O}(1,1,-a)$, i.e., $\overrightarrow{E A} \cdot \overrightarrow{E O}=x_{0}+2+a\left(a-z_{1}\right)=0$. Similarly, for $B\left(0, y_{0}, z_{2}\right)$ we have $y_{0}+2+a\left(a-z_{2}\right)=0$. This gives us $$ z_{1}=\frac{x_{0}+a^{2}+2}{a}, \quad z_{2}=\frac{y_{0}+a^{2}+2}{a} $$ We haven't used yet that $A\left(x_{0}, 0, z_{1}\right), E(-1,-1, a)$ and $B\left(0, y_{0}, z_{2}\right)$ are collinear, so let $A^{\prime}, B^{\prime}, E^{\prime}$ be the feet of perpendiculars from $A, B, E$ to the plane $x y$. The line $A^{\prime} B^{\prime}$, given by $y_{0} x+x_{0} y=x_{0} y_{0}, z=0$, contains the point $E^{\prime}(-1,-1,0)$, from which we obtain $$ \left(x_{0}+1\right)\left(y_{0}+1\right)=1 $$ In the same way, from the points $B$ and $C$ we get relations similar to (1) and (2) and conclude that $C$ has the coordinates $C\left(-x_{0}, 0, z_{1}\right)$. Similarly we get $D\left(0,-y_{0}, z_{2}\right)$. The condition that $A C$ is tangent to the sphere $\sigma(O, O E)$ is equivalent to $z_{1}=\sqrt{a^{2}+2}$, i.e., to $x_{0}=a \sqrt{a^{2}+2}-\left(a^{2}+2\right)$. But then (2) implies that $y_{0}=-a \sqrt{a^{2}+2}-\left(a^{2}+2\right)$ and $z_{2}=-\sqrt{a^{2}+2}$, which means that the sphere $\sigma$ is tangent to $B D$ as well. This finishes the proof. 3. Denote $\max (a+b+c, b+c+d, c+d+e, d+e+f, e+f+g)$ by $p$. We have $$ (a+b+c)+(c+d+e)+(e+f+g)=1+c+e \leq 3 p $$ which implies that $p \geq 1 / 3$. However, $p=1 / 3$ is achieved by taking $(a, b, c, d, e, f, g)=(1 / 3,0,0,1 / 3,0,0,1 / 3)$. Therefore the answer is $1 / 3$. Remark. In fact, one can prove a more general statement in the same way. Given positive integers $n, k, n \geq k$, if $a_{1}, a_{2}, \ldots, a_{n}$ are nonnegative real numbers with sum 1 , then the minimum value of $\max _{i=1, \ldots, n-k+1}\left\{a_{i}+\right.$ $\left.a_{i+1}+\cdots+a_{i+k-1}\right\}$ is $1 / r$, where $r$ is the integer with $k(r-1)0$ is an integer depending on $n$. By (1), this is equivalent to $a\left(\alpha^{n}-(-1)^{n} \alpha^{-n}\right)+$ $b\left(\alpha^{n+1}+(-1)^{n} \alpha^{-n-1}\right)=\alpha^{k_{n}}-(-1)^{k_{n}} \alpha^{-k_{n}}$, i.e., $$ \alpha^{k_{n}-n}=a+b \alpha-\alpha^{-2 n}(-1)^{n}\left(a-b \alpha^{-1}-(-\alpha)^{n-k_{n}}\right) \rightarrow a+b \alpha $$ as $n \rightarrow \infty$. Hence, since $k_{n}$ is an integer, $k_{n}-n$ must be constant from some point on: $k_{n}=n+k$ and $\alpha^{k}=a+b \alpha$. Then it follows from (2) that $\alpha^{-k}=a-b \alpha^{-1}$, and from (1) we conclude that $a f_{n}+b f_{n+1}=$ $f_{k+n}$ holds for every $n$. Putting $n=1$ and $n=2$ in the previous relation and solving the obtained system of equations we get $a=f_{k-1}$, $b=f_{k}$. It is easy to verify that such $a$ and $b$ satisfy the conditions. (b) As in (a), suppose that $u f_{n}^{2}+v f_{n+1}^{2}=f_{l_{n}}$ for all $n$. This leads to $$ \begin{aligned} u+v \alpha^{2}-\sqrt{5} \alpha^{l_{n}-2 n}= & 2(u-v)(-1)^{n} \alpha^{-2 n} \\ & -\left(u \alpha^{-4 n}+v \alpha^{-4 n-2}+(-1)^{l_{n}} \sqrt{5} \alpha^{-l_{n}-2 n}\right) \\ \rightarrow & 0 \end{aligned} $$ as $n \rightarrow \infty$. Thus $u+v \alpha^{2}=\sqrt{5} \alpha^{l_{n}-2 n}$, and $l_{n}-2 n=k$ is equal to a constant. Putting this into the above equation and multiplying by $\alpha^{2 n}$ we get $u-v \rightarrow 0$ as $n \rightarrow \infty$, i.e., $u=v$. Finally, substituting $n=1$ and $n=2$ in $u f_{n}^{2}+u f_{n+1}^{2}=f_{l_{n}}$ we easily get that the only possibility is $u=v=1$ and $k=1$. It is easy to verify that such $u$ and $v$ satisfy the conditions. 5. There are four types of small cubes upon disassembling: (1) 8 cubes with three faces, painted black, at one corner; (2) 12 cubes with two black faces, both at one edge; (3) 6 cubes with one black face; (4) 1 completely white cube. All cubes of type (1) must go to corners, and be placed in a correct way (one of three): for this step we have $3^{8} \cdot 8$ ! possibilities. Further, all cubes of type (2) must go in a correct way (one of two) to edges, admitting $2^{12} \cdot 12$ ! possibilities; similarly, there are $4^{6} \cdot 6$ ! ways for cubes of type (3), and 24 ways for the cube of type (4). Thus the total number of good reassemblings is $3^{8} 8!\cdot 2^{12} 12!\cdot 4^{6} 6!\cdot 24$, while the number of all possible reassemblings is $24^{27} \cdot 27!$. The desired probability is $\frac{3^{8} 8!\cdot 2^{12} 12!\cdot 4^{6} 6!\cdot 24}{24^{27} \cdot 27!}$. It is not necessary to calculate these numbers to find out that the blind man practically has no chance to reassemble the cube in a right way: in fact, the probability is of order $1.8 \cdot 10^{-37}$. 6. Assume w.l.o.g. that $n=\operatorname{deg} P \geq \operatorname{deg} Q$, and let $P_{0}=\left\{z_{1}, z_{2}, \ldots, z_{k}\right\}$, $P_{1}=\left\{z_{k+1}, z_{k+2}, \ldots z_{k+m}\right\}$. The polynomials $P$ and $Q$ match at $k+m$ points $z_{1}, z_{2}, \ldots, z_{k+m}$; hence if we prove that $k+m>n$, the result will follow. By the assumption, $P(x)=\left(x-z_{1}\right)^{\alpha_{1}} \cdots\left(x-z_{k}\right)^{\alpha_{k}}=\left(x-z_{k+1}\right)^{\alpha_{k+1}} \cdots\left(x-z_{k+m}\right)^{\alpha_{k+m}}+1$ for some positive integers $\alpha_{1}, \ldots, \alpha_{k+m}$. Let us consider $P^{\prime}(x)$. As we know, it is divisible by $\left(x-z_{i}\right)^{\alpha_{i}-1}$ for $i=1,2, \ldots, k+m$; i.e., $$ \prod_{i=1}^{k+m}\left(x-z_{i}\right)^{\alpha_{i}-1} \mid P^{\prime}(x) $$ Therefore $2 n-k-m=\operatorname{deg} \prod_{i=1}^{k+m}\left(x-z_{i}\right)^{\alpha_{i}-1} \leq \operatorname{deg} P^{\prime}=n-1$, i.e., $k+m \geq n+1$, as we claimed. 7. We immediately find that $f(1,0)=f(0,1)=2$. Then $f(1, y+1)=$ $f(0, f(1, y))=f(1, y)+1$; hence $f(1, y)=y+2$ for $y \geq 0$. Next we find that $f(2,0)=f(1,1)=3$ and $f(2, y+1)=f(1, f(2, y))=f(2, y)+2$, from which $f(2, y)=2 y+3$. Particularly, $f(2,2)=7$. Further, $f(3,0)=$ $f(2,1)=5$ and $f(3, y+1)=f(2, f(3, y))=2 f(3, y)+3$. This gives by induction $f(3, y)=2^{y+3}-3$. For $y=3, f(3,3)=61$. Finally, from $f(4,0)=f(3,1)=13$ and $f(4, y+1)=f(3, f(4, y))=2^{f(4, y)+3}-3$, we conclude that $$ f(4, y)=2^{2 y^{2}}-3 \quad(y+3 \text { twos }) $$ 8. Since the number $k, k=1,2, \ldots, n-r+1$, is the minimum in exactly $\binom{n-k}{r-1} r$-element subsets of $\{1,2, \ldots, n\}$, it follows that $$ f(n, r)=\frac{1}{\binom{n}{r}} \sum_{k=1}^{n-r+1} k\binom{n-k}{r-1} $$ To calculate the sum in the above expression, using the equality $\binom{r+j}{j}=$ $\sum_{i=0}^{j}\binom{r+i-1}{r-1}$, we note that $$ \begin{aligned} \sum_{k=1}^{n-r+1} k\binom{n-k}{r-1} & =\sum_{j=0}^{n-r}\left(\sum_{i=0}^{j}\binom{r+i-1}{r-1}\right) \\ & =\sum_{j=0}^{n-r}\binom{r+j}{r}=\binom{n+1}{r+1}=\frac{n+1}{r+1}\binom{n}{r} . \end{aligned} $$ Therefore $f(n, r)=(n+1) /(r+1)$. 9. If we put $1+24 a_{n}=b_{n}^{2}$, the given recurrent relation becomes $$ \frac{2}{3} b_{n+1}^{2}=\frac{3}{2}+\frac{b_{n}^{2}}{6}+b_{n}=\frac{2}{3}\left(\frac{3}{2}+\frac{b_{n}}{2}\right)^{2}, \quad \text { i.e., } \quad b_{n+1}=\frac{3+b_{n}}{2} $$ where $b_{1}=5$. To solve this recurrent equation, we set $c_{n}=2^{n-1} b_{n}$. From (1) we obtain $$ \begin{aligned} c_{n+1} & =c_{n}+3 \cdot 2^{n-1}=\cdots=c_{1}+3\left(1+2+2^{2}+\cdots+2^{n-1}\right) \\ & =5+3\left(2^{n}-1\right)=3 \cdot 2^{n}+2 \end{aligned} $$ Therefore $b_{n}=3+2^{-n+2}$ and consequently $$ a_{n}=\frac{b_{n}^{2}-1}{24}=\frac{1}{3}\left(1+\frac{3}{2^{n}}+\frac{1}{2^{2 n-1}}\right)=\frac{1}{3}\left(1+\frac{1}{2^{n-1}}\right)\left(1+\frac{1}{2^{n}}\right) . $$ 10. It is easy to see that partitioning into $p=2 k$ squares is possible for $k \geq 2$ (Fig. 1). Furthermore, whenever it is possible to partition the square into $p$ squares, there is a partition of the square into $p+3$ squares: namely, in the partition into $p$ squares, divide one of them into four new squares. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-455.jpg?height=272&width=240&top_left_y=1678&top_left_x=393) Fig. 1 ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-455.jpg?height=272&width=308&top_left_y=1678&top_left_x=919) Fig. 2 This implies that both $p=2 k$ and $p=2 k+3$ are possible if $k \geq 2$, and therefore all $p \geq 6$ are possible. On the other hand, partitioning the square into 5 squares is not possible. Assuming it is possible, one of its sides would be covered by exactly two squares, which cannot be of the same size (Fig. 2). The rest of the big square cannot be partitioned into three squares. Hence, the answer is $n=6$. 11. Let us denote the center of the semicircle by $O$, and $\angle A O B=2 \alpha$, $\angle B O C=2 \beta, A C=m, C E=n$. We claim that $a^{2}+b^{2}+n^{2}+a b n=4$. Indeed, since $a=2 \sin \alpha, b=2 \sin \beta$, $n=2 \cos (\alpha+\beta)$, we have $$ \begin{aligned} a^{2} & +b^{2}+n^{2}+a b n \\ & =4\left(\sin ^{2} \alpha+\sin ^{2} \beta+\cos ^{2}(\alpha+\beta)+2 \sin \alpha \sin \beta \cos (\alpha+\beta)\right) \\ & =4+4\left(-\frac{\cos 2 \alpha}{2}-\frac{\cos 2 \beta}{2}+\cos (\alpha+\beta) \cos (\alpha-\beta)\right) \\ & =4+4(\cos (\alpha+\beta) \cos (\alpha-\beta)-\cos (\alpha+\beta) \cos (\alpha-\beta))=4 \end{aligned} $$ Analogously, $c^{2}+d^{2}+m^{2}+c d m=4$. By adding both equalities and subtracting $m^{2}+n^{2}=4$ we obtain $$ a^{2}+b^{2}+c^{2}+d^{2}+a b n+c d m=4 $$ Since $n>c$ and $m>b$, the desired inequality follows. 12. We will solve the contest problem (in which $m, n \in\{1,2, \ldots, 1981\}$ ). For $m=1, n$ can be either 1 or 2 . If $m>1$, then $n(n-m)=m^{2} \pm 1>0$; hence $n-m>0$. Set $p=n-m$. Since $m^{2}-m p-p^{2}=m^{2}-p(m+p)=$ $-\left(n^{2}-n m-m^{2}\right)$, we see that $(m, n)$ is a solution of the equation if and only if $(p, m)$ is a solution too. Therefore, all the solutions of the equation are given as two consecutive members of the Fibonacci sequence $$ 1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584, \ldots $$ So the required maximum is $987^{2}+1597^{2}$. 13. Lemma. For any polynomial $P$ of degree at most $n$, $$ \sum_{i=0}^{n+1}(-1)^{i}\binom{n+1}{i} P(i)=0 $$ Proof. We shall use induction on $n$. For $n=0$ it is trivial. Assume that it is true for $n=k$ and suppose that $P(x)$ is a polynomial of degree $k+1$. Then $P(x)-P(x+1)$ clearly has degree at most $k$; hence (1) gives $$ \begin{aligned} 0 & =\sum_{i=0}^{k+1}(-1)^{i}\binom{k+1}{i}(P(i)-P(i+1)) \\ & =\sum_{i=0}^{k+1}(-1)^{i}\binom{k+1}{i} P(i)+\sum_{i=1}^{k+2}(-1)^{i}\binom{k+1}{i-1} P(i) \\ & =\sum_{i=0}^{k+2}(-1)^{i}\binom{k+2}{i} P(i) \end{aligned} $$ This completes the proof of the lemma. Now we apply the lemma to obtain the value of $P(n+1)$. Since $P(i)=$ $\binom{n+1}{i}^{-1}$ for $i=0,1, \ldots, n$, we have $$ 0=\sum_{i=0}^{n+1}(-1)^{i}\binom{n+1}{i} P(i)=(-1)^{n+1} P(n+1)+ \begin{cases}1, & 2 \mid n ; \\ 0, & 2 \nmid n .\end{cases} $$ It follows that $P(n+1)= \begin{cases}1, & 2 \mid n ; \\ 0, & 2 \nmid n .\end{cases}$ 14. We need the following lemma. Lemma. If a convex quadrilateral $P Q R S$ satisfies $P S=Q R$ and $\angle S P Q \geq$ $\angle R Q P$, then $\angle Q R S \geq \angle P S R$. Proof. If the lines $P S$ and $Q R$ are parallel, then this quadrilateral is a parallelogram, and the statement is trivial. Otherwise, let $X$ be the point of intersection of lines $P S$ and $Q R$. Assume that $\angle S P Q+\angle R Q P>180^{\circ}$. Then $\angle X P Q \leq \angle X Q P$ implies that $X P \geq X Q$, and consequently $X S \geq X R$. Hence, $\angle Q R S=$ $\angle X R S \geq \angle X S R=\angle P S R$. Similarly, if $\angle S P Q+\angle R Q P<180^{\circ}$, then $\angle X P Q \geq \angle X Q P$, from which it follows that $X P \leq X Q$, and thus $X S \leq X R$; hence $\angle Q R S=$ $180^{\circ}-\angle X R S \geq 180^{\circ}-\angle X S R=\angle P S R$. Now we apply the lemma to the quadrilateral $A B C D$. Since $\angle B \geq \angle C$ and $A B=C D$, it follows that $\angle C D A \geq \angle B A D$, which together with $\angle E D A=\angle E A D$ gives $\angle D \geq \angle A$. Thus $\angle A=\angle B=\angle C=\angle D$. Analogously, by applying the lemma to $B C D E$ we obtain $\angle E \geq \angle B$, and hence $\angle B=\angle C=\angle D=\angle E$. 15. Set $B C=a, C A=b, A B=c$, and denote the area of $\triangle A B C$ by $P$, and $a / P D+b / P E+c / P F$ by $S$. Since $a \cdot P D+b \cdot P E+c \cdot P F=2 P$, by the Cauchy-Schwarz inequality we have $$ 2 P S=(a \cdot P D+b \cdot P E+c \cdot P F)\left(\frac{a}{P D}+\frac{b}{P E}+\frac{c}{P F}\right) \geq(a+b+c)^{2} $$ with equality if and only if $P D=P E=P F$, i.e., $P$ is the incenter of $\triangle A B C$. In that case, $S$ attains its minimum: $$ S_{\min }=\frac{(a+b+c)^{2}}{2 P} $$ 16. The sequence $\left\{u_{n}\right\}$ is bounded, whatever $u_{1}$ is. Indeed, assume the opposite, and let $u_{m}$ be the first member of the sequence such that $\left|u_{m}\right|>\max \left\{2,\left|u_{1}\right|\right\}$. Then $\left|u_{m-1}\right|=\left|u_{m}^{3}-15 / 64\right|>\left|u_{m}\right|$, which is impossible. Next, let us see for what values of $u_{m}, u_{m+1}$ is greater, equal, or smaller, respectively. If $u_{m+1}=u_{m}$, then $u_{m}=u_{m+1}^{3}-15 / 64=u_{m}^{3}-15 / 64$; i.e., $u_{m}$ is a root of $x^{3}-x-15 / 64=0$. This equation factors as $(x+1 / 4)\left(x^{2}-x / 4-\right.$ $15 / 16)=0$, and hence $u_{m}$ is equal to $x_{1}=(1-\sqrt{61}) / 8, x_{2}=-1 / 4$, or $x_{3}=(1+\sqrt{61}) / 8$, and these are the only possible limits of the sequence. Each of $u_{m+1}>u_{m}, u_{m+1}0$ respectively. Thus the former is satisfied for $u_{m}$ in the interval $I_{1}=\left(-\infty, x_{1}\right)$ or $I_{3}=\left(x_{2}, x_{3}\right)$, while the latter is satisfied for $u_{m}$ in $I_{2}=\left(x_{1}, x_{2}\right)$ or $I_{4}=\left(x_{3}, \infty\right)$. Moreover, since the function $f(x)=\sqrt[3]{x+15 / 64}$ is strictly increasing with fixed points $x_{1}, x_{2}, x_{3}$, it follows that $u_{m}$ will never escape from the interval $I_{1}, I_{2}, I_{3}$, or $I_{4}$ to which it belongs initially. Therefore: (1) if $u_{1}$ is one of $x_{1}, x_{2}, x_{3}$, the sequence $\left\{u_{m}\right\}$ is constant; (2) if $u_{1} \in I_{1}$, then the sequence is strictly increasing and tends to $x_{1}$; (3) if $u_{1} \in I_{2}$, then the sequence is strictly decreasing and tends to $x_{1}$; (4) if $u_{1} \in I_{3}$, then the sequence is strictly increasing and tends to $x_{3}$; (5) if $u_{1} \in I_{4}$, then the sequence is strictly decreasing and tends to $x_{3}$. 17. Let us denote by $S_{A}, S_{B}, S_{C}$ the centers of the given circles, where $S_{A}$ lies on the bisector of $\angle A$, etc. Then $S_{A} S_{B}\left\|A B, S_{B} S_{C}\right\| B C, S_{C} S_{A} \| C A$, so that the inner bisectors of the angles of triangle $A B C$ are also inner bisectors of the angles of $\triangle S_{A} S_{B} S_{C}$. These two triangles thus have a common incenter $S$, which is also the center of the homothety $\chi$ mapping $\triangle S_{A} S_{B} S_{C}$ onto $\triangle A B C$. The point $O$ is the circumcenter of triangle $S_{A} S_{B} S_{C}$, and so is mapped by $\chi$ onto the circumcenter $P$ of $A B C$. This means that $O, P$, and the center $S$ of $\chi$ are collinear. 18. Let $C$ be the convex hull of the set of the planets: its border consists of parts of planes, parts of cylinders, and parts of the surfaces of some planets. These parts of planets consist exactly of all the invisible points; any point on a planet that is inside $C$ is visible. Thus it remains to show that the areas of all the parts of planets lying on the border of $C$ add up to the area of one planet. As we have seen, an invisible part of a planet is bordered by some main spherical arcs, parallel two by two. Now fix any planet $P$, and translate these arcs onto arcs on the surface of $P$. All these arcs partition the surface of $P$ into several parts, each of which corresponds to the invisible part of one of the planets. This correspondence is bijective, and therefore the statement follows. 19. Consider the partition of plane $\pi$ into regular hexagons, each having inradius 2. Fix one of these hexagons, denoted by $\gamma$. For any other hexagon $x$ in the partition, there exists a unique translation $\tau_{x}$ taking it onto $\gamma$. Define the mapping $\varphi: \pi \rightarrow \gamma$ as follows: If $A$ belongs to the interior of a hexagon $x$, then $\varphi(A)=\tau_{x}(A)$ (if $A$ is on the border of some hexagon, it does not actually matter where its image is). The total area of the images of the union of the given circles equals $S$, while the area of the hexagon $\gamma$ is $8 \sqrt{3}$. Thus there exists a point $B$ of $\gamma$ that is covered at least $\frac{S}{8 \sqrt{3}}$ times, i.e., such that $\varphi^{-1}(B)$ consists of at least $\frac{S}{8 \sqrt{3}}$ distinct points of the plane that belong to some of the circles. For any of these points, take a circle that contains it. All these circles are disjoint, with total area not less than $\frac{\pi}{8 \sqrt{3}} S \geq 2 S / 9$. Remark. The statement becomes false if the constant $2 / 9$ is replaced by any number greater than $1 / 4$. In that case a counterexample is, for example, a set of unit circles inside a circle of radius 2 covering a sufficiently large part of its area. ### 4.23 Solutions to the Shortlisted Problems of IMO 1982 1. From $f(1)+f(1) \leq f(2)=0$ we obtain $f(1)=0$. Since $04000$. (b) The sequence $x_{n}=1 / 2^{n}$ obviously satisfies the required condition. Second solution to part (a). For each $n \in \mathbb{N}$, let us find a constant $c_{n}$ such that the inequality $x_{0}^{2} / x_{1}+\cdots+x_{n-1}^{2} / x_{n} \geq c_{n} x_{0}$ holds for any sequence $x_{0} \geq x_{1} \geq \cdots \geq x_{n}>0$. For $n=1$ we can take $c_{1}=1$. Assuming that $c_{n}$ exists, we have $$ \frac{x_{0}^{2}}{x_{1}}+\left(\frac{x_{1}^{2}}{x_{2}}+\cdots+\frac{x_{n}^{2}}{x_{n+1}}\right) \geq \frac{x_{0}^{2}}{x_{1}}+c_{n} x_{1} \geq 2 \sqrt{x_{0}^{2} c_{n}}=x_{0} \cdot 2 \sqrt{c_{n}} $$ Thus we can take $c_{n+1}=2 \sqrt{c_{n}}$. Then inductively $c_{n}=2^{2-1 / 2^{n-2}}$, and since $c_{n} \rightarrow 4$ as $n \rightarrow \infty$, the result follows. Third solution. Since $\left\{x_{n}\right\}$ is decreasing, there exists $\lim _{n \rightarrow \infty} x_{n}=x \geq 0$. If $x>0$, then $x_{n-1}^{2} / x_{n} \geq x_{n} \geq x$ holds for each $n$, and the result is trivial. If otherwise $x=0$, then we note that $x_{n-1}^{2} / x_{n} \geq 4\left(x_{n-1}-x_{n}\right)$ for each $n$, with equality if and only if $x_{n-1}=2 x_{n}$. Hence $$ \lim _{n \rightarrow \infty} \sum_{k=1}^{n} \frac{x_{k-1}^{2}}{x_{k}} \geq \lim _{n \rightarrow \infty} \sum_{k=1}^{n} 4\left(x_{k-1}-x_{k}\right)=4 x_{0}=4 $$ Equality holds if and only if $x_{n-1}=2 x_{n}$ for all $n$, and consequently $x_{n}=1 / 2^{n}$. 4. Suppose that $a$ satisfies the requirements of the problem and that $x, q x$, $q^{2} x, q^{3} x$ are the roots of the given equation. Then $x \neq 0$ and we may assume that $|q|>1$, so that $|x|<|q x|<\left|q^{2} x\right|<\left|q^{3} x\right|$. Since the equation is symmetric, $1 / x$ is also a root and therefore $1 / x=q^{3} x$, i.e., $q=x^{-2 / 3}$. It follows that the roots are $x, x^{1 / 3}, x^{-1 / 3}, x^{-1}$. Now by Vieta's formula we have $x+x^{1 / 3}+x^{-1 / 3}+x^{-1}=a / 16$ and $x^{4 / 3}+x^{2 / 3}+2+x^{-2 / 3}+x^{-4 / 3}=$ $(2 a+17) / 16$. On setting $z=x^{1 / 3}+x^{-1 / 3}$ these equations become $$ \begin{aligned} z^{3}-2 z & =a / 16 \\ \left(z^{2}-2\right)^{2}+z^{2}-2 & =(2 a+17) / 16 \end{aligned} $$ Substituting $a=16\left(z^{3}-2 z\right)$ in the second equation leads to $z^{4}-2 z^{3}-$ $3 z^{2}+4 z+15 / 16=0$. We observe that this polynomial factors as $(z+$ $3 / 2)(z-5 / 2)\left(z^{2}-z-1 / 4\right)$. Since $|z|=\left|x^{1 / 3}+x^{-1 / 3}\right| \geq 2$, the only viable value is $z=5 / 2$. Consequently $a=170$ and the roots are $1 / 8,1 / 2,2,8$. 5. We first observe that $\triangle A_{5} B_{4} A_{4} \cong$ $\triangle A_{3} B_{2} A_{2}$. Since $\angle A_{5} A_{3} A_{2}=90^{\circ}$, we have $\angle A_{2} B_{4} A_{4}=\angle A_{2} B_{4} A_{3}+$ $\angle A_{3} B_{4} A_{4}=\left(90^{\circ}-\angle B_{2} A_{2} A_{3}\right)+$ $\left(\angle B_{4} A_{5} A_{4}+\angle A_{5} A_{4} B_{4}\right)=90^{\circ}+$ $\angle B_{4} A_{5} A_{4}=120^{\circ}$. Hence $B_{4}$ belongs to the circle with center $A_{3}$ and radius $A_{3} A_{4}$, so $A_{3} A_{4}=A_{3} B_{4}$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-461.jpg?height=311&width=428&top_left_y=1245&top_left_x=866) Thus $\lambda=A_{3} B_{4} / A_{3} A_{5}=A_{3} A_{4} / A_{3} A_{5}=1 / \sqrt{3}$. 6. Denote by $d(U, V)$ the distance between points or sets of points $U$ and $V$. For $P, Q \in L$ we shall denote by $L_{P Q}$ the part of $L$ between points $P$ and $Q$ and by $l_{P Q}$ the length of this part. Let us denote by $S_{i}(i=1,2,3,4)$ the vertices of $S$ and by $T_{i}$ points of $L$ such that $S_{i} T_{i} \leq 1 / 2$ in such a way that $l_{A_{0} T_{1}}$ is the least of the $l_{A_{0} T_{i}}$ 's, $S_{2}$ and $S_{4}$ are neighbors of $S_{1}$, and $l_{A_{0} T_{2}}A_{1} C$. Similarly, $C_{1} C>C_{1} A$. Hence the perpendicular bisector $l_{A C}$ of $A C$ separates points $A_{1}$ and $C_{1}$. Since $B_{1}, D_{1}$ lie on $l_{A C}$, this means that $A_{1}$ and $C_{1}$ are on opposite sides $B_{1} D_{1}$. Similarly one can show that $B_{1}$ and $D_{1}$ are on opposite sides of $A_{1} C_{1}$. (b) Since $A_{2} B_{2} \perp C_{1} D_{1}$ and $C_{1} D_{1} \perp A B$, it follows that $A_{2} B_{2} \| A B$. Similarly $A_{2} C_{2}\left\|A C, A_{2} D_{2}\right\| A D, B_{2} C_{2}\left\|B C, B_{2} D_{2}\right\| B D$, and $C_{2} D_{2} \| C D$. Hence $\triangle A_{2} B_{2} C_{2} \sim \triangle A B C$ and $\triangle A_{2} D_{2} C_{2} \sim \triangle A D C$, and the result follows. 15. Let $a=k / n$, where $n, k \in \mathbb{N}, n \geq k$. Putting $t^{n}=s$, the given inequality becomes $\frac{1-t^{k}}{1-t^{n}} \leq\left(1+t^{n}\right)^{k / n-1}$, or equivalently $$ \left(1+t+\cdots+t^{k-1}\right)^{n}\left(1+t^{n}\right)^{n-k} \leq\left(1+t+\cdots+t^{n-1}\right)^{n} $$ This is clearly true for $k=n$. Therefore it is enough to prove that the lefthand side of the above inequality is an increasing function of $k$. We are led to show that $\left(1+t+\cdots+t^{k-1}\right)^{n}\left(1+t^{n}\right)^{n-k} \leq\left(1+t+\cdots+t^{k}\right)^{n}\left(1+t^{n}\right)^{n-k-1}$. This is equivalent to $1+t^{n} \leq A^{n}$, where $A=\frac{1+t+\cdots+t^{k}}{1+t+\cdots+t^{k-1}}$. But this easily follows, since $$ \begin{aligned} A^{n}-t^{n} & =(A-t)\left(A^{n-1}+A^{n-2} t+\cdots+t^{n-1}\right) \\ & \geq(A-t)\left(1+t+\cdots+t^{n-1}\right)=\frac{1+t+\cdots+t^{n-1}}{1+t+\cdots+t^{k-1}} \geq 1 \end{aligned} $$ Remark. The original problem asked to prove the inequality for real $a$. 16. It is easy to verify that whenever $(x, y)$ is a solution of the equation $x^{3}-3 x y^{2}+y^{3}=n$, so are the pairs $(y-x,-x)$ and $(-y, x-y)$. No two of these three solutions are equal unless $x=y=n=0$. Observe that $2981 \equiv 2(\bmod 9)$. Since $x^{3}, y^{3} \equiv 0, \pm 1(\bmod 9), x^{3}-$ $3 x y^{2}+y^{3}$ cannot give the remainder 2 when divided by 9 . Hence the above equation for $n=2981$ has no integer solutions. 17. Let $A$ be the origin of the Cartesian plane. Suppose that $B C: A C=k$ and that $(a, b)$ and $\left(a_{1}, b_{1}\right)$ are coordinates of the points $C$ and $C_{1}$, respectively. Then the coordinates of the point $B$ are $(a, b)+k(-b, a)=(a-k b, b+k a)$, while the coordinates of $B_{1}$ are $\left(a_{1}, b_{1}\right)+k\left(b_{1},-a_{1}\right)=\left(a+k b_{1}, b_{1}-k a_{1}\right)$. Thus the lines $B C_{1}$ and $C B_{1}$ are given by the equations $\frac{x-a_{1}}{y-b_{1}}=\frac{x-(a-k b)}{y-(b+k a)}$ and $\frac{x-a}{y-b}=\frac{x-\left(a_{1}+k b_{1}\right)}{y-\left(b_{1}-k a_{1}\right)}$ respectively. After multiplying, these equations transform into the forms $$ \begin{aligned} B C_{1}: & k a x+k b y & =k a a_{1}+k b b_{1}+b a_{1}-a b_{1}-\left(b-b_{1}\right) x+\left(a-a_{1}\right) y \\ C B_{1}: & k a_{1} x+k b_{1} y & =k a a_{1}+k b b_{1}+b a_{1}-a b_{1}-\left(b-b_{1}\right) x+\left(a-a_{1}\right) y . \end{aligned} $$ The coordinates $\left(x_{0}, y_{0}\right)$ of the point $M$ satisfy these equations, from which we deduce that $k a x_{0}+k b y_{0}=k a_{1} x_{0}+k b_{1} y_{0}$. This yields $\frac{x_{0}}{y_{0}}=-\frac{b_{1}-b}{a_{1}-a}$, implying that the lines $C C_{1}$ and $A M$ are perpendicular. 18. Set the coordinate system with the axes $x, y, z$ along the lines $l_{1}, l_{2}, l_{3}$ respectively. The coordinates $(a, b, c)$ of $M$ satisfy $a^{2}+b^{2}+c^{2}=R^{2}$, and so $S_{M}$ is given by the equation $(x-a)^{2}+(y-b)^{2}+(z-c)^{2}=R^{2}$. Hence the coordinates of $P_{1}$ are $(x, 0,0)$ with $(x-a)^{2}+b^{2}+c^{2}=R^{2}$, implying that either $x=2 a$ or $x=0$. Thus by the definition we obtain $x=2 a$. Similarly, the coordinates of $P_{2}$ and $P_{3}$ are $(0,2 b, 0)$ and $(0,0,2 c)$ respectively. Now, the centroid of $\triangle P_{1} P_{2} P_{3}$ has the coordinates $(2 a / 3,2 b / 3,2 c / 3)$. Therefore the required locus of points is the sphere with center $O$ and radius $2 R / 3$. 19. Let us set $x=m / n$. Since $f(x)=(m+n) / \sqrt{m^{2}+n^{2}}=(x+1) / \sqrt{1+x^{2}}$ is a continuous function of $x, f(x)$ takes all values between any two values of $f$; moreover, the corresponding $x$ can be rational. This completes the proof. Remark. Since $f$ is increasing for $x \geq 1,1 \leq x2^{n}$ cities. We shall prove that there is a round trip by at least one $A_{i}$ containing an odd number of stops. For $n=1$ the statement is trivial, since one airline serves at least 3 cities and hence $P_{1} P_{2} P_{3} P_{1}$ is a round trip with 3 landings. We use induction on $n$, and assume that $n>1$. Suppose the contrary, that all round trips by $A_{n}$ consist of an even number of stops. Then we can separate the cities into two nonempty classes $Q=\left\{Q_{1}, \ldots, Q_{r}\right\}$ and $R=\left\{R_{1}, \ldots, R_{s}\right\}$ (where $r+s=N$ ), so that each flight by $A_{n}$ runs between a $Q$-city and an $R$-city. (Indeed, take any city $Q_{1}$ served by $A_{n}$; include each city linked to $Q_{1}$ by $A_{n}$ in $R$, then include in $Q$ each city linked by $A_{n}$ to any $R$-city, etc. Since all round trips are even, no contradiction can arise.) At least one of $r, s$ is larger than $2^{n-1}$, say $r>2^{n-1}$. But, only $A_{1}, \ldots, A_{n-1}$ run between cities in $\left\{Q_{1}, \ldots, Q_{r}\right\}$; hence by the induction hypothesis at least one of them flies a round trip with an odd number of landings, a contradiction. It only remains to notice that for $n=10,2^{n}=1024<1983$. Remark. If there are $N=2^{n}$ cities, there is a schedule with $n$ airlines that contain no odd round trip by any of the airlines. Let the cities be $P_{k}$, $k=0, \ldots, 2^{n}-1$, and write $k$ in the binary system as an $n$-digit number $\overline{a_{1} \ldots a_{n}}$ (e.g., $1=(0 \ldots 001)_{2}$ ). Link $P_{k}$ and $P_{l}$ by $A_{i}$ if the $i$ th digits $k$ and $l$ are distinct but the first $i-1$ digits are the same. All round trips under $A_{i}$ are even, since the $i$ th digit alternates. 2. By definition, $\sigma(n)=\sum_{d \mid n} d=\sum_{d \mid n} n / d=n \sum_{d \mid n} 1 / d$, hence $\sigma(n) / n=$ $\sum_{d \mid n} 1 / d$. In particular, $\sigma(n!) / n!=\sum_{d \mid n!} 1 / d \geq \sum_{k=1}^{n} 1 / k$. It follows that the sequence $\sigma(n) / n$ is unbounded, and consequently there exist an infinite number of integers $n$ such that $\sigma(n) / n$ is strictly greater than $\sigma(k) / k$ for $k2(n-k)+1$. So we cannot begin with $x_{k+1}$ for any $k>0$. Now assume that there is an equality for some $k$. There are two cases: (i) Suppose $x_{1}+x_{2}+\cdots+x_{i} \leq 2 i(i=1, \ldots, k)$ and $x_{1}+\cdots+x_{k}=2 k+1$, $x_{1}+\cdots+x_{k+l} \leq 2(k+l)+1(1 \leq l \leq n-1-k)$. For $i \leq k-1$ we have $x_{i+1}+\cdots+x_{n}=2(n+1)-\left(x_{1}+\cdots+x_{i}\right)>2(n-i)+1$, so we cannot take $r=i$. If there is a $j \geq 1$ such that $x_{1}+x_{2}+\cdots+x_{k+j} \leq 2(k+j)$, then also $x_{k+j+1}+\cdots+x_{n}>2(n-k-j)+1$. If $(\forall j \geq 1) x_{1}+\cdots+x_{k+j}=$ $2(k+j)+1$, then $x_{n}=3$ and $x_{k+1}=\cdots=x_{n-1}=2$. In this case we directly verify that we cannot take $r=k+j$. However, we can also take $r=k$ : for $k+l \leq n-1, x_{k+1}+\cdots+x_{k+l} \leq 2(k+l)+1-(2 k+1)=2 l$, also $x_{k+1}+\cdots+x_{n}=2(n-k)+1$, and moreover $x_{1} \leq 2, x_{1}+x_{2} \leq 4, \ldots$. (ii) Suppose $x_{1}+\cdots+x_{i} \leq 2 i(1 \leq i \leq n-2)$ and $x_{1}+\cdots+x_{n-1}=2 n-1$. Then we can obviously take $r=n-1$. On the other hand, for any $1 \leq i \leq n-2, x_{i+1}+\cdots+x_{n-1}+x_{n}=\left(x_{1}+\cdots+x_{n-1}\right)-\left(x_{1}+\cdots+\right.$ $\left.x_{i}\right)+3>2(n-i)+1$, so we cannot take another $r \neq 0$. 7. Clearly, each $a_{n}$ is positive and $\sqrt{a_{n+1}}=\sqrt{a_{n}} \sqrt{a+1}+\sqrt{a_{n}+1} \sqrt{a}$. Notice that $\sqrt{a_{n+1}+1}=\sqrt{a+1} \sqrt{a_{n}+1}+\sqrt{a} \sqrt{a_{n}}$. Therefore $$ \begin{aligned} & (\sqrt{a+1}-\sqrt{a})\left(\sqrt{a_{n}+1}-\sqrt{a_{n}}\right) \\ & \quad=\left(\sqrt{a+1} \sqrt{a_{n}+1}+\sqrt{a} \sqrt{a_{n}}\right)-\left(\sqrt{a_{n}} \sqrt{a+1}+\sqrt{a_{n}+1} \sqrt{a}\right) \\ & \quad=\sqrt{a_{n+1}+1}-\sqrt{a_{n+1}} \end{aligned} $$ By induction, $\sqrt{a_{n+1}}-\sqrt{a_{n}}=(\sqrt{a+1}-\sqrt{a})^{n}$. Similarly, $\sqrt{a_{n+1}}+\sqrt{a_{n}}=$ $(\sqrt{a+1}+\sqrt{a})^{n}$. Hence, $$ \sqrt{a_{n}}=\frac{1}{2}\left[(\sqrt{a+1}+\sqrt{a})^{n}-(\sqrt{a+1}-\sqrt{a})^{n}\right] $$ from which the result follows. 8. Situations in which the condition of the statement is fulfilled are the following: $S_{1}: N_{1}(t)=N_{2}(t)=N_{3}(t)$ $S_{2}: N_{i}(t)=N_{j}(t)=h, N_{k}(t)=h+1$, where $(i, j, k)$ is a permutation of the set $\{1,2,3\}$. In this case the first student to leave must be from row $k$. This leads to the situation $S_{1}$. $S_{3}: N_{i}(t)=h, N_{j}(t)=N_{k}(t)=h+1,((i, j, k)$ is a permutation of the set $\{1,2,3\})$. In this situation the first student leaving the room belongs to row $j$ (or $k$ ) and the second to row $k$ (or $j$ ). After this we arrive at the situation $S_{1}$. Hence, the initial situation is $S_{1}$ and after each triple of students leaving the room the situation $S_{1}$ must recur. We shall compute the probability $P_{h}$ that from a situation $S_{1}$ with $3 h$ students in the room $(h \leq n)$ one arrives at a situation $S_{1}$ with $3(h-1)$ students in the room: $$ P_{h}=\frac{(3 h) \cdot(2 h) \cdot h}{(3 h) \cdot(3 h-1) \cdot(3 h-2)}=\frac{3!h^{3}}{3 h(3 h-1)(3 h-2)} $$ Since the room becomes empty after the repetition of $n$ such processes, which are independent, we obtain for the probability sought $$ P=\prod_{h=1}^{n} P_{h}=\frac{(3!)^{n}(n!)^{3}}{(3 n)!} $$ 9. For any triangle of sides $a, b, c$ there exist 3 nonnegative numbers $x, y, z$ such that $a=y+z, b=z+x, c=x+y$ (these numbers correspond to the division of the sides of a triangle by the point of contact of the incircle). The inequality becomes $$ (y+z)^{2}(z+x)(y-x)+(z+x)^{2}(x+y)(z-y)+(x+y)^{2}(y+z)(x-z) \geq 0 $$ Expanding, we get $x y^{3}+y z^{3}+z x^{3} \geq x y z(x+y+z)$. This follows from Cauchy's inequality $\left(x y^{3}+y z^{3}+z x^{3}\right)(z+x+y) \geq(\sqrt{x y z}(x+y+z))^{2}$ with equality if and only if $x y^{3} / z=y z^{3} / x=z x^{3} / y$, or equivalently $x=y=z$, i.e., $a=b=c$. 10. Choose $P(x)=\frac{p}{q}\left((q x-1)^{2 n+1}+1\right), I=[1 / 2 q, 3 / 2 q]$. Then all the coefficients of $P$ are integers, and $$ \left|P(x)-\frac{p}{q}\right|=\left|\frac{p}{q}(q x-1)^{2 n+1}\right| \leq\left|\frac{p}{q}\right| \frac{1}{2^{2 n+1}}, $$ for $x \in I$. The desired inequality follows if $n$ is chosen large enough. 11. First suppose that the binary representation of $x$ is finite: $x=0, a_{1} a_{2} \ldots a_{n}$ $=\sum_{j=1}^{n} a_{j} 2^{-j}, a_{i} \in\{0,1\}$. We shall prove by induction on $n$ that $$ f(x)=\sum_{j=1}^{n} b_{0} \ldots b_{j-1} a_{j}, \quad \text { where } b_{k}=\left\{\begin{array}{lr} -b & \text { if } a_{k}=0 \\ 1-b & \text { if } a_{k}=1 \end{array}\right. $$ (Here $a_{0}=0$.) Indeed, by the recursion formula, $a_{1}=0 \Rightarrow f(x)=b f\left(\sum_{j=1}^{n-1} a_{j+1} 2^{-j}\right)=b \sum_{j=1}^{n-1} b_{1} \ldots b_{j} a_{j+1}$ hence $f(x)=$ $\sum_{j=0}^{n-1} b_{0} \ldots b_{j} a_{j+1}$ as $b_{0}=b_{1}=b ;$ $a_{1}=1 \Rightarrow f(x)=b+(1-b) f\left(\sum_{j=1}^{n-1} a_{j+1} 2^{-j}\right)=\sum_{j=0}^{n-1} b_{0} \ldots b_{j} a_{j+1}$, as $b_{0}=b, b_{1}=1-b$. Clearly, $f(0)=0, f(1)=1, f(1 / 2)=b>1 / 2$. Assume $x=\sum_{j=0}^{n} a_{j} 2^{-j}$, and for $k \geq 2, v=x+2^{-n-k+1}, u=x+2^{-n-k}=(v+x) / 2$. Then $f(v)=$ $f(x)+b_{0} \ldots b_{n} b^{k-2}$ and $f(u)=f(x)+b_{0} \ldots b_{n} b^{k-1}>(f(v)+f(x)) / 2$. This means that the point $(u, f(u))$ lies above the line joining $(x, f(x))$ and $(v, f(v))$. By induction, every $(x, f(x))$, where $x$ has a finite binary expansion, lies above the line joining $(0,0)$ and $(1 / 2, b)$ if $0x$. For the second inequality, observe that $$ \begin{aligned} f(x)-x & =\sum_{j=1}^{\infty}\left(b_{0} \ldots b_{j-1}-2^{-j}\right) a_{j} \\ & <\sum_{j=1}^{\infty}\left(b^{j}-2^{-j}\right) a_{j}<\sum_{j=1}^{\infty}\left(b^{j}-2^{-j}\right)=\frac{b}{1-b}-1=c . \end{aligned} $$ By continuity, these inequalities also hold for $x$ with infinite binary representations. 12. Putting $y=x$ in (1) we see that there exist positive real numbers $z$ such that $f(z)=z$ (this is true for every $z=x f(x)$ ). Let $a$ be any of them. Then $f\left(a^{2}\right)=f(a f(a))=a f(a)=a^{2}$, and by induction, $f\left(a^{n}\right)=a^{n}$. If $a>1$, then $a^{n} \rightarrow+\infty$ as $n \rightarrow \infty$, and we have a contradiction with (2). Again, $a=f(a)=f(1 \cdot a)=a f(1)$, so $f(1)=1$. Then, $a f\left(a^{-1}\right)=$ $f\left(a^{-1} f(a)\right)=f(1)=1$, and by induction, $f\left(a^{-n}\right)=a^{-n}$. This shows that $a \nless 1$. Hence, $a=1$. It follows that $x f(x)=1$, i.e., $f(x)=1 / x$ for all $x$. This function satisfies (1) and (2), so $f(x)=1 / x$ is the unique solution. 13. Given any coloring of the $3 \times 1983-2$ points of the axes, we prove that there is a unique coloring of $E$ having the given property and extending this coloring. The first thing to notice is that given any rectangle $R_{1}$ parallel to a coordinate plane and whose edges are parallel to the axes, there is an even number $r_{1}$ of red vertices on $R_{1}$. Indeed, let $R_{2}$ and $R_{3}$ be two other rectangles that are translated from $R_{1}$ orthogonally to $R_{1}$ and let $r_{2}, r_{3}$ be the numbers of red vertices on $R_{2}$ and $R_{3}$ respectively. Then $r_{1}+r_{2}$, $r_{1}+r_{3}$, and $r_{2}+r_{3}$ are multiples of 4 , so $r_{1}=\left(r_{1}+r_{2}+r_{1}+r_{3}-r_{2}-r_{3}\right) / 2$ is even. Since any point of a coordinate plane is a vertex of a rectangle whose remaining three vertices lie on the corresponding axes, this determines uniquely the coloring of the coordinate planes. Similarly, the coloring of the inner points of the parallelepiped is completely determined. The solution is hence $2^{3 \times 1983-2}=2^{5947}$. 14. Let $T_{n}$ be the set of all nonnegative integers whose ternary representations consist of at most $n$ digits and do not contain a digit 2 . The cardinality of $T_{n}$ is $2^{n}$, and the greatest integer in $T_{n}$ is $11 \ldots 1=3^{0}+3^{1}+\cdots+3^{n-1}=$ $\left(3^{n}-1\right) / 2$. We claim that there is no arithmetic triple in $T_{n}$. To see this, suppose $x, y, z \in T_{n}$ and $2 y=x+z$. Then $2 y$ has only 0 's and 2's in its ternary representation, and a number of this form can be the sum of two integers $x, z \in T_{n}$ in only one way, namely $x=z=y$. But $\left|T_{10}\right|=2^{10}=1024$ and $\max T_{10}=\left(3^{10}-1\right) / 2=29524<30000$. Thus the answer is yes. 15. There is no such set. Suppose $M$ satisfies $(a)$ and $(b)$ and let $q_{n}=$ $|\{a \in M: a \leq n\}|$. Consider the differences $b-a$, where $a, b \in M$ and $10\sqrt{3} / 2 \cdot(\sqrt{n}-1) a $$ Proof of the lemma. If a nonobtuse triangle with sides $a \geq b \geq c$ has a circumscribed circle of radius $R$, we have $R=a /(2 \sin \alpha) \leq a / \sqrt{3}$. Now we show that there exists a disk $D$ of radius $R$ containing $A=$ $\left\{P_{1}, \ldots, P_{n}\right\}$ whose border $C$ is such that $C \cap A$ is not included in an open semicircle, and hence contains either two diametrically opposite points and $R \leq b / 2$, or an acute-angled triangle and $R \leq b / \sqrt{3}$. Among all disks whose borders pass through three points of $A$ and that contain all of $A$, let $D$ be the one of least radius. Suppose that $C \cap A$ is contained in an arc of central angle less than $180^{\circ}$, and that $P_{i}, P_{j}$ are its endpoints. Then there exists a circle through $P_{i}, P_{j}$ of smaller radius that contains $A$, a contradiction. Thus $D$ has the required property, and the assertion follows. 18. Let $\left(x_{0}, y_{0}, z_{0}\right)$ be one solution of $b c x+c a y+a b z=n$ (not necessarily nonnegative). By subtracting $b c x_{0}+c a y_{0}+a b z_{0}=n$ we get $$ b c\left(x-x_{0}\right)+c a\left(y-y_{0}\right)+a b\left(z-z_{0}\right)=0 . $$ Since $(a, b)=(a, c)=1$, we must have $a \mid x-x_{0}$ or $x-x_{0}=a s$. Substituting this in the last equation gives $$ b c s+c\left(y-y_{0}\right)+b\left(z-z_{0}\right)=0 $$ Since $(b, c)=1$, we have $b \mid y-y_{0}$ or $y-y_{0}=b t$. If we substitute this in the last equation we get $b c s+b c t+b\left(z-z_{0}\right)=0$, or $c s+c t+z-z_{0}=0$, or $z-z_{0}=-c(s+t)$. In $x=x_{0}+a s$ and $y=y_{0}+b t$, we can choose $s$ and $t$ such that $0 \leq x \leq a-1$ and $0 \leq y \leq b-1$. If $n>2 a b c-b c-c a-a b$, then $a b z=n-b c x-a c y>2 a b c-a b-b c-c a-b c(a-1)-c a(b-1)=-a b$ or $z>-1$, i.e., $z \geq 0$. Hence, it is representable as $b c x+c a y+a b z$ with $x, y, z \geq 0$. Now we prove that $2 a b c-b c-c a-a b$ is not representable as $b c x+c a y+a b z$ with $x, y, z \geq 0$. Suppose that $b c x+c a y+a b z=2 a b c-a b-b c-c a$ with $x, y, z \geq 0$. Then $$ b c(x+1)+c a(y+1)+a b(z+1)=2 a b c $$ with $x+1, y+1, z+1 \geq 1$. Since $(a, b)=(a, c)=1$, we have $a \mid x+1$ and thus $a \leq x+1$. Similarly $b \leq y+1$ and $c \leq z+1$. Thus $b c a+c a b+a b c \leq 2 a b c$, a contradiction. 19. For all $n$, there exists a unique polynomial $P_{n}$ of degree $n$ such that $P_{n}(k)=F_{k}$ for $n+2 \leq k \leq 2 n+2$ and $P_{n}(2 n+3)=F_{2 n+3}-1$. For $n=0$, we have $F_{1}=F_{2}=1, F_{3}=2, P_{0}=1$. Now suppose that $P_{n-1}$ has been constructed and let $P_{n}$ be the polynomial of degree $n$ satisfying $P_{n}(X+2)-P_{n}(X+1)=P_{n-1}(X)$ and $P_{n}(n+2)=F_{n+2}$. (The mapping $\mathbb{R}_{n}[X] \rightarrow \mathbb{R}_{n-1}[X] \times \mathbb{R}, P \mapsto(Q, P(n+2)$ ), where $Q(X)=$ $P(X+2)-P(X+1)$, is bijective, since it is injective and those two spaces have the same dimension; clearly $\operatorname{deg} Q=\operatorname{deg} P-1$.) Thus for $n+2 \leq k \leq 2 n+2$ we have $P_{n}(k+1)=P_{n}(k)+F_{k-1}$ and $P_{n}(n+2)=F_{n+2}$; hence by induction on $k, P_{n}(k)=F_{k}$ for $n+2 \leq k \leq 2 n+2$ and $$ P_{n}(2 n+3)=F_{2 n+2}+P_{n-1}(2 n+1)=F_{2 n+3}-1 $$ Finally, $P_{990}$ is exactly the polynomial $P$ of the terms of the problem, for $P_{990}-P$ has degree less than or equal to 990 and vanishes at the 991 points $k=992, \ldots, 1982$. 20. If $\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ satisfies the system with parameter $a$, then $\left(-x_{1},-x_{2}\right.$, $\ldots,-x_{n}$ ) satisfies the system with parameter $-a$. Hence it is sufficient to consider only $a \geq 0$. Let $\left(x_{1}, \ldots, x_{n}\right)$ be a solution. Suppose $x_{1} \leq a, x_{2} \leq a, \ldots, x_{n} \leq a$. Summing the equations we get $$ \left(x_{1}-a\right)^{2}+\cdots+\left(x_{n}-a\right)^{2}=0 $$ and see that $(a, a, \ldots, a)$ is the only such solution. Now suppose that $x_{k} \geq a$ for some $k$. According to the $k$ th equation, $$ x_{k+1}\left|x_{k+1}\right|=x_{k}^{2}-\left(x_{k}-a\right)^{2}=a\left(2 x_{k}-a\right) \geq a^{2} $$ which implies that $x_{k+1} \geq a$ as well (here $x_{n+1}=x_{1}$ ). Consequently, all $x_{1}, x_{2}, \ldots, x_{n}$ are greater than or equal to $a$, and as above $(a, a, \ldots, a)$ is the only solution. 21. Using the identity $$ a^{n}-b^{n}=(a-b) \sum_{m=0}^{n-1} a^{n-m-1} b^{m} $$ with $a=k^{1 / n}$ and $b=(k-1)^{1 / n}$ one obtains $$ 1<\left(k^{1 / n}-(k-1)^{1 / n}\right) n k^{1-1 / n} \text { for all integers } n>1 \text { and } k \geq 1 $$ This gives us the inequality $k^{1 / n-1}1$ and $k \geq 1$. In a similar way one proves that $n\left((k+1)^{1 / n}-k^{1 / n}\right)1$ and $k \geq 1$. Hence for $n>1$ and $m>1$ it holds that $$ \begin{aligned} n \sum_{k=1}^{m}\left((k+1)^{1 / n}-k^{1 / n}\right) & <\sum_{k=1}^{m} k^{1 / n-1} \\ & 1$ and $t>1$. For $1 \leq k \leq n$ put $k=v s+u$, where $0 \leq v \leq t-1$ and $1 \leq u \leq s$, and let $a_{k}=a_{v s+u}$ be the unique integer in the set $\{1,2,3, \ldots, n\}$ such that $v s+u t-a_{v s+u}$ is a multiple of $n$. To prove that this construction gives a permutation, assume that $a_{k_{1}}=a_{k_{2}}$, where $k_{i}=v_{i} s+u_{i}, i=1,2$. Then $\left(v_{1}-v_{2}\right) s+\left(u_{1}-u_{2}\right) t$ is a multiple of $n=s t$. It follows that $t$ divides $\left(v_{1}-v_{2}\right)$, while $\left|v_{1}-v_{2}\right| \leq t-1$, and that $s$ divides $\left(u_{1}-u_{2}\right)$, while $\left|u_{1}-u_{2}\right| \leq s-1$. Hence, $v_{1}=v_{2}, u_{1}=u_{2}$, and $k_{1}=k_{2}$. We have proved that $a_{1}, \ldots, a_{n}$ is a permutation of $\{1,2, \ldots, n\}$ and hence $$ \sum_{k=1}^{n} k \cos \frac{2 \pi a_{k}}{n}=\sum_{v=0}^{t-1}\left(\sum_{u=1}^{s}(v s+u) \cos \left(\frac{2 \pi v}{t}+\frac{2 \pi u}{s}\right)\right) $$ Using $\sum_{u=1}^{s} \cos (2 \pi u / s)=\sum_{u=1}^{s} \sin (2 \pi u / s)=0$ and the additive formulas for cosine, one finds that $$ \begin{aligned} \sum_{k=1}^{n} k \cos \frac{2 \pi a_{k}}{n}= & \sum_{v=0}^{t-1}\left(\cos \frac{2 \pi v}{t} \sum_{u=1}^{s} u \cos \frac{2 \pi u}{s}-\sin \frac{2 \pi v}{t} \sum_{u=1}^{s} u \sin \frac{2 \pi u}{s}\right) \\ = & \left(\sum_{u=1}^{s} u \cos \frac{2 \pi u}{s}\right)\left(\sum_{v=0}^{t-1} \cos \frac{2 \pi v}{t}\right) \\ & -\left(\sum_{u=1}^{s} u \sin \frac{2 \pi u}{s}\right)\left(\sum_{v=0}^{t-1} \sin \frac{2 \pi v}{t}\right)=0 \end{aligned} $$ 23. We note that $\angle O_{1} K O_{2}=\angle M_{1} K M_{2}$ is equivalent to $\angle O_{1} K M_{1}=$ $\angle O_{2} K M_{2}$. Let $S$ be the intersection point of the common tangents, and let $L$ be the second point of intersection of $S K$ and $W_{1}$. Since $\triangle S O_{1} P_{1} \sim \triangle S P_{1} M_{1}$, we have $S K$. $S L=S P_{1}^{2}=S O_{1} \cdot S M_{1}$ which implies that points $O_{1}, L, K, M_{1}$ lie on a circle. Hence $\angle O_{1} K M_{1}=$ $\angle O_{1} L M_{1}=\angle O_{2} K M_{2}$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-474.jpg?height=295&width=551&top_left_y=959&top_left_x=809) 24. See the solution of (SL91-15). 25. Suppose the contrary, that $\mathbb{R}^{3}=P_{1} \cup P_{2} \cup P_{3}$ is a partition such that $a_{1} \in \mathbb{R}^{+}$is not realized by $P_{1}, a_{2} \in \mathbb{R}^{+}$is not realized by $P_{2}$ and $a_{3} \in \mathbb{R}^{+}$ not realized by $P_{3}$, where w.l.o.g. $a_{1} \geq a_{2} \geq a_{3}$. If $P_{1}=\emptyset=P_{2}$, then $P_{3}=\mathbb{R}^{3}$, which is impossible. If $P_{1}=\emptyset$, and $X \in P_{2}$, the sphere centered at $X$ with radius $a_{2}$ is included in $P_{3}$ and $a_{3} \leq a_{2}$ is realized, which is impossible. If $P_{1} \neq \emptyset$, let $X_{1} \in P_{1}$. The sphere $S$ centered in $X_{1}$, of radius $a_{1}$ is included in $P_{2} \cap P_{3}$. Since $a_{1} \geq a_{3}, S \not \subset P_{3}$. Let $X_{2} \in P_{2} \cap S$. The circle $\left\{Y \in S \mid d\left(X_{2}, Y\right)=a_{2}\right\}$ is included in $P_{3}$, but $a_{2} \leq a_{1}$; hence it has radius $r=a_{2} \sqrt{1-a_{2}^{2} /\left(4 a_{1}^{2}\right)} \geq a_{2} \sqrt{3} / 2$ and $a_{3} \leq a_{2} \leq a_{2} \sqrt{3}<2 r$; hence $a_{3}$ is realized by $P_{3}$. ### 4.25 Solutions to the Shortlisted Problems of IMO 1984 1. This is the same problem as (SL83-20). 2. (a) For $m=t(t-1) / 2$ and $n=t(t+1) / 2$ we have $4 m n-m-n=$ $\left(t^{2}-1\right)^{2}-1$ (b) Suppose that $4 m n-m-n=p^{2}$, or equivalently, $(4 m-1)(4 n-1)=$ $4 p^{2}+1$. The number $4 m-1$ has at least one prime divisor, say $q$, that is of the form $4 k+3$. Then $4 p^{2} \equiv-1(\bmod q)$. However, by Fermat's theorem we have $$ 1 \equiv(2 p)^{q-1}=\left(4 p^{2}\right)^{\frac{q-1}{2}} \equiv(-1)^{\frac{q-1}{2}}(\bmod q) $$ which is impossible since $(q-1) / 2=2 k+1$ is odd. 3. From the equality $n=d_{6}^{2}+d_{7}^{2}-1$ we see that $d_{6}$ and $d_{7}$ are relatively prime and $d_{7}\left|d_{6}^{2}-1=\left(d_{6}-1\right)\left(d_{6}+1\right), d_{6}\right| d_{7}^{2}-1=\left(d_{7}-1\right)\left(d_{7}+1\right)$. Suppose that $d_{6}=a b, d_{7}=c d$ with $1A_{i} A_{i+1}+A_{j} A_{j+1}$. Summing all such $n(n-3) / 2$ inequalities, we obtain $2 d>(n-3) p$, proving the first inequality. Let us now prove the second inequality. We notice that for each diagonal $A_{i} A_{i+j}$ (we may assume w.l.o.g. that $j \leq[n / 2]$ ) the following relation holds: $$ A_{i} A_{i+j}y^{\prime}$ and $z>z^{\prime}$, but then $\sqrt{y-a}+\sqrt{z-a}>\sqrt{y^{\prime}-a}+\sqrt{z^{\prime}-a}$, which is a contradiction. We shall now prove the existence of at least one solution. Let $P$ be an arbitrary point in the plane and $K, L, M$ points such that $P K=\sqrt{a}$, $P L=\sqrt{b}, P M=\sqrt{c}$, and $\angle K P L=\angle L P M=\angle M P K=120^{\circ}$. The lines through $K, L, M$ perpendicular respectively to $P K, P L, P M$ form an equilateral triangle $A B C$, where $K \in B C, L \in A C$, and $M \in A B$. Since its area equals $A B^{2} \sqrt{3} / 4=S_{\triangle B P C}+S_{\triangle A P C}+$ $S_{\triangle A P B}=A B(\sqrt{a}+\sqrt{b}+\sqrt{c}) / 2$, it follows that $A B=1$. Therefore $x=P A^{2}, y=P B^{2}$, and $z=P C^{2}$ is a solution of the system (indeed, $\sqrt{y-a}+\sqrt{z-a}=\sqrt{P B^{2}-P K^{2}}+\sqrt{P C^{2}-P K^{2}}=B K+C K=1$, etc.). 10. Suppose that the product of some five consecutive numbers is a square. It is easily seen that among them at least one, say $n$, is divisible neither by 2 nor 3 . Since $n$ is coprime to the remaining four numbers, it is itself a square of a number $m$ of the form $6 k \pm 1$. Thus $n=(6 k \pm 1)^{2}=24 r+1$, where $r=k(3 k \pm 1) / 2$. Note that neither of the numbers $24 r-1,24 r+5$ is one of our five consecutive numbers because it is not a square. Hence the five numbers must be $24 r, 24 r+1, \ldots, 24 r+4$. However, the number $24 r+4=(6 k \pm 1)^{2}+3$ is divisible by $6 r+1$, which implies that it is a square as well. It follows that these two squares are 1 and 4 , which is impossible. 11. Suppose that an integer $x$ satisfies the equation. Then the numbers $x-$ $a_{1}, x-a_{2}, \ldots, x-a_{2 n}$ are $2 n$ distinct integers whose product is $1 \cdot(-1)$. $2 \cdot(-2) \cdots n \cdot(-n)$. From here it is obvious that the numbers $x-a_{1}, x-a_{2}, \ldots, x-a_{2 n}$ are some reordering of the numbers $-n,-n+1, \ldots,-1,1, \ldots, n-1, n$. It follows that their sum is 0 , and therefore $x=\left(a_{1}+a_{2}+\cdots+a_{2 n}\right) / 2 n$. This is the only solution if $\left\{a_{1}, a_{2}, \ldots, a_{2 n}\right\}=\{x-n, \ldots, x-1, x+1, \ldots, x+n\}$ for some $x \in \mathbb{N}$. Otherwise there is no solution. 12. By the binomial formula we have $$ \begin{aligned} (a+b)^{7}-a^{7}-b^{7} & =7 a b\left[\left(a^{5}+b^{5}\right)+3 a b\left(a^{3}+b^{3}\right)+5 a^{2} b^{2}(a+b)\right] \\ & =7 a b(a+b)\left(a^{2}+a b+b^{2}\right)^{2} \end{aligned} $$ Thus it will be enough to find $a$ and $b$ such that $7 \nmid a, b$ and $7^{3} \mid a^{2}+a b+b^{2}$. Such numbers must satisfy $(a+b)^{2}>a^{2}+a b+b^{2} \geq 7^{3}=343$, implying $a+b \geq 19$. Trying $a=1$ we easily find the example $(a, b)=(1,18)$. 13. Let $Z$ be the given cylinder of radius $r$, altitude $h$, and volume $\pi r^{2} h=1, k_{1}$ and $k_{2}$ the circles surrounding its bases, and $V$ the volume of an inscribed tetrahedron $A B C D$. We claim that there is no loss of generality in assuming that $A, B, C, D$ all lie on $k_{1} \cup k_{2}$. Indeed, if the vertices $A, B, C$ are fixed and $D$ moves along a segment $E F$ parallel to the axis of the cylinder $\left(E \in k_{1}, F \in k_{2}\right)$, the maximum distance of $D$ from the plane $A B C$ (and consequently the maximum value of $V$ ) is achieved either at $E$ or at $F$. Hence we shall consider only the following two cases: (i) $A, B \in k_{1}$ and $C, D \in k_{2}$. Let $P, Q$ be the projections of $A, B$ on the plane of $k_{2}$, and $R, S$ the projections of $C, D$ on the plane of $k_{1}$, respectively. Then $V$ is one-third of the volume $V^{\prime}$ of the prism $A R B S C P D Q$ with bases $A R B S$ and $C P D Q$. The area of the quadrilateral $A R B S$ inscribed in $k_{1}$ does not exceed the area of the square inscribed therein, which is $2 r^{2}$. Hence $3 V=V^{\prime} \leq 2 r^{2} h=2 / \pi$. (ii) $A, B, C \in k_{1}$ and $D \in k_{2}$. The area of the triangle $A B C$ does not exceed the area of an equilateral triangle inscribed in $k_{1}$, which is $3 \sqrt{3} r^{2} / 4$. Consequently, $V \leq \frac{\sqrt{3}}{4} r^{2} h=\frac{\sqrt{3}}{4 \pi}<\frac{2}{3 \pi}$. 14. Let $M$ and $N$ be the midpoints of $A B$ and $C D$, and let $M^{\prime}, N^{\prime}$ be their projections on $C D$ and $A B$, respectively. We know that $M M^{\prime}=A B /$, and hence $$ S_{A B C D}=S_{A M D}+S_{B M C}+S_{C M D}=\frac{1}{2}\left(S_{A B D}+S_{A B C}\right)+\frac{1}{4} A B \cdot C D $$ The line $A B$ is tangent to the circle with diameter $C D$ if and only if $N N^{\prime}=C D / 2$, or equivalently, $$ S_{A B C D}=S_{A N D}+S_{B N C}+S_{A N B}=\frac{1}{2}\left(S_{B C D}+S_{A C D}\right)+\frac{1}{4} A B \cdot C D $$ By (1), this is further equivalent to $S_{A B C}+S_{A B D}=S_{B C D}+S_{A C D}$. But since $S_{A B C}+S_{A C D}=S_{A B D}+S_{B C D}=S_{A B C D}$, this reduces to $S_{A B C}=S_{B C D}$, i.e., to $B C \| A D$. 15. (a) Since rotation by $60^{\circ}$ around $A$ transforms the triangle $C A F$ into $\triangle E A B$, it follows that $\measuredangle(C F, E B)=60^{\circ}$. We similarly deduce that $\measuredangle(E B, A D)=\measuredangle(A D, F C)=60^{\circ}$. Let $S$ be the intersection point of $B E$ and $A D$. Since $\measuredangle C S E=\measuredangle C A E=60^{\circ}$, it follows that $E A S C$ is cyclic. Therefore $\measuredangle(A S, S C)=60^{\circ}=\measuredangle(A D, F C)$, which implies that $S$ lies on $C F$ as well. (b) A rotation of $E A S C$ around $E$ by $60^{\circ}$ transforms $A$ into $C$ and $S$ into a point $T$ for which $S E=S T=S C+C T=S C+S A$. Summing the equality $S E=S C+S A$ and the analogous equalities $S D=S B+S C$ and $S F=S A+S B$ yields the result. 16. From the first two conditions we can easily conclude that $a+d>b+c$ (indeed, $(d+a)^{2}-(d-a)^{2}=(c+b)^{2}-(c-b)^{2}=4 a d=4 b c$ and $d-a>c-b>0)$. Thus $k>m$. From $d=2^{k}-a$ and $c=2^{m}-b$ we get $a\left(2^{k}-a\right)=b\left(2^{m}-b\right)$, or equivalently, $$ (b+a)(b-a)=2^{m}\left(b-2^{k-m} a\right) $$ Since $2^{k-m} a$ is even and $b$ is odd, the highest power of 2 that divides the right-hand side of $(1)$ is $m$. Hence $(b+a)(b-a)$ is divisible by $2^{m}$ but not by $2^{m+1}$, which implies $b+a=2^{m_{1}} p$ and $b-a=2^{m_{2}} q$, where $m_{1}, m_{2} \geq 1$, $m_{1}+m_{2}=m$, and $p, q$ are odd. Furthermore, $b=\left(2^{m_{1}} p+2^{m_{2}} q\right) / 2$ and $a=\left(2^{m_{1}} p-2^{m_{2}} q\right) / 2$ are odd, so either $m_{1}=1$ or $m_{2}=1$. Note that $m_{1}=1$ is not possible, since it would imply that $b-a=2^{m-1} q \geq 2^{m-1}$, although $b+c=2^{m}$ and $bm$, it follows that $a=1$. Remark. Now it is not difficult to prove that all fourtuplets $(a, b, c, d)$ that satisfy the given conditions are of the form $\left(1,2^{m-1}-1,2^{m-1}+1,2^{2 m-2}-\right.$ 1 ), where $m \in \mathbb{N}, m \geq 3$. 17. For any $m=0,1, \ldots, n-1$, we shall find the number of permutations $\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ with exactly $k$ discordant pairs such that $x_{n}=n-m$. This $x_{n}$ is a member of exactly $m$ discordant pairs, and hence the permutation $\left(x_{1}, \ldots, x_{n-1}\right.$ of the set $\{1,2, \ldots, n\} \backslash\{m\}$ must have exactly $k-m$ discordant pairs: there are $d(n-1, k-m)$ such permutations. Therefore $$ \begin{aligned} d(n, k) & =d(n-1, k)+d(n-1, k-1) \cdots+d(n-1, k-n+1) \\ & =d(n-1, k)+d(n, k-1) \end{aligned} $$ (note that $d(n, k)$ is 0 if $k<0$ or $k>\binom{n}{2}$ ). We now proceed to calculate $d(n, 2)$ and $d(n, 3)$. Trivially, $d(n, 0)=1$. It follows that $d(n, 1)=d(n-1,1)+d(n, 0)=d(n-1,1)+1$, which yields $d(n, 1)=d(1,1)+n-1=n-1$. Further, $d(n, 2)=d(n-1,2)+d(n, 1)=d(n-1,2)+n-1=d(2,2)+$ $2+3+\cdots+n-1=\left(n^{2}-n-2\right) / 2$. Finally, using the known formula $1^{2}+2^{2}+\cdots+k^{2}=k(k+1)(2 k+1) / 6$, we have $d(n, 3)=d(n-1,3)+d(n, 2)=d(n-1,3)+\left(n^{2}-n-2\right) / 2=$ $d(2,3)+\sum_{i=3}^{n}\left(n^{2}-n-2\right) / 2=\left(n^{3}-7 n+6\right) / 6$. 18. Suppose that circles $k_{1}\left(O_{1}, r_{1}\right), k_{2}\left(O_{2}, r_{2}\right)$, and $k_{3}\left(O_{3}, r_{3}\right)$ touch the edges of the angles $\angle B A C, \angle A B C$, and $\angle A C B$, respectively. Denote also by $O$ and $r$ the center and radius of the incircle. Let $P$ be the point of tangency of the incircle with $A B$ and let $F$ be the foot of the perpendicular from $O_{1}$ to $O P$. From $\triangle O_{1} F O$ we obtain $\cot (\alpha / 2)=2 \sqrt{r r_{1}} /\left(r-r_{1}\right)$ and analogously $\cot (\beta / 2)=2 \sqrt{r r_{2}} /\left(r-r_{2}\right), \cot (\gamma / 2)=2 \sqrt{r r_{3}} /\left(r-r_{3}\right)$. We will now use a well-known trigonometric identity for the angles of a triangle: $$ \cot \frac{\alpha}{2}+\cot \frac{\beta}{2}+\cot \frac{\gamma}{2}=\cot \frac{\alpha}{2} \cdot \cot \frac{\beta}{2} \cdot \cot \frac{\gamma}{2} . $$ (This identity follows from $\tan (\gamma / 2)=\cot (\alpha / 2+\beta / 2)$ and the formula for the cotangent of a sum.) Plugging in the obtained cotangents, we get $$ \begin{aligned} \frac{2 \sqrt{r r_{1}}}{r-r_{1}}+\frac{2 \sqrt{r r_{2}}}{r-r_{2}}+\frac{2 \sqrt{r r_{3}}}{r-r_{3}}= & \frac{2 \sqrt{r r_{1}}}{r-r_{1}} \cdot \frac{2 \sqrt{r r_{2}}}{r-r_{2}} \cdot \frac{2 \sqrt{r r_{3}}}{r-r_{3}} \Rightarrow \\ & \sqrt{r_{1}}\left(r-r_{2}\right)\left(r-r_{3}\right)+\sqrt{r_{2}}\left(r-r_{1}\right)\left(r-r_{3}\right) \\ & +\sqrt{r_{3}}\left(r-r_{1}\right)\left(r-r_{2}\right)=4 r \sqrt{r_{1} r_{2} r_{3}} . \end{aligned} $$ For $r_{1}=1, r_{2}=4$, and $r_{3}=9$ we get $(r-4)(r-9)+2(r-1)(r-9)+3(r-1)(r-4)=24 r \Rightarrow 6(r-1)(r-11)=0$. Clearly, $r=11$ is the only viable value for $r$. 19. First, we shall prove that the numbers in the $n$th row are exactly the numbers $$ \frac{1}{n\binom{n-1}{0}}, \frac{1}{n\binom{n-1}{1}}, \frac{1}{n\binom{n-1}{2}}, \ldots, \frac{1}{n\binom{n-1}{n-1}} $$ The proof of this fact can be done by induction. For small $n$, the statement can be easily verified. Assuming that the statement is true for some $n$, we have that the $k$ th element in the $(n+1)$ st row is, as is directly verified, $$ \frac{1}{n\binom{n-1}{k-1}}-\frac{1}{(n+1)\binom{n}{k-1}}=\frac{1}{(n+1)\binom{n}{k}} $$ Thus (1) is proved. Now the geometric mean of the elements of the $n$th row becomes: $$ \frac{1}{n \sqrt[n]{\binom{n-1}{0} \cdot\binom{n-1}{1} \cdots\binom{n-1}{n-1}}} \geq \frac{1}{n\left(\frac{\binom{n-1}{0}+\binom{n-1}{1}+\cdots+\binom{n-1}{n-1}}{n}\right)}=\frac{1}{2^{n-1}} $$ The desired result follows directly from substituting $n=1984$. 20. Define the set $S=\mathbb{R}^{+} \backslash\{1\}$. The given inequality is equivalent to $\ln b / \ln a<\ln (b+1) / \ln (a+1)$. If $b=1$, it is obvious that each $a \in S$ satisfies this inequality. Suppose now that $b$ is also in $S$. Let us define on $S$ a function $f(x)=\ln (x+1) / \ln x$. Since $\ln (x+1)>\ln x$ and $1 / x>1 / x+1>0$, we have $$ f^{\prime}(x)=\frac{\frac{\ln x}{x+1}-\frac{\ln (x+1)}{x}}{\ln ^{2} x}<0 \quad \text { for all } x $$ Hence $f$ is always decreasing. We also note that $f(x)<0$ for $x<1$ and that $f(x)>0$ for $x>1$ (at $x=1$ there is a discontinuity). Let us assume $b>1$. From $\ln b / \ln a<\ln (b+1) / \ln (a+1)$ we get $f(b)>$ $f(a)$. This holds for $b>a$ or for $a<1$. Now let us assume $b<1$. This time we get $f(b)1$. Hence all the solutions to $\log _{a} b<\log _{a+1}(b+1)$ are $\{b=1, a \in S\}$, $\{a>b>1\},\{b>1>a\},\{a513$ distinct two-element subsets of $M$ each having a square as the product of elements. Reasoning as above, we find at least one (in fact many) pair of such squares whose product is a fourth power. 2. The polyhedron has $3 \cdot 12 / 2=18$ edges, and by Euler's formula, 8 vertices. Let $v_{1}$ and $v_{2}$ be the numbers of vertices at which respectively 3 and 6 edges meet. Then $v_{1}+v_{2}=8$ and $3 v_{1}+6 v_{2}=2 \cdot 18$, implying that $v_{1}=4$. Let $A, B, C, D$ be the vertices at which three edges meet. Since the dihedral angles are equal, all the edges meeting at $A$, say $A E, A F, A G$, must have equal length, say $x$. (If $x=A E=A F \neq A G=y$, and $A E F$, $A F G$, and $A G E$ are isosceles, $\angle E A F \neq \angle F A G$, in contradiction to the equality of the dihedral angles.) It is easy to see that at $E, F$, and $G$ six edges meet. One proceeds to conclude that if $H$ is the fourth vertex of this kind, $E F G H$ must be a regular tetrahedron of edge length $y$, and the other vertices $A, B, C$, and $D$ are tops of isosceles pyramids based on $E F G, E F H, F G H$, and $G E H$. Let the plane through $A, B, C$ meet $E F$, $H F$, and $G F$, at $E^{\prime}, H^{\prime}$, and $G^{\prime}$. Then $A E^{\prime} B H^{\prime} C G^{\prime}$ is a regular hexagon, and since $x=F A=F E^{\prime}$, we have $E^{\prime} G^{\prime}=x$ and $A E^{\prime}=x / \sqrt{3}$. From the isosceles triangles $A E F$ and $F A E^{\prime}$ we obtain finally, with $\measuredangle E F A=\alpha$, $\frac{y}{2 x}=\cos \alpha=1-2 \sin ^{2}(\alpha / 2), x /(2 x \sqrt{3})=\sin (\alpha / 2)$, and $y / x=5 / 3$. 3. We shall write $P \equiv Q$ for two polynomials $P$ and $Q$ if $P(x)-Q(x)$ has even coefficients. We observe that $(1+x)^{2^{m}} \equiv 1+x^{2^{m}}$ for every $m \in \mathbb{N}$. Consequently, for every polynomial $p$ with degree less than $k=2^{m}, w\left(p \cdot q_{k}\right)=2 w(p)$. Now we prove the inequality from the problem by induction on $i_{n}$. If $i_{n} \leq 1$, the inequality is trivial. Assume it is true for any sequence with $i_{1}<\cdotsj$, then by (ii), $\langle k j\rangle \sim\langle k j\rangle-j=\langle(k-1) j\rangle$. If otherwise $\langle k j\rangle0$, then the midpoint $P$ of $M N$ lies inside the circle $C_{(m+n) / 2}$. This is trivial if $m=n$, so let $m \neq n$. For fixed $M, P$ is in the image $C_{n}^{\prime}$ of $C_{n}$ under the homothety with center $M$ and coefficient $1 / 2$. The center of the circle $C_{n}^{\prime}$ is at the midpoint of $O_{n} M$. If we let both $M$ and $N$ vary, $P$ will be on the union of circles with radius $r_{n} / 2$ and centers in the image of $C_{m}$ under the homothety with center $O_{n}$ and coefficient $1 / 2$. Hence $P$ is not outside the circle centered at the midpoint $O_{m} O_{n}$ and with radius $\left(r_{m}+r_{n}\right) / 2$. It remains to show that $r_{(m+n) / 2}>\left(r_{m}+r_{n}\right) / 2$. But this inequality is easily reduced to $(m-n)^{2}>0$, which is true. 6. Let us set $$ \begin{aligned} & x_{n, i}=\sqrt[i]{i+\sqrt[i+1]{i+1+\cdots+\sqrt[n]{n}}} \\ & y_{n, i}=x_{n+1, i}^{i-1}+x_{n+1, i}^{i-2} x_{n, i}+\cdots+x_{n, i}^{i-1} \end{aligned} $$ In particular, $x_{n, 2}=x_{n}$ and $x_{n, i}=0$ for $i>n$. We observe that for $n>i>2$, $$ x_{n+1, i}-x_{n, i}=\frac{x_{n+1, i}^{i}-x_{n, i}^{i}}{y_{n, i}}=\frac{x_{n+1, i+1}-x_{n, i+1}}{y_{n, i}} . $$ Since $y_{n, i}>i x_{n, i}^{i-1} \geq i^{1+(i-1) / i} \geq i^{3 / 2}$ and $x_{n+1, n+1}-x_{n, n+1}=\sqrt[n+1]{n+1}$, simple induction gives $$ x_{n+1}-x_{n} \leq \frac{\sqrt[n+1]{n+1}}{(n!)^{3 / 2}}<\frac{1}{n!} \quad \text { for } n>2 $$ The inequality for $n=2$ is directly verified. 7. Let $k_{i} \geq 0$ be the largest integer such that $p^{k_{i}} \mid x_{i}, i=1, \ldots, n$, and $y_{i}=x_{i} / p^{k_{i}}$. We may assume that $k=k_{1}+\cdots+k_{n}$. All the $y_{i}$ must be distinct. Indeed, if $y_{i}=y_{j}$ and $k_{i}>k_{j}$, then $x_{i} \geq p x_{j} \geq 2 x_{i} \geq 2 x_{1}$, which is impossible. Thus $y_{1} y_{2} \ldots y_{n}=P / p^{k} \geq n!$. If equality holds, we must have $y_{i}=1, y_{j}=2$ and $y_{k}=3$ for some $i, j, k$. Thus $p \geq 5$, which implies that either $y_{i} / y_{j} \leq 1 / 2$ or $y_{i} / y_{j} \geq 5 / 2$, which is impossible. Hence the inequality is strict. 8. Among ten consecutive integers that divide $n$, there must exist numbers divisible by $2^{3}, 3^{2}, 5$, and 7 . Thus the desired number has the form $n=$ $2^{\alpha_{1}} 3^{\alpha_{2}} 5^{\alpha_{3}} 7^{\alpha_{4}} 11^{\alpha_{5}} \cdots$, where $\alpha_{1} \geq 3, \alpha_{2} \geq 2, \alpha_{3} \geq 1, \alpha_{4} \geq 1$. Since $n$ has $\left(\alpha_{1}+1\right)\left(\alpha_{2}+1\right)\left(\alpha_{3}+1\right) \cdots$ distinct factors, and $\left(\alpha_{1}+1\right)\left(\alpha_{2}+1\right)\left(\alpha_{3}+\right.$ $1)\left(\alpha_{4}+1\right) \geq 48$, we must have $\left(\alpha_{5}+1\right) \cdots \leq 3$. Hence at most one $\alpha_{j}$, $j>4$, is positive, and in the minimal $n$ this must be $\alpha_{5}$. Checking through the possible combinations satisfying $\left(\alpha_{1}+1\right)\left(\alpha_{2}+1\right) \cdots\left(\alpha_{5}+1\right)=144$ one finds that the minimal $n$ is $2^{5} \cdot 3^{2} \cdot 5 \cdot 7 \cdot 11=110880$. 9. Let $\vec{a}, \vec{b}, \vec{c}, \vec{d}$ denote the vectors $\overrightarrow{O A}, \overrightarrow{O B}, \overrightarrow{O C}, \overrightarrow{O D}$ respectively. Then $|\vec{a}|=|\vec{b}|=|\vec{c}|=|\vec{d}|=1$. The centroids of the faces are $(\vec{b}+\vec{c}+\vec{d}) / 3$, $(\vec{a}+\vec{c}+\vec{d}) / 3$, etc., and each of these is at distance $1 / 3$ from $P=$ $(\vec{a}+\vec{b}+\vec{c}+\vec{d}) / 3$; hence the required radius is $1 / 3$. To compute $|P|$ as a function of the edges of $A B C D$, observe that $A B^{2}=(\vec{b}-\vec{a})^{2}=$ $2-2 \vec{a} \cdot \vec{b}$ etc. Now $$ \begin{aligned} P^{2} & =\frac{|\vec{a}+\vec{b}+\vec{c}+\vec{d}|^{2}}{9} \\ & =\frac{16-2\left(A B^{2}+B C^{2}+A C^{2}+A D^{2}+B D^{2}+C D^{2}\right)}{9} \end{aligned} $$ 10. If $M$ is at a vertex of the regular tetrahedron $A B C D(A B=1)$, then one can take $M^{\prime}$ at the center of the opposite face of the tetrahedron. Let $M$ be on the face $(A B C)$ of the tetrahedron, excluding the vertices. Consider a continuous mapping $f$ of $\mathbb{C}$ onto the surface $S$ of $A B C D$ that maps $m+n e^{2 \pi / 3}$ for $m, n \in$ $\mathbb{Z}$ onto $A, B, C, D$ if $(m, n) \equiv$ $(1,1),(1,0),(0,1),(0,0)(\bmod 2)$ re- ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-484.jpg?height=464&width=446&top_left_y=1356&top_left_x=857) spectively, and maps each unit equilateral triangle with vertices of the form $m+n e^{2 \pi / 3}$ isometrically onto the corresponding face of $A B C D$. The point $M$ then has one preimage $M_{j}, j=1,2, \ldots, 6$, in each of the six preimages of $\triangle A B C$ having two vertices on the unit circle. The $M_{j}$ 's form a convex centrally symmetric (possibly degenerate) hexagon. Of the triangles formed by two adjacent sides of this hexagon consider the one, say $M_{1} M_{2} M_{3}$, with the smallest radius of circumcircle and denote by $\widehat{M^{\prime}}$ its circumcenter. Then we can choose $M^{\prime}=f\left(\widehat{M^{\prime}}\right)$. Indeed, the images of the segments $M_{1} \widehat{M^{\prime}}, M_{2} \widehat{M^{\prime}}, M_{3} \widehat{M^{\prime}}$ are three different shortest paths on $S$ from $M$ to $M^{\prime}$. 11. Let $-x_{1}, \ldots,-x_{6}$ be the roots of the polynomial. Let $s_{k, i}(k \leq i \leq 6)$ denote the sum of all products of $k$ of the numbers $x_{1}, \ldots, x_{i}$. By Vieta's formula we have $a_{k}=s_{k, 6}$ for $k=1, \ldots, 6$. Since $s_{k, i}=s_{k-1, i-1} x_{i}+$ $s_{k, i-1}$, one can compute the $a_{k}$ by the following scheme (the horizontal and vertical arrows denote multiplications and additions respectively): ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-485.jpg?height=457&width=609&top_left_y=646&top_left_x=486) 12. We shall prove by induction on $m$ that $P_{m}(x, y, z)$ is symmetric and that $$ (x+y) P_{m}(x, z, y+1)-(x+z) P_{m}(x, y, z+1)=(y-z) P_{m}(x, y, z) $$ holds for all $x, y, z$. This is trivial for $m=0$. Assume now that it holds for $m=n-1$. Since obviously $P_{n}(x, y, z)=P_{n}(y, x, z)$, the symmetry of $P_{n}$ will follow if we prove that $P_{n}(x, y, z)=P_{n}(x, z, y)$. Using (1) we have $P_{n}(x, z, y)-$ $P_{n}(x, y, z)=(y+z)\left[(x+y) P_{n-1}(x, z, y+1)-(x+z) P_{n-1}(x, y, z+1)\right]-\left(y^{2}-\right.$ $\left.z^{2}\right) P_{n-1}(x, y, z)=(y+z)(y-z) P_{n-1}(x, y, z)-\left(y^{2}-z^{2}\right) P_{n-1}(x, y, z)=0$. It remains to prove (1) for $m=n$. Using the already established symmetry we have $$ \begin{aligned} & (x+y) P_{n}(x, z, y+1)-(x+z) P_{n}(x, y, z+1) \\ & =(x+y) P_{n}(y+1, z, x)-(x+z) P_{n}(z+1, y, x) \\ & =(x+y)\left[(y+x+1)(z+x) P_{n-1}(y+1, z, x+1)-x^{2} P_{n-1}(y+1, z, x)\right] \\ & \quad-(x+z)\left[(z+x+1)(y+x) P_{n-1}(z+1, y, x+1)-x^{2} P_{n-1}(z+1, y, x)\right] \\ & =(x+y)(x+z)(y-z) P_{n-1}(x+1, y, z)-x^{2}(y-z) P_{n-1}(x, y, z) \\ & =(y-z) P_{n}(z, y, x)=(y-z) P_{n}(x, y, z), \end{aligned} $$ as claimed. 13. If $m$ and $n$ are relatively prime, there exist positive integers $p, q$ such that $p m=q n+1$. Thus by putting $m$ balls in some boxes $p$ times we can achieve that one box receives $q+1$ balls while all others receive $q$ balls. Repeating this process sufficiently many times, we can obtain an equal distribution of the balls. Now assume $\operatorname{gcd}(m, n)>1$. If initially there is only one ball in the boxes, then after $k$ operations the number of balls will be $1+k m$, which is never divisible by $n$. Hence the task cannot be done. 14. It suffices to prove the existence of a good point in the case of exactly 661 -1 's. We prove by induction on $k$ that in any arrangement with $3 k+2$ points $k$ of which are -1 's a good point exists. For $k=1$ this is clear by inspection. Assume that the assertion holds for all arrangements of $3 n+2$ points and consider an arrangement of $3(n+1)+2$ points. Now there exists a sequence of consecutive -1 's surrounded by two +1 's. There is a point $P$ which is good for the arrangement obtained by removing the two +1 's bordering the sequence of -1 's and one of these -1 's. Since $P$ is out of this sequence, clearly the removal either leaves a partial sum as it was or diminishes it by 1 , so $P$ is good for the original arrangement. Second solution. Denote the number on an arbitrary point by $a_{1}$, and the numbers on successive points going in the positive direction by $a_{2}, a_{3}, \ldots$ (in particular, $a_{k+1985}=a_{k}$ ). We define the partial sums $s_{0}=0, s_{n}=$ $a_{1}+a_{2}+\cdots+a_{n}$ for all positive integers $n$; then $s_{k+1985}=s_{k}+s_{1985}$ and $s_{1985} \geq 663$. Since $s_{1985 m} \geq 663 m$ and $3 \cdot 663 m>1985(m+2)+1$ for large $m$, not all values $0,1,2, \ldots 663 m$ can appear thrice among the $1985(m+2)+1$ sums $s_{-1985}, s_{-1984}, \ldots, s_{1985(m+1)}$ (and none of them appears out of this set). Thus there is an integral value $s>0$ that appears at most twice as a partial sum, say $s_{k}=s_{l}=s, ks$ must hold for all $i>l$, and $s_{i}s$ 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 / nx$ for all $x>0$ implies that $y_{n}-x_{n}0$ with $\prod_{i=1}^{n} y_{i}=1$. Then $\frac{1}{1+y_{n-1}}+\frac{1}{1+y_{n}}>\frac{1}{1+y_{n-1} y_{n}}$, which is equivalent to $1+y_{n} y_{n-1}(1+$ $\left.y_{n}+y_{n-1}\right)>0$. Hence by the inductive hypothesis $$ \sum_{i=1}^{n} \frac{1}{1+y_{i}} \geq \sum_{i=1}^{n-2} \frac{1}{1+y_{i}}+\frac{1}{1+y_{n-1} y_{n}} \geq 1 $$ Remark. The constant $n-1$ is best possible (take for example $x_{i}=a^{i}$ with $a$ arbitrarily large). 19. Suppose that for some $n>6$ there is a regular $n$-gon with vertices having integer coordinates, and that $A_{1} A_{2} \ldots A_{n}$ is the smallest such $n$-gon, of side length $a$. If $O$ is the origin and $B_{i}$ the point such that $\overrightarrow{O B_{i}}=\overrightarrow{A_{i-1} A_{i}}$, $i=1,2, \ldots, n$ (where $A_{0}=A_{n}$ ), then $B_{i}$ has integer coordinates and $B_{1} B_{2} \ldots B_{n}$ is a regular polygon of side length $2 a \sin (\pi / n)2$, then setting in (i) $x=w-2, y=2$, we get $f(w)=f((w-$ 2) $f(w)) f(2)=0$. Thus $$ f(x)=0 \quad \text { if and only if } \quad x \geq 2 $$ Now let $0 \leq y<2$ and $x \geq 0$. The LHS in (i) is zero if and only if $x f(y) \geq 2$, while the RHS is zero if and only if $x+y \geq 2$. It follows that $x \geq 2 / f(y)$ if and only if $x \geq 2-y$. Therefore $$ f(y)=\left\{\begin{array}{cl} \frac{2}{2-y} & \text { for } 0 \leq y<2 \\ 0 & \text { for } y \geq 2 \end{array}\right. $$ The confirmation that $f$ satisfies the given conditions is straightforward. 2. No. If $a$ were rational, its decimal expansion would be periodic from some point. Let $p$ be the number of decimals in the period. Since $f\left(10^{2 p}\right)$ has $2 n p$ zeros, it contains a full periodic part; hence the period would consist only of zeros, which is impossible. 3. Let $E$ be the point where the boy turned westward, reaching the shore at $D$. Let the ray $D E$ cut $A C$ at $F$ and the shore again at $G$. Then $E F=$ $A E=x$ (because $A E F$ is an equilateral triangle) and $F G=D E=y$. From $A E \cdot E B=D E \cdot E G$ we obtain $x(86-x)=y(x+y)$. If $x$ is odd, then $x(86-x)$ is odd, while $y(x+y)$ is even. Hence $x$ is even, and so $y$ must also be even. Let $y=2 y_{1}$. The above equation can be rewritten as $$ \left(x+y_{1}-43\right)^{2}+\left(2 y_{1}\right)^{2}=\left(43-y_{1}\right)^{2} \text {. } $$ Since $y_{1}<43$, we have $\left(2 y_{1}, 43-y_{1}\right)=1$, and thus $\left(\left|x+y_{1}-43\right|, 2 y_{1}, 43-\right.$ $\left.y_{1}\right)$ is a primitive Pythagorean triple. Consequently there exist integers $a>b>0$ such that $y_{1}=a b$ and $43-y_{1}=a^{2}+b^{2}$. We obtain that $a^{2}+b^{2}+a b=43$, which has the unique solution $a=6, b=1$. Hence $y=12$ and $x=2$ or $x=72$. Remark. The Diophantine equation $x(86-x)=y(x+y)$ can be also solved directly. Namely, we have that $x(344-3 x)=(2 y+x)^{2}$ is a square, and since $x$ is even, we have $(x, 344-3 x)=2$ or 4 . Consequently $x, 344-3 x$ are either both squares or both two times squares. The rest is easy. 4. Let $x=p^{\alpha} x^{\prime}, y=p^{\beta} y^{\prime}, z=p^{\gamma} z^{\prime}$ with $p \nmid x^{\prime} y^{\prime} z^{\prime}$ and $\alpha \geq \beta \geq \gamma$. From the given equation it follows that $p^{n}(x+y)=z\left(x y-p^{n}\right)$ and consequently $z^{\prime} \mid x+y$. Since also $p^{\gamma} \mid x+y$, we have $z \mid x+y$, i.e., $x+y=q z$. The given equation together with the last condition gives us $$ x y=p^{n}(q+1) \quad \text { and } \quad x+y=q z . $$ Conversely, every solution of (1) gives a solution of the given equation. For $q=1$ and $q=2$ we obtain the following classes of $n+1$ solutions each: $$ \begin{array}{ll} q=1:(x, y, z)=\left(2 p^{i}, p^{n-i}, 2 p^{i}+p^{n-i}\right) & \text { for } i=0,1,2, \ldots, n \\ q=2:(x, y, z)=\left(3 p^{j}, p^{n-j}, \frac{3 p^{j}+p^{n-j}}{2}\right) & \text { for } j=0,1,2, \ldots, n \end{array} $$ For $n=2 k$ these two classes have a common solution $\left(2 p^{k}, p^{k}, 3 p^{k}\right)$; otherwise, all these solutions are distinct. One further solution is given by $(x, y, z)=\left(1, p^{n}\left(p^{n}+3\right) / 2, p^{2}+2\right)$, not included in the above classes for $p>3$. Thus we have found $2(n+1)$ solutions. Another type of solution is obtained if we put $q=p^{k}+p^{n-k}$. This yields the solutions $$ (x, y, z)=\left(p^{k}, p^{n}+p^{n-k}+p^{2 n-2 k}, p^{n-k}+1\right) \quad \text { for } k=0,1, \ldots, n $$ For $k0$. 13. Let us consider the infinite integer lattice and assume that having reached a point $(x, n)$ or $(n, y)$, the particle continues moving east and north following the rules of the game. The required probability $p_{k}$ is equal to the probability of getting to one of the points $E_{1}(n, n+k), E_{2}(n+k, n)$, but without passing through $(n, n+k-1)$ or $(n+k-1, n)$. Thus $p$ is equal to the probability $p_{1}$ of getting to $E_{1}(n, n+k)$ via $D_{1}(n-1, n+k)$ plus the probability $p_{2}$ of getting to $E_{2}(n+k, n)$ via $D_{2}(n+k, n-1)$. Both $p_{1}$ and $p_{2}$ are easily seen to be equal to $\binom{2 n+k-1}{n-1} 2^{-2 n-k}$, and therefore $p=\binom{2 n+k-1}{n-1} 2^{-2 n-k+1}$. 14. We shall use the following simple fact. Lemma. If $\widehat{k}$ is the image of a circle $k$ under an inversion centered at a point $Z$, and $O_{1}, O_{2}$ are centers of $k$ and $\widehat{k}$, then $O_{1}, O_{2}$, and $Z$ are collinear. Proof. The result follows immediately from the symmetry with respect to the line $Z O_{1}$. Let $I$ be the center of the inscribed circle $i$. Since $I X \cdot I A=I E^{2}$, the inversion with respect to $i$ takes points $A$ into $X$, and analogously $B, C$ into $Y, Z$ respectively. It follows from the lemma that the center of circle $A B C$, the center of circle $X Y Z$, and point $I$ are collinear. 15. (a) This is the same problem as $S L 82$-14. (b) If $S$ is the midpoint of $A C$, we have $B^{\prime} S=A C \frac{\cos \angle D}{2 \sin \angle D}, D^{\prime} S=$ $A C \frac{\cos \angle B}{2 \sin \angle B}, B^{\prime} D^{\prime}=A C\left|\frac{\sin (\angle B+\angle D)}{2 \sin \angle B \sin \angle D}\right|$. These formulas are true also if $\angle B>90^{\circ}$ or $\angle D>90^{\circ}$. We similarly obtain that $A^{\prime \prime} C^{\prime \prime}=$ $B^{\prime} D^{\prime}\left|\frac{\sin \left(\angle A^{\prime}+\angle C^{\prime}\right)}{2 \sin \angle A^{\prime} \sin \angle C^{\prime}}\right|$. Therefore $$ A^{\prime \prime} C^{\prime \prime}=A C \frac{\sin ^{2}(\angle A+\angle C)}{4 \sin \angle A \sin \angle B \sin \angle C \sin \angle D} $$ 16. Let $Z$ be the center of the polygon. Suppose that at some moment we have $A \in P_{i-1} P_{i}$ and $B \in$ $P_{i} P_{i+1}$, where $P_{i-1}, P_{i}, P_{i+1}$ are adjacent vertices of the polygon. Since $\angle A O B=180^{\circ}-\angle P_{i-1} P_{i} P_{i+1}$, the quadrilateral $A P_{i} B O$ is cyclic. Hence $\angle A P_{i} O=\angle A B O=\angle A P_{i} Z$, which means that $O \in P_{i} Z$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-495.jpg?height=329&width=390&top_left_y=251&top_left_x=903) Moreover, from $O P_{i}=2 r \sin \angle P_{i} A O$, where $r$ is the radius of circle $A P_{i} B O$, we obtain that $Z P_{i} \leq O P_{i} \leq Z P_{i} / \cos (\pi / n)$. Thus $O$ traces a segment $Z Z_{i}$ as $A$ and $B$ move along $P_{i-1} P_{i}$ and $P_{i} P_{i+1}$ respectively, where $Z_{i}$ is a point on the ray $P_{i} Z$ with $P_{i} Z_{i} \cos (\pi / n)=P_{i} Z$. When $A, B$ move along the whole circumference of the polygon, $O$ traces an asterisk consisting of $n$ segments of equal length emanating from $Z$ and pointing away from the vertices. 17. We use complex numbers to represent the position of a point in the plane. For convenience, let $A_{1}, A_{2}, A_{3}, A_{4}, A_{5}, \ldots$ be $A, B, C, A, B, \ldots$ respectively, and let $P_{0}$ be the origin. After the $k$ th step, the position of $P_{k}$ will be $P_{k}=A_{k}+\left(P_{k-1}-A_{k}\right) u, k=1,2,3, \ldots$, where $u=e^{4 \pi \tau / 3}$. We easily obtain $$ P_{k}=(1-u)\left(A_{k}+u A_{k-1}+u^{2} A_{k-2}+\cdots+u^{k-1} A_{1}\right) $$ The condition $P_{0} \equiv P_{1986}$ is equivalent to $A_{1986}+u A_{1985}+\cdots+u^{1984} A_{2}+$ $u^{1985} A_{1}=0$, which, having in mind that $A_{1}=A_{4}=A_{7}=\cdots, A_{2}=A_{5}=$ $A_{8}=\cdots, A_{3}=A_{6}=A_{9}=\cdots$, reduces to $$ 662\left(A_{3}+u A_{2}+u^{2} A_{1}\right)=\left(1+u^{3}+\cdots+u^{1983}\right)\left(A_{3}+u A_{2}+u^{2} A_{1}\right)=0 $$ It follows that $A_{3}-A_{1}=u\left(A_{1}-A_{2}\right)$, and the assertion follows. Second solution. Let $f_{P}$ denote the rotation with center $P$ through $120^{\circ}$ clockwise. Let $f_{1}=f_{A}$. Then $f_{1}\left(P_{0}\right)=P_{1}$. Let $B^{\prime}=f_{1}(B), C^{\prime}=f_{1}(C)$, and $f_{2}=f_{B^{\prime}}$. Then $f_{2}\left(P_{1}\right)=P_{2}$ and $f_{2}\left(A B^{\prime} C^{\prime}\right)=A^{\prime} B^{\prime} C^{\prime \prime}$. Finally, let $f_{3}=f_{C^{\prime \prime}}$ and $f_{3}\left(A^{\prime} B^{\prime} C^{\prime \prime}\right)=A^{\prime \prime} B^{\prime \prime} C^{\prime \prime}$. Then $g=f_{3} f_{2} f_{1}$ is a translation sending $P_{0}$ to $P_{3}$ and $C$ to $C^{\prime \prime}$. Now $P_{1986}=P_{0}$ implies that $g^{662}$ is the identity, and thus $C=C^{\prime \prime}$. Let $K$ be such that $A B K$ is equilateral and positively oriented. We observe that $f_{2} f_{1}(K)=K$; therefore the rotation $f_{2} f_{1}$ satisfies $f_{2} f_{1}(P) \neq P$ for $P \neq K$. Hence $f_{2} f_{1}(C)=C^{\prime \prime}=C$ implies $K=C$. 18. We shall use the following criterion for a quadrangle to be circumscribable. Lemma. The quadrangle $A Y D Z$ is circumscribable if and only if $D B-$ $D C=A B-A C$. Proof. Suppose that $A Y D Z$ is circumscribable and that the incircle is tangent to $A Z, Z D, D Y, Y A$ at $M, N, P, Q$ respectively. Then $D B-D C=P B-N C=M B-Q C=A B-A C$. Conversely, assume that $D B-D C=A B-A C$ and let a tangent from $D$ to the incircle of the triangle $A C Z$ meet $C Z$ and $C A$ at $D^{\prime} \neq Z$ and $Y^{\prime} \neq A$ respectively. According to the first part we have $D^{\prime} B-D^{\prime} C=A B-A C$. It follows that $\left|D^{\prime} B-D B\right|=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-496.jpg?height=315&width=387&top_left_y=236&top_left_x=900) $\left|D^{\prime} C-D C\right|=D D^{\prime}$, implying that $D^{\prime} \equiv D$. Let us assume that $D Z B X$ and $D X C Y$ are circumscribable. Using the lemma we obtain $D C-D A=B C-B A$ and $D A-D B=C A-C B$. Adding these two inequalities yields $D C-D B=A C-A B$, and the statement follows from the lemma. 19. Let $M$ and $N$ be the midpoints of segments $A B$ and $C D$, respectively. The given conditions imply that $\triangle A B D \cong \triangle B A C$ and $\triangle C D A \cong \triangle D C B$; hence $M C=M D$ and $N A=N B$. It follows that $M$ and $N$ both lie on the perpendicular bisectors of $A B$ and $C D$, and consequently $M N$ is the common perpendicular bisector of $A B$ and $C D$. Points $B$ and $C$ are symmetric to $A$ and $D$ with respect to $M N$. Now if $P$ is a point in space and $P^{\prime}$ the point symmetric to $P$ with respect to $M N$, we have $B P=A P^{\prime}, C P=D P^{\prime}$, and thus $f(P)=A P+A P^{\prime}+D P+D P^{\prime}$. Let $P P^{\prime}$ intersect $M N$ in $Q$. Then $A P+A P^{\prime} \geq 2 A Q$ and $D P+D P^{\prime} \geq 2 D Q$, from which it follows that $f(P) \geq 2(A Q+D Q)=f(Q)$. It remains to minimize $f(Q)$ with $Q$ moving along the line $M N$. Let us rotate point $D$ around $M N$ to a point $D^{\prime}$ that belongs to the plane $A M N$, on the side of $M N$ opposite to $A$. Then $f(Q)=2\left(A Q+D^{\prime} Q\right) \geq$ $A D^{\prime}$, and equality occurs when $Q$ is the intersection of $A D^{\prime}$ and $M N$. Thus $\min f(Q)=A D^{\prime}$. We note that $4 M D^{2}=2 A D^{2}+2 B D^{2}-A B^{2}=$ $2 a^{2}+2 b^{2}-A B^{2}$ and $4 M N^{2}=4 M D^{2}-C D^{2}=2 a^{2}+2 b^{2}-A B^{2}-C D^{2}$. Now, $A D^{\prime 2}=\left(A M+D^{\prime} N\right)^{2}+M N^{2}$, which together with $A M+D^{\prime} N=$ $(a+b) / 2$ gives us $$ A D^{\prime 2}=\frac{a^{2}+b^{2}+A B \cdot C D}{2}=\frac{a^{2}+b^{2}+c^{2}}{2} $$ We conclude that $\min f(Q)=\sqrt{\left(a^{2}+b^{2}+c^{2}\right) / 2}$. 20. If the faces of the tetrahedron $A B C D$ are congruent triangles, we must have $A B=C D, A C=B D$, and $A D=B C$. Then the sum of angles at $A$ is $\angle B A C+\angle C A D+\angle D A B=\angle B D C+\angle C B D+\angle D C B=180^{\circ}$. We now assume that the sum of angles at each vertex is $180^{\circ}$. Let us construct triangles $B C D^{\prime}, C A D^{\prime \prime}, A B D^{\prime \prime \prime}$ in the plane $A B C$, exterior to $\triangle A B C$, such that $\triangle B C D^{\prime} \cong \triangle B C D, \triangle C A D^{\prime \prime} \cong \triangle C A D$, and $\triangle A B D^{\prime \prime \prime} \cong \triangle A B D$. Then by the assumption, $A \in D^{\prime \prime} D^{\prime \prime \prime}, B \in D^{\prime \prime \prime} D^{\prime}$, and $C \in D^{\prime} D^{\prime \prime}$. Since also $D^{\prime \prime} A=D^{\prime \prime \prime} A=D A$, etc., $A, B, C$ are the mid- points of segments $D^{\prime \prime} D^{\prime \prime \prime}, D^{\prime \prime \prime} D^{\prime}, D^{\prime} D^{\prime \prime}$ respectively. Thus the triangles $A B C, B C D^{\prime}, C A D^{\prime \prime}, A B D^{\prime \prime \prime}$ are congruent, and the statement follows. 21. Since the sum of all edges of $A B C D$ is 3 , the statement of the problem is an immediate consequence of the following statement: Lemma. Let $r$ be the inradius of a triangle with sides $a, b, c$. Then $a+$ $b+c \geq 6 \sqrt{3} \cdot r$, with equality if and only if the triangle is equilateral. Proof. If $S$ and $p$ denotes the area and semiperimeter of the triangle, by Heron's formula and the AM-GM inequality we have $$ \begin{aligned} p r & =S=\sqrt{p(p-a)(p-b)(p-c)} \\ & \leq \sqrt{p\left(\frac{(p-a)+(p-b)+(p-c)}{3}\right)^{3}}=\sqrt{\frac{p^{4}}{27}}=\frac{p^{2}}{3 \sqrt{3}}, \end{aligned} $$ i.e., $p \geq 3 \sqrt{3} \cdot r$, which is equivalent to the claim. ### 4.28 Solutions to the Shortlisted Problems of IMO 1987 1. By (ii), $f(x)=0$ has at least one solution, and there is the greatest among them, say $x_{0}$. Then by (v), for any $x$, $$ 0=f(x) f\left(x_{0}\right)=f\left(x f\left(x_{0}\right)+x_{0} f(x)-x_{0} x\right)=f\left(x_{0}(f(x)-x)\right) $$ It follows that $x_{0} \geq x_{0}(f(x)-x)$. Suppose $x_{0}>0$. By (i) and (iii), since $f\left(x_{0}\right)-x_{0}<00 \end{aligned} $$ if not all $x_{1}, x_{2}, \ldots, x_{2 n}$ are zero, which is a contradiction. Hence $k \geq$ $2 n$. Remark. The condition $n \geq 4$ is essential. For a party attended by 3 couples $\{(1,4),(2,5),(3,6)\}$, there is a collection of 4 cliques satisfying the conditions: $\{(1,2,3),(3,4,5),(5,6,1),(2,4,6)\}$. 3. The answer: yes. Set $$ p(k, m)=k+[1+2+\cdots+(k+m)]=\frac{(k+m)^{2}+3 k+m}{2} . $$ It is obviously of the desired type. 4. Setting $x_{1}=\overrightarrow{A B}, x_{2}=\overrightarrow{A D}, x_{3}=\overrightarrow{A E}$, we have to prove that $$ \left\|x_{1}+x_{2}\right\|+\left\|x_{2}+x_{3}\right\|+\left\|x_{3}+x_{1}\right\| \leq\left\|x_{1}\right\|+\left\|x_{2}\right\|+\left\|x_{3}\right\|+\left\|x_{1}+x_{2}+x_{3}\right\| . $$ We have $$ \begin{aligned} & \left(\left\|x_{1}\right\|+\left\|x_{2}\right\|+\left\|x_{3}\right\|\right)^{2}-\left\|x_{1}+x_{2}+x_{3}\right\|^{2} \\ & \quad=2 \sum_{1 \leq i0$ will occur exactly $p_{n-1}(k-1)$ times, so that the sum of the $d_{i}$ 's is $\sum_{k=1}^{n} k p_{n-1}(k-1)=\sum_{k=0}^{n-1}(k+$ 1) $p_{n-1}(k)=2(n-1)$ !. Summation over $i$ yields $$ Z=\sum_{k=0}^{n} k^{2} p_{n}(k)=2 n!. $$ From (0), (1), and (2), we conclude that $$ \sum_{k=0}^{n}(k-1)^{2} p_{n}(k)=\sum_{k=0}^{n} k^{2} p_{n}(k)-2 \sum_{k=0}^{n} k p_{n}(k)+\sum_{k=0}^{n} p_{n}(k)=n! $$ Remark. Only the first part of this problem was given on the IMO. 17. The number of 4 -colorings of the set $M$ is equal to $4^{1987}$. Let $A$ be the number of arithmetic progressions in $M$ with 10 terms. The number of colorings containing a monochromatic arithmetic progression with 10 terms is less than $4 A \cdot 4^{1977}$. So, if $A<4^{9}$, then there exist 4 -colorings with the required property. Now we estimate the value of $A$. If the first term of a 10-term progression is $k$ and the difference is $d$, then $1 \leq k \leq 1978$ and $d \leq\left[\frac{1987-k}{9}\right]$; hence $$ A=\sum_{k=1}^{1978}\left[\frac{1987-k}{9}\right]<\frac{1986+1985+\cdots+9}{9}=\frac{1995 \cdot 1978}{18}<4^{9} $$ 18. Note first that the statement that some $a+x, a+y, a+x+y$ belong to a class $C$ is equivalent to the following statement: (1) There are positive integers $p, q \in C$ such that $p2 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 $y2 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-yq+p-y-1 \geq q . $$ Therefore $q \geq 2 y+1$. Now, since $f(y)$, being composite, cannot be equal to $q$, and $q$ is its smallest prime divisor, we obtain that $f(y) \geq q^{2}$. Consequently, $$ y^{2}+y+p \geq q^{2} \geq(2 y+1)^{2}=4 y^{2}+4 y+1 \Rightarrow 3\left(y^{2}+y\right) \leq p-1 $$ and from this we easily conclude that $y<\sqrt{p / 3}$, which contradicts the condition of the problem. In this way, all the numbers $$ f(0), f(1), \ldots, f(p-2) $$ must be prime. 21. Let $P$ be the second point of intersection of segment $B C$ and the circle circumscribed about quadrilateral $A K L M$. Denote by $E$ the intersection point of the lines $K N$ and $B C$ and by $F$ the intersection point of the lines $M N$ and $B C$. Then $\angle B C N=\angle B A N$ and $\angle M A L=$ $\angle M P L$, as angles on the same arc. Since $A L$ is a bisector, $\angle B C N=$ $\angle B A L=\angle M A L=\angle M P L$, and ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-507.jpg?height=452&width=414&top_left_y=813&top_left_x=866) consequently $P M \| N C$. Similarly we prove $K P \| B N$. Then the quadrilaterals $B K P N$ and $N P M C$ are trapezoids; hence $$ S_{B K E}=S_{N P E} \quad \text { and } \quad S_{N P F}=S_{C M F} $$ Therefore $S_{A B C}=S_{A K N M}$. 22. Suppose that there exists such function $f$. Then we obtain $$ f(n+1987)=f(f(f(n)))=f(n)+1987 \quad \text { for all } n \in \mathbb{N} $$ and from here, by induction, $f(n+1987 t)=f(n)+1987 t$ for all $n, t \in \mathbb{N}$. Further, for any $r \in\{0,1, \ldots, 1986\}$, let $f(r)=1987 k+l, k, l \in \mathbb{N}$, $l \leq 1986$. We have $$ r+1987=f(f(r))=f(l+1987 k)=f(l)+1987 k, $$ and consequently there are two possibilities: (i) $k=1 \Rightarrow f(r)=l+1987$ and $f(l)=r$; (ii) $k=0 \Rightarrow f(r)=l$ and $f(l)=r+1987$; in both cases, $r \neq l$. In this way, the set $\{0,1, \ldots, 1986\}$ decomposes to pairs $\{a, b\}$ such that $$ f(a)=b \text { and } f(b)=a+1987, \quad \text { or } \quad f(b)=a \text { and } f(a)=b+1987 . $$ But the set $\{0,1, \ldots, 1986\}$ has an odd number of elements, and cannot be decomposed into pairs. Contradiction. 23. If we prove the existence of $p, q \in \mathbb{N}$ such that the roots $r, s$ of $$ f(x)=x^{2}-k p \cdot x+k q=0 $$ are irrational real numbers with $01$ ), 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}1$. From the equalities $b_{n}=p b_{n-1}+q b_{n-2}$, $b_{n+1}=p b_{n}+q b_{n-1}, b_{n+2}=p b_{n+1}+q b_{n}$, eliminating $b_{n+1}$ and $b_{n-1}$ we obtain that $b_{n+2}=\left(p^{2}+2 q\right) b_{n}-q^{2} b_{n-2}$. So the sequence $b_{0}, b_{2}, b_{4}, \ldots$ has the property $$ b_{2 n}=P b_{2 n-2}+Q b_{2 n-4}, \quad P=p^{2}+2 q, \quad Q=-q^{2} . $$ We shall solve the problem by induction. The sequence $a_{n}$ has $p=2$, $q=1$, and hence $P=6, Q=-1$. Let $k=1$. Then $a_{0}=0, a_{1}=1$, and $a_{n}$ is of the same parity as $a_{n-2}$; i.e., it is even if and only if $n$ is even. Let $k \geq 1$. We assume that for $n=2^{k} m$, the numbers $a_{n}$ are divisible by $2^{k}$, but divisible by $2^{k+1}$ if and only if $m$ is even. We assume also that the sequence $c_{0}, c_{1}, \ldots$, with $c_{m}=a_{m \cdot 2^{k}}$, satisfies the condition $c_{n}=$ $p c_{n-1}-c_{n-2}$, where $p \equiv 2(\bmod 4)($ for $k=1$ it is true). We shall prove the same statement for $k+1$. According to (1), $c_{2 n}=P c_{2 n-2}-c_{2 n-4}$, where $P=p^{2}-2$. Obviously $P \equiv 2(\bmod 4)$. Since $P=4 s+2$ for some integer $s$, and $c_{2 n}=2^{k+1} d_{2 n}, c_{0}=0, c_{1} \equiv 2^{k}\left(\bmod 2^{k+1}\right)$, and $c_{2}=p c_{1} \equiv 2^{k+1}$ $\left(\bmod 2^{k+2}\right)$, we have $$ c_{2 n}=(4 s+2) 2^{k+1} d_{2 n-2}-c_{2 n-4} \equiv c_{2 n-4}\left(\bmod 2^{k+2}\right) $$ i.e., $0 \equiv c_{0} \equiv c_{4} \equiv c_{8} \equiv \cdots$ and $2^{k+1} \equiv c_{2} \equiv c_{6} \equiv \cdots\left(\bmod 2^{k+2}\right)$, which proves the statement. Second solution. The recursion is solved by $$ a_{n}=\frac{1}{2 \sqrt{2}}\left((1+\sqrt{2})^{n}-(1-\sqrt{2})^{n}\right)=\binom{n}{1}+2\binom{n}{3}+2^{2}\binom{n}{5}+\cdots . $$ Let $n=2^{k} m$ with $m$ odd; then for $p>0$ the summand $$ 2^{p}\binom{n}{2 p+1}=2^{k+p} m \frac{(n-1) \ldots(n-2 p)}{(2 p+1)!}=2^{k+p} \frac{m}{2 p+1}\binom{n-1}{2 p} $$ is divisible by $2^{k+p}$, because the denominator $2 p+1$ is odd. Hence $$ a_{n}=n+\sum_{p>0} 2^{p}\binom{n}{2 p+1}=2^{k} m+2^{k+1} N $$ for some integer $N$, so that $a_{n}$ is exactly divisible by $2^{k}$. Third solution. It can be proven by induction that $a_{2 n}=2 a_{n}\left(a_{n}+a_{n+1}\right)$. The required result follows easily, again by induction on $k$. 2. For polynomials $f(x), g(x)$ with integer coefficients, we use the notation $f(x) \sim g(x)$ if all the coefficients of $f-g$ are even. Let $n=2^{s}$. It is immediately shown by induction that $\left(x^{2}+x+1\right)^{2^{s}} \sim x^{2^{s+1}}+x^{2^{s}}+1$, and the required number for $n=2^{s}$ is 3 . Let $n=2^{s}-1$. If $s$ is odd, then $n \equiv 1(\bmod 3)$, while for $s$ even, $n \equiv 0$ $(\bmod 3)$. Consider the polynomial $$ R_{s}(x)= \begin{cases}(x+1)\left(x^{2 n-1}+x^{2 n-4}+\cdots+x^{n+3}\right)+x^{n+1} & \\ +x^{n}+x^{n-1}+(x+1)\left(x^{n-4}+x^{n-7}+\cdots+1\right), & 2 \nmid s \\ (x+1)\left(x^{2 n-1}+x^{2 n-4}+\cdots+x^{n+2}\right)+x^{n} & \\ +(x+1)\left(x^{n-3}+x^{n-6}+\cdots+1\right), & 2 \mid s\end{cases} $$ It is easily checked that $\left(x^{2}+x+1\right) R_{s}(x) \sim x^{2^{s+1}}+x^{2^{s}}+1 \sim\left(x^{2}+x+1\right)^{2^{s}}$, so that $R_{s}(x) \sim\left(x^{2}+x+1\right)^{2^{s}-1}$. In this case, the number of odd coefficients is $\left(2^{s+2}-(-1)^{s}\right) / 3$. Now we pass to the general case. Let the number $n$ be represented in the binary system as $$ n=\underbrace{11 \ldots 1}_{a_{k}} \underbrace{00 \ldots 0}_{b_{k}} \underbrace{11 \ldots 1}_{a_{k-1}} \underbrace{00 \ldots 0}_{b_{k-1}} \cdots \underbrace{11 \ldots 1}_{a_{1}} \underbrace{00 \ldots 0}_{b_{1}} $$ $b_{i}>0(i>1), b_{1} \geq 0$, and $a_{i}>0$. Then $n=\sum_{i=1}^{k} 2^{s_{i}}\left(2^{a_{i}}-1\right)$, where $s_{i}=b_{1}+a_{1}+b_{2}+a_{2}+\cdots+b_{i}$, and hence $$ u_{n}(x)=\left(x^{2}+x+1\right)^{n}=\prod_{i=1}^{k}\left(x^{2}+x+1\right)^{2^{s_{i}}\left(2^{a_{i}}-1\right)} \sim \prod_{i=1}^{k} R_{a_{i}}\left(x^{2^{s_{i}}}\right) $$ Let $R_{a_{i}}\left(x^{2^{s_{i}}}\right) \sim x^{r_{i, 1}}+\cdots+x^{r_{i, d_{i}}}$; clearly $r_{i, j}$ is divisible by $2^{s_{i}}$ and $r_{i, j} \leq 2^{s_{i}+1}\left(2^{a_{i}}-1\right)<2^{s_{i+1}}$, so that for any $j, r_{i, j}$ can have nonzero binary digits only in some position $t, s_{i} \leq t \leq s_{i+1}-1$. Therefore, in $$ \prod_{i=1}^{k} R_{a_{i}}\left(x^{2^{s_{i}}}\right) \sim \prod_{i=1}^{k}\left(x^{r_{i, 1}}+\cdots+x^{r_{i, d_{i}}}\right)=\sum_{i=1}^{k} \sum_{p_{i}=1}^{d_{i}} x^{r_{1, p_{1}}+r_{2, p_{2}}+\cdots+r_{k, p_{k}}} $$ all the exponents $r_{1, p_{1}}+r_{2, p_{2}}+\cdots+r_{k, p_{k}}$ are different, so that the number of odd coefficients in $u_{n}(x)$ is $$ \prod_{i=1}^{k} d_{i}=\prod_{i=1}^{k} \frac{2^{a_{i}+2}-(-1)^{a_{i}}}{3} $$ 3. Let $R$ be the circumradius, $r$ the inradius, $s$ the semiperimeter, $\Delta$ the area of $A B C$ and $\Delta^{\prime}$ the area of $A^{\prime} B^{\prime} C^{\prime}$. The angles of triangle $A^{\prime} B^{\prime} C^{\prime}$ are $A^{\prime}=90^{\circ}-A / 2, B^{\prime}=90^{\circ}-B / 2$, and $C^{\prime}=90^{\circ}-C / 2$, and hence $$ \Delta=2 R^{2} \sin A \sin B \sin C $$ and $\Delta^{\prime}=2 R^{2} \sin A^{\prime} \sin B^{\prime} \sin C^{\prime}=2 R^{2} \cos \frac{A}{2} \cos \frac{B}{2} \cos \frac{C}{2}$. Hence, $$ \frac{\Delta}{\Delta^{\prime}}=\frac{\sin A \sin B \sin C}{\cos \frac{A}{2} \cos \frac{B}{2} \cos \frac{C}{2}}=8 \sin \frac{A}{2} \sin \frac{B}{2} \sin \frac{C}{2}=\frac{2 r}{R} $$ where we have used that $r=A I \sin (A / 2)=\cdots=4 R \sin (A / 2) \cdot \sin (B / 2)$. $\sin (C / 2)$. Euler's inequality $2 r \leq R$ shows that $\Delta \leq \Delta^{\prime}$. Second solution. Let $H$ be orthocenter of triangle $A B C$, and $H_{a}, H_{b}, H_{c}$ points symmetric to $H$ with respect to $B C, C A, A B$, respectively. Since $\angle B H_{a} C=\angle B H C=180^{\circ}-\angle A$, points $H_{a}, H_{b}, H_{c}$ lie on the circumcircle of $A B C$, and the area of the hexagon $A H_{c} B H_{a} C H_{b}$ is double the area of $A B C$. (1) Let us apply the analogous result for the triangle $A^{\prime} B^{\prime} C^{\prime}$. Since its orthocenter is the incenter $I$ of $A B C$, and the point symmetric to $I$ with respect to $B^{\prime} C^{\prime}$ is the point $A$, we find by (1) that the area of the hexagon $A C^{\prime} B A^{\prime} C B^{\prime}$ is double the area of $A^{\prime} B^{\prime} C^{\prime}$. But it is clear that the area of $\Delta C H_{a} B$ is less than or equal to the area of $\Delta C A^{\prime} B$ etc.; hence, the area of $A H_{c} B H_{a} C H_{b}$ does not exceed the area of $A C^{\prime} B A^{\prime} C B^{\prime}$. The statement follows immediately. 4. Suppose that the numbers of any two neighboring squares differ by at most $n-1$. For $k=1,2, \ldots, n^{2}-n$, let $A_{k}, B_{k}$, and $C_{k}$ denote, respectively, the sets of squares numbered by $1,2, \ldots, k$; of squares numbered by $k+$ $n, k+n+1, \ldots, n^{2}$; and of squares numbered by $k+1, \ldots, k+n-1$. By the assumption, the squares from $A_{k}$ and $B_{k}$ have no edge in common; $C_{k}$ has $n-1$ elements only. Consequently, for each $k$ there exists a row and a column all belonging either to $A_{k}$, or to $B_{k}$. For $k=1$, it must belong to $B_{k}$, while for $k=n^{2}-n$ it belongs to $A_{k}$. Let $k$ be the smallest index such that $A_{k}$ contains a whole row and a whole column. Since $B_{k-1}$ has that property too, it must have at least two squares in common with $A_{k}$, which is impossible. 5. Let $n=2 k$ and let $A=\left\{A_{1}, \ldots, A_{2 k+1}\right\}$ denote the family of sets with the desired properties. Since every element of their union $B$ belongs to at least two sets of $A$, it follows that $A_{j}=\bigcup_{i \neq j} A_{i} \cap A_{j}$ holds for every $1 \leq j \leq 2 k+1$. Since each intersection in the sum has at most one element and $A_{j}$ has $2 k$ elements, it follows that every element of $A_{j}$, i.e., in general of $B$, is a member of exactly two sets. We now prove that $k$ is even, assuming that the marking described in the problem exists. We have already shown that for every two indices $1 \leq j \leq 2 k+1$ and $i \neq j$ there exists a unique element contained in both $A_{i}$ and $A_{j}$. On a $2 k \times 2 k$ matrix let us mark in the $i$ th column and $j$ th row for $i \neq j$ the number that was joined to the element of $B$ in $A_{i} \cap A_{j}$. In the $i$ th row and column let us mark the number of the element of $B$ in $A_{i} \cap A_{2 k+1}$. In each row from the conditions of the marking there must be an even number of zeros. Hence, the total number of zeros in the matrix is even. The matrix is symmetric with respect to its main diagonal; hence it has an even number of zeros outside its main diagonal. Hence, the number of zeros on the main diagonal must also be even and this number equals the number of elements in $A_{2 k+1}$ that are marked with 0 , which is $k$. Hence $k$ must be even. For even $k$ we note that the dimensions of a $2 k \times 2 k$ matrix are divisible by 4 . Tiling the entire matrix with the $4 \times 4$ submatrix $$ Q=\left[\begin{array}{llll} 0 & 1 & 0 & 1 \\ 1 & 0 & 1 & 0 \\ 0 & 1 & 1 & 0 \\ 1 & 0 & 0 & 1 \end{array}\right] $$ we obtain a marking that indeed satisfies all the conditions of the problem; hence we have shown that the marking is possible if and only if $k$ is even. 6. Let $\omega$ be the plane through $A B$, parallel to $C D$. Define the point transformation $f: X \mapsto X^{\prime}$ in space as follows. If $X \in K L$, then $X^{\prime}=X$; otherwise, let $\omega_{X}$ be the plane through $X$ parallel to $\omega$ : then $X^{\prime}$ is the point symmetric to $X$ with respect to the intersection point of $K L$ with $\omega_{X}$. Clearly, $f(A)=B, f(B)=A, f(C)=D, f(D)=C$; hence $f$ maps the tetrahedron onto itself. We shall show that $f$ preserves volumes. Let $s: X \mapsto X^{\prime \prime}$ denote the symmetry with respect to $K L$, and $g$ the transformation mapping $X^{\prime \prime}$ into $X^{\prime}$; then $f=g \circ s$. If points $X_{1}^{\prime \prime}=s\left(X_{1}\right)$ and $X_{2}^{\prime \prime}=s\left(X_{2}\right)$ have the property that $X_{1}^{\prime \prime} X_{2}^{\prime \prime}$ is parallel to $K L$, then the segments $X_{1}^{\prime \prime} X_{2}^{\prime \prime}$ and $X_{1}^{\prime} X_{2}^{\prime}$ have the same length and lie on the same line. Then by Cavalieri's principle $g$ preserves volume, and so does $f$. Now, if $\alpha$ is any plane containing the line $K L$, the two parts of the tetrahedron on which it is partitioned by $\alpha$ are transformed into each other by $f$, and therefore have the same volumes. Second solution. Suppose w.l.o.g. that the plane $\alpha$ through $K L$ meets the interiors of edges $A C$ and $B D$ at $X$ and $Y$. Let $\overrightarrow{A X}=\lambda \overrightarrow{A C}$ and $\overrightarrow{B Y}=\mu \overrightarrow{B D}$, for $0 \leq \lambda, \mu \leq 1$. Then the vectors $\overrightarrow{K X}=\lambda \overrightarrow{A C}-\overrightarrow{A B} / 2$, $\overrightarrow{K Y}=\mu \overrightarrow{B D}+\overrightarrow{A B} / 2, \overrightarrow{K L}=\overrightarrow{A C} / 2+$ $\overrightarrow{B D} / 2$ are coplanar; i.e., there exist real numbers $a, b, c$, not all zero, such that ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-512.jpg?height=426&width=529&top_left_y=1294&top_left_x=829) $$ \overrightarrow{0}=a \overrightarrow{K X}+b \overrightarrow{K Y}+c \overrightarrow{K L}=(\lambda a+c / 2) \overrightarrow{A C}+(\mu b+c / 2) \overrightarrow{B D}+\frac{b-a}{2} \overrightarrow{A B} $$ Since $\overrightarrow{A C}, \overrightarrow{B D}, \overrightarrow{A B}$ are linearly independent, we must have $a=b$ and $\lambda=\mu$. We need to prove that the volume of the polyhedron $K X L Y B C$, which is one of the parts of the tetrahedron $A B C D$ partitioned by $\alpha$, equals half of the volume $V$ of $A B C D$. Indeed, we obtain $$ V_{K X L Y B C}=V_{K X L C}+V_{K B Y L C}=\frac{1}{4}(1-\lambda) V+\frac{1}{4}(1+\mu) V=\frac{1}{2} V . $$ 7. The algebraic equation $x^{3}-3 x^{2}+1=0$ admits three real roots $\beta, \gamma, a$, with $$ -0.6<\beta<-0.5, \quad 0.6<\gamma<0.7, \quad \sqrt{8}0$ for some $i$, then $\left|s+v_{i}\right|>|s|$ ), and similarly $x_{1}, \ldots, x_{p} \geq 0$. Finally, suppose by the one-dimensional case that $y_{1}, \ldots, y_{p}$ and $y_{p+1}, \ldots, y_{m}$ are permuted in such a way that all the sums $y_{1}+\cdots+y_{i}$ and $y_{p+1}+\cdots+y_{p+i}$ are $\leq 1$ in absolute value. We apply the construction of the one-dimensional case to $x_{1}, \ldots, x_{m}$ taking, as described above, positive $z_{i}$ 's from $x_{1}, x_{2}, \ldots, x_{p}$ and negative ones from $x_{p+1}, \ldots, x_{m}$, but so that the order is preserved; this way we get a permutation $x_{\sigma_{1}}, x_{\sigma_{2}}, \ldots, x_{\sigma_{m}}$. It is then clear that each sum $y_{\sigma_{1}}+y_{\sigma_{2}}+$ $\cdots+y_{\sigma_{k}}$ decomposes into the sum $\left(y_{1}+y_{2}+\cdots+y_{l}\right)+\left(y_{p+1}+\cdots+y_{p+n}\right)$ (because of the preservation of order), and that each of these sums is less than or equal to 1 in absolute value. Thus each sum $u_{\sigma_{1}}+\cdots+u_{\sigma_{k}}$ is composed of a vector of length at most 2 and an orthogonal vector of length at most 1 , and so is itself of length at most $\sqrt{5}$. 9. Let us assume $\frac{a^{2}+b^{2}}{a b+1}=k \in \mathbb{N}$. We then have $a^{2}-k a b+b^{2}=k$. Let us assume that $k$ is not an integer square, which implies $k \geq 2$. Now we observe the minimal pair $(a, b)$ such that $a^{2}-k a b+b^{2}=k$ holds. We may assume w.l.o.g. that $a \geq b$. For $a=b$ we get $k=(2-k) a^{2} \leq 0$; hence we must have $a>b$. Let us observe the quadratic equation $x^{2}-k b x+b^{2}-k=0$, which has solutions $a$ and $a_{1}$. Since $a+a_{1}=k b$, it follows that $a_{1} \in \mathbb{Z}$. Since $a>k b$ implies $k>a+b^{2}>k b$ and $a=k b$ implies $k=b^{2}$, it follows that $ak$. Since $a a_{1}=b^{2}-k>0$ and $a>0$, it follows that $a_{1} \in \mathbb{N}$ and $a_{1}=\frac{b^{2}-k}{a}<\frac{a^{2}-1}{a}k} a_{i j}+\sum_{j \leq n-k} a_{i j}-\sum_{j>n-k} a_{i j}= \\ & =2 \sum_{i=1}^{k} \sum_{j=1}^{n-k} a_{i j}-2 \sum_{i=k+1}^{n} \sum_{j=n-k+1}^{n} a_{i j} \leq 4 k(n-k) . \end{aligned} $$ This yields $n^{2} \leq 4 k(n-k)$, i.e., $(n-2 k)^{2} \leq 0$, and thus $n$ must be even. We proceed to show by induction that for all even $n$ an array of the given type exists. For $n=2$ the array in Fig. 1 is good. Let such an $n \times n$ array be given for some even $n \geq 2$, with $c_{1}=n, c_{2}=-n+1, c_{3}=$ $n-2, \ldots, c_{n-1}=2, c_{n}=-1$ and $r_{1}=n-1, r_{2}=-n+2, \ldots, r_{n-1}=1$, $r_{n}=0$. Upon enlarging this array as indicated in Fig. 2, the positive sums are increased by 2 , the nonpositive sums are decreased by 2 , and the missing sums $-1,0,1,2$ occur in the new rows and columns, so that the obtained array $(n+2) \times(n+2)$ is of the same type. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-517.jpg?height=89&width=87&top_left_y=1080&top_left_x=487) Fig. 1 | $n \times n$ | | | 1 | 1 | | :---: | :---: | :---: | :---: | :---: | | | | | | | | | | | 1 | 1 | | | | | - | | -1 | | 1)-1 | 1 | - | 1 | 0 | | 1)-1 | | 1. | 1 | -1 | Fig. 2 15. Referring to the description of $L_{A}$, we have $\angle A M N=\angle A H N=90^{\circ}-$ $\angle H A C=\angle C$, and similarly $\angle A N M=\angle B$. Since the triangle $A B C$ is acute-angled, the line $L_{A}$ lies inside the angle $A$. Hence if $P=L_{A} \cap B C$ and $Q=L_{B} \cap A C$, we get $\angle B A P=90^{\circ}-\angle C$; hence $A P$ passes through the circumcenter $O$ of $\triangle A B C$. Similarly we prove that $L_{B}$ and $L_{C}$ contains the circumcenter $O$ also. It follows that $L_{A}, L_{B}$ and $L_{C}$ intersect at the point $O$. Remark. Without identifying the point of intersection, one can prove the concurrence of the three lines using Ceva's theorem, in usual or trigonometric form. 16. Let $f(x)=\sum_{k=1}^{70} \frac{k}{x-k}$. For all integers $i=1, \ldots, 70$ we have that $f(x)$ tends to plus infinity as $x$ tends downward to $i$, and $f(x)$ tends to minus infinity as $x$ tends upward to $i$. As $x$ tends to infinity, $f(x)$ tends to 0 . Hence it follows that there exist $x_{1}, x_{2}, \ldots, x_{70}$ such that $1a_{k}+m \delta$, and consequently $a_{k+m}>1$ for large enough $m$, a contradiction. Thus $a_{k}-a_{k+1} \geq 0$ for all $k$. Suppose that $a_{k}-a_{k+1}>2 / k^{2}$. Then for all $i2 / k^{2}$, so that $a_{i}-a_{k+1}>2(k+1-i) / k^{2}$, i.e., $a_{i}>2(k+1-i) / k^{2}, i=1,2, \ldots, k$. But this implies $a_{1}+a_{2}+\cdots+a_{k}>2 / k^{2}+4 / k^{2}+\cdots+2 k / k^{2}=k(k+1) / k^{2}$, which is impossible. Therefore $a_{k}-a_{k+1} \leq 2 / k^{2}$ for all $k$. 25. Observe that $1001=7 \cdot 143$, i.e., $10^{3}=-1+7 a, a=143$. Then by the binomial theorem, $10^{21}=(-1+7 a)^{7}=-1+7^{2} b$ for some integer $b$, so that we also have $10^{21 n} \equiv-1(\bmod 49)$ for any odd integer $n>0$. Hence $N=\frac{9}{49}\left(10^{21 n}+1\right)$ is an integer of $21 n$ digits, and $N\left(10^{21 n}+1\right)=$ $\left(\frac{3}{7}\left(10^{21 n}+1\right)\right)^{2}$ is a double number that is a perfect square. 26. The overline in this problem will exclusively denote binary representation. We will show by induction that if $n=\overline{c_{k} c_{k-1} \ldots c_{0}}=\sum_{i=0}^{k} c_{i} 2^{i}$ is the binary representation of $n\left(c_{i} \in\{0,1\}\right)$, then $f(n)=\overline{c_{0} c_{1} \ldots c_{k}}=$ $\sum_{i=0}^{k} c_{i} 2^{k-i}$ is the number whose binary representation is the palindrome of the binary representation of $n$. This evidently holds for $n \in\{1,2,3\}$. Let us assume that the claim holds for all numbers up to $n-1$ and show it holds for $n=\overline{c_{k} c_{k-1} \ldots c_{0}}$. We observe three cases: (i) $c_{0}=0 \Rightarrow n=2 m \Rightarrow f(n)=f(m)=\overline{0 c_{1} \ldots c_{k}}=\overline{c_{0} c_{1} \ldots c_{k}}$. (ii) $c_{0}=1, c_{1}=0 \Rightarrow n=4 m+1 \Rightarrow f(n)=2 f(2 m+1)-f(m)=$ $2 \cdot \overline{1 c_{2} \ldots c_{k}}-\overline{c_{2} \ldots c_{k}}=2^{k}+2 \cdot \overline{c_{2} \ldots c_{k}}-\overline{c_{2} \ldots c_{k}}=\overline{10 c_{2} \ldots c_{k}}=$ $\overline{c_{0} c_{1} \ldots c_{k}}$. (iii) $c_{0}=1, c_{1}=1 \Rightarrow n=4 m+3 \Rightarrow f(n)=3 f(2 m+1)-2 f(m)=$ $3 \cdot \overline{1 c_{2} \ldots c_{k}}-2 \cdot \overline{c_{2} \ldots c_{k}}=2^{k}+2^{k-1}+3 \cdot \overline{c_{2} \ldots c_{k}}-2 \cdot \overline{c_{2} \ldots c_{k}}=$ $\overline{11 c_{2} \ldots c_{k}}=\overline{c_{0} c_{1} \ldots c_{k}}$. We thus have to find the number of palindromes in binary representation smaller than $1998=\overline{11111000100}$. We note that for all $m \in \mathbb{N}$ the numbers of $2 m$ - and $(2 m-1)$-digit binary palindromes are both equal to $2^{m-1}$. We also note that $\overline{11111011111}$ and $\overline{11111111111}$ are the only 11-digit palindromes larger than 1998. Hence we count all palindromes of up to 11 digits and exclude the largest two. The number of $n \leq 1998$ such that $f(n)=n$ is thus equal to $1+1+2+2+4+4+8+8+16+16+32-2=92$. 27. Consider a Cartesian system with the $x$-axis on the line $B C$ and origin at the foot of the perpendicular from $A$ to $B C$, so that $A$ lies on the $y$-axis. Let $A$ be $(0, \alpha), B(-\beta, 0), C(\gamma, 0)$, where $\alpha, \beta, \gamma>0$ (because $A B C$ is acute-angled). Then $\tan B=\frac{\alpha}{\beta}, \quad \tan C=\frac{\alpha}{\gamma} \quad$ and $\quad \tan A=-\tan (B+C)=\frac{\alpha(\beta+\gamma)}{\alpha^{2}-\beta \gamma} ;$ here $\tan A>0$, so $\alpha^{2}>\beta \gamma$. Let $L$ have equation $x \cos \theta+y \sin \theta+p=0$. Then $$ \begin{aligned} & u^{2} \tan A+v^{2} \tan B+w^{2} \tan C \\ & =\frac{\alpha(\beta+\gamma)}{\alpha^{2}-\beta \gamma}(\alpha \sin \theta+p)^{2}+\frac{\alpha}{\beta}(-\beta \cos \theta+p)^{2}+\frac{\alpha}{\gamma}(\gamma \cos \theta+p)^{2} \\ & =\left(\alpha^{2} \sin ^{2} \theta+2 \alpha p \sin \theta+p^{2}\right) \frac{\alpha(\beta+\gamma)}{\alpha^{2}-\beta \gamma}+\alpha(\beta+\gamma) \cos ^{2} \theta+\frac{\alpha(\beta+\gamma)}{\beta \gamma} p^{2} \\ & =\frac{\alpha(\beta+\gamma)}{\beta \gamma\left(\alpha^{2}-\beta \gamma\right)}\left(\alpha^{2} p^{2}+2 \alpha p \beta \gamma \sin \theta+\alpha^{2} \beta \gamma \sin ^{2} \theta+\beta \gamma\left(\alpha^{2}-\beta \gamma\right) \cos ^{2} \theta\right) \\ & =\frac{\alpha(\beta+\gamma)}{\beta \gamma\left(\alpha^{2}-\beta \gamma\right)}\left[(\alpha p+\beta \gamma \sin \theta)^{2}+\beta \gamma\left(\alpha^{2}-\beta \gamma\right)\right] \geq \alpha(\beta+\gamma)=2 \Delta \end{aligned} $$ with equality when $\alpha p+\beta \gamma \sin \theta=0$, i.e., if and only if $L$ passes through $(0, \beta \gamma / \alpha)$, which is the orthocenter of the triangle. 28. The sequence is uniquely determined by the conditions, and $a_{1}=2, a_{2}=$ $7, a_{3}=25, a_{4}=89, a_{5}=317, \ldots$; it satisfies $a_{n}=3 a_{n-1}+2 a_{n-2}$ for $n=3,4,5$. We show that the sequence $b_{n}$ given by $b_{1}=2, b_{2}=7$, $b_{n}=3 b_{n-1}+2 b_{n-2}$ has the same inequality property, i.e., that $b_{n}=a_{n}$ : $b_{n+1} b_{n-1}-b_{n}^{2}=\left(3 b_{n}+2 b_{n-1}\right) b_{n-1}-b_{n}\left(3 b_{n-1}+2 b_{n-2}\right)=-2\left(b_{n} b_{n-2}-b_{n-1}^{2}\right)$ for $n>2$ gives that $b_{n+1} b_{n-1}-b_{n}^{2}=(-2)^{n-2}$ for all $n \geq 2$. But then $$ \left|b_{n+1}-\frac{b_{n}^{2}}{b_{n-1}}\right|=\frac{2^{n-2}}{b_{n-1}}<\frac{1}{2}, $$ since it is easily shown that $b_{n-1}>2^{n-1}$ for all $n$. It is obvious that $a_{n}=b_{n}$ are odd for $n>1$. 29. Let the first train start from Signal 1 at time 0, and let $t_{j}$ be the time it takes for the $j$ th train in the series to travel from one signal to the next. By induction on $k$, we show that Train $k$ arrives at signal $n$ at time $s_{k}+(n-2) m_{k}$, where $s_{k}=t_{1}+\cdots+t_{k}$ and $m_{k}=\max _{j=1, \ldots, k} t_{j}$. For $k=1$ the statement is clear. We now suppose that it is true for $k$ trains and for every $n$, and add a $(k+1)$ th train behind the others at Signal 1. There are two cases to consider: (i) $t_{k+1} \geq m_{k}$, i.e., $m_{k+1}=t_{k+1}$. Then Train $k+1$ leaves Signal 1 when all the others reach Signal 2, which by the induction happens at time $s_{k}$. Since by the induction hypothesis Train $k$ arrives at Signal $i+1$ at time $s_{k}+(i-1) m_{k} \leq s_{k}+(i-1) t_{k+1}$, Train $k+1$ is never forced to stop. The journey finishes at time $s_{k}+(n-1) t_{k+1}=s_{k+1}+(n-2) m_{k+1}$. (ii) $t_{k+1}0$ and prime number $p, p^{k}$ doesn't divide $k!$. This follows from the fact that the highest exponent $r$ of $p$ for which $p^{r} \mid k$ ! is $$ r=\left[\frac{k}{p}\right]+\left[\frac{k}{p^{2}}\right]+\cdots<\frac{k}{p}+\frac{k}{p^{2}}+\cdots=\frac{k}{p-1}0$, we can write $k=2^{l} k^{\prime}, k^{\prime}$ being odd and $l$ a nonnegative integer. Let us set $v(k)=l$, and define $\beta_{n}=v\left(b_{n}\right), \gamma_{n}=v\left(c_{n}\right)$. We prove the following lemmas: Lemma 1. For every integer $p \geq 0, b_{2^{p}}$ and $c_{2^{p}}$ are nonzero, and $\beta_{2^{p}}=$ $\gamma_{2^{p}}=p+2$. Proof. By induction on $p$. For $p=0, b_{1}=4$ and $c_{1}=-4$, so the assertion is true. Suppose that it holds for $p$. Then $$ (1+4 \sqrt[3]{2}-4 \sqrt[3]{4})^{2^{p+1}}=\left(a+2^{p+2}\left(b^{\prime} \sqrt[3]{2}+c^{\prime} \sqrt[3]{4}\right)\right)^{2} \text { with } a, b^{\prime}, \text { and } c^{\prime} \text { odd. } $$ Then we easily obtain that $(1+4 \sqrt[3]{2}-4 \sqrt[3]{4})^{2^{p+1}}=A+2^{p+3}(B \sqrt[3]{2}+$ $C \sqrt[3]{4}$ ), where $A, B=a b^{\prime}+2^{p+1} E, C=a c^{\prime}+2^{p+1} F$ are odd. Therefore Lemma 1 holds for $p+1$. Lemma 2. Suppose that for integers $n, m \geq 0, \beta_{n}=\gamma_{n}=\lambda>\beta_{m}=$ $\gamma_{m}=\mu$. Then $b_{n+m}, c_{n+m}$ are nonzero and $\beta_{n+m}=\gamma_{n+m}=\mu$. Proof. Calculating $\left(a^{\prime}+2^{\lambda}\left(b^{\prime} \sqrt[3]{2}+c^{\prime} \sqrt[3]{4}\right)\right)\left(a^{\prime \prime}+2^{\mu}\left(b^{\prime \prime} \sqrt[3]{2}+c^{\prime \prime} \sqrt[3]{4}\right)\right)$, with $a^{\prime}, b^{\prime}, c^{\prime}, a^{\prime \prime}, b^{\prime \prime}, c^{\prime \prime}$ odd, we easily obtain the product $A+2^{\mu}(B \sqrt[3]{2}+$ $C \sqrt[3]{4})$, where $A, B=a^{\prime} b^{\prime \prime}+2^{\lambda-\mu} E$, and $C=a^{\prime} c^{\prime \prime}+2^{\lambda-\mu} F$ are odd, which proves Lemma 2. Since every integer $n>0$ can be written as $n=2^{p_{r}}+\cdots+2^{p_{1}}$, with $0 \leq p_{1}<\cdots1, S$ can be split into $d$ identical blocks. Let $x_{n}$ be the number of nonrepeating binary sequences of length $n$. The total number of binary sequences of length $n$ is obviously $2^{n}$. Any sequence of length $n$ can be produced by repeating its unique longest nonrepeating initial block according to need. Hence, we obtain the recursion relation $\sum_{d \mid n} x_{d}=2^{n}$. This, along with $x_{1}=2$, gives us $a_{n}=x_{n}$ for all $n$. We now have that the sequences counted by $x_{n}$ can be grouped into groups of $n$, the sequences in the same group being cyclic shifts of each other. Hence, $n \mid x_{n}=a_{n}$. 12. Assume that each car starts with a unique ranking number. Suppose that while turning back at a meeting point two cars always exchanged their ranking numbers. We can observe that ranking numbers move at a constant speed and direction. One hour later, after several exchanges, each starting point will be occupied by a car of the same ranking number and proceeding in the same direction as the one that started from there one hour ago. We now give the cars back their original ranking numbers. Since the sequence of the cars along the track cannot be changed, the only possibility is that the original situation has been rotated, maybe onto itself. Hence for some $d \mid n$, after $d$ hours each car will be at its starting position and orientation. 13. Let us construct the circles $\sigma_{1}$ with center $A$ and radius $R_{1}=A D, \sigma_{2}$ with center $B$ and radius $R_{2}=B C$, and $\sigma_{3}$ with center $P$ and radius $x$. The points $C$ and $D$ lie on $\sigma_{2}$ and $\sigma_{1}$ respectively, and $C D$ is tangent to $\sigma_{3}$. From this it is plain that the greatest value of $x$ occurs when $C D$ is also tangent to $\sigma_{1}$ and $\sigma_{2}$. We shall show that in this case the required inequality is really an equality, i.e., that $\frac{1}{\sqrt{x}}=\frac{1}{\sqrt{A D}}+\frac{1}{\sqrt{B C}}$. Then the inequality will immediately follow. Denote the point of tangency of $C D$ with $\sigma_{3}$ by $M$. By the Pythagorean theorem we have $C D=\sqrt{\left(R_{1}+R_{2}\right)^{2}-\left(R_{1}-R_{2}\right)^{2}}=2 \sqrt{R_{1} R_{2}}$. On the other hand, $C D=C M+M D=2 \sqrt{R_{2} x}+2 \sqrt{R_{1} x}$. Hence, we obtain $\frac{1}{\sqrt{x}}=\frac{1}{\sqrt{R_{1}}}+\frac{1}{\sqrt{R_{2}}}$. 14. Lemma 1. In a quadrilateral $A B C D$ circumscribed about a circle, with points of tangency $P, Q, R, S$ on $D A, A B, B C, C D$ respectively, the lines $A C, B D, P R, Q S$ concur. Proof. Follows immediately, for example, from Brianchon's theorem. Lemma 2. Let a variable chord $X Y$ of a circle $C(I, r)$ subtend a right angle at a fixed point $Z$ within the circle. Then the locus of the midpoint $P$ of $X Y$ is a circle whose center is at the midpoint $M$ of $I Z$ and whose radius is $\sqrt{r^{2} / 2-I Z^{2} / 4}$. Proof. From $\angle X Z Y=90^{\circ}$ follows $\overrightarrow{Z X} \cdot \overrightarrow{Z Y}=(\overrightarrow{I X}-\overrightarrow{I Z}) \cdot(\overrightarrow{I Y}-\overrightarrow{I Z})=0$. Therefore, $$ \begin{aligned} \overrightarrow{M P}^{2} & =(\overrightarrow{M I}+\overrightarrow{I P})^{2}=\frac{1}{4}(-\overrightarrow{I Z}+\overrightarrow{I X}+\overrightarrow{I Y})^{2} \\ & =\frac{1}{4}\left(I X^{2}+I Y^{2}-I Z^{2}+2(\overrightarrow{I X}-\overrightarrow{I Z}) \cdot(\overrightarrow{I Y}-\overrightarrow{I Z})\right) \\ & =\frac{1}{2} r^{2}-\frac{1}{4} I Z^{2} \end{aligned} $$ Lemma 3. Using notation as in Lemma 1, if $A B C D$ is cyclic, $P R$ is perpendicular to $Q S$. Proof. Consider the inversion in $C(I, r)$, mapping $A$ to $A^{\prime}$ etc. $(P, Q, R, S$ are fixed). As is easily seen, $A^{\prime}, B^{\prime}, C^{\prime}, D^{\prime}$ will lie at the midpoints of $P Q, Q R, R S, S P$, respectively. $A^{\prime} B^{\prime} C^{\prime} D^{\prime}$ is a parallelogram, but also cyclic, since inversion preserves circles; thus it must be a rectangle, and so $P R \perp Q S$. Now we return to the main result. Let $I$ and $O$ be the incenter and circumcenter, $Z$ the intersection of the diagonals, and $P, Q, R, S, A^{\prime}, B^{\prime}, C^{\prime}, D^{\prime}$ points as defined in Lemmas 1 and 3. From Lemma 3, the chords $P Q, Q R, R S, S P$ subtend $90^{\circ}$ at $Z$. Therefore by Lemma 2 the points $A^{\prime}, B^{\prime}, C^{\prime}, D^{\prime}$ lie on a circle whose center is the midpoint $Y$ of $I Z$. Since this circle is the image of the circle $A B C D$ under the considered inversion (centered at $I$ ), it follows that $I, O, Y$ are collinear, and hence so are $I, O, Z$. Remark. This is the famous Newton's theorem for bicentric quadrilaterals. 15. By Cauchy's inequality, $44<\sqrt{1989}a^{2}+b^{2}+c^{2}=$ $1989-d^{2}$, and so $d^{2}-49 d+206>0$. This inequality does not hold for $5 \leq d \leq 44$. Since $d \geq \sqrt{1989 / 4}>22$, $d$ must be at least 45 , which is impossible because $45^{2}>1989$. Thus we must have $m^{2}=81$ and $m=9$. Now, $4 d>81$ implies $d \geq 21$. On the other hand, $d<\sqrt{1989}$, and hence $d=25$ or $d=36$. Suppose that $d=25$ and put $a=25-p, b=25-q$, $c=25-r$ with $p, q, r \geq 0$. From $a+b+c=56$ it follows that $p+q+r=19$, which, together with $(25-p)^{2}+(25-q)^{2}+(25-r)^{2}=1364$, gives us $p^{2}+q^{2}+r^{2}=439>361=(p+q+r)^{2}$, a contradiction. Therefore $d=36$ and $n=6$. Remark. A little more calculation yields the unique solution $a=12$, $b=15, c=18, d=36$. 16. Define $S_{k}=\sum_{i=0}^{k} a_{i}(k=0,1, \ldots, n)$ and $S_{-1}=0$. We note that $S_{n-1}=$ $S_{n}$. Hence $$ \begin{aligned} S_{n} & =\sum_{k=0}^{n-1} a_{k}=n c+\sum_{k=0}^{n-1} \sum_{i=k}^{n-1} a_{i-k}\left(a_{i}+a_{i+1}\right) \\ & =n c+\sum_{i=0}^{n-1} \sum_{k=0}^{i} a_{i-k}\left(a_{i}+a_{i+1}\right)=n c+\sum_{i=0}^{n-1}\left(a_{i}+a_{i+1}\right) \sum_{k=0}^{i} a_{i-k} \\ & =n c+\sum_{i=0}^{n-1}\left(S_{i+1}-S_{i-1}\right) S_{i}=n c+S_{n}^{2} \end{aligned} $$ i.e., $S_{n}^{2}-S_{n}+n c=0$. Since $S_{n}$ is real, the discriminant of the quadratic equation must be positive, and hence $c \leq \frac{1}{4 n}$. 17. A figure consisting of 9 lines is shown below. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-531.jpg?height=237&width=318&top_left_y=1210&top_left_x=627) Now we show that 8 lines are not sufficient. Assume the opposite. By the pigeonhole principle, there is a vertex, say $A$, that is joined to at most 2 other vertices. Let $B, C, D, E$ denote the vertices to which $A$ is not joined, and $F, G$ the other two vertices. Then any two vertices of $B, C, D, E$ must be mutually joined for an edge to exist within the triangle these two points form with A. This accounts for 6 segments. Since only two segments remain, among $A, F$, and $G$ at least two are not joined. Taking these two and one of $B, C, D, E$ that is not joined to any of them (it obviously exists), we get a triple of points, no two of which are joined; a contradiction. Second solution. Since (a) is equivalent to the fact that no three points make a "blank triangle," by Turan's theorem the number of "blank edges" cannot exceed $\left[7^{2} / 4\right]=12$, leaving at least $7 \cdot 6 / 2-12=9$ segments. For general $n$, the answer is $[(n-1) / 2]^{2}$. 18. Consider the triangle $M A_{i} M_{i}$. Obviously, the point $M_{i}$ is the image of $A_{i}$ under the composition $C$ of rotation $R_{M}^{\alpha / 2-90^{\circ}}$ and homothety $H_{M}^{2 \sin (\alpha / 2)}$. Therefore, the polygon $M_{1} M_{2} \ldots M_{n}$ is obtained as the image of $A_{1} A_{2} \ldots A_{n}$ under the rotational homothety $C$ with coefficient $2 \sin (\alpha / 2)$. Therefore $S_{M_{1} M_{2} \ldots M_{n}}=4 \sin ^{2}(\alpha / 2) \cdot S$. 19. Let us color the board in a chessboard fashion. Denote by $S_{b}$ and $S_{w}$ respectively the sum of numbers in the black and in the white squares. It is clear that every allowed move leaves the difference $S_{b}-S_{w}$ unchanged. Therefore a necessary condition for annulling all the numbers is $S_{b}=S_{w}$. We now show it is sufficient. Assuming $S_{b}=S_{w}$ let us observe a triple of (different) cells $a, b, c$ with respective values $x_{a}, x_{b}, x_{c}$ where $a$ and $c$ are both adjacent to $b$. We first prove that we can reduce $x_{a}$ to be 0 if $x_{a}>0$. If $x_{a} \leq x_{b}$, we subtract $x_{a}$ from both $a$ and $b$. If $x_{a}>x_{b}$, we add $x_{a}-x_{b}$ to $b$ and $c$ and proceed as in the previous case. Applying the reduction in sequence, along the entire board, we reduce all cells except two neighboring cells to be 0 . Since $S_{b}=S_{w}$ is invariant, the two cells must have equal values and we can thus reduce them both to 0 . 20. Suppose $k \geq 1 / 2+\sqrt{2 n}$. Consider a point $P$ in $S$. There are at least $k$ points in $S$ having all the same distance to $P$, so there are at least $\binom{k}{2}$ pairs of points $A, B$ with $A P=B P$. Since this is true for every point $P \in S$, there are at least $n\binom{k}{2}$ triples of points $(A, B, P)$ for which $A P=B P$ holds. However, $$ \begin{aligned} n\binom{k}{2} & =n \frac{k(k-1)}{2} \geq \frac{n}{2}\left(\sqrt{2 n}+\frac{1}{2}\right)\left(\sqrt{2 n}-\frac{1}{2}\right) \\ & =\frac{n}{2}\left(2 n-\frac{1}{4}\right)>n(n-1)=2\binom{n}{2} \end{aligned} $$ Since $\binom{n}{2}$ is the number of all possible pairs $(A, B)$ with $A, B \in S$, there must exist a pair of points $A, B$ with more than two points $P_{i}$ such that $A P_{i}=B P_{i}$. These points $P_{i}$ are collinear (they lie on the perpendicular bisector of $A B$ ), contradicting condition (1). 21. In order to obtain a triangle as the intersection we must have three points $P, Q, R$ on three sides of the tetrahedron passing through one vertex, say $T$. It is clear that we may suppose w.l.o.g. that $P$ is a vertex, and $Q$ and $R$ lie on the edges $T P_{1}$ and $T P_{2}\left(P_{1}, P_{2}\right.$ are vertices) or on their extensions respectively. Suppose that $\overrightarrow{T Q}=\lambda \overrightarrow{T P_{1}}$ and $\overrightarrow{T R}=\mu \overrightarrow{T P_{2}}$, where $\lambda, \mu>0$. Then $$ \cos \angle Q P R=\frac{\overrightarrow{P Q} \cdot \overrightarrow{P R}}{\overline{P Q} \cdot \overline{P R}}=\frac{(\lambda-1)(\mu-1)+1}{2 \sqrt{\lambda^{2}-\lambda+1} \sqrt{\mu^{2}-\mu+1}} $$ In order to obtain an obtuse angle (with $\cos <0$ ) we must choose $\mu<1$ and $\lambda>\frac{2-\mu}{1-\mu}>1$. Since $\sqrt{\lambda^{2}-\lambda+1}>\lambda-1$ and $\sqrt{\mu^{2}-\mu+1}>1-\mu$, we get that for $(\lambda-1)(\mu-1)+1<0$, $$ \cos \angle Q P R>\frac{1-(1-\mu)(\lambda-1)}{2(1-\mu)(\lambda-1)}>-\frac{1}{2} ; \quad \text { hence } \angle Q P R<120^{\circ} $$ Remark. After obtaining the formula for $\cos \angle Q P R$, the official solution was as follows: For fixed $\mu_{0}<1$ and $\lambda>1, \cos \angle Q P R$ is a decreasing function of $\lambda$ : indeed, $$ \frac{\partial \cos \angle Q P R}{\partial \lambda}=\frac{\mu-(3-\mu) \lambda}{4\left(\lambda^{2}-\lambda+1\right)^{3 / 2}\left(\mu^{2}-\mu+1\right)^{1 / 2}}<0 $$ Similarly, for a fixed, sufficiently large $\lambda_{0}, \cos \angle Q P R$ is decreasing for $\mu$ decreasing to 0 . Since $\lim _{\lambda \rightarrow 0, \mu \rightarrow 0+} \cos \angle Q P R=-1 / 2$, we conclude that $\angle Q P R<120^{\circ}$. 22. The statement remains valid if 17 is replaced by any divisor $k$ of $1989=3^{2}$. $13 \cdot 17,12$, is the twin of $x_{1}$, then $$ f\left(x_{1}, x_{2}, \ldots, x_{2 n}\right)=\left(x_{2}, \ldots, x_{k-1}, x_{1}, x_{k}, \ldots, x_{2 n}\right) $$ The mapping $f$ is injective, but not surjective. Thus $F_{0}(n)0$ (because $a, b<0$ is impossible, and $a, b \neq 0$ from the condition of the problem). Let $\left(x_{0}, y_{0}, z_{0}, w_{0}\right) \neq$ $(0,0,0,0)$ be a solution of $x^{2}-a y^{2}-b z^{2}+a b w^{2}$. Then $$ x_{0}^{2}-a y_{0}^{2}=b\left(z_{0}^{2}-a w_{0}^{2}\right) $$ Multiplying both sides by $\left(z_{0}^{2}-a w_{0}^{2}\right)$, we get $$ \begin{gathered} \left(x_{0}^{2}-a y_{0}^{2}\right)\left(z_{0}^{2}-a w_{0}^{2}\right)-b\left(z_{0}^{2}-a w_{0}^{2}\right)^{2}=0 \\ \Leftrightarrow\left(x_{0} z_{0}-a y_{0} w_{0}\right)^{2}-a\left(y_{0} z_{0}-x_{0} w_{0}\right)^{2}-b\left(z_{0}^{2}-a w_{0}^{2}\right)^{2}=0 . \end{gathered} $$ Hence, for $x_{1}=x_{0} z_{0}-a y_{0} w_{0}, \quad y_{1}=y_{0} z_{0}-x_{0} w_{0}, \quad z_{1}=z_{0}^{2}-a w_{0}^{2}$, we have $$ x_{1}^{2}-a y_{1}^{2}-b z_{1}^{2}=0 . $$ If $\left(x_{1}, y_{1}, z_{1}\right)$ is the trivial solution, then $z_{1}=0$ implies $z_{0}=w_{0}=0$ and similarly $x_{0}=y_{0}=0$ because $a$ is not a perfect square. This contradicts the initial assumption. 26. By the Cauchy-Schwarz inequality, $$ \left(\sum_{i=1}^{n} x_{i}\right)^{2} \leq n \sum_{i=1}^{n} x_{i}^{2} $$ Since $\sum_{i=1}^{n} x_{i}=a-x_{0}$ and $\sum_{i=1}^{n} x_{i}^{2}=b-x_{0}^{2}$, we have $\left(a-x_{0}\right)^{2} \leq$ $n\left(b-x_{0}^{2}\right)$, i.e., $$ (n+1) x_{0}^{2}-2 a x_{0}+\left(a^{2}-n b\right) \leq 0 . $$ The discriminant of this quadratic is $D=4 n(n+1)\left[b-a^{2} /(n+1)\right]$, so we conclude that (i) if $a^{2}>(n+1) b$, then such an $x_{0}$ does not exist; (ii) if $a^{2}=(n+1) b$, then $x_{0}=a / n+1 ; \quad$ and (iii) if $a^{2}<(n+1) b$, then $\frac{a-\sqrt{D} / 2}{n+1} \leq x_{0} \leq \frac{a+\sqrt{D} / 2}{n+1}$. It is easy to see that these conditions for $x_{0}$ are also sufficient. 27. Let $n$ be the required exponent, and suppose $n=2^{k} q$, where $q$ is an odd integer. Then we have $$ m^{n}-1=\left(m^{2^{k}}-1\right)\left[\left(m^{2^{k}(q-1)}+\cdots+m^{2^{k}}+1\right]=\left(m^{2^{k}}-1\right) A\right. $$ where $A$ is odd. Therefore $m^{n}-1$ and $m^{2^{k}}-1$ are divisible by the same power of 2 , and so $n=2^{k}$. Next, we observe that $$ \begin{aligned} m^{2^{k}}-1 & =\left(m^{2^{k-1}}-1\right)\left(m^{2^{k-1}}+1\right)=\ldots \\ & =\left(m^{2}-1\right)\left(m^{2}+1\right)\left(m^{4}+1\right) \cdots\left(m^{2^{k-1}}+1\right) \end{aligned} $$ Let $s$ be the maximal positive integer for which $m \equiv \pm 1\left(\bmod 2^{s}\right)$. Then $m^{2}-1$ is divisible by $2^{s+1}$ and not divisible by $2^{s+2}$. All the numbers $m^{2}+1, m^{4}+1, \ldots, m^{2^{k-1}}+1$ are divisible by 2 and not by 4 . Hence $m^{2^{k}}-1$ is divisible by $2^{s+k}$ and not by $2^{s+k+1}$. It follows from the above consideration that the smallest exponent $n$ equals $2^{1989-s}$ if $s \leq 1989$, and $n=1$ if $s>1989$. 28. Assume w.l.o.g. that the rays $O A_{1}, O A_{2}, O A_{3}, O A_{4}$ are arranged clockwise. Setting $O A_{1}=a, O A_{2}=b, O A_{3}=c, O A_{4}=d$, and $\angle A_{1} O A_{2}=x$, $\angle A_{2} O A_{3}=y, \angle A_{3} O A_{4}=z$, we have $$ \begin{aligned} & S_{1}=\sigma\left(O A_{1} A_{2}\right)=\frac{1}{2} a b|\sin x|, S_{2}=\sigma\left(O A_{1} A_{3}\right)=\frac{1}{2} a c|\sin (x+y)|, \\ & S_{3}=\sigma\left(O A_{1} A_{4}\right)=\frac{1}{2} a d|\sin (x+y+z)|, S_{4}=\sigma\left(O A_{2} A_{3}\right)=\frac{1}{2} b c|\sin y|, \\ & S_{5}=\sigma\left(O A_{2} A_{4}\right)=\frac{1}{2} b d|\sin (y+z)|, S_{6}=\sigma\left(O A_{3} A_{4}\right)=\frac{1}{2} c d|\sin z| . \end{aligned} $$ Since $\sin (x+y+z) \sin y+\sin x \sin z=\sin (x+y) \sin (y+z)$, it follows that there exists a choice of $k, l \in\{0,1\}$ such that $$ S_{1} S_{6}+(-1)^{k} S_{2} S_{5}+(-1)^{l} S_{3} S_{4}=0 $$ For example (w.l.o.g.), if $S_{3} S_{4}=S_{1} S_{6}+S_{2} S_{5}$, we have $$ \left(\max _{1 \leq i \leq 6} S_{i}\right)^{2} \geq S_{3} S_{4}=S_{1} S_{6}+S_{2} S_{5} \geq 1+1=2 $$ i.e., $\max _{1 \leq i \leq 6} S_{i} \geq \sqrt{2}$ as claimed. 29. Let $P_{i}$, sitting at the place $A$, and $P_{j}$ sitting at $B$, be two birds that can see each other. Let $k$ and $l$ respectively be the number of birds visible from $B$ but not from $A$, and the number of those visible from $A$ but not from $B$. Assume that $k \geq l$. Then if all birds from $B$ fly to $A$, each of them will see $l$ new birds, but won't see $k$ birds anymore. Hence the total number of mutually visible pairs does not increase, while the number of distinct positions occupied by at least one bird decreases by one. Repeating this operation as many times as possible one can arrive at a situation in which two birds see each other if and only if they are in the same position. The number of such distinct positions is at most 35 , while the total number of mutually visible pairs is not greater than at the beginning. Thus the problem is equivalent to the following one: (1) If $x_{i} \geq 0$ are integers with $\sum_{j=1}^{35} x_{j}=155$, find the least possible value of $\sum_{j=1}^{35}\left(x_{j}^{2}-x_{j}\right) / 2$. If $x_{j} \geq x_{i}+2$ for some $i, j$, then the sum of $\left(x_{j}^{2}-x_{j}\right) / 2$ decreases (for $x_{j}-x_{i}-2$ ) if $x_{i}, x_{j}$ are replaced with $x_{i}+1, x_{j}-1$. Consequently, our sum attains its minimum when the $x_{i}$ 's differ from each other by at most 1 . In this case, all the $x_{i}$ 's are equal to either $[155 / 35]=4$ or $[155 / 35]+1=5$, where $155=20 \cdot 4+15 \cdot 5$. It follows that the (minimum possible) number of mutually visible pairs is $20 \cdot \frac{4 \cdot 3}{2}+15 \cdot \frac{5 \cdot 4}{2}=270$. Second solution for (1). Considering the graph consisting of birds as vertices and pairs of mutually nonvisible birds as edges, we see that there is no complete 36 -subgraph. Turan's theorem gives the answer immediately. (See problem (SL89-17).) 30. For all $n$ such $N$ exists. For a given $n$ choose $N=(n+1)!^{2}+1$. Then $1+j$ is a proper factor of $N+j$ for $1 \leq j \leq n$. So if $N+j=p^{m}$ is a power of a prime $p$, then $1+j=p^{r}$ for some integer $r, 1 \leq r90^{\circ}$. 6. Let $W$ denote the set of all $n_{0}$ for which player $A$ has a winning strategy, $L$ the set of all $n_{0}$ for which player $B$ has a winning strategy, and $T$ the set of all $n_{0}$ for which a tie is ensured. Lemma. Assume $\{m, m+1, \ldots 1990\} \subseteq W$ and that there exists $s \leq 1990$ such that $s / p^{r} \geq m$, where $p^{r}$ is the largest degree of a prime that divides $s$. Then all integers $x$ such that $\sqrt{s} \leq x1990$, it follows that for $n_{0} \in\{45, \ldots, 1990\}$ player $A$ can choose 1990 in the first move. Hence $\{45, \ldots, 1990\} \subseteq W$. Using $m=45$ and selecting $s=420=2^{2} \cdot 3 \cdot 5 \cdot 7$ we apply the lemma to get that all integers $x$ such that $\sqrt{420}<21 \leq x \leq 1990$ are in $W$. Again, using $m=21$ and selecting $s=168=2^{3} \cdot 3 \cdot 7$ we apply the lemma to get that all integers $x$ such that $\sqrt{168}<13 \leq x \leq 1990$ are in $W$. Selecting $s=105$ we obtain the new value for $m$ at $m=11$. Selecting $s=60$ we obtain $m=8$. Thus $\{8, \ldots, 1990\} \subseteq W$. For $n_{0}>1990$ there exists $r \in N$ such that $2^{r} \cdot 3^{2}1$, the final solution is $L=\{2,3,4,5\}, T=\{6,7\}$, and $W=\{x \in \mathbb{N} \mid x \geq 8\}$. 7. Let $f(n)=g(n) 2^{n^{2}}$ for all $n$. The recursion then transforms into $g(n+$ 2) $-2 g(n+1)+g(n)=n \cdot 16^{-n-1}$ for $n \in \mathbb{N}_{0}$. By summing this equation from 0 to $n-1$, we get $$ g(n+1)-g(n)=\frac{1}{15^{2}} \cdot\left(1-(15 n+1) 16^{-n}\right) $$ By summing up again from 0 to $n-1$ we get $g(n)=\frac{1}{15^{3}} \cdot(15 n-32+$ $\left.(15 n+2) 16^{-n+1}\right)$. Hence $$ f(n)=\frac{1}{15^{3}} \cdot\left(15 n+2+(15 n-32) 16^{n-1}\right) \cdot 2^{(n-2)^{2}} $$ Now let us look at the values of $f(n)$ modulo 13: $$ f(n) \equiv 15 n+2+(15 n-32) 16^{n-1} \equiv 2 n+2+(2 n-6) 3^{n-1} $$ We have $3^{3} \equiv 1(\bmod 13)$. Plugging in $n \equiv 1(\bmod 13)$ and $n \equiv 1(\bmod$ 3 ) for $n=1990$ gives us $f(1990) \equiv 0(\bmod 13)$. We similarly calculate $f(1989) \equiv 0$ and $f(1991) \equiv 0(\bmod 13)$. 8. Since $2^{1990}<8^{700}<10^{700}$, we have $f_{1}\left(2^{1990}\right)<(9 \cdot 700)^{2}<4 \cdot 10^{7}$. We then have $f_{2}\left(2^{1990}\right)<(3+9 \cdot 7)^{2}<4900$ and finally $f_{3}\left(2^{1990}\right)<(3+9 \cdot 3)^{2}=30^{2}$. It is easily shown that $f_{k}(n) \equiv f_{k-1}(n)^{2}(\bmod 9)$. Since $2^{6} \equiv 1(\bmod 9)$, we have $2^{1990} \equiv 2^{4} \equiv 7$ (all congruences in this problem will be $\bmod 9$ ). It follows that $f_{1}\left(2^{1990}\right) \equiv 7^{2} \equiv 4$ and $f_{2}\left(2^{1990}\right) \equiv 4^{2} \equiv 7$. Indeed, it follows that $f_{2 k}\left(2^{1990}\right) \equiv 7$ and $f_{2 k+1}\left(2^{1990}\right) \equiv 4$ for all integer $k>0$. Thus $f_{3}\left(2^{1990}\right)=r^{2}$ where $r<30$ is an integer and $r \equiv f_{2}\left(2^{1990}\right) \equiv 7$. It follows that $r \in\{7,16,25\}$ and hence $f_{3}\left(2^{1990}\right) \in\{49,256,625\}$. It follows that $f_{4}\left(2^{1990}\right)=169, f_{5}\left(2^{1990}\right)=256$, and inductively $f_{2 k}\left(2^{1990}\right)=169$ and $f_{2 k+1}\left(2^{1990}\right)=256$ for all integer $k>1$. Hence $f_{1991}\left(2^{1990}\right)=256$. 9. Let $a, b, c$ be the lengths of the sides of $\triangle A B C, s=\frac{a+b+c}{2}, r$ the inradius of the triangle, and $c_{1}$ and $b_{1}$ the lengths of $A B_{2}$ and $A C_{2}$ respectively. As usual we will denote by $S(X Y Z)$ the area of $\triangle X Y Z$. We have $$ \begin{gathered} S\left(A C_{1} B_{2}\right)=\frac{A C_{1} \cdot A B_{2}}{A C \cdot A B} S(A B C)=\frac{c_{1} r s}{2 b} \\ S\left(A K B_{2}\right)=\frac{c_{1} r}{2}, \quad S\left(A C_{1} K\right)=\frac{c r}{4} \end{gathered} $$ From $S\left(A C_{1} B_{2}\right)=S\left(A K B_{2}\right)+S\left(A C_{1} K\right)$ we get $\frac{c_{1} r s}{2 b}=\frac{c_{1} r}{2}+\frac{c r}{4}$; therefore $(a-b+c) c_{1}=b c$. By looking at the area of $\triangle A B_{1} C_{2}$ we similarly obtain $(a+b-c) b_{1}=b c$. From these two equations and from $S(A B C)=S\left(A B_{2} C_{2}\right)$, from which we have $b_{1} c_{1}=b c$, we obtain $$ a^{2}-(b-c)^{2}=b c \Rightarrow \frac{b^{2}+c^{2}-a^{2}}{2 b c}=\cos (\angle B A C)=\frac{1}{2} \Rightarrow \angle B A C=60^{\circ} $$ 10. Let $r$ be the radius of the base and $h$ the height of the cone. We may assume w.l.o.g. that $r=1$. Let $A$ be the top of the cone, $B C$ the diameter of the circumference of the base such that the plane touches the circumference at $B, O$ the center of the base, and $H$ the midpoint of $O A$ (also belonging to the plane). Let $B H$ cut the sheet of the cone at $D$. By applying Menelaus's theorem to $\triangle A O C$ and $\triangle B H O$, we conclude that $\frac{A D}{D C}=\frac{C B}{B O} \cdot \frac{O H}{H A}=\frac{1}{2}$ and $\frac{H D}{D B}=\frac{H A}{A O} \cdot \frac{O C}{C B}=\frac{1}{4}$. The plane cuts the cone in an ellipse whose major axis is $B D$. Let $E$ be the center of this ellipse and $F G$ its minor axis. We have $\frac{B E}{E D}=\frac{1}{2}$. Let $E^{\prime}, F^{\prime}, G^{\prime}$ be radial projections of $E, F, G$ from $A$ onto the base of the cone. Then $E$ sits on $B C$. Let $h(X)$ denote the height of a point $X$ with respect to the base of the cone. We have $h(E)=h(D) / 2=h / 3$. Hence $E F=2 E^{\prime} F^{\prime} / 3$. Applying Menelaus's theorem to $\triangle B H O$ we get $\frac{O E^{\prime}}{E^{\prime} B}=\frac{B E}{E H} \cdot \frac{H A}{A O}=1$. Hence $E F=\frac{2}{3} \frac{\sqrt{3}}{2}=\frac{1}{\sqrt{3}}$. Let $d$ denote the distance from $A$ to the plane. Let $V_{1}$ and $V$ denote the volume of the cone above the plane (on the same side of the plane as $A$ ) and the total volume of the cone. We have $$ \begin{aligned} \frac{V_{1}}{V} & =\frac{B E \cdot E F \cdot d}{h}=\frac{(2 B H / 3)(1 / \sqrt{3})\left(2 S_{A H B} / B H\right)}{h} \\ & =\frac{(2 / 3)(1 / \sqrt{3})(h / 2)}{h}=\frac{1}{3 \sqrt{3}} . \end{aligned} $$ Since this ratio is smaller than $1 / 2$, we have indeed selected the correct volume for our ratio. 11. Assume $\mathcal{B}(A, E, M, B)$. Since $A, B, C, D$ lie on a circle, we have $\angle G C E=$ $\angle M B D$ and $\angle M A D=\angle F C E$. Since $F D$ is tangent to the circle around $\triangle E M D$ at $E$, we have $\angle M D E=\angle F E B=\angle A E G$. Consequently, $\angle C E F=180^{\circ}-\angle C E A-\angle F E B=180^{\circ}-\angle M E D-\angle M D E=\angle E M D$ and $\angle C E G=180^{\circ}-\angle C E F=180^{\circ}-\angle E M D=\angle D M B$. It follows that $\triangle C E F \sim \triangle A M D$ and $\triangle C E G \sim$ $\triangle B M D$. From the first similarity we obtain $C E \cdot M D=A M \cdot E F$, and from the second we obtain $C E$. $M D=B M \cdot E G$. Hence $$ \begin{gathered} A M \cdot E F=B M \cdot E G \Longrightarrow \\ \frac{G E}{E F}=\frac{A M}{B M}=\frac{\lambda}{1-\lambda} . \end{gathered} $$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-543.jpg?height=371&width=353&top_left_y=1023&top_left_x=894) If $\mathcal{B}(A, M, E, B)$, interchanging the roles of $A$ and $B$ we similarly obtain $\frac{G E}{E F}=\frac{\lambda}{1-\lambda}$. 12. Let $d(X, l)$ denote the distance of a point $X$ from a line $l$. Using the elementary facts that $A F: F C=c: a$ and $B D: D C=c: b$, we obtain $d(F, L)=\frac{a}{a+c} h_{c}$ and $d(D, L)=\frac{b}{b+c} h_{c}$, where $h_{a}$ is the altitude of $\triangle A B C$ from $A$. We also have $\angle F G C=\beta / 2, \angle D E C=\alpha / 2$. It follows that $$ D E=\frac{d(D, L)}{\sin (\alpha / 2)} \quad \text { and } \quad F G=\frac{d(F, L)}{\sin (\beta / 2)} $$ Now suppose that $a>b$. Since the function $f(x)=\frac{x}{x+c}$ is strictly increasing, we deduce $d(F, L)>d(D, L)$. Furthermore, $\sin (\alpha / 2)>\sin (\beta / 2)$, so we get from (1) that $F G>D E$. Similarly, $a1$, the scientist can climb only onto the rungs divisible by $k$ and we can just observe these rungs to obtain the situation equivalent to $a^{\prime}=a / k, b^{\prime}=b / k$, and $n^{\prime}=a^{\prime}+b^{\prime}-1$. Thus let us assume that $(a, b)=1$ and show that $n=a+b-1$. We obviously have $n>a$. Consider $n=a+b-k, k \geq 1$, and let us assume without loss of generality that $a>b$ (otherwise, we can reverse the problem starting from the top rung in our round trip). Then we can uniquely define the numbers $r_{i}, 0 \leq r_{i}b-1$ we can move only $b$ rungs downward. If we end up at $b-k

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 i0$ we have $g\left(x_{i}+x_{j}\right)+g(0) \geq$ $g\left(x_{i}\right)+g\left(x_{j}\right)$. Equality holds only when $x_{i}+x_{j}=2 / 3$. Assuming without loss of generality $x_{1} \geq x_{2} \geq x_{3} \geq x_{4}$, we have $g\left(x_{1}\right)+$ $g\left(x_{2}\right)+g\left(x_{3}\right)+g\left(x_{4}\right)k$ and hence there exist two numbers $x, y \in S(n)$ such that $k \mid x-y$. Let us show that $w=|x-y|$ is the desired number. By definition $k \mid w$. We also have $$ w<1.2 \cdot 10^{n-1} \leq 1.2 \cdot\left(2^{3} \sqrt{2}\right)^{n-1} \leq 1.2 \cdot k^{3} \sqrt{k} \leq k^{4} $$ Finally, since $x, y \in S(n)$, it follows that $w=|x-y|$ can be written using only the digits $\{0,1,8,9\}$. This completes the proof. 21. We must solve the congruence $\left(1+2^{p}+2^{n-p}\right) N \equiv 1\left(\bmod 2^{n}\right)$. Since $(1+$ $2^{p}+2^{n-p}$ ) and $2^{n}$ are coprime, there clearly exists a unique $N$ satisfying this equation and $0b$ we have in binary representation $$ 2^{a}-2^{b}=\underbrace{11 \ldots 11}_{a-b \text { times }} \underbrace{00 \ldots 00}_{b \text { times }} $$ the binary representation of $N$ is calculated as follows: $$ N=\left\{\begin{array}{cc} \underbrace{11 \ldots 11}_{p \text { times }} \underbrace{11 \ldots 11}_{p \text { times }} \underbrace{00 \ldots 00}_{p \text { times }} \ldots \underbrace{11 \ldots 11}_{p \text { times }} \underbrace{00 \ldots 00}_{p-1 \text { times }} 1, & 2 \nmid \frac{n}{p} \\ \underbrace{11 \ldots 11}_{p-1 \text { times }} \underbrace{00 \ldots 00}_{p+1} \underbrace{11 \ldots 11}_{p \text { times }} \underbrace{00 \ldots 00}_{p \text { times }} \ldots \underbrace{11 \ldots 11}_{p \text { times }} \underbrace{00 \ldots 00}_{p-1 \text { times }} 1, & 2 \left\lvert\, \frac{n}{p}\right. \end{array}\right. $$ 22. We can assume without loss of generality that each connection is serviced by only one airline and the problem reduces to finding two disjoint monochromatic cycles of the same color and of odd length on a complete graph of 10 points colored by two colors. We use the following two standard lemmas: Lemma 1. Given a complete graph on six points whose edges are colored with two colors there exists a monochromatic triangle. $\operatorname{Proof}$. Let us denote the vertices by $c_{1}, c_{2}, c_{3}, c_{4}, c_{5}, c_{6}$. By the pigeonhole principle at least three vertices out of $c_{1}$, say $c_{2}, c_{3}, c_{4}$, are of the same color, let us call it red. Assuming that at least one of the edges connecting points $c_{2}, c_{3}, c_{4}$ is red, the connected points along with $c_{1}$ form a red triangle. Otherwise, edges connecting $c_{2}, c_{3}, c_{4}$ are all of the opposite color, let us call it blue, and hence in all cases we have a monochromatic triangle. Lemma 2. Given a complete graph on five points whose edges are colored two colors there exists a monochromatic triangle or a monochromatic cycle of length five. Proof. Let us denote the vertices by $c_{1}, c_{2}, c_{3}, c_{4}, c_{5}$. Assume that out of a point $c_{i}$ three vertices are of the same color. We can then proceed as in Lemma 1 to obtain a monochromatic triangle. Otherwise, each point is connected to other points with exactly two red and two blue vertices. Hence, we obtain monochromatic cycles starting from a single point and moving along the edges of the same color. Since each cycle must be of length at least three (i.e., we cannot have more than one cycle of one color), it follows that for both red and blue we must have one cycle of length five of that color. We now apply the lemmas. Let us denote the vertices by $c_{1}, c_{2}, \ldots, c_{10}$. We apply Lemma 1 to vertices $c_{1}, \ldots, c_{6}$ to obtain a monochromatic triangle. Out of the seven remaining vertices we select 6 and again apply Lemma 1 to obtain another monochromatic triangle. If they are of the same color, we are done. Otherwise, out of the nine edges connecting the two triangles of opposite color at least 5 are of the same color, we can assume blue w.l.o.g., and hence a vertex of a red triangle must contain at least two blue edges whose endpoints are connected with a blue edge. Hence there exist two triangles of different colors joined at a vertex. These take up five points. Applying Lemma 2 on the five remaining points, we obtain a monochromatic cycle of odd length that is of the same color as one of the two joined triangles and disjoint from both of them. 23. Let us assume $n>1$. Obviously $n$ is odd. Let $p \geq 3$ be the smallest prime divisor of $n$. In this case $(p-1, n)=1$. Since $2^{n}+1 \mid 2^{2 n}-1$, we have that $p \mid 2^{2 n}-1$. Thus it follows from Fermat's little theorem and elementary number theory that $p \mid\left(2^{2 n}-1,2^{p-1}-1\right)=2^{(2 n, p-1)}-1$. Since $(2 n, p-1) \leq 2$, it follows that $p \mid 3$ and hence $p=3$. Let us assume now that $n$ is of the form $n=3^{k} d$, where $2,3 \nmid d$. We first prove that $k=1$. Lemma. If $2^{m}-1$ is divisible by $3^{r}$, then $m$ is divisible by $3^{r-1}$. Proof. This is the lemma from (SL97-14) with $p=3, a=2^{2}, k=m$, $\alpha=1$, and $\beta=r$. Since $3^{2 k}$ divides $n^{2} \mid 2^{2 n}-1$, we can apply the lemma to $m=2 n$ and $r=2 k$ to conclude that $3^{2 k-1} \mid n=3^{k} d$. Hence $k=1$. Finally, let us assume $d>1$ and let $q$ be the smallest prime factor of $d$. Obviously $q$ is odd, $q \geq 5$, and $(n, q-1) \in\{1,3\}$. We then have $q \mid 2^{2 n}-1$ and $q \mid 2^{q-1}-1$. Consequently, $q \mid 2^{(2 n, q-1)}-1=2^{2(n, q-1)}-1$, which divides $2^{6}-1=63=3^{2} \cdot 7$, so we must have $q=7$. However, in that case we obtain $7|n| 2^{n}+1$, which is a contradiction, since powers of two can only be congruent to 1,2 and 4 modulo 7 . It thus follows that $d=1$ and $n=3$. Hence $n>1 \Rightarrow n=3$. It is easily verified that $n=1$ and $n=3$ are indeed solutions. Hence these are the only solutions. 24. Let us denote $A=b+c+d, B=a+c+d, C=a+b+d, D=a+b+c$. Since $a b+b c+c d+d a=1$ the numbers $A, B, C, D$ are all positive. By trivially applying the AM-GM inequality we have: $$ a^{2}+b^{2}+c^{2}+d^{2} \geq a b+b c+c d+d a=1 . $$ We will prove the inequality assuming only that $A, B, C, D$ are positive and $a^{2}+b^{2}+c^{2}+d^{2} \geq 1$. In this case we may assume without loss of generality that $a \geq b \geq c \geq d \geq 0$. Hence $a^{3} \geq b^{3} \geq c^{3} \geq d^{3} \geq 0$ and $\frac{1}{A} \geq \frac{1}{B} \geq \frac{1}{C} \geq \frac{1}{D}>0$. Using the Chebyshev and Cauchy inequalities we obtain: $$ \begin{aligned} & \frac{a^{3}}{A}+\frac{b^{3}}{B}+\frac{c^{3}}{C}+\frac{d^{3}}{D} \\ & \geq \frac{1}{4}\left(a^{3}+b^{3}+c^{3}+d^{3}\right)\left(\frac{1}{A}+\frac{1}{B}+\frac{1}{C}+\frac{1}{D}\right) \\ & \geq \frac{1}{16}\left(a^{2}+b^{2}+c^{2}+d^{2}\right)(a+b+c+d)\left(\frac{1}{A}+\frac{1}{B}+\frac{1}{C}+\frac{1}{D}\right) \\ & =\frac{1}{48}\left(a^{2}+b^{2}+c^{2}+d^{2}\right)(A+B+C+D)\left(\frac{1}{A}+\frac{1}{B}+\frac{1}{C}+\frac{1}{D}\right) \geq \frac{1}{3} \end{aligned} $$ This completes the proof. 25. Plugging in $x=1$ we get $f(f(y))=f(1) / y$ and hence $f\left(y_{1}\right)=f\left(y_{2}\right)$ implies $y_{1}=y_{2}$ i.e. that the function is bijective. Plugging in $y=1$ gives us $f(x f(1))=f(x) \Rightarrow x f(1)=x \Rightarrow f(1)=1$. Hence $f(f(y))=1 / y$. Plugging in $y=f(z)$ implies $1 / f(z)=f(1 / z)$. Finally setting $y=f(1 / t)$ into the original equation gives us $f(x t)=f(x) / f(1 / t)=f(x) f(t)$. Conversely, any functional equation on $\mathbb{Q}^{+}$satisfying (i) $f(x t)=f(x) f(t)$ and (ii) $f(f(x))=\frac{1}{x}$ for all $x, t \in \mathbb{Q}^{+}$also satisfies the original functional equation: $f(x f(y))=f(x) f(f(y))=\frac{f(x)}{y}$. Hence it suffices to find a function satisfying (i) and (ii). We note that all elements $q \in \mathbb{Q}^{+}$are of the form $q=\prod_{i=1}^{n} p_{i}^{a_{i}}$ where $p_{i}$ are prime and $a_{i} \in \mathbb{Z}$. The criterion ( $a$ ) implies $f(q)=f\left(\prod_{i=1}^{n} p_{i}^{a_{i}}\right)=$ $\prod_{i=1}^{n} f\left(p_{i}\right)^{a_{i}}$. Thus it is sufficient to define the function on all primes. For the function to satisfy $(b)$ it is necessary and sufficient for it to satisfy $f(f(p))=\frac{1}{p}$ for all primes $p$. Let $q_{i}$ denote the $i$-th smallest prime. We define our function $f$ as follows: $$ f\left(q_{2 k-1}\right)=q_{2 k}, \quad f\left(q_{2 k}\right)=\frac{1}{q_{2 k-1}}, \quad k \in \mathbb{N} $$ Such a function clearly satisfies $(b)$ and along with the additional condition $f(x t)=f(x) f(t)$ it is well defined for all elements of $\mathbb{Q}^{+}$and it satisfies the original functional equation. 26. We note that $|P(x) / x| \rightarrow \infty$. Hence, there exists an integer number $M$ such that $M>\left|q_{1}\right|$ and $|P(x)| \leq|x| \Rightarrow|x|\left|q_{i}\right| \geq M$ and this ultimately contradicts $\left|q_{1}\right|0\right)$ both belonging to the set $\{j T+1, j T+2, \ldots, j T+T\}$ such that $q_{m_{j}}=q_{m_{j}+k_{j}}$. Since $k_{j}\sin ^{3} 30^{\circ}=\frac{1}{8} . \end{aligned} $$ On the other hand, since $\angle M A C+\angle M B A+\angle M C B<180^{\circ}-3 \cdot 30^{\circ}=90^{\circ}$, Jensen's inequality applied on the concave function $\ln \sin x(x \in[0, \pi])$ gives us $\sin \angle M A C \sin \angle M B A \sin \angle M C B<\sin ^{3} 30^{\circ}$, contradicting (*). Second solution. Denote the intersections of $P A, P B, P C$ with $B C, C A$, $A B$ by $A_{1}, B_{1}, C_{1}$, respectively. Suppose that each of the angles $\angle P A B$, $\angle P B C, \angle P C A$ is greater than $30^{\circ}$ and denote $P A=2 x, P B=2 y, P C=$ $2 z$. Then $P C_{1}>x, P A_{1}>y, P B_{1}>z$. On the other hand, we know that $$ \frac{P C_{1}}{P C+P C_{1}}+\frac{P A_{1}}{P A+P A_{1}}+\frac{P B_{1}}{P B+P B_{1}}=\frac{S_{A B P}}{S_{A B C}}+\frac{S_{P B C}}{S_{A B C}}+\frac{S_{A P C}}{S_{A B C}}=1 . $$ Since the function $\frac{t}{p+t}$ is increasing, we obtain $\frac{x}{2 z+x}+\frac{y}{2 x+y}+\frac{z}{2 y+z}<1$. But on the contrary, Cauchy-Schwartz inequality (or alternatively Jensen's inequality) yields $$ \frac{x}{2 z+x}+\frac{y}{2 x+y}+\frac{z}{2 y+z} \geq \frac{(x+y+z)^{2}}{x(2 z+x)+y(2 x+y)+z(2 y+z)}=1 . $$ 5. Let $P_{1}$ be the point on the side $B C$ such that $\angle B F P_{1}=\beta / 2$. Then $\angle B P_{1} F=180^{\circ}-3 \beta / 2$, and the sine law gives us $\frac{B F}{B P_{1}}=\frac{\sin (3 \beta / 2)}{\sin (\beta / 2)}=$ $3-4 \sin ^{2}(\beta / 2)=1+2 \cos \beta$. Now we calculate $\frac{B F}{B P}$. We have $\angle B I F=120^{\circ}-\beta / 2, \angle B F I=60^{\circ}$ and $\angle B I C=120^{\circ}, \angle B C I=\gamma / 2=60^{\circ}-\beta / 2$. By the sine law, $$ B F=B I \frac{\sin \left(120^{\circ}-\beta / 2\right)}{\sin 60^{\circ}}, \quad B P=\frac{1}{3} B C=B I \frac{\sin 120^{\circ}}{3 \sin \left(60^{\circ}-\beta / 2\right)} . $$ It follows that $\frac{B F}{B P}=\frac{3 \sin \left(60^{\circ}-\beta / 2\right) \sin \left(60^{\circ}+\beta / 2\right)}{\sin ^{2} 60^{\circ}}=4 \sin \left(60^{\circ}-\beta / 2\right) \sin \left(60^{\circ}+\right.$ $\beta / 2)=2\left(\cos \beta-\cos 120^{\circ}\right)=2 \cos \beta+1=\frac{B F}{B P_{1}}$. Therefore $P \equiv P_{1}$. 6. Let $a, b, c$ be sides of the triangle. Let $A_{1}$ be the intersection of line $A I$ with $B C$. By the known fact, $B A_{1}: A_{1} C=c: b$ and $A I: I A_{1}=A B: B A_{1}$, hence $B A_{1}=\frac{a c}{b+c}$ and $\frac{A I}{I A_{1}}=\frac{A B}{B A_{1}}=\frac{b+c}{a}$. Consequently $\frac{A I}{l_{A}}=\frac{b+c}{a+b+c}$. Put $a=n+p, b=p+m, c=m+n$ : it is obvious that $m, n, p$ are positive. Our inequality becomes $$ 2<\frac{(2 m+n+p)(m+2 n+p)(m+n+2 p)}{(m+n+p)^{3}} \leq \frac{64}{27} $$ The right side inequality immediately follows from the inequality between arithmetic and geometric means applied on $2 m+n+p, m+2 n+p$ and $m+n+2 p$. For the left side inequality, denote by $T=m+n+p$. Then we can write $(2 m+n+p)(m+2 n+p)(m+n+2 p)=(T+m)(T+n)(T+p)$ and $(T+m)(T+n)(T+p)=T^{3}+(m+n+p) T^{2}+(m n+n p+p n) T+m n p>2 T^{3}$. Remark. The inequalities cannot be improved. In fact, $\frac{A I \cdot B I \cdot C I}{l_{A} l_{B} l_{C}}$ is equal to $8 / 27$ for $a=b=c$, while it can be arbitrarily close to $1 / 4$ if $a=b$ and $c$ is sufficiently small. 7. The given equations imply $A B=C D, A C=B D, A D=B C$. Let $L_{1}$, $M_{1}, N_{1}$ be the midpoints of $A D, B D, C D$ respectively. Then the above equalities yield $$ \begin{gathered} L_{1} M_{1}=A B / 2=L M \\ L_{1} M_{1}\|A B\| L M \\ L_{1} M=C D / 2=L M_{1} \\ L_{1} M\|C D\| L M_{1} \end{gathered} $$ Thus $L, M, L_{1}, M_{1}$ are coplanar and $L M L_{1} M_{1}$ is a rhombus as well as ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-556.jpg?height=317&width=410&top_left_y=248&top_left_x=888) $M N M_{1} N_{1}$ and $L N L_{1} N_{1}$. Then the segments $L L_{1}, M M_{1}, N N_{1}$ have the common midpoint $Q$ and $Q L \perp Q M$, $Q L \perp Q N, Q M \perp Q N$. We also infer that the line $N N_{1}$ is perpendicular to the plane $L M L_{1} M_{1}$ and hence to the line $A B$. Thus $Q A=Q B$, and similarly, $Q B=Q C=Q D$, hence $Q$ is just the center $O$, and $\angle L O M=$ $\angle M O N=\angle N O L=90^{\circ}$. 8. Let $P_{1}\left(x_{1}, y_{1}\right), P_{2}\left(x_{2}, y_{2}\right), \ldots, P_{n}\left(x_{n}, y_{n}\right)$ be the $n$ points of $S$ in the coordinate plane. We may assume $x_{1}216$. We claim that the answer is $n=217$. First notice that the set $A_{2} \cup A_{3} \cup$ $A_{5} \cup A_{7}$ consists of four prime $(2,3,5,7)$ and 212 composite numbers. The set $S \backslash A$ contains exactly 8 composite numbers: namely, $11^{2}, 11 \cdot 13,11$. $17,11 \cdot 19,11 \cdot 23,13^{2}, 13 \cdot 17,13 \cdot 19$. Thus $S$ consists of the unity, 220 composite numbers and 59 primes. Let $A$ be a 217 -element subset of $S$, and suppose that there are no five pairwise relatively prime numbers in $A$. Then $A$ can contain at most 4 primes (or unity and three primes) and at least 213 composite numbers. Hence the set $S \backslash A$ contains at most 7 composite numbers. Consequently, at least one of the following 8 five-element sets is disjoint with $S \backslash A$, and is thus entirely contained in $A$ : $$ \begin{array}{ll} \{2 \cdot 23,3 \cdot 19,5 \cdot 17,7 \cdot 13,11 \cdot 11\}, & \{2 \cdot 29,3 \cdot 23,5 \cdot 19,7 \cdot 17,11 \cdot 13\}, \\ \{2 \cdot 31,3 \cdot 29,5 \cdot 23,7 \cdot 19,11 \cdot 17\}, & \{2 \cdot 37,3 \cdot 31,5 \cdot 29,7 \cdot 23,11 \cdot 19\}, \\ \{2 \cdot 41,3 \cdot 37,5 \cdot 31,7 \cdot 29,11 \cdot 23\}, & \{2 \cdot 43,3 \cdot 41,5 \cdot 37,7 \cdot 31,13 \cdot 17\}, \\ \{2 \cdot 47,3 \cdot 43,5 \cdot 41,7 \cdot 37,13 \cdot 19\}, & \{2 \cdot 2,3 \cdot 3,5 \cdot 5,7 \cdot 7,13 \cdot 13\} . \end{array} $$ As each of these sets consists of five numbers relatively prime in pairs, the claim is proved. 13. Call a sequence $e_{1}, \ldots, e_{n}$ good if $e_{1} a_{1}+\cdots+e_{n} a_{n}$ is divisible by $n$. Among the sums $s_{0}=0, s_{1}=a_{1}, s_{2}=a_{1}+a_{2}, \ldots, s_{n}=a_{1}+\cdots+a_{n}$, two give the same remainder modulo $n$, and their difference corresponds to a good sequence. To show that, permuting the $a_{i}$ 's, we can find $n-1$ different sequences, we use the following Lemma. Let $A$ be a $k \times n(k \leq n-2)$ matrix of zeros and ones, whose every row contains at least one 0 and at least two 1 's. Then it is possible to permute columns of $A$ is such a way that in any row 1 's do not form a block. Proof. We will use the induction on $k$. The case $k=1$ and arbitrary $n \geq 3$ is trivial. Suppose that $k \geq 2$ and that for $k-1$ and any $n \geq k+1$ the lemma is true. Consider a $k \times n$ matrix $A, n \geq k+2$. We mark an element $a_{i j}$ if either it is the only zero in the $i$-th row, or one of the 1 's in the row if it contains exactly two 1 's. Since $n \geq 4$, every row contains at most two marked elements, which adds up to at most $2 k<2 n$ marked elements in total. It follows that there is a column with at most one marked element. Assume w.l.o.g. that it is the first column and that $a_{1 j}$ isn't marked for $j>1$. The matrix $B$, obtained by omitting the first row and first column from $A$, satisfies the conditions of the lemma. Therefore, we can permute columns of $B$ and get the required form. Considered as a permutation of column of $A$, this permutation may leave a block of 1's only in the first row of $A$. In the case that it is so, if $a_{11}=1$ we put the first column in the last place, otherwise we put it between any two columns having 1's in the first row. The obtained matrix has the required property. Suppose now that we have got $k$ different nontrivial good sequences $e_{1}^{i}, \ldots, e_{n}^{i}, i=1, \ldots, k$, and that $k \leq n-2$. The matrix $A=\left(e_{j}^{i}\right)$ fulfils the conditions of Lemma, hence there is a permutation $\sigma$ from Lemma. Now among the sums $s_{0}=0, s_{1}=a_{\sigma(1)}, s_{2}=a_{\sigma(1)}+a_{\sigma(2)}$, $\ldots, s_{n}=a_{\sigma(1)}+\cdots+a_{\sigma(n)}$, two give the same remainder modulo $n$. Let $s_{p} \equiv s_{q}(\bmod n), pm>$ 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 $q0)$ 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 $i0 $$ because $x_{k-1}+x_{k} \leq \frac{2}{3}\left(x_{1}+x_{k-1}+x_{k-2}\right) \leq \frac{2}{3}$. Repeating this procedure we can reduce the number of nonzero $x_{i}$ 's to two, increasing the value of $F$ in each step. It remains to maximize $F$ over $n$-tuples $\left(x_{1}, x_{2}, 0, \ldots, 0\right)$ with $x_{1}, x_{2} \geq 0, x_{1}+x_{2}=1$ : in this case $F$ equals $x_{1} x_{2}$ and attains its maximum value $\frac{1}{4}$ when $x_{1}=x_{2}=\frac{1}{2}, x_{3}=\ldots, x_{n}=0$. 28. Let $x_{n}=c(n \sqrt{2}-[n \sqrt{2}])$ for some constant $c>0$. For $i>j$, putting $p=[i \sqrt{2}]-[j \sqrt{2}]$, we have $\left|x_{i}-x_{j}\right|=c|(i-j) \sqrt{2}-p|=\frac{\left|2(i-j)^{2}-p^{2}\right| c}{(i-j) \sqrt{2}+p} \geq \frac{c}{(i-j) \sqrt{2}+p} \geq \frac{c}{4(i-j)}$, because $p<(i-j) \sqrt{2}+1$. Taking $c=4$, we obtain that for any $i>j$, $(i-j)\left|x_{i}-x_{j}\right| \geq 1$. Of course, this implies $(i-j)^{a}\left|x_{i}-x_{j}\right| \geq 1$ for any $a>1$ 。 Remark. The constant 4 can be replaced with $3 / 2+\sqrt{2}$. Second solution. Another example of a sequence $\left\{x_{n}\right\}$ is constructed in the following way: $x_{1}=0, x_{2}=1, x_{3}=2$ and $x_{3^{k} i+m}=x_{m}+\frac{i}{3^{k}}$ for $i=1,2$ and $1 \leq m \leq 3^{k}$. It is easily shown that $|i-j| \cdot\left|x_{i}-x_{j}\right| \geq 1 / 3$ for any $i \neq j$. Third solution. If $n=b_{0}+2 b_{1}+\cdots+2^{k} b_{k}, b_{i} \in\{0,1\}$, then one can set $x_{n}$ to be $=b_{0}+2^{-a} b_{1}+\cdots+2^{-k a} b_{k}$. In this case it holds that $|i-j|^{a}\left|x_{i}-x_{j}\right| \geq$ $\frac{2^{a}-2}{2^{a}-1}$. 29. One easily observes that the following sets are super-invariant: one-point set, its complement, closed and open half-lines or their complements, and the whole real line. To show that these are the only possibilities, we first observe that $S$ is super-invariant if and only if for each $a>0$ there is a $b$ such that $x \in S \Leftrightarrow a x+b \in S$. (i) Suppose that for some $a$ there are two such $b$ 's: $b_{1}$ and $b_{2}$. Then $x \in$ $S \Leftrightarrow a x+b_{1} \in S$ and $x \in S \Leftrightarrow a x+b_{2} \in S$, which implies that $S$ is periodic: $y \in S \Leftrightarrow y+\frac{b_{1}-b_{2}}{a} \in S$. Since $S$ is identical to a translate of any stretching of $S$, all positive numbers are periods of $S$. Therefore $S \equiv \mathbb{R}$. (ii) Assume that, for each $a, b=f(a)$ is unique. Then for any $a_{1}$ and $a_{2}$, $$ \begin{aligned} x \in S & \Leftrightarrow a_{1} x+f\left(a_{1}\right) \in S \Leftrightarrow a_{1} a_{2} x+a_{2} f\left(a_{1}\right)+f\left(a_{2}\right) \in S \\ & \Leftrightarrow a_{2} x+f\left(a_{2}\right) \in S \Leftrightarrow a_{1} a_{2} x+a_{1} f\left(a_{2}\right)+f\left(a_{1}\right) \in S . \end{aligned} $$ As above it follows that $a_{1} f\left(a_{2}\right)+f\left(a_{1}\right)=a_{2} f\left(a_{1}\right)+f\left(a_{2}\right)$, or equivalently $f\left(a_{1}\right)\left(a_{2}-1\right)=f\left(a_{2}\right)\left(a_{1}-1\right)$. Hence (for some $\left.c\right), f(a)=c(a-1)$ for all $a$. Now $x \in S \Leftrightarrow a x+c(a-1) \in S$ actually means that $y-c \in S \Leftrightarrow a y-c \in S$ for all $a$. Then it is easy to conclude that $\{y-c \mid y \in S\}$ is either a half-line or the whole line, and so is $S$. 30. Let $a$ and $b$ be the integers written by $A$ and $B$ respectively, and let $xx-r_{n-1}, B$ would know that $a+b>x$ and hence $a+b=y$, while if $b0$, there exists an $m$ for which $s_{m}-r_{m}<0$, a contradiction. ### 4.33 Solutions to the Shortlisted Problems of IMO 1992 1. Assume that a pair $(x, y)$ with $xy$ is a positive integer). This will imply the desired result, since starting from the pair $(1,1)$ we can obtain arbitrarily many solutions. First, we show that $\operatorname{gcd}\left(x_{1}, y\right)=1$. Suppose to the contrary that $\operatorname{gcd}\left(x_{1}, y\right)$ $=d>1$. Then $d\left|x_{1}\right| y^{2}+m \Rightarrow d \mid m$, which implies $d|y| x^{2}+m \Rightarrow d \mid x$. But this last is impossible, since $\operatorname{gcd}(x, y)=1$. Thus it remains to show that $x_{1} \mid y^{2}+m$ and $y \mid x_{1}^{2}+m$. The former relation is obvious. Since $\operatorname{gcd}(x, y)=1$, the latter is equivalent to $y \mid\left(x x_{1}\right)^{2}+m x^{2}=y^{4}+2 m y^{2}+$ $m^{2}+m x^{2}$, which is true because $y \mid m\left(m+x^{2}\right)$ by the assumption. Hence $\left(y, x_{1}\right)$ indeed satisfies all the required conditions. Remark. The original problem asked to prove the existence of a pair $(x, y)$ of positive integers satisfying the given conditions such that $x+y \leq m+1$. The problem in this formulation is trivial, since the pair $x=y=1$ satisfies the conditions. Moreover, this is sometimes the only solution with $x+y \leq m+1$. For example, for $m=3$ the least nontrivial solution is $\left(x_{0}, y_{0}\right)=(1,4)$. 2. Let us define $x_{n}$ inductively as $x_{n}=f\left(x_{n-1}\right)$, where $x_{0} \geq 0$ is a fixed real number. It follows from the given equation in $f$ that $x_{n+2}=-a x_{n+1}+$ $b(a+b) x_{n}$. The general solution to this equation is of the form $$ x_{n}=\lambda_{1} b^{n}+\lambda_{2}(-a-b)^{n}, $$ where $\lambda_{1}, \lambda_{2} \in \mathbb{R}$ satisfy $x_{0}=\lambda_{1}+\lambda_{2}$ and $x_{1}=\lambda_{1} b-\lambda_{2}(a+b)$. In order to have $x_{n} \geq 0$ for all $n$ we must have $\lambda_{2}=0$. Hence $x_{0}=\lambda_{1}$ and $f\left(x_{0}\right)=x_{1}=\lambda_{1} b=b x_{0}$. Since $x_{0}$ was arbitrary, we conclude that $f(x)=b x$ is the only possible solution of the functional equation. It is easily verified that this is indeed a solution. 3. Consider two squares $A B^{\prime} C D^{\prime}$ and $A^{\prime} B C^{\prime} D$. Since $A C \perp B D$, these two squares are homothetic, which implies that the lines $A A^{\prime}, B B^{\prime}, C C^{\prime}, D D^{\prime}$ are concurrent at a certain point $O$. Since the rotation about $A$ by $90^{\circ}$ takes $\triangle A B K$ into $\triangle A F D$, it follows that $B K \perp D F$. Denote by $T$ the intersection of $B K$ and $D F$. The rotation about some point $X$ by $90^{\circ}$ maps $B K$ into $D F$ if and only if $T X$ bisects an angle between $B K$ and $D F$. Therefore $\angle F T A=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-567.jpg?height=342&width=470&top_left_y=1659&top_left_x=847) $\angle A T K=45^{\circ}$. Moreover, the quadrilateral $B A^{\prime} D T$ is cyclic, which implies that $\angle B T A^{\prime}=B D A^{\prime}=45^{\circ}$ and consequently that the points $A, T, A^{\prime}$ are collinear. It follows that the point $O$ lies on a bisector of $\angle B T D$ and therefore the rotation $\mathcal{R}$ about $O$ by $90^{\circ}$ takes $B K$ into $D F$. Analogously, $\mathcal{R}$ maps the lines $C E, D G, A I$ into $A H, B J, C L$. Hence the quadrilateral $P_{1} Q_{1} R_{1} S_{1}$ is the image of the quadrilateral $P_{2} Q_{2} R_{2} S_{2}$, and the result follows. 4. There are 36 possible edges in total. If not more than 3 edges are left undrawn, then we can choose 6 of the given 9 points no two of which are connected by an undrawn edge. These 6 points together with the edges between them form a two-colored complete graph, and thus by a wellknown result there exists at least one monochromatic triangle. It follows that $n \leq 33$. In order to show that $n=33$, we shall give an example of a graph with 32 edges that does not contain a monochromatic triangle. Let us start with a complete graph $C_{5}$ with 5 vertices. Its edges can be colored in two colors so that there is no monochromatic triangle (Fig. 1). Furthermore, given a graph $\mathcal{H}$ with $k$ vertices without monochromatic triangles, we can add to it a new vertex, join it to all vertices of $\mathcal{H}$ except $A$, and color each edge $B X$ in the same way as $A X$. The obtained graph obviously contains no monochromatic triangles. Applying this construction four times to the graph $C_{5}$ we get an example like that of Fig. 2. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-568.jpg?height=338&width=396&top_left_y=1069&top_left_x=326) Fig. 1 ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-568.jpg?height=326&width=396&top_left_y=1079&top_left_x=868) Fig. 2 Second solution. For simplicity, we call the colors red and blue. Let $r(k, l)$ be the least positive integer $r$ such that each complete $r$-graph whose edges are colored in red and blue contains either a complete red $k$-graph or a complete blue $l$-graph. Also, let $t(n, k)$ be the greatest possible number of edges in a graph with $n$ vertices that does not contain a complete $k$-graph. These numbers exist by the theorems of Ramsey and Turán. Let us assume that $r(k, l)0$ for all $x>0$. It also follows that $f(x)<0$ for $x<0$. In other words, $f$ preserves sign. Now setting $x>0$ and $y=-f(x)$ in the given functional equation we obtain $$ f(x-f(x))=f\left(\sqrt{x}^{2}+f(-x)\right)=-x+f(\sqrt{x})^{2}=-(x-f(x)) . $$ But since $f$ preserves sign, this implies that $f(x)=x$ for $x>0$. Moreover, since $f(-x)=-f(x)$, it follows that $f(x)=x$ for all $x$. It is easily verified that this is indeed a solution. 7. Let $G_{1}, G_{2}$ touch the chord $B C$ at $P, Q$ and touch the circle $G$ at $R, S$ respectively. Let $D$ be the midpoint of the complementary $\operatorname{arc} B C$ of $G$. The homothety centered at $R$ mapping $G_{1}$ onto $G$ also maps the line $B C$ onto a tangent of $G$ parallel to $B C$. It follows that this line touches $G$ at point $D$, which is therefore the image of $P$ under the homothety. Hence $R, P$, and $D$ are collinear. Since $\angle D B P=\angle D C B=\angle D R B$, it follows that $\triangle D B P \sim \triangle D R B$ and consequently that $D P \cdot D R=D B^{2}$. Similarly, points $S, Q, D$ are collinear and satisfy $D Q \cdot D S=D B^{2}=D P \cdot D R$. Hence $D$ lies on the radical axis of the circles $G_{1}$ and $G_{2}$, i.e., on their common tangent $A W$, which also implies that $A W$ bisects the angle $B A D$. Furthermore, since $D B=D C=D W=\sqrt{D P \cdot D R}$, it follows from the lemma of (SL99-14) that $W$ is the incenter of $\triangle A B C$. Remark. According to the third solution of (SL93-3), both $P W$ and $Q W$ contain the incenter of $\triangle A B C$, and the result is immediate. The problem can also be solved by inversion centered at $W$. 8. For simplicity, we shall write $n$ instead of 1992. Lemma. There exists a tangent $n$-gon $A_{1} A_{2} \ldots A_{n}$ with sides $A_{1} A_{2}=a_{1}$, $A_{2} A_{3}=a_{2}, \ldots, A_{n} A_{1}=a_{n}$ if and only if the system $$ x_{1}+x_{2}=a_{1}, x_{2}+x_{3}=a_{2}, \ldots, x_{n}+x_{1}=a_{n} $$ has a solution $\left(x_{1}, \ldots, x_{n}\right)$ in positive reals. Proof. Suppose that such an $n$-gon $A_{1} A_{2} \ldots A_{n}$ exists. Let the side $A_{i} A_{i+1}$ touch the inscribed circle at point $P_{i}$ (where $\left.A_{n+1}=A_{1}\right)$. Then $x_{1}=$ $A_{1} P_{n}=A_{1} P_{1}, x_{2}=A_{2} P_{1}=A_{2} P_{2}, \ldots, x_{n}=A_{n} P_{n-1}=A_{n} P_{n}$ is clearly a positive solution of (1). Now suppose that the system (1) has a positive real solution $\left(x_{1}, \ldots\right.$, $x_{n}$ ). Let us draw a polygonal line $A_{1} A_{2} \ldots A_{n+1}$ touching a circle of radius $r$ at points $P_{1}, P_{2}, \ldots, P_{n}$ respectively such that $A_{1} P_{1}=$ $A_{n+1} P_{n}=x_{1}$ and $A_{i} P_{i}=A_{i} P_{i-1}=x_{i}$ for $i=2, \ldots, n$. Observe that $O A_{1}=O A_{n+1}=\sqrt{x_{1}^{2}+r^{2}}$ and the function $f(r)=\angle A_{1} O A_{2}+$ $\angle A_{2} O A_{3}+\cdots+\angle A_{n} O A_{n+1}=$ $2\left(\arctan \frac{x_{1}}{r}+\cdots+\arctan \frac{x_{n}}{r}\right)$ is continuous. Thus $A_{1} A_{2} \ldots A_{n+1}$ is a closed simple polygonal line if and only if $f(r)=360^{\circ}$. But such an $r$ exists, since $f(r) \rightarrow 0$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-570.jpg?height=331&width=444&top_left_y=1156&top_left_x=887) when $r \rightarrow \infty$ and $f(r) \rightarrow \infty$ when $r \rightarrow 0$. This proves the second direction of the lemma. For $n=4 k$, the system (1) is solvable in positive reals if $a_{i}=i$ for $i \equiv 1,2$ $(\bmod 4), a_{i}=i+1$ for $i \equiv 3$ and $a_{i}=i-1$ for $i \equiv 0(\bmod 4)$. Indeed, one solution is given by $x_{i}=1 / 2$ for $i \equiv 1, x_{i}=3 / 2$ for $i \equiv 3$ and $x_{i}=i-3 / 2$ for $i \equiv 0,2(\bmod 4)$. Remark. For $n=4 k+2$ there is no such $n$-gon. In fact, solvability of the system (1) implies $a_{1}+a_{3}+\cdots=a_{2}+a_{4}+\cdots$, while in the case $n=4 k+2$ the sum $a_{1}+a_{2}+\cdots+a_{n}$ is odd. 9. Since the equation $x^{3}-x-c=0$ has only one real root for every $c>$ $2 /(3 \sqrt{3}), \alpha$ is the unique real root of $x^{3}-x-33^{1992}=0$. Hence $f^{n}(\alpha)=$ $f(\alpha)=\alpha$. Remark. Consider any irreducible polynomial $g(x)$ in the place of $x^{3}-$ $x-33^{1992}$. The problem amounts to proving that if $\alpha$ and $f(\alpha)$ are roots of $g$, then any $f^{(n)}(\alpha)$ is also a root of $g$. In fact, since $g(f(x))$ vanishes at $x=\alpha$, it must be divisible by the minimal polynomial of $\alpha$, that is, $g(x)$. It follows by induction that $g\left(f^{(n)}(x)\right)$ is divisible by $g(x)$ for all $n \in \mathbb{N}$, and hence $g\left(f^{(n)}(\alpha)\right)=0$. 10. Let us set $S(x)=\{(y, z) \mid(x, y, z) \in V\}, S_{y}(x)=\left\{z \mid(x, z) \in S_{y}\right\}$ and $S_{z}(x)=\left\{y \mid(x, y) \in S_{z}\right\}$. Clearly $S(x) \subset S_{x}$ and $S(x) \subset S_{y}(x) \times S_{z}(x)$. It follows that $$ \begin{aligned} |V| & =\sum_{x}|S(x)| \leq \sum_{x} \sqrt{\left|S_{x}\right|\left|S_{y}(x)\right|\left|S_{z}(x)\right|} \\ & =\sqrt{\left|S_{x}\right|} \sum_{x} \sqrt{\left|S_{y}(x)\right|\left|S_{z}(x)\right|} \end{aligned} $$ Using the Cauchy-Schwarz inequality we also get $$ \sum_{x} \sqrt{\left|S_{y}(x)\right|\left|S_{z}(x)\right|} \leq \sqrt{\sum_{x}\left|S_{y}(x)\right|} \sqrt{\sum_{x}\left|S_{z}(x)\right|}=\sqrt{\left|S_{y}\right|\left|S_{z}\right|} $$ Now (1) and (2) together yield $|V| \leq \sqrt{\left|S_{x}\right|\left|S_{y}\right|\left|S_{z}\right|}$. 11. Let $I$ be the incenter of $\triangle A B C$. Since $90^{\circ}+\alpha / 2=\angle B I C=\angle D I E=$ $138^{\circ}$, we obtain that $\angle A=96^{\circ}$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-571.jpg?height=295&width=1043&top_left_y=1086&top_left_x=260) Let $D^{\prime}$ and $E^{\prime}$ be the points symmetric to $D$ and $E$ with respect to $C E$ and $B D$ respectively, and let $S$ be the intersection point of $E D^{\prime}$ and $B D$. Then $\angle B D E^{\prime}=24^{\circ}$ and $\angle D^{\prime} D E^{\prime}=\angle D^{\prime} D E-\angle E^{\prime} D E=24^{\circ}$, which means that $D E^{\prime}$ bisects the angle $S D D^{\prime}$. Moreover, $\angle E^{\prime} S B=\angle E S B=$ $\angle E D S+\angle D E S=60^{\circ}$ and hence $S E^{\prime}$ bisects the angle $D^{\prime} S B$. It follows that $E^{\prime}$ is the excenter of $\triangle D^{\prime} D S$ and consequently $\angle D^{\prime} D C=\angle D D^{\prime} C=$ $\angle S D^{\prime} E^{\prime}=\left(180^{\circ}-72^{\circ}\right) / 2=54^{\circ}$. Finally, $\angle C=180^{\circ}-2 \cdot 54^{\circ}=72^{\circ}$ and $\angle B=12^{\circ}$. 12. Let us set $\operatorname{deg} f=n$ and $\operatorname{deg} g=m$. We shall prove the result by induction on $n$. If $n1$. It is easy to see that $\alpha\left(n_{m}\right)=2^{m}-m$. On the other hand, squaring and simplifying yields $n_{m}^{2}=1+\sum_{i1$ be a constant to be chosen later, and let $N_{i}=2^{m_{i}} n_{i}-1$ where $m_{i}>\alpha\left(n_{i}\right)$ is such that $m_{i} / \alpha\left(n_{i}\right) \rightarrow \theta$ as $i \rightarrow \infty$. Then $\alpha\left(N_{i}\right)=\alpha\left(n_{i}\right)+m_{i}-1$, whereas $N_{i}^{2}=2^{2 m_{i}} n_{i}^{2}-2^{m_{i}+1} n_{i}+1$ and $\alpha\left(N_{i}^{2}\right)=\alpha\left(n_{i}^{2}\right)-\alpha\left(n_{i}\right)+m_{i}$. It follows that $$ \lim _{i \rightarrow \infty} \frac{\alpha\left(N_{i}^{2}\right)}{\alpha\left(N_{i}\right)}=\lim _{i \rightarrow \infty} \frac{\alpha\left(n_{i}^{2}\right)+(\theta-1) \alpha\left(n_{i}\right)}{(1+\theta) \alpha\left(n_{i}\right)}=\frac{\theta-1}{\theta+1} $$ which is equal to $\gamma \in[0,1]$ for $\theta=\frac{1+\gamma}{1-\gamma}$ (for $\gamma=1$ we set $m_{i} / \alpha\left(n_{i}\right) \rightarrow$ $\infty)$. (3) Let be given a sequence $\left(n_{i}\right)_{i=1}^{\infty}$ with $\alpha\left(n_{i}^{2}\right) / \alpha\left(n_{i}\right) \rightarrow \gamma$. Taking $m_{i}>$ $\alpha\left(n_{i}\right)$ and $N_{i}=2^{m_{i}} n_{i}+1$ we easily find that $\alpha\left(N_{i}\right)=\alpha\left(n_{i}\right)+1$ and $\alpha\left(N_{i}^{2}\right)=\alpha\left(n_{i}^{2}\right)+\alpha\left(n_{i}\right)+1$. Hence $\alpha\left(N_{i}^{2}\right) / \alpha\left(N_{i}\right)=\gamma+1$. Continuing this procedure we can construct a sequence $t_{i}$ such that $\alpha\left(t_{i}^{2}\right) / \alpha\left(t_{i}\right)=$ $\gamma+k$ for an arbitrary $k \in \mathbb{N}$. 18. Let us define inductively $f^{1}(x)=f(x)=\frac{1}{x+1}$ and $f^{n}(x)=f\left(f^{n-1}(x)\right)$, and let $g_{n}(x)=x+f(x)+f^{2}(x)+\cdots+f^{n}(x)$. We shall prove first the following statement. Lemma. The function $g_{n}(x)$ is strictly increasing on $[0,1]$, and $g_{n-1}(1)=$ $F_{1} / F_{2}+F_{2} / F_{3}+\cdots+F_{n} / F_{n+1}$. Proof. Since $f(x)-f(y)=\frac{y-x}{(1+x)(1+y)}$ is smaller in absolute value than $x-y$, it follows that $x>y$ implies $f^{2 k}(x)>f^{2 k}(y)$ and $f^{2 k+1}(x)<$ $f^{2 k+1}(y)$, and moreover that for every integer $k \geq 0$, $$ \left[f^{2 k}(x)-f^{2 k}(y)\right]+\left[f^{2 k+1}(x)-f^{2 k+1}(y)\right]>0 $$ Hence if $x>y$, we have $g_{n}(x)-g_{n}(y)=(x-y)+[f(x)-f(y)]+\cdots+$ $\left[f^{n}(x)-f^{n}(y)\right]>0$, which yields the first part of the lemma. The second part follows by simple induction, since $f^{k}(1)=F_{k+1} / F_{k+2}$. If some $x_{i}=0$ and consequently $x_{j}=0$ for all $j \geq i$, then the problem reduces to the problem with $i-1$ instead of $n$. Thus we may assume that all $x_{1}, \ldots, x_{n}$ are different from 0 . If we write $a_{i}=\left[1 / x_{i}\right]$, then $x_{i}=\frac{1}{a_{i}+x_{i+1}}$. Thus we can regard $x_{i}$ as functions of $x_{n}$ depending on $a_{1}, \ldots, a_{n-1}$. Suppose that $x_{n}, a_{n-1}, \ldots, a_{3}, a_{2}$ are fixed. Then $x_{2}, x_{3}, \ldots, x_{n}$ are all fixed, and $x_{1}=\frac{1}{a_{1}+x_{2}}$ is maximal when $a_{1}=1$. Hence the sum $S=$ $x_{1}+x_{2}+\cdots+x_{n}$ is maximized for $a_{1}=1$. We shall show by induction on $i$ that $S$ is maximized for $a_{1}=a_{2}=\cdots=$ $a_{i}=1$. In fact, assuming that the statement holds for $i-1$ and thus $a_{1}=$ $\cdots=a_{i-1}=1$, having $x_{n}, a_{n-1}, \ldots, a_{i+1}$ fixed we have that $x_{n}, \ldots, x_{i+1}$ are also fixed, and that $x_{i-1}=f\left(x_{i}\right), \ldots, x_{1}=f^{i-1}\left(x_{i}\right)$. Hence by the lemma, $S=g_{i-1}\left(x_{i}\right)+x_{i+1}+\cdots+x_{n}$ is maximal when $x_{i}=\frac{1}{a_{i}+x_{i+1}}$ is maximal, that is, for $a_{i}=1$. Thus the induction is complete. It follows that $x_{1}+\cdots+x_{n}$ is maximal when $a_{1}=\cdots=a_{n-1}=1$, so that $x_{1}+\cdots+x_{n}=g_{n-1}\left(x_{1}\right)$. By the lemma, the latter does not exceed $g_{n-1}(1)$. This completes the proof. Remark. The upper bound is the best possible, because it is approached by taking $x_{n}$ close to 1 and inductively (in reverse) defining $x_{i-1}=\frac{1}{1+x_{i}}=$ $\frac{1}{a_{i}+x_{i}}$. 19. Observe that $f(x)=\left(x^{4}+2 x^{2}+3\right)^{2}-8\left(x^{2}-1\right)^{2}=\left[x^{4}+2(1-\sqrt{2}) x^{2}+\right.$ $3+2 \sqrt{2}]\left[x^{4}+2(1+\sqrt{2}) x^{2}+3-2 \sqrt{2}\right]$. Now it is easy to find that the roots of $f$ are $$ x_{1,2,3,4}= \pm i(i \sqrt[4]{2} \pm 1) \quad \text { and } \quad x_{5,6,7,8}= \pm i(\sqrt[4]{2} \pm 1) $$ In other words, $x_{k}=\alpha_{i}+\beta_{j}$, where $\alpha_{i}^{2}=-1$ and $\beta_{j}^{4}=2$. We claim that any root of $f$ can be obtained from any other using rational functions. In fact, we have $$ \begin{aligned} & x^{3}=-\alpha_{i}-3 \beta_{j}+3 \alpha_{i} \beta_{j}^{2}+\beta_{j}^{3} \\ & x^{5}=11 \alpha_{i}+7 \beta_{j}-10 \alpha_{i} \beta_{j}^{2}-10 \beta_{j}^{3} \\ & x^{7}=-71 \alpha_{i}-49 \beta_{j}+35 \alpha_{i} \beta_{j}^{2}+37 \beta_{j}^{3} \end{aligned} $$ from which we easily obtain that $\alpha_{i}=24^{-1}\left(127 x+5 x^{3}+19 x^{5}+5 x^{7}\right), \quad \beta_{j}=24^{-1}\left(151 x+5 x^{3}+19 x^{5}+5 x^{7}\right)$. Since all other values of $\alpha$ and $\beta$ can be obtained as rational functions of $\alpha_{i}$ and $\beta_{j}$, it follows that all the roots $x_{l}$ are rational functions of a particular root $x_{k}$. We now note that if $x_{1}$ is an integer such that $f\left(x_{1}\right)$ is divisible by $p$, then $p>3$ and $x_{1} \in \mathbb{Z}_{p}$ is a root of the polynomial $f$. By the previous consideration, all remaining roots $x_{2}, \ldots, x_{8}$ of $f$ over the field $\mathbb{Z}_{p}$ are rational functions of $x_{1}$, since 24 is invertible in $Z_{p}$. Then $f(x)$ factors as $$ f(x)=\left(x-x_{1}\right)\left(x-x_{2}\right) \cdots\left(x-x_{8}\right), $$ and the result follows. 20. Denote by $U$ the point of tangency of the circle $C$ and the line $l$. Let $X$ and $U^{\prime}$ be the points symmetric to $U$ with respect to $S$ and $M$ respectively; these points do not depend on the choice of $P$. Also, let $C^{\prime}$ be the excircle of $\triangle P Q R$ corresponding to $P, S^{\prime}$ the center of $C^{\prime}$, and $W, W^{\prime}$ the points of tangency of $C$ and $C^{\prime}$ with the line $P Q$ respectively. Obviously, $\triangle W S P \sim \triangle W^{\prime} S^{\prime} P$. Since $S X \| S^{\prime} U^{\prime}$ and $S X: S^{\prime} U^{\prime}=$ $S W: S^{\prime} W^{\prime}=S P: S^{\prime} P$, we deduce that $\Delta S X P \sim \Delta S^{\prime} U^{\prime} P$, and consequently that $P$ lies on the line $X U^{\prime}$. On the other hand, it is easy to show that each point $P$ of the ray $U^{\prime} X$ over $X$ satisfies the required condition. Thus the desired locus is ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-575.jpg?height=543&width=539&top_left_y=908&top_left_x=799) the extension of $U^{\prime} X$ over $X$. 21. (a) Representing $n^{2}$ as a sum of $n^{2}-13$ squares is equivalent to representing 13 as a sum of numbers of the form $x^{2}-1, x \in \mathbb{N}$, such as $0,3,8,15, \ldots$ But it is easy to check that this is impossible, and hence $s(n) \leq n^{2}-14$. (b) Let us prove that $s(13)=13^{2}-14=155$. Observe that $$ \begin{aligned} 13^{2} & =8^{2}+8^{2}+4^{2}+4^{2}+3^{2} \\ & =8^{2}+8^{2}+4^{2}+4^{2}+2^{2}+2^{2}+1^{2} \\ & =8^{2}+8^{2}+4^{2}+3^{2}+3^{2}+2^{2}+1^{2}+1^{2}+1^{2} \end{aligned} $$ Given any representation of $n^{2}$ as a sum of $m$ squares one of which is even, we can construct a representation as a sum of $m+3$ squares by dividing the odd square into four equal squares. Thus the first equality enables us to construct representations with $5,8,11, \ldots, 155$ squares, the second to construct ones with $7,10,13, \ldots, 154$ squares, and the third with $9,12, \ldots, 153$ squares. It remains only to represent $13^{2}$ as a sum of $k=2,3,4,6$ squares. This can be done as follows: $$ \begin{aligned} 13^{2} & =12^{2}+5^{2}=12^{2}+4^{2}+3^{2} \\ & =11^{2}+4^{2}+4^{2}+4^{2}=12^{2}+3^{2}+2^{2}+2^{2}+2^{2}+2^{2} \end{aligned} $$ (c) We shall prove that whenever $s(n)=n^{2}-14$ for some $n \geq 13$, it also holds that $s(2 n)=(2 n)^{2}-14$. This will imply that $s(n)=n^{2}-14$ for any $n=2^{t} \cdot 13$. If $n^{2}=x_{1}^{2}+\cdots+x_{r}^{2}$, then we have $(2 n)^{2}=\left(2 x_{1}\right)^{2}+\cdots+\left(2 x_{r}\right)^{2}$. Replacing $\left(2 x_{i}\right)^{2}$ with $x_{i}^{2}+x_{i}^{2}+x_{i}^{2}+x_{i}^{2}$ as long as it is possible we can obtain representations of $(2 n)^{2}$ consisting of $r, r+3, \ldots, 4 r$ squares. This gives representations of $(2 n)^{2}$ into $k$ squares for any $k \leq 4 n^{2}-62$. Further, we observe that each number $m \geq 14$ can be written as a sum of $k \geq m$ numbers of the form $x^{2}-1, x \in \mathbb{N}$, which is easy to verify. Therefore if $k \leq 4 n^{2}-14$, it follows that $4 n^{2}-k$ is a sum of $k$ numbers of the form $x^{2}-1$ (since $k \geq 4 n^{2}-k \geq 14$ ), and consequently $4 n^{2}$ is a sum of $k$ squares. Remark. One can find exactly the value of $f(n)$ for each $n$ : $$ f(n)= \begin{cases}1, & \text { if } n \text { has a prime divisor congruent to } 3 \bmod 4 \\ 2, & \text { if } n \text { is of the form } 5 \cdot 2^{k}, k \text { a positive integer; } \\ n^{2}-14, & \text { otherwise. }\end{cases} $$ ### 4.34 Solutions to the Shortlisted Problems of IMO 1993 1. First we notice that for a rational point $O$ (i.e., with rational coordinates), there exist 1993 rational points in each quadrant of the unit circle centered at $O$. In fact, it suffices to take $$ X=\left\{\left.O+\left( \pm \frac{t^{2}-1}{t^{2}+1}, \pm \frac{2 t}{t^{2}+1}\right) \right\rvert\, t=1,2, \ldots, 1993\right\} $$ Now consider the set $A=\{(i / q, j / q) \mid i, j=0,1, \ldots, 2 q\}$, where $q=$ $\prod_{i=1}^{1993}\left(t^{2}+1\right)$. We claim that $A$ gives a solution for the problem. Indeed, for any $P \in A$ there is a quarter of the unit circle centered at $P$ that is contained in the square $[0,2] \times[0,2]$. As explained above, there are 1993 rational points on this quarter circle, and by definition of $q$ they all belong to $A$. Remark. Substantially the same problem was proposed by Bulgaria for IMO 71: see (SL71-2), where we give another possible construction of a set $A$. 2. It is well known that $r \leq \frac{1}{2} R$. Therefore $\frac{1}{3}(1+r)^{2} \leq \frac{1}{3}\left(1+\frac{1}{2}\right)^{2}=\frac{3}{4}$. It remains only to show that $p \leq \frac{1}{4}$. We note that $p$ does not exceed one half of the circumradius of $\triangle A^{\prime} B^{\prime} C^{\prime}$. However, by the theorem on the nine-point circle, this circumradius is equal to $\frac{1}{2} R$, and the conclusion follows. Second solution. By a well-known relation we have $\cos A+\cos B+\cos C=$ $1+\frac{r}{R}(=1+r$ when $R=1)$. Next, recalling that the incenter of $\triangle A^{\prime} B^{\prime} C^{\prime}$ is at the orthocenter of $\triangle A B C$, we easily obtain $p=2 \cos A \cos B \cos C$. Cosines of angles of a triangle satisfy the identity $\cos ^{2} A+\cos ^{2} B+\cos ^{2} C+$ $2 \cos A \cos B \cos C=1$ (the proof is straightforward: see (SL81-11)). Thus $$ \begin{aligned} p+\frac{1}{3}(1+r)^{2} & =2 \cos A \cos B \cos C+\frac{1}{3}(\cos A+\cos B+\cos C)^{2} \\ & \leq 2 \cos A \cos B \cos C+\cos ^{2} A+\cos ^{2} B+\cos ^{2} C=1 \end{aligned} $$ 3. Let $O_{1}$ and $\rho$ be the center and radius of $k_{c}$. It is clear that $C, I, O_{1}$ are collinear and $C I / C O_{1}=r / \rho$. By Stewart's theorem applied to $\triangle O C O_{1}$, $$ O I^{2}=\frac{r}{\rho} O O_{1}^{2}+\left(1-\frac{r}{\rho}\right) O C^{2}-C I \cdot I O_{1} . $$ Since $O O_{1}=R-\rho, O C=R$ and by Euler's formula $O I^{2}=R^{2}-2 R r$, substituting these values in (1) gives $C I \cdot I O_{1}=r \rho$, or equivalently $C O_{1}$. $I O_{1}=\rho^{2}=D O_{1}^{2}$. Hence the triangles $C O_{1} D$ and $D O_{1} I$ are similar, implying $\angle D I O_{1}=90^{\circ}$. Since $C D=C E$ and the line $C O_{1}$ bisects the segment $D E$, it follows that $I$ is the midpoint of $D E$. Second solution. Under the inversion with center $C$ and power $a b, k_{c}$ is transformed into the excircle of $\widehat{A} \widehat{B} C$ corresponding to $C$. Thus $C D=$ $\frac{a b}{s}$, where $s$ is the common semiperimeter of $\triangle A B C$ and $\triangle \widehat{A} \widehat{B} C$, and consequently the distance from $D$ to $B C$ is $\frac{a b}{s} \sin C=\frac{2 S_{A B C}}{s}=2 r$. The statement follows immediately. Third solution. We shall prove a stronger statement: Let $A B C D$ be a convex quadrilateral inscribed in a circle $k$, and $k^{\prime}$ the circle that is tangent to segments $B O, A O$ at $K, L$ respectively (where $O=B D \cap A C$ ), and internally to $k$ at $M$. Then $K L$ contains the incenters $I, J$ of $\triangle A B C$ and $\triangle A B D$. Let $K^{\prime}, K^{\prime \prime}, L^{\prime}, L^{\prime \prime}, N$ denote the midpoints of arcs $B C, B D, A C, A D, A B$ that don't contain $M ; X^{\prime}, X^{\prime \prime}$ the points on $k$ defined by $X^{\prime} N=N X^{\prime \prime}=$ $K^{\prime} K^{\prime \prime}=L^{\prime} L^{\prime \prime}$ (as oriented arcs); and set $S=A K^{\prime} \cap B L^{\prime \prime}, \bar{M}=N S \cap k$, $\bar{K}=K^{\prime \prime} M \cap B O, \bar{L}=L^{\prime} M \cap A O$. It is clear that $I=A K^{\prime} \cap B L^{\prime}, J=A K^{\prime \prime} \cap B L^{\prime \prime}$. Furthermore, $X^{\prime} \bar{M}$ contains $I$ (to see this, use the fact that for $A, B, C, D, E, F$ on $k$, lines $A D, B E, C F$ are concurrent if and only if $A B \cdot C D \cdot E F=B C \cdot D E \cdot F A$, and then express $A \bar{M} / \bar{M} B$ by applying this rule to $A M B K^{\prime} N L^{\prime \prime}$ and show that $A K^{\prime}, \bar{M} X^{\prime}, B L^{\prime}$ are concurrent). Analogously, $X^{\prime \prime} \bar{M}$ contains $J$. Now the points $B, \bar{K}, I, S, \bar{M}$ lie on a circle $(\angle B \overline{K M}=\angle B I \bar{M}=\angle B S \bar{M})$, and points $A, \bar{L}, J, S, \bar{M}$ do so as well. Lines $I \bar{K}, J \bar{L}$ are parallel to $K^{\prime \prime} L^{\prime}$ (because $\angle \overline{M K} I=\angle \bar{M} B I=$ $\left.\angle \bar{M} K^{\prime \prime} L^{\prime}\right)$. On the other hand, the quadrilateral $A B I J$ is cyclic, and simple calculation with angles shows that $I J$ is also parallel to $K^{\prime \prime} L^{\prime}$. Hence $\bar{K}, I, J, \bar{L}$ are collinear. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-578.jpg?height=496&width=523&top_left_y=967&top_left_x=827) Finally, $\bar{K} \equiv K, \bar{L} \equiv L$, and $\bar{M} \equiv M$ because the homothety centered at $M$ that maps $k^{\prime}$ to $k$ sends $K$ to $K^{\prime \prime}$ and $L$ to $L^{\prime}$ (thus $M, K, K^{\prime \prime}$, as well as $M, L, L^{\prime}$, must be collinear). As is seen now, the deciphered picture yields many other interesting properties. Thus, for example, $N, S, M$ are collinear, i.e., $\angle A M S=\angle B M S$. Fourth solution. We give an alternative proof of the more general statement in the third solution. Let $W$ be the foot of the perpendicular from $B$ to $A C$. We define $q=C W, h=B W, t=O L=O K, x=A L$, $\theta=\measuredangle W B O(\theta$ is negative if $\mathcal{B}(O, W, A), \theta=0$ if $W=O)$, and as usual, $a=B C, b=A C, c=A B$. Let $\alpha=\measuredangle K L C$ and $\beta=\measuredangle I L C$ (both angles must be acute). Our goal is to prove $\alpha=\beta$. We note that $90^{\circ}-\theta=2 \alpha$. One easily gets $$ \tan \alpha=\frac{\cos \theta}{1+\sin \theta}, \quad \tan \beta=\frac{\frac{2 S_{A B C}}{a+b+c}}{\frac{b+c-a}{2}-x} $$ Applying Casey's theorem to $A, B, C, k^{\prime}$, we get $A C \cdot B K+A L \cdot B C=$ $A B \cdot C L$, i.e., $b\left(\frac{h}{\cos \theta}-t\right)+x a=c(b-x)$. Using that $t=b-x-q-h \tan \theta$ we get $$ x=\frac{b(b+c-q)-b h\left(\frac{1}{\cos \theta}+\tan \theta\right)}{a+b+c} . $$ Plugging (2) into the second equation of (1) and using $b h=2 S_{A B C}$ and $c^{2}=b^{2}+a^{2}-2 b q$, we obtain $\tan \alpha=\tan \beta$, i.e., $\alpha=\beta$, which completes our proof. 4. Let $h$ be the altitude from $A$ and $\varphi=\angle B A D$. We have $B M=\frac{1}{2}(B D+$ $A B-A D)$ and $M D=\frac{1}{2}(B D-A B+A D)$, so $$ \begin{aligned} \frac{1}{M B}+\frac{1}{M D} & =\frac{B D}{M B \cdot M D}=\frac{4 B D}{B D^{2}-A B^{2}-A D^{2}+2 A B \cdot A D} \\ & =\frac{4 B D}{2 A B \cdot A D(1-\cos \varphi)}=\frac{2 B D \sin \varphi}{2 S_{A B D}(1-\cos \varphi)} \\ & =\frac{2 B D \sin \varphi}{B D \cdot h(1-\cos \varphi)}=\frac{2}{h \tan \frac{\varphi}{2}} . \end{aligned} $$ It follows that $\frac{1}{M B}+\frac{1}{M D}$ depends only on $h$ and $\varphi$. Specially, $\frac{1}{N C}+\frac{1}{N E}=$ $\frac{2}{h \tan (\varphi / 2)}$ as well. 5. For $n=1$ the game is trivially over. If $n=2$, it can end, for example, in the following way: ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-579.jpg?height=144&width=534&top_left_y=1229&top_left_x=510) Fig. 1 The sequence of moves shown in Fig. 2 enables us to remove three pieces placed in a $1 \times 3$ rectangle, using one more piece and one more free cell. In that way, for any $n \geq 4$ we can reduce an $(n+3) \times(n+3)$ square to an $n \times n$ square (Fig. 3). Therefore the game can end for every $n$ that is not divisible by 3 . ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-579.jpg?height=123&width=595&top_left_y=1716&top_left_x=265) Fig. 2 ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-579.jpg?height=272&width=272&top_left_y=1642&top_left_x=1050) Fig. 3 Suppose now that one can play the game on a $3 k \times 3 k$ square so that at the end only one piece remains. Denote the cells by $(i, j), i, j \in\{1, \ldots, 3 k\}$, and let $S_{0}, S_{1}, S_{2}$ denote the numbers of pieces on those squares $(i, j)$ for which $i+j$ gives remainder $0,1,2$ respectively upon division by 3 . Initially $S_{0}=S_{1}=S_{2}=3 k^{2}$. After each move, two of $S_{0}, S_{1}, S_{2}$ diminish and one increases by one. Thus each move reverses the parity of the $S_{i}$ 's, so that $S_{0}, S_{1}, S_{2}$ are always of the same parity. But in the final position one of the $S_{i}$ 's must be equal to 1 and the other two must be 0 , which is impossible. 6. Notice that for $\alpha=\frac{1+\sqrt{5}}{2}, \alpha^{2} n=\alpha n+n$ for all $n \in \mathbb{N}$. We shall show that $f(n)=\left[\alpha n+\frac{1}{2}\right]$ (the closest integer to $\alpha n$ ) satisfies the requirements. Observe that $f$ is strictly increasing and $f(1)=2$. By the definition of $f$, $|f(n)-\alpha n| \leq \frac{1}{2}$ and $f(f(n))-f(n)-n$ is an integer. On the other hand, $$ \begin{aligned} |f(f(n))-f(n)-n| & =\left|f(f(n))-f(n)-\alpha^{2} n+\alpha n\right| \\ & =\left|f(f(n))-\alpha f(n)+\alpha f(n)-\alpha^{2} n-f(n)+\alpha n\right| \\ & =|(\alpha-1)(f(n)-\alpha n)+(f(f(n))-\alpha f(n))| \\ & \leq(\alpha-1)|f(n)-\alpha n|+|f(f(n))-\alpha f(n)| \\ & \leq \frac{1}{2}(\alpha-1)+\frac{1}{2}=\frac{1}{2} \alpha<1, \end{aligned} $$ which implies that $f(f(n))-f(n)-n=0$. 7. Multiplying by $a$ and $c$ the equation $$ a x^{2}+2 b x y+c y^{2}=P^{k} n $$ gives $(a x+b y)^{2}+P y^{2}=a P^{k} n$ and $(b x+c y)^{2}+P x^{2}=c P^{k} n$. It follows immediately that $M(n)$ is finite; moreover, $(a x+b y)^{2}$ and $(b x+$ $c y)^{2}$ are divisible by $P$, and consequently $a x+b y, b x+c y$ are divisible by $P$ because $P$ is not divisible by a square greater than 1 . Thus there exist integers $X, Y$ such that $b x+c y=P X, a x+b y=-P Y$. Then $x=-b X-c Y$ and $y=a X+b Y$. Introducing these values into (1) and simplifying the expression obtained we get $$ a X^{2}+2 b X Y+c Y^{2}=P^{k-1} n $$ Hence $(x, y) \mapsto(X, Y)$ is a bijective correspondence between integral solutions of (1) and (2), so that $M\left(P^{k} n\right)=M\left(P^{k-1} n\right)=\cdots=M(n)$. 8. Suppose that $f(n)=1$ for some $n>0$. Then $f(n+1)=n+2, f(n+$ $2)=2 n+4, f(n+3)=n+1, f(n+4)=2 n+5, f(n+5)=n$, and so by induction $f(n+2 k)=2 n+3+k, f(n+2 k-1)=n+3-k$ for $k=1,2, \ldots, n+2$. Particularly, $n^{\prime}=3 n+3$ is the smallest value greater than $n$ for which $f\left(n^{\prime}\right)=1$. It follows that all numbers $n$ with $f(n)=1$ are given by $n=b_{i}$, where $b_{0}=1, b_{n}=3 b_{n-1}+3$. Furthermore, $b_{n}=3+3 b_{n-1}=3+3^{2}+3^{2} b_{n-2}=\cdots=3+3^{2}+\cdots+3^{n}+3^{n}=$ $=\frac{1}{2}\left(5 \cdot 3^{n}-3\right)$. It is seen from above that if $n \leq b_{i}$, then $f(n) \leq f\left(b_{i}-1\right)=b_{i}+1$. Hence if $f(n)=1993$, then $n \geq b_{i} \geq 1992$ for some $i$. The smallest such $b_{i}$ is $b_{7}=5466$, and $f\left(b_{i}+2 k-1\right)=b_{i}+3-k=1993$ implies $k=3476$. Thus the least integer in $S$ is $n_{1}=5466+2 \cdot 3476-1=12417$. All the elements of $S$ are given by $n_{i}=b_{i+6}+2 k-1$, where $b_{i+6}+3-k=$ 1993, i.e., $k=b_{i+6}-1990$. Therefore $n_{i}=3 b_{i+6}-3981=\frac{1}{2}\left(5 \cdot 3^{i+7}-7971\right)$. Clearly $S$ is infinite and $\lim _{i \rightarrow \infty} \frac{n_{i+1}}{n_{i}}=3$. 9. We shall first complete the "multiplication table" for the sets $A, B, C$. It is clear that this multiplication is commutative and associative, so that we have the following relations: $$ \begin{aligned} & A C=(A B) B=B B=C \\ & A^{2}=A A=(A B) C=B C=A \\ & C^{2}=C C=B(B C)=B A=B \end{aligned} $$ (a) Now put 1 in $A$ and distribute the primes arbitrarily in $A, B, C$. This distribution uniquely determines the partition of $\mathbb{Q}^{+}$with the stated property. Indeed, if an arbitrary rational number $$ x=p_{1}^{\alpha_{1}} \cdots p_{k}^{\alpha_{k}} q_{1}^{\beta_{1}} \cdots q_{l}^{\beta_{l}} r_{1}^{\gamma_{1}} \cdots r_{m}^{\gamma_{m}} $$ is given, where $p_{i} \in A, q_{i} \in B, r_{i} \in C$ are primes, it is easy to see that $x$ belongs to $A, B$, or $C$ according as $\beta_{1}+\cdots+\beta_{l}+2 \gamma_{1}+\cdots+2 \gamma_{m}$ is congruent to 0,1 , or $2(\bmod 3)$. (b) In every such partition, cubes all belong to $A$. In fact, $A^{3}=A^{2} A=$ $A A=A, B^{3}=B^{2} B=C B=A, C^{3}=C^{2} C=B C=A$. (c) By (b) we have $1,8,27 \in A$. Then $2 \notin A$, and since the problem is symmetric with respect to $B, C$, we can assume $2 \in B$ and consequently $4 \in C$. Also $7 \notin A$, and also $7 \notin B$ (otherwise, $28=4 \cdot 7 \in A$ and $27 \in A$ ), so $7 \in C, 14 \in A, 28 \in B$. Further, we see that $3 \notin A$ (since otherwise $9 \in A$ and $8 \in A$ ). Put 3 in $C$. Then $5 \notin B$ (otherwise $15 \in A$ and $14 \in A$ ), so let $5 \in C$ too. Consequently $6,10 \in A$. Also $13 \notin A$, and $13 \notin C$ because $26 \notin A$, so $13 \in B$. Now it is easy to distribute the remaining primes $11,17,19,23,29,31$ : one possibility is $$ \begin{aligned} & A=\{1,6,8,10,14,19,23,27,29,31,33, \ldots\}, \\ & C=\{3,4,5,7,18,22,24,26,30,32,34, \ldots\} \\ & B=\{2,9,11,12,13,15,16,17,20,21,25,28,35, \ldots\} \end{aligned} $$ Remark. It can be proved that $\min \{n \in \mathbb{N} \mid n \in A, n+1 \in A\} \leq 77$. 10. (a) Let $n=p$ be a prime and let $p \mid a^{p}-1$. By Fermat's theorem $p \mid$ $a^{p-1}-1$, so that $p \mid a^{\operatorname{gcd}(p, p-1)}-1=a-1$, i.e., $a \equiv 1(\bmod p)$. Since then $a^{i} \equiv 1(\bmod p)$, we obtain $p \mid a^{p-1}+\cdots+a+1$ and hence $p^{2} \mid a^{p}-1=(a-1)\left(a^{p-1}+\cdots+a+1\right)$. (b) Let $n=p_{1} \cdots p_{k}$ be a product of distinct primes and let $n \mid a^{n}-1$. Then from $p_{i} \mid a^{n}-1=\left(a^{\left(n / p_{i}\right)}\right)^{p_{i}}-1$ and part (a) we conclude that $p_{i}^{2} \mid a^{n}-1$. Since this is true for all indices $i$, we also have $n^{2} \mid a^{n}-1$; hence $n$ has the property $P$. 11. Due to the extended Eisenstein criterion, $f$ must have an irreducible factor of degree not less than $n-1$. Since $f$ has no integral zeros, it must be irreducible. Second solution. The proposer's solution was as follows. Suppose that $f(x)=g(x) h(x)$, where $g, h$ are nonconstant polynomials with integer coefficients. Since $|f(0)|=3$, either $|g(0)|=1$ or $|h(0)|=1$. We may assume $|g(0)|=1$ and that $g(x)=\left(x-\alpha_{1}\right) \cdots\left(x-\alpha_{k}\right)$. Then $\left|\alpha_{1} \cdots \alpha_{k}\right|=$ 1. Since $\alpha_{i}^{n-1}\left(\alpha_{i}+5\right)=-3$, taking the product over $i=1,2, \ldots, k$ yields $\left|\left(\alpha_{1}+5\right) \cdots\left(\alpha_{k}+5\right)\right|=|g(-5)|=3^{k}$. But $f(-5)=g(-5) h(-5)=3$, so the only possibility is $\operatorname{deg} g=k=1$. This is impossible, because $f$ has no integral zeros. Remark. Generalizing this solution, it can be shown that if $a, m, n$ are positive integers and $p1$, let $S_{N}=\{(m, n) \in S \mid m+n=N\}$. If $f(m, n)=\left(m_{1}, n_{1}\right)$, then $m_{1}+n_{1}=m+n$ with $m_{1}$ odd and $m_{1} \leq \frac{n}{2}<$ $\frac{N}{2}n_{2}>\cdots>n_{s}$. First, suppose that $n_{i} \equiv n_{j}(\bmod n), i \neq j$. Consider the number $$ B=A-a_{i} b^{n_{i}}-a_{j} b^{n_{j}}+\left(a_{i}+a_{j}\right) b^{n_{j}+k n} $$ with $k$ chosen large enough so that $n_{j}+k n>n_{1}$ : this number is divisible by $b^{n}-1$ as well. But if $a_{i}+a_{j}-\frac{c_{i}}{n}$ implies $$ \sum_{i=1}^{n} q_{i}>-\sum_{i=1}^{n} \frac{c_{i}}{n} \geq-1 $$ which leads to $\sum_{i=1}^{n} q_{i} \geq 0$. The proof is complete. 21. Assume that $S$ is a circle with center $O$ that cuts $S_{i}$ diametrically in points $P_{i}, Q_{i}, i \in\{A, B, C\}$, and denote by $r_{i}, r$ the radii of $S_{i}$ and $S$ respectively. Since $O A$ is perpendicular to $P_{A} Q_{A}$, it follows by Pythagoras's theorem that $O A^{2}+A P_{A}^{2}=O P_{A}^{2}$, i.e., $r_{A}^{2}+O A^{2}=r^{2}$. Analogously $r_{B}^{2}+O B^{2}=r^{2}$ and $r_{C}^{2}+O C^{2}=r^{2}$. Thus if $O_{A}, O_{B}, O_{C}$ are the feet of perpendiculars from $O$ to $B C, C A, A B$ respectively, then $O_{C} A^{2}-O_{C} B^{2}=r_{B}^{2}-r_{A}^{2}$. Since the left-hand side is a monotonic function of $O_{C} \in A B$, the point $O_{C}$ is uniquely determined by the imposed conditions. The same holds for $O_{A}$ and $O_{B}$. If $A, B, C$ are not collinear, then the positions of $O_{A}, O_{B}, O_{C}$ uniquely determine the point $O$, and therefore the circle $S$ also. On the other hand, if $A, B, C$ are collinear, all one can deduce is that $O$ lies on the lines $l_{A}, l_{B}, l_{C}$ through $O_{A}, O_{B}, O_{C}$, perpendicular to $B C, C A, A B$ respectively. By this, $l_{A}, l_{B}, l_{C}$ are parallel, so $O$ can be either anywhere on the line if these lines coincide, or ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-586.jpg?height=480&width=544&top_left_y=1409&top_left_x=810) nowhere if they don't coincide. So if there exists more than one circle $S$, $A, B, C$ lie on a line and the foot $O^{\prime}$ of the perpendicular from $O$ to the line $A B C$ is fixed. If $X, Y$ are the intersection points of $S$ and the line $A B C$, then $r^{2}=O X^{2}=O A^{2}+r_{A}^{2}$ and consequently $O^{\prime} X^{2}=O^{\prime} A^{2}+r_{A}^{2}$, which implies that $X, Y$ are fixed. 22. Let $M$ be the point inside $\angle A D B$ that satisfies $D M=D B$ and $D M \perp$ $D B$. Then $\angle A D M=\angle A C B$ and $A D / D M=A C / C B$. It follows that the triangles $A D M, A C B$ are similar; hence $\angle C A D=\angle B A M$ (because $\angle C A B=\angle D A M$ ) and $A B / A M=A C / A D$. Consequently the triangles $C A D, B A M$ are similar and therefore $\frac{A C}{A B}=\frac{C D}{B M}=$ $\frac{C D}{\sqrt{2} B D}$. Hence $\frac{A B \cdot C D}{A C \cdot B D}=\sqrt{2}$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-587.jpg?height=380&width=391&top_left_y=239&top_left_x=882) Let $C T, C U$ be the tangents at $C$ to the circles $A C D, B C D$ respectively. Then (in oriented angles) $\angle T C U=\angle T C D+\angle D C U=\angle C A D+\angle C B D=$ $90^{\circ}$, as required. Second solution to the first part. Denote by $E, F, G$ the feet of the perpendiculars from $D$ to $B C, C A, A B$. Consider the pedal triangle $E F G$. Since $F G=A D \sin \angle A$, from the sine theorem we have $F G: G E: E F=$ $(C D \cdot A B):(B D \cdot A C):(A D \cdot B C)$. Thus $E G=F G$. On the other hand, $\angle E G F=\angle E G D+\angle D G F=\angle C B D+\angle C A D=90^{\circ}$ implies that $E F: E G=\sqrt{2}: 1$; hence the required ratio is $\sqrt{2}$. Third solution to the first part. Under inversion centered at $C$ and with power $r^{2}=C A \cdot C B$, the triangle $D A B$ maps into a right-angled isosceles triangle $D^{*} A^{*} B^{*}$, where $$ D^{*} A^{*}=\frac{A D \cdot B C}{C D}, D^{*} B^{*}=\frac{A C \cdot B D}{C D}, A^{*} B^{*}=\frac{A B \cdot C D}{C D} . $$ Thus $D^{*} B^{*}: A^{*} B^{*}=\sqrt{2}$, and this is the required ratio. 23. Let the given numbers be $a_{1}, \ldots, a_{n}$. Put $s=a_{1}+\cdots+a_{n}$ and $m=$ $\operatorname{lcm}\left(a_{1}, \ldots, a_{n}\right)$ and write $m=2^{k} r$ with $k \geq 0$ and $r$ odd. Let the binary expansion of $r$ be $r=2^{k_{0}}+2^{k_{1}}+\cdots+2^{k_{t}}$, with $0=k_{0}<\cdots1$ (since the case $a<-1$ is reduced to $a>1$ by taking $a^{\prime}=-a, x_{i}^{\prime}=-x_{i}$ ). Since the left sides of the equations are nonnegative, we have $x_{i} \geq-\frac{1}{a}>-1, i=1, \ldots, 1000$. Suppose w.l.o.g. that $x_{1}=\max \left\{x_{i}\right\}$. In particular, $x_{1} \geq x_{2}, x_{3}$. If $x_{1} \geq 0$, then we deduce that $x_{1000}^{2} \geq 1 \Rightarrow x_{1000} \geq 1$; further, from this we deduce that $x_{999}>1$ etc., so either $x_{i}>1$ for all $i$ or $x_{i}<0$ for all $i$. (i) $x_{i}>1$ for every $i$. Then $x_{1} \geq x_{2}$ implies $x_{1}^{2} \geq x_{2}^{2}$, so $x_{2} \geq x_{3}$. Thus $x_{1} \geq x_{2} \geq \cdots \geq x_{1000} \geq x_{1}$, and consequently $x_{1}=\cdots=x_{1000}$. In this case the only solution is $x_{i}=\frac{1}{2}\left(a+\sqrt{a^{2}+4}\right)$ for all $i$. (ii) $x_{i}<0$ for every $i$. Then $x_{1} \geq x_{3}$ implies $x_{1}^{2} \leq x_{3}^{2} \Rightarrow x_{2} \leq x_{4}$. Similarly, this leads to $x_{3} \geq x_{5}$, etc. Hence $x_{1} \geq x_{3} \geq x_{5} \geq \cdots \geq x_{999} \geq x_{1}$ and $x_{2} \leq x_{4} \leq \cdots \leq x_{2}$, so we deduce that $x_{1}=x_{3}=\cdots$ and $x_{2}=x_{4}=$ $\cdots$. Therefore the system is reduced to $x_{1}^{2}=a x_{2}+1, x_{2}^{2}=a x_{1}+1$. Subtracting these equations, one obtains $\left(x_{1}-x_{2}\right)\left(x_{1}+x_{2}+a\right)=0$. There are two possibilities: (1) If $x_{1}=x_{2}$, then $x_{1}=x_{2}=\cdots=\frac{1}{2}\left(a-\sqrt{a^{2}+4}\right)$. (2) $x_{1}+x_{2}+a=0$ is equivalent to $x_{1}^{2}+a x_{1}+\left(a^{2}-1\right)=0$. The discriminant of the last equation is $4-3 a^{2}$. Therefore if $a>\frac{2}{\sqrt{3}}$, this case yields no solutions, while if $a \leq \frac{2}{\sqrt{3}}$, we obtain $x_{1}=$ $\frac{1}{2}\left(-a-\sqrt{4-3 a^{2}}\right), x_{2}=\frac{1}{2}\left(-a+\sqrt{4-3 a^{2}}\right)$, or vice versa. 26. Set $$ \begin{aligned} f(a, b, c, d) & =a b c+b c d+c d a+d a b-\frac{176}{27} a b c d \\ & =a b(c+d)+c d\left(a+b-\frac{176}{27} a b\right) . \end{aligned} $$ If $a+b-\frac{176}{a} b \leq 0$, by the arithmetic-geometric inequality we have $f(a, b, c, d) \leq a b(c+d) \leq \frac{1}{27}$. On the other hand, if $a+b-\frac{176}{a} b>0$, the value of $f$ increases if $c, d$ are replaced by $\frac{c+d}{2}, \frac{c+d}{2}$. Consider now the following fourtuplets: $$ \begin{gathered} P_{0}(a, b, c, d), P_{1}\left(a, b, \frac{c+d}{2}, \frac{c+d}{2}\right), P_{2}\left(\frac{a+b}{2}, \frac{a+b}{2}, \frac{c+d}{2}, \frac{c+d}{2}\right), \\ P_{3}\left(\frac{1}{4}, \frac{a+b}{2}, \frac{c+d}{2}, \frac{1}{4}\right), P_{4}\left(\frac{1}{4}, \frac{1}{4}, \frac{1}{4}, \frac{1}{4}\right) \end{gathered} $$ From the above considerations we deduce that for $i=0,1,2,3$ either $f\left(P_{i}\right) \leq f\left(P_{i+1}\right)$, or directly $f\left(P_{i}\right) \leq 1 / 27$. Since $f\left(P_{4}\right)=1 / 27$, in every case we are led to $$ f(a, b, c, d)=f\left(P_{0}\right) \leq \frac{1}{27} $$ Equality occurs only in the cases $(0,1 / 3,1 / 3,1 / 3)$ (with permutations) and ( $1 / 4,1 / 4,1 / 4,1 / 4)$. Remark. Lagrange multipliers also work. On the boundary of the set one of the numbers $a, b, c, d$ is 0 , and the inequality immediately follows, while for an extremum point in the interior, among $a, b, c, d$ there are at most two distinct values, in which case one easily verifies the inequality. ### 4.35 Solutions to the Shortlisted Problems of IMO 1994 1. Obviously $a_{0}>a_{1}>a_{2}>\cdots$. Since $a_{k}-a_{k+1}=1-\frac{1}{a_{k}+1}$, we have $a_{n}=a_{0}+\left(a_{1}-a_{0}\right)+\cdots+\left(a_{n}-a_{n-1}\right)=1994-n+\frac{1}{a_{0}+1}+\cdots+\frac{1}{a_{n-1}+1}>$ $1994-n$. Also, for $1 \leq n \leq 998$, $$ \frac{1}{a_{0}+1}+\cdots+\frac{1}{a_{n-1}+1}<\frac{n}{a_{n-1}+1}<\frac{998}{a_{997}+1}<1 $$ because as above, $a_{997}>997$. Hence $\left\lfloor a_{n}\right\rfloor=1994-n$. 2. We may assume that $a_{1}>a_{2}>\cdots>a_{m}$. We claim that for $i=1, \ldots, m$, $a_{i}+a_{m+1-i} \geq n+1$. Indeed, otherwise $a_{i}+a_{m+1-i}, \ldots, a_{i}+a_{m-1}, a_{i}+a_{m}$ are $i$ different elements of $A$ greater than $a_{i}$, which is impossible. Now by adding for $i=1, \ldots, m$ we obtain $2\left(a_{1}+\cdots+a_{m}\right) \geq m(n+1)$, and the result follows. 3. The last condition implies that $f(x)=x$ has at most one solution in $(-1,0)$ and at most one solution in $(0, \infty)$. Suppose that for $u \in(-1,0)$, $f(u)=u$. Then putting $x=y=u$ in the given functional equation yields $f\left(u^{2}+2 u\right)=u^{2}+2 u$. Since $u \in(-1,0) \Rightarrow u^{2}+2 u \in(-1,0)$, we deduce that $u^{2}+2 u=u$, i.e., $u=-1$ or $u=0$, which is impossible. Similarly, if $f(v)=v$ for $v \in(0, \infty)$, we are led to the same contradiction. However, for all $x \in S, f(x+(1+x) f(x))=x+(1+x) f(x)$, so we must have $x+(1+x) f(x)=0$. Therefore $f(x)=-\frac{x}{1+x}$ for all $x \in S$. It is directly verified that this function satisfies all the conditions. 4. Suppose that $\alpha=\beta$. The given functional equation for $x=y$ yields $f(x / 2)=x^{-\alpha} f(x)^{2} / 2$; hence the functional equation can be written as $$ f(x) f(y)=\frac{1}{2} x^{\alpha} y^{-\alpha} f(y)^{2}+\frac{1}{2} y^{\alpha} x^{-\alpha} f(x)^{2} $$ i.e., $$ \left((x / y)^{\alpha / 2} f(y)-(y / x)^{\alpha / 2} f(x)\right)^{2}=0 $$ Hence $f(x) / x^{\alpha}=f(y) / y^{\alpha}$ for all $x, y \in \mathbb{R}^{+}$, so $f(x)=\lambda x^{\alpha}$ for some $\lambda$. Substituting into the functional equation we obtain that $\lambda=2^{1-\alpha}$ or $\lambda=0$. Thus either $f(x) \equiv 2^{1-\alpha} x^{\alpha}$ or $f(x) \equiv 0$. Now let $\alpha \neq \beta$. Interchanging $x$ with $y$ in the given equation and subtracting these equalities from each other, we get $\left(x^{\alpha}-x^{\beta}\right) f(y / 2)=\left(y^{\alpha}-\right.$ $\left.y^{\beta}\right) f(x / 2)$, so for some constant $\lambda \geq 0$ and all $x \neq 1, f(x / 2)=\lambda\left(x^{\alpha}-x^{\beta}\right)$. Substituting this into the given equation, we obtain that only $\lambda=0$ is possible, i.e., $f(x) \equiv 0$. 5. If $f^{(n)}(x)=\frac{p_{n}(x)}{q_{n}(x)}$ for some positive integer $n$ and polynomials $p_{n}, q_{n}$, then $$ f^{(n+1)}(x)=f\left(\frac{p_{n}(x)}{q_{n}(x)}\right)=\frac{p_{n}(x)^{2}+q_{n}(x)^{2}}{2 p_{n}(x) q_{n}(x)} $$ Note that $f^{(0)}(x)=x / 1$. Thus $f^{(n)}(x)=\frac{p_{n}(x)}{q_{n}(x)}$, where the sequence of polynomials $p_{n}, q_{n}$ is defined recursively by $$ \begin{gathered} p_{0}(x)=x, \quad q_{0}(x)=1, \text { and } \\ p_{n+1}(x)=p_{n}(x)^{2}+q_{n}(x)^{2}, q_{n+1}(x)=2 p_{n}(x) q_{n}(x) . \end{gathered} $$ Furthermore, $p_{0}(x) \pm q_{0}(x)=x \pm 1$ and $p_{n+1}(x) \pm q_{n+1}(x)=p_{n}(x)^{2}+$ $q_{n}(x)^{2} \pm 2 p_{n}(x) q_{n}(x)=\left(p_{n}(x) \pm q_{n}(x)\right)^{2}$, so $p_{n}(x) \pm q_{n}(x)=(x \pm 1)^{2^{n}}$ for all $n$. Hence $$ p_{n}(x)=\frac{(x+1)^{2^{n}}+(x-1)^{2^{n}}}{2} \quad \text { and } \quad q_{n}(x)=\frac{(x+1)^{2^{n}}-(x-1)^{2^{n}}}{2} . $$ Finally, $$ \begin{aligned} \frac{f^{(n)}(x)}{f^{(n+1)}(x)} & =\frac{p_{n}(x) q_{n+1}(x)}{q_{n}(x) p_{n+1}(x)}=\frac{2 p_{n}(x)^{2}}{p_{n+1}(x)}=\frac{\left((x+1)^{2^{n}}+(x-1)^{2^{n}}\right)^{2}}{(x+1)^{2^{n+1}}+(x-1)^{2^{n+1}}} \\ & =1+\frac{2\left(\frac{x+1}{x-1}\right)^{2^{n}}}{1+\left(\frac{x+1}{x-1}\right)^{2^{n+1}}}=1+\frac{1}{f\left(\left(\frac{x+1}{x-1}\right)^{2^{n}}\right)} \end{aligned} $$ 6. Call the first and second player $M$ and $N$ respectively. $N$ can keep $A \leq 6$. Indeed, let 10 dominoes be placed as shown in the picture, and whenever $M$ marks a 1 in a cell of some domino, let $N$ mark 0 in the other cell of that domino if it is still empty. Since any $3 \times 3$ square contains at least three complete domi- ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-591.jpg?height=252&width=249&top_left_y=1193&top_left_x=937) noes, there are at least three 0 's inside. Hence $A \leq 6$. We now show that $M$ can make $A=6$. Let him start by marking 1 in $c 3$. By symmetry, we may assume that $N$ 's response is made in row 4 or 5 . Then $M$ marks 1 in $c 2$. If $N$ puts 0 in $c 1$, then $M$ can always mark two 1's in $b \times\{1,2,3\}$ as well as three 1's in $\{a, d\} \times\{1,2,3\}$. Thus either $\{a, b, c\} \times\{1,2,3\}$ or $\{b, c, d\} \times\{1,2,3\}$ will contain six 1's. However, if $N$ does not play his second move in $c 1$, then $M$ plays there, and thus he can easily achieve to have six 1's either in $\{a, b, c\} \times\{1,2,3\}$ or $\{c, d, e\} \times\{1,2,3\}$. 7. Let $a_{1}, a_{2}, \ldots, a_{m}$ be the ages of the male citizens $(m \geq 1)$. We claim that the age of each female citizen can be expressed in the form $c_{1} a_{1}+\cdots+c_{m} a_{m}$ for some constants $c_{i} \geq 0$, and we will prove this by induction on the number $n$ of female citizens. The claim is clear if $n=1$. Suppose it holds for $n$ and consider the case of $n+1$ female citizens. Choose any of them, say $A$ of age $x$ who knows $k$ citizens (at least one male). By the induction hypothesis, the age of each of the other $n$ females is expressible as $c_{1} a_{1}+\cdots+c_{m} a_{m}+c_{0} x$, where $c_{i} \geq 0$ and $c_{0}+c_{1}+\cdots+c_{m}=1$. Consequently, the sum of ages of the $k$ citizens who know $A$ is $k x=b_{1} a_{1}+\cdots+b_{m} a_{m}+b_{0} x$ for some constants $b_{i} \geq 0$ with sum $k$. But $A$ knows at least one male citizen (who does not contribute to the coefficient of $x)$, so $b_{0} \leq k-1$. Hence $x=\frac{b_{1} a_{1}+\cdots+b_{m} a_{m}}{k-b_{0}}$, and the claim follows. 8. (a) Let $a, b, c, a \leq b \leq c$ be the amounts of money in dollars in Peter's first, second, and third account, respectively. If $a=0$, then we are done, so suppose that $a>0$. Let Peter make transfers of money into the first account as follows. Write $b=a q+r$ with $0 \leq r1994$ is trivial. Suppose that $n=1994$. Label the girls $G_{1}$ to $G_{1994}$, and let $G_{1}$ initially hold all the cards. At any moment give to each card the value $i, i=1, \ldots, 1994$, if $G_{i}$ holds it. Define the characteristic $C$ of a position as the sum of all these values. Initially $C=1994$. In each move, if $G_{i}$ passes cards to $G_{i-1}$ and $G_{i+1}$ (where $G_{0}=G_{1994}$ and $G_{1995}=G_{1}$ ), $C$ changes for $\pm 1994$ or does not change, so that it remains divisible by 1994. But if the game ends, the characteristic of the final position will be $C=1+2+\cdots+1994=$ $997 \cdot 1995$, which is not divisible by 1994. (b) Whenever a card is passed from one girl to another for the first time, let the girls sign their names on it. Thereafter, if one of them passes a card to her neighbor, we shall assume that the passed card is exactly the one signed by both of them. Thus each signed card is stuck between two neighboring girls, so if $n<1994$, there are two neighbors who never exchange cards. Consequently, there is a girl $G$ who played only a finite number of times. If her neighbor plays infinitely often, then after her last move, $G$ will continue to accumulate cards indefinitely, which is impossible. Hence every girl plays finitely many times. 11. Tile the table with dominoes and numbers as shown in the picture. The second player will not lose if whenever the first player plays in a cell of a domino, he plays in the other cell of the domino, and whenever the first player plays on a number, he plays on the same number that is diagonally adjacent. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-593.jpg?height=385&width=399&top_left_y=1025&top_left_x=851) 12. Define $S_{n}$ recursively as follows: Let $S_{2}=\{(0,0),(1,1)\}$ and $S_{n+1}=$ $S_{n} \cup T_{n}$, where $T_{n}=\left\{\left(x+2^{n-1}, y+M_{n}\right) \mid(x, y) \in S_{n}\right\}$, with $M_{n}$ chosen large enough so that the entire set $T_{n}$ lies above every line passing through two points of $S_{n}$. By definition, $S_{n}$ has exactly $2^{n-1}$ points and contains no three collinear points. We claim that no $2 n$ points of this set are the vertices of a convex $2 n$-gon. Consider an arbitrary convex polygon $\mathcal{P}$ with vertices in $S_{n}$. Join by a diagonal $d$ the two vertices of $\mathcal{P}$ having the smallest and greatest $x$ coordinates. This diagonal divides $\mathcal{P}$ into two convex polygons $\mathcal{P}_{1}, \mathcal{P}_{2}$, the former lying above $d$. We shall show by induction that both $\mathcal{P}_{1}, \mathcal{P}_{2}$ have at most $n$ vertices. Assume to the contrary that $\mathcal{P}_{1}$ has at least $n+1$ vertices $A_{1}\left(x_{1}, y_{1}\right), \ldots, A_{n+1}\left(x_{n+1}, y_{n+1}\right)$ in $S_{n}$, with $x_{1}<\cdots\cdots>\frac{y_{n+1}-y_{n}}{x_{n+1}-x_{n}}$. By the induction hypothesis, not more than $n-1$ of these vertices belong to $S_{n-1}$ or $T_{n-1}$, so let $A_{k-1}, A_{k} \in S_{n-1}$, $A_{k+1} \in T_{n-1}$. But by the construction of $T_{n-1}, \frac{y_{k+1}-y_{k}}{x_{k+1}-x_{k}}>\frac{y_{k}-y_{k-1}}{x_{k}-x_{k-1}}$, which gives a contradiction. Similarly, $\mathcal{P}_{2}$ has no more than $n$ vertices, and therefore $\mathcal{P}$ itself has at most $2 n-2$ vertices. 13. Extend $A D$ and $B C$ to meet at $P$, and let $Q$ be the foot of the perpendicular from $P$ to $A B$. Denote by $O$ the center of $\Gamma$. Since $\triangle P A Q \sim \triangle O A D$ and $\triangle P B Q \sim \triangle O B C$, we obtain $\frac{A Q}{A D}=\frac{P Q}{O D}=\frac{P Q}{O C}=\frac{B Q}{B C}$. Therefore $\frac{A Q}{Q B} \cdot \frac{B C}{C P} \cdot \frac{P D}{D A}=1$, so by the converse Ceva theorem, $A C, B D$, and $P Q$ are concurrent. It follows that $Q \equiv F$. Finally, since the points $O, C, P, D, F$ are concyclic, we have $\angle D F P=\angle D O P=\angle P O C=\angle P F C$. 14. Although it does not seem to have been noticed at the jury, the statement of the problem is false. For $A(0,0), B(0,4), C(1,4), D(7,0)$, we have $M(4,2), P(2,1), Q(2,3)$ and $N(9 / 2,1 / 2) \notin \triangle A B M$. The official solution, if it can be called so, actually shows that $N$ lies inside $A B C D$ and goes as follows: The case $A D=B C$ is trivial, so let $A D>B C$. Let $L$ be the midpoint of $A B$. Complete the parallelograms $A D M X$ and $B C M Y$. Now $N=D X \cap C Y$, so let $C Y$ and $D X$ intersect $A B$ at $K$ and $H$ respectively. From $L X=L Y$ and $$ \frac{H L}{L X}=\frac{H A}{A D}<\frac{L A}{A D}<\frac{K B}{A D}<\frac{K B}{B C}=\frac{K L}{L Y} $$ we get $H Ln \geq 2$. Since $m^{3}+1 \equiv 1$ and $m n-1 \equiv-1(\bmod n)$, we deduce $\frac{n^{3}+1}{m n-1}=k n-1$ for some integer $k>0$. On the other hand, $k n-1<\frac{n^{3}+1}{n^{2}-1}=n+\frac{1}{n-1} \leq 2 n-1$ gives that $k=1$, and therefore $n^{3}+1=(m n-1)(n-1)$. This yields $m=\frac{n^{2}+1}{n-1}=n+1+\frac{2}{n-1} \in \mathbb{N}$, so $n \in\{2,3\}$ and $m=5$. The solutions with $mz_{n}$ when $x_{n-1}$ is even and $2 y_{n}>z_{n}>y_{n}$ when $x_{n-1}$ is odd. In fact, $n=1$ is the trivial case, while if it holds for $n \geq 1$, then $y_{n+1}=2 y_{n}>z_{n}=z_{n+1}$ if $x_{n}$ is even, and $2 y_{n+1}=2 y_{n}>y_{n}+z_{n}=z_{n+1}$ if $x_{n}$ is odd (since then $x_{n-1}$ is even). If $x_{1}=0$, then $x_{0}=3$ is good. Suppose $x_{n}=0$ for some $n \geq 2$. Then $x_{n-1}$ is odd and $x_{n-2}$ is even, so that $y_{n-1}>z_{n-1}$. We claim that a pair $\left(y_{n-1}, z_{n-1}\right)$, where $2^{k}=y_{n-1}>z_{n-1}>0$ and $z_{n-1} \equiv 1$ $(\bmod 4)$, uniquely determines $x_{0}=f\left(y_{n-1}, z_{n-1}\right)$. We see that $x_{n-1}=$ $\frac{1}{2} y_{n-1}+z_{n-1}$, and define $\left(x_{k}, y_{k}, z_{k}\right)$ backwards as follows, until we get $\left(y_{k}, z_{k}\right)=(4,1)$. If $y_{k}>z_{k}$, then $x_{k-1}$ must have been even, so we define $\left(x_{k-1}, y_{k-1}, z_{k-1}\right)=\left(2 x_{k}, y_{k} / 2, z_{k}\right)$; otherwise $x_{k-1}$ must have been odd, so we put $\left(x_{k-1}, y_{k-1}, z_{k-1}\right)=\left(x_{k}-y_{k} / 2+z_{k}, y_{k}, z_{k}-y_{k}\right)$. We eventually arrive at $\left(y_{0}, z_{0}\right)=(4,1)$ and a good integer $x_{0}=f\left(y_{n-1}, z_{n-1}\right)$, as claimed. Thus for example $\left(y_{n-1}, z_{n-1}\right)=(64,61)$ implies $x_{n-1}=93$, $\left(x_{n-2}, y_{n-2}, z_{n-2}\right)=(186,32,61)$ etc., and $x_{0}=1953$, while in the case of $\left(y_{n-1}, z_{n-1}\right)=(128,1)$ we get $x_{0}=2080$. Note that $y^{\prime}>y \Rightarrow f\left(y^{\prime}, z^{\prime}\right)>f(y, z)$ and $z^{\prime}>z \Rightarrow f\left(y, z^{\prime}\right)>f(y, z)$. Therefore there are no $y, z$ for which $19531$, and let $x_{j} \equiv u_{j}(\bmod p)$ where $0 \leq u_{j} \leq p-1$ (particularly $u_{i} \equiv 0$ ). Then $u_{j+1} \equiv u_{j} u_{j-1}+$ $1(\bmod p)$. The number of possible pairs $\left(u_{j}, u_{j+1}\right)$ is finite, so $u_{j}$ is eventually periodic. We claim that for some $d_{p}>0, u_{i+d_{p}}=0$. Indeed, suppose the contrary and let $\left(u_{m}, u_{m+1}, \ldots, u_{m+d-1}\right)$ be the first period for $m \geq i$. Then $m \neq i$. By the assumption $u_{m-1} \not \equiv$ $u_{m+d-1}$, but $u_{m-1} u_{m} \equiv u_{m+1}-1 \equiv u_{m+d+1}-1 \equiv u_{m+d-1} u_{m+d} \equiv$ $u_{m+d-1} u_{m}(\bmod p)$, which is impossible if $p \nmid u_{m}$. Hence there is a $d_{p}$ with $u_{i}=u_{i+d_{p}}=0$ and moreover $u_{i+1}=u_{i+d_{p}+1}=1$, so the sequence $u_{j}$ is periodic with period $d_{p}$ starting from $u_{i}$. Let $m$ be the least common multiple of all $d_{p}$ 's, where $p$ goes through all prime divisors of $x_{i}$. Then the same primes divide every $x_{i+k m}, k=1,2, \ldots$, so for large enough $k$ and $j=i+k m, x_{i}^{i} \mid x_{j}^{j}$. (b) If $i=1$, we cannot deduce that $x_{i+1} \equiv 1(\bmod p)$. The following example shows that the statement from (a) need not be true in this case. Take $x_{1}=22$ and $x_{2}=9$. Then $x_{n}$ is even if and only if $n \equiv 1(\bmod$ 3 ), but modulo 11 the sequence $\left\{x_{n}\right\}$ is $0,9,1,10,0,1,1,2,3,7,0, \ldots$, so $11 \mid x_{n}(n>1)$ if and only if $n \equiv 5(\bmod 6)$. Thus for no $n>1$ can we have $22 \mid x_{n}$. 24. A multiple of 10 does not divide any wobbly number. Also, if $25 \mid n$, then every multiple of $n$ ends with $25,50,75$, or 00 ; hence it is not wobbly. We now show that every other number $n$ divides some wobbly number. (i) Let $n$ be odd and not divisible by 5 . For any $k \geq 1$ there exists $l$ such that $\left(10^{k}-1\right) n$ divides $10^{l}-1$, and thus also divides $10^{k l}-1$. Consequently, $v_{k}=\frac{10^{k l}-1}{10^{k}-1}$ is divisible by $n$, and it is wobbly when $k=2$ (indeed, $v_{2}=101 \ldots 01$ ). If $n$ is divisible by 5 , one can simply take $5 v_{2}$ instead. (ii) Let $n$ be a power of 2 . We prove by induction on $m$ that $2^{2 m+1}$ has a wobbly multiple $w_{m}$ with exactly $m$ nonzero digits. For $m=1$, take $w_{1}=8$. Suppose that for some $m \geq 1$ there is a wobbly $w_{m}=$ $2^{2 m+1} d_{m}$. Then the numbers $a \cdot 10^{2 m}+w_{m}$ are wobbly and divisible by $2^{2 m+1}$ when $a \in\{2,4,6,8\}$. Moreover, one of these numbers is divisible by $2^{2 m+3}$. Indeed, it suffices to choose $a$ such that $\frac{a}{2}+d_{m}$ is divisible by 4 . This proves the induction step. (iii) Let $n=2^{m} r$, where $m \geq 1$ and $r$ is odd, $5 \nmid r$. Then $v_{2 m} w_{m}$ is wobbly and divisible by both $2^{m}$ and $r$ (using notation from (i), $r \mid v_{2 m}$ ). ### 4.36 Solutions to the Shortlisted Problems of IMO 1995 1. Let $x=\frac{1}{a}, y=\frac{1}{b}, z=\frac{1}{c}$. Then $x y z=1$ and $$ S=\frac{1}{a^{3}(b+c)}+\frac{1}{b^{3}(c+a)}+\frac{1}{c^{3}(a+b)}=\frac{x^{2}}{y+z}+\frac{y^{2}}{z+x}+\frac{z^{2}}{x+y} $$ We must prove that $S \geq \frac{3}{2}$. From the Cauchy-Schwarz inequality, $$ [(y+z)+(z+x)+(x+y)] \cdot S \geq(x+y+z)^{2} \Rightarrow S \geq \frac{x+y+z}{2} $$ It follows from the A-G mean inequality that $\frac{x+y+z}{2} \geq \frac{3}{2} \sqrt[3]{x y z}=\frac{3}{2}$; hence the proof is complete. Equality holds if and only if $x=y=z=1$, i.e., $a=b=c=1$. Remark. After reducing the problem to $\frac{x^{2}}{y+z}+\frac{y^{2}}{z+x}+\frac{z^{2}}{x+y} \geq \frac{3}{2}$, we can solve the problem using Jensen's inequality applied to the function $g(u, v)=$ $u^{2} / v$. The problem can also be solved using Muirhead's inequality. 2. We may assume $c \geq 0$ (otherwise, we may simply put $-y_{i}$ in the place of $\left.y_{i}\right)$. Also, we may assume $a \geq b$. If $b \geq c$, it is enough to take $n=a+b-c$, $x_{1}=\cdots=x_{a}=1, y_{1}=\cdots=y_{c}=y_{a+1}=\cdots=y_{a+b-c}=1$, and the other $x_{i}$ 's and $y_{i}$ 's equal to 0 , so we need only consider the case $a>c>b$. We proceed to prove the statement of the problem by induction on $a+b$. The case $a+b=1$ is trivial. Assume that the statement is true when $a+b \leq$ $N$, and let $a+b=N+1$. The triple $(a+b-2 c, b, c-b)$ satisfies the condition (since $(a+b-2 c) b-(c-b)^{2}=a b-c^{2}$ ), so by the induction hypothesis there are $n$-tuples $\left(x_{i}\right)_{i=1}^{n}$ and $\left(y_{i}\right)_{i=1}^{n}$ with the wanted property. It is easy to verify that $\left(x_{i}+y_{i}\right)_{i=1}^{n}$ and $\left(y_{i}\right)_{i=1}^{n}$ give a solution for $(a, b, c)$. 3. Write $A_{i}=\frac{a_{i}^{2}+a_{i+1}^{2}-a_{i+2}^{2}}{a_{i}+a_{i+1}-a_{i+2}}=a_{i}+a_{i+1}+a_{i+2}-\frac{2 a_{i} a_{i+1}}{a_{i}+a_{i+1}-a_{i+2}}$. Since $2 a_{i} a_{i+1} \geq$ $4\left(a_{i}+a_{i+1}-2\right)$ (which is equivalent to $\left.\left(a_{i}-2\right)\left(a_{i+1}-2\right) \geq 0\right)$, it follows that $A_{i} \leq a_{i}+a_{i+1}+a_{i+2}-4\left(1+\frac{a_{i+2}-2}{a_{i}+a_{i+1}-a_{i+2}}\right) \leq a_{i}+a_{i+1}+a_{i+2}-$ $4\left(1+\frac{a_{i+2}-2}{4}\right)$, because $1 \leq a_{i}+a_{i+1}-a_{i+2} \leq 4$. Therefore $A_{i} \leq a_{i}+$ $a_{i+1}-2$, so $\sum_{i=1}^{n} A_{i} \leq 2 s-2 n$ as required. 4. The second equation is equivalent to $\frac{a^{2}}{y z}+\frac{b^{2}}{z x}+\frac{c^{2}}{x y}+\frac{a b c}{x y z}=4$. Let $x_{1}=$ $\frac{a}{\sqrt{y z}}, y_{1}=\frac{b}{\sqrt{z x}}, z_{1}=\frac{c}{\sqrt{x y}}$. Then $x_{1}^{2}+y_{1}^{2}+z_{1}^{2}+x_{1} y_{1} z_{1}=4$, where $00$ is clearly impossible. On the other hand, if $u v w \leq 0$, then two of $u, v, w$ are nonnegative, say $u, v \geq 0$. Taking into account $w=-u-v$, the above equality reduces to $2\left[(a+c-2 v) u^{2}+(b+c-2 u) v^{2}+2 c u v\right]=0$, so $u=v=0$. Third solution. The fact that we are given two equations and three variables suggests that this is essentially a problem on inequalities. Setting $f(x, y, z)=4 x y z-a^{2} x-b^{2} y-c^{2} z$, we should show that $\max f(x, y, z)=$ $a b c$, for $0\frac{n-1}{4}$. Then $f(1 / x)=f\left(x+1 / x^{2}\right)-f(x)<1 / 4$, so $f(1 / x)>-1 / 2$. On the other hand, this implies $\left(\frac{n-1}{4}\right)^{2}0$. Since $\sum_{i=1}^{n-1} y_{i}=Y$ and $\sum_{i=1}^{n-1}(n-i)=\frac{n(n-1)}{2}$, we have $\sum z_{i}=0$. Note that $Y<\sum_{j=2}^{n}(j-1) x_{n}=\frac{n(n-1)}{2} x_{n}$, and consequently $z_{n-1}=$ $\frac{n(n-1)}{2} x_{n}-Y>0$. Furthermore, we have $$ \frac{z_{i+1}}{n-i-1}-\frac{z_{i}}{n-i}=\frac{n(n-1)}{2}\left(\frac{y_{i+1}}{n-i-1}-\frac{y_{i}}{n-i}\right)>0 $$ which means that $\frac{z_{1}}{n-1}<\frac{z_{2}}{n-2}<\cdots<\frac{z_{n-1}}{1}$. Therefore there is a $k$ for which $z_{1}, \ldots, z_{k} \leq 0$ and $z_{k+1}, \ldots, z_{n-1}>0$. But then $z_{i}\left(x_{i}-x_{k}\right) \geq 0$, i.e., $x_{i} z_{i} \geq x_{k} z_{i}$ for all $i$, so $\sum_{i=1}^{n-1} x_{i} z_{i}>\sum_{i=1}^{n-1} x_{k} z_{i}=0$ as required. Second solution. Set $X=\sum_{j=1}^{n-1}(n-j) x_{j}$ and $Y=\sum_{j=2}^{n}(j-1) x_{j}$. Since $4 X Y=(X+Y)^{2}-(X-Y)^{2}$, the RHS of the inequality becomes $$ X Y=\frac{1}{4}\left[(n-1)^{2}\left(\sum_{i=1}^{n} x_{i}\right)^{2}-\left(\sum_{i=1}^{n}(2 i-1-n) x_{i}\right)^{2}\right] $$ The LHS equals $\frac{1}{4}\left((n-1)^{2}\left(\sum_{i=1}^{n} x_{i}\right)^{2}-(n-1) \sum_{i(n-1) \sum_{i0$ (so, $x_{j}-x_{i}=d_{i}+d_{i+1}+\cdots+d_{j-1}$ ) and expanding the obtained expressions, we reduce this inequality to $\sum_{k} k^{2}(n-k)^{2} d_{k}^{2}+2 \sum_{k\sum_{k}(n-1) k(n-k) d_{k}^{2}+$ $2 \sum_{k3$. Then either $a_{k}^{2} \equiv-7\left(\bmod 2^{k+1}\right)$ or $a_{k}^{2} \equiv 2^{k}-7$ $\left(\bmod 2^{k+1}\right)$. In the former case, take $a_{k+1}=a_{k}$. In the latter case, set $a_{k+1}=a_{k}+2^{k-1}$. Then $a_{k+1}^{2}=a_{k}^{2}+2^{k} a_{k}+2^{2 k-2} \equiv a_{k}^{2}+2^{k} \equiv-7(\bmod$ $2^{k+1}$ ) because $a_{k}$ is odd. 16. If $A$ is odd, then every number in $M_{1}$ is of the form $x(x+A)+B \equiv B$ $(\bmod 2)$, while numbers in $M_{2}$ are congruent to $C$ modulo 2 . Thus it is enough to take $C \equiv B+1(\bmod 2)$. If $A$ is even, then all numbers in $M_{1}$ have the form $\left(X+\frac{A}{2}\right)^{2}+B-\frac{A^{2}}{4}$ and are congruent to $B-\frac{A^{2}}{4}$ or $B-\frac{A^{2}}{4}+1$ modulo 4 , while numbers in $M_{2}$ are congruent to $C$ modulo 4 . So one can choose any $C \equiv B-\frac{A^{2}}{4}+2$ $(\bmod 4)$. 17. For $n=4$, the vertices of a unit square $A_{1} A_{2} A_{3} A_{4}$ and $p_{1}=p_{2}=p_{3}=$ $p_{4}=\frac{1}{6}$ satisfy the conditions. We claim that there are no solutions for $n=5$ (and thus for any $n \geq 5$ ). Suppose to the contrary that points $A_{i}$ and $p_{i}, i=1, \ldots, 5$, satisfy the conditions. Denote the area of $\triangle A_{i} A_{j} A_{k}$ by $S_{i j k}=p_{i}+p_{j}+p_{k}, 1 \leq i<$ $j2$. Therefore $c=\frac{b^{2}+z}{z^{2} b-1}<1$, a contradiction. The only solutions for $(x, y)$ are $(4,2),(4,6),(5,2),(5,3)$. 19. For each two people let $n$ be the number of people exchanging greetings with both of them. To determine $n$ in terms of $k$, we shall count in two ways the number of triples $(A, B, C)$ of people such that $A$ exchanged greetings with both $B$ and $C$, but $B$ and $C$ mutually did not. There are $12 k$ possibilities for $A$, and for each $A$ there are $(3 k+6)$ possibilities for $B$. Since there are $n$ people who exchanged greetings with both $A$ and $B$, there are $3 k+5-n$ who did so with $A$ but not with $B$. Thus the number of triples $(A, B, C)$ is $12 k(3 k+6)(3 k+5-n)$. On the other hand, there are $12 k$ possible choices of $B$, and $12 k-1-(3 k+6)=9 k-7$ possible choices of $C$; for every $B, C, A$ can be chosen in $n$ ways, so the number of considered triples equals $12 k n(9 k-7)$. Hence $(3 k+6)(3 k+5-n)=n(9 k-7)$, i.e., $n=\frac{3(k+2)(3 k+5)}{12 k-1}$. This gives us that $\frac{4 n}{3}=\frac{12 k^{2}+44 k+40}{12 k-1}=k+4-\frac{3 k-44}{12 k-1}$ is an integer too. It is directly verified that only $k=3$ gives an integer value for $n$, namely $n=6$. Remark. The solution is complete under the assumption that such a $k$ exists. We give an example of such a party with 36 persons, $k=3$. Let the people sit in a $6 \times 6$ array $\left[P_{i j}\right]_{i, j=1}^{6}$, and suppose that two persons $P_{i j}, P_{k l}$ exchanged greetings if and only if $i=k$ or $j=l$ or $i-j \equiv k-l$ (mod 6). Thus each person exchanged greetings with exactly 15 others, and it is easily verified that this party satisfies the conditions. 20. We shall consider the set $M=\{0,1, \ldots, 2 p-1\}$ instead. Let $M_{1}=$ $\{0,1, \ldots, p-1\}$ and $M_{2}=\{p, p+1, \ldots, 2 p-1\}$. We shall denote by $|A|$ and $\sigma(A)$ the number of elements and the sum of elements of the set $A$; also, let $C_{p}$ be the family of all $p$-element subsets of $M$. Define the mapping $T: C_{p} \rightarrow C_{p}$ as $T(A)=\left\{x+1 \mid x \in A \cap M_{1}\right\} \cup\left\{A \cap M_{2}\right\}$, the addition being modulo $p$. There are exactly two fixed points of $T$ : these are $M_{1}$ and $M_{2}$. Now if $A$ is any subset from $C_{p}$ distinct from $M_{1}, M_{2}$, and $k=\left|A \cap M_{1}\right|$ with $1 \leq k \leq p-1$, then for $i=0,1, \ldots, p-1$, $\sigma\left(T^{i}(A)\right)=\sigma(A)+i k(\bmod p)$. Hence subsets $A, T(A), \ldots, T^{p-1}(A)$ are distinct, and exactly one of them has sum of elements divisible by $p$. Since $\sigma\left(M_{1}\right), \sigma\left(M_{2}\right)$ are divisible by $p$ and $C_{p} \backslash\left\{M_{1}, M_{2}\right\}$ decomposes into families of the form $\left\{A, T(A), \ldots, T^{p-1}(A)\right\}$, we conclude that the required number is $\frac{1}{p}\left(\left|C_{p}\right|-2\right)+2=\frac{1}{p}\left(\binom{2 p}{p}-2\right)+2$. Second solution. Let $C_{k}$ be the family of all $k$-element subsets of $\{1,2, \ldots, 2 p\}$. Denote by $M_{k}(k=1,2, \ldots, p)$ the family of $p$-element multisets with $k$ distinct elements from $\{1,2, \ldots, 2 p\}$, exactly one of which appears more than once, that have sum of elements divisible by $p$. It is clear that every subset from $C_{k}, k0$, 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 _{m95$ for all $n$. If to the contrary $f(n) \leq 95$, we have $f(m)=n+f(m+95-f(n))$, so by induction $f(m)=k n+f(m+k(95-f(n))) \geq k n$ for all $k$, which is impossible. Now for $m>95$ we have $f(m+f(n)-95)=n+f(m)$, and again by induction $f(m+k(f(n)-95))=k n+f(m)$ for all $m, n, k$. It follows that with $n$ fixed, $$ (\forall m) \lim _{k \rightarrow \infty} \frac{f(m+k(f(n)-95))}{m+k(f(n)-95)}=\frac{n}{f(n)-95} $$ hence $$ \lim _{s \rightarrow \infty} \frac{f(s)}{s}=\frac{n}{f(n)-95} $$ Hence $\frac{n}{f(n)-95}$ does not depend on $n$, i.e., $f(n) \equiv c n+95$ for some constant $c$. It is easily checked that only $c=1$ is possible. ### 4.37 Solutions to the Shortlisted Problems of IMO 1996 1. We have $a^{5}+b^{5}-a^{2} b^{2}(a+b)=\left(a^{3}-b^{3}\right)\left(a^{2}-b^{2}\right) \geq 0$, i.e. $a^{5}+b^{5} \geq$ $a^{2} b^{2}(a+b)$. Hence $$ \frac{a b}{a^{5}+b^{5}+a b} \leq \frac{a b}{a^{2} b^{2}(a+b)+a b}=\frac{a b c^{2}}{a^{2} b^{2} c^{2}(a+b)+a b c^{2}}=\frac{c}{a+b+c} . $$ Now, the left side of the inequality to be proved does not exceed $\frac{c}{a+b+c}+$ $\frac{a}{a+b+c}+\frac{b}{a+b+c}=1$. Equality holds if and only if $a=b=c$. 2. Clearly $a_{1}>0$, and if $p \neq a_{1}$, we must have $a_{n}<0,\left|a_{n}\right|>\left|a_{1}\right|$, and $p=-a_{n}$. But then for sufficiently large odd $k,-a_{n}^{k}=\left|a_{n}\right|^{k}>(n-1)\left|a_{1}\right|^{k}$, so that $a_{1}^{k}+\cdots+a_{n}^{k} \leq(n-1)\left|a_{1}\right|^{k}-\left|a_{n}\right|^{k}<0$, a contradiction. Hence $p=a_{1}$. Now let $x>a_{1}$. From $a_{1}+\cdots+a_{n} \geq 0$ we deduce $\sum_{j=2}^{n}\left(x-a_{j}\right) \leq$ $(n-1)\left(x+\frac{a_{1}}{n-1}\right)$, so by the AM-GM inequality, $$ \left(x-a_{2}\right) \cdots\left(x-a_{n}\right) \leq\left(x+\frac{a_{1}}{n-1}\right)^{n-1} \leq x^{n-1}+x^{n-2} a_{1}+\cdots+a_{1}^{n-1} $$ The last inequality holds because $\binom{n-1}{r} \leq(n-1)^{r}$ for all $r \geq 0$. Multiplying (1) by $\left(x-a_{1}\right)$ yields the desired inequality. 3. Since $a_{1}>2$, it can be written as $a_{1}=b+b^{-1}$ for some $b>0$. Furthermore, $a_{1}^{2}-2=b^{2}+b^{-2}$ and hence $a_{2}=\left(b^{2}+b^{-2}\right)\left(b+b^{-1}\right)$. We prove that $$ a_{n}=\left(b+b^{-1}\right)\left(b^{2}+b^{-2}\right)\left(b^{4}+b^{-4}\right) \cdots\left(b^{2^{n-1}}+b^{-2^{n-1}}\right) $$ by induction. Indeed, $\frac{a_{n+1}}{a_{n}}=\left(\frac{a_{n}}{a_{n-1}}\right)^{2}-2=\left(b^{2^{n-1}}+b^{-2^{n-1}}\right)^{2}-2=$ $b^{2^{n}}+b^{-2^{n}}$. Now we have $$ \begin{aligned} \sum_{i=1}^{n} \frac{1}{a_{i}}= & 1+\frac{b}{b^{2}+1}+\frac{b^{3}}{\left(b^{2}+1\right)\left(b^{4}+1\right)}+\cdots \\ & \cdots+\frac{b^{2^{n}-1}}{\left(b^{2}+1\right)\left(b^{4}+1\right) \ldots\left(b^{2}+1\right)} \end{aligned} $$ Note that $\frac{1}{2}\left(a+2-\sqrt{a^{2}-4}\right)=1+\frac{1}{b}$; hence we must prove that the right side in (1) is less than $\frac{1}{b}$. This follows from the fact that $$ \begin{aligned} & \frac{b^{2^{k}}}{\left(b^{2}+1\right)\left(b^{4}+1\right) \cdots\left(b^{2^{k}}+1\right)} \\ & \quad=\frac{1}{\left(b^{2}+1\right)\left(b^{4}+1\right) \cdots\left(b^{2^{k-1}}+1\right)}-\frac{1}{\left(b^{2}+1\right)\left(b^{4}+1\right) \cdots\left(b^{2^{k}}+1\right)} \end{aligned} $$ hence the right side in (1) equals $\frac{1}{b}\left(1-\frac{1}{\left(b^{2}+1\right)\left(b^{4}+1\right) \ldots\left(b^{2^{n}}+1\right)}\right)$, and this is clearly less than $1 / b$. 4. Consider the function $$ f(x)=\frac{a_{1}}{x}+\frac{a_{2}}{x^{2}}+\cdots+\frac{a_{n}}{x^{n}} . $$ Since $f$ is strictly decreasing from $+\infty$ to 0 on the interval $(0,+\infty)$, there exists exactly one $R>0$ for which $f(R)=1$. This $R$ is also the only positive real root of the given polynomial. Since $\ln x$ is a concave function on $(0,+\infty)$, Jensen's inequality gives us $$ \sum_{j=1}^{n} \frac{a_{j}}{A}\left(\ln \frac{A}{R^{j}}\right) \leq \ln \left(\sum_{j=1}^{n} \frac{a_{j}}{A} \cdot \frac{A}{R^{j}}\right)=\ln f(R)=0 . $$ Therefore $\sum_{j=1}^{n} a_{j}(\ln A-j \ln R) \leq 0$, which is equivalent to $A \ln A \leq$ $B \ln R$, i.e., $A^{A} \leq R^{B}$. 5. Considering the polynomials $\pm P( \pm x)$ we may assume w.l.o.g. that $a, b \geq$ 0 . We have four cases: (1) $c \geq 0, d \geq 0$. Then $|a|+|b|+|c|+|d|=a+b+c+d=P(1) \leq 1$. (2) $c \geq 0, d<0$. Then $|a|+|b|+|c|+|d|=a+b+c-d=P(1)-2 P(0) \leq 3$. (3) $c<0, d \geq 0$. Then $$ \begin{aligned} |a|+|b|+|c|+|d| & =a+b-c+d \\ & =\frac{4}{3} P(1)-\frac{1}{3} P(-1)-\frac{8}{3} P(1 / 2)+\frac{8}{3} P(-1 / 2) \leq 7 . \end{aligned} $$ (4) $c<0, d<0$. Then $$ \begin{aligned} |a|+|b|+|c|+|d| & =a+b-c-d \\ & =\frac{5}{3} P(1)-4 P(1 / 2)+\frac{4}{3} P(-1 / 2) \leq 7 \end{aligned} $$ Remark. It can be shown that the maximum of 7 is attained only for $P(x)= \pm\left(4 x^{3}-3 x\right)$. 6. Let $f(x), g(x)$ be polynomials with integer coefficients such that $$ f(x)(x+1)^{n}+g(x)\left(x^{n}+1\right)=k_{0} $$ Write $n=2^{r} m$ for $m$ odd and note that $x^{n}+1=\left(x^{2^{r}}+1\right) B(x)$, where $B(x)=x^{2^{r}(m-1)}-x^{2^{r}(m-2)}+\cdots-x^{2^{r}}+1$. Moreover, $B(-1)=1$; hence $B(x)-1=(x+1) c(x)$ and thus $$ R(x) B(x)+1=(B(x)-1)^{n}=(x+1)^{n} c(x)^{n} $$ for some polynomials $c(x)$ and $R(x)$. The zeros of the polynomial $x^{2^{r}}+1$ are $\omega_{j}$, with $\omega_{1}=\cos \frac{\pi}{2^{r}}+i \sin \frac{\pi}{2^{r}}$, and $\omega_{j}=\omega^{2 j-1}$ for $1 \leq j \leq 2^{r}$. We have $$ \left(\omega_{1}+1\right)\left(\omega_{2}+1\right) \cdots\left(\omega_{2^{r+1}}+1\right)=2 $$ From $(*)$ we also get $f\left(\omega_{j}\right)\left(\omega_{j}+1\right)^{n}=k_{0}$ for $j=1,2, \ldots, 2^{r}$. Since $A=f\left(\omega_{1}\right) f\left(\omega_{2}\right) \cdots f\left(\omega_{2^{r}}\right)$ is a symmetric polynomial in $\omega_{1}, \ldots, \omega_{2^{r}}$ with integer coefficients, $A$ is an integer. Consequently, taking the product over $j=1,2, \ldots, 2^{r}$ and using (2) we deduce that $2^{n} A=k_{0}^{2^{r}}$ is divisible by $2^{n}=2^{2^{r} m}$. Hence $2^{m} \mid k_{0}$. Furthermore, since $\omega_{j}+1=\left(\omega_{1}+1\right) p_{j}\left(\omega_{1}\right)$ for some polynomial $p_{j}$ with integer coefficients, (2) gives $\left(\omega_{1}+1\right)^{2^{r}} p\left(\omega_{1}\right)=2$, where $p(x)=$ $p_{2}(x) \cdots p_{2^{r}}(x)$ has integer coefficients. But then the polynomial $(x+$ $1)^{2^{2}} p(x)-2$ has a zero $x=\omega_{1}$, so it is divisible by its minimal polynomial $x^{2^{r}}+1$. Therefore $$ (x+1)^{2^{r}} p(x)=2+\left(x^{2^{r}}+1\right) q(x) $$ for some polynomial $q(x)$. Raising (3) to the $m$ th power we get $(x+$ $1)^{n} p(x)^{n}=2^{m}+\left(x^{2^{r}}+1\right) Q(x)$ for some polynomial $Q(x)$ with integer coefficients. Now using (1) we obtain $$ \begin{aligned} (x+1)^{n} c(x)^{n}\left(x^{2^{r}}+1\right) Q(x) & =\left(x^{2^{r}}+1\right) Q(x)+\left(x^{2^{r}}+1\right) Q(x) B(x) R(x) \\ & =(x+1)^{n} p(x)^{n}-2^{m}+\left(x^{n}+1\right) Q(X) R(x) . \end{aligned} $$ Therefore $(x+1)^{n} f(x)+\left(x^{n}+1\right) g(x)=2^{m}$ for some polynomials $f(x), g(x)$ with integer coefficients, and $k_{0}=2^{m}$. 7. We are given that $f(x+a+b)-f(x+a)=f(x+b)-f(x)$, where $a=1 / 6$ and $b=1 / 7$. Summing up these equations for $x, x+b, \ldots, x+6 b$ we obtain $f(x+a+1)-f(x+a)=f(x+1)-f(x)$. Summing up the new equations for $x, x+a, \ldots, x+5 a$ we obtain that $$ f(x+2)-f(x+1)=f(x+1)-f(x) . $$ It follows by induction that $f(x+n)-f(x)=n[f(x+1)-f(x)]$. If $f(x+1) \neq f(x)$, then $f(x+n)-f(x)$ will exceed in absolute value an arbitrarily large number for a sufficiently large $n$, contradicting the assumption that $f$ is bounded. Hence $f(x+1)=f(x)$ for all $x$. 8. Putting $m=n=0$ we obtain $f(0)=0$ and consequently $f(f(n))=f(n)$ for all $n$. Thus the given functional equation is equivalent to $$ f(m+f(n))=f(m)+f(n), \quad f(0)=0 $$ Clearly one solution is $(\forall x) f(x)=0$. Suppose $f$ is not the zero function. We observe that $f$ has nonzero fixed points (for example, any $f(n)$ is a fixed point). Let $a$ be the smallest nonzero fixed point of $f$. By induction, each $k a(k \in \mathbb{N})$ is a fixed point too. We claim that all fixed points of $f$ are of this form. Indeed, suppose that $b=k a+i$ is a fixed point, where $i45^{\circ}$, then $\angle F H P=\angle A$. If $\angle A=45^{\circ}$, the point $P$ escapes to infinity. If $\angle A<45^{\circ}$, the point $P$ appears on the extension of $A C$ over $C$, and $\angle F H P=180^{\circ}-\angle A$. 13. By the law of cosines applied to $\triangle C A_{1} B_{1}$, we obtain $$ A_{1} B_{1}^{2}=A_{1} C^{2}+B_{1} C^{2}-A_{1} C \cdot B_{1} C \geq A_{1} C \cdot B_{1} C $$ Analogously, $B_{1} C_{1}^{2} \geq B_{1} A \cdot C_{1} A$ and $C_{1} A_{1}^{2} \geq C_{1} B \cdot A_{1} B$, so that multiplying these inequalities yields $$ A_{1} B_{1}^{2} \cdot B_{1} C_{1}^{2} \cdot C_{1} A_{1}^{2} \geq A_{1} B \cdot A_{1} C \cdot B_{1} A \cdot B_{1} C \cdot C_{1} A \cdot C_{1} B $$ Now, the lines $A A_{1}, B B_{1}, C C_{1}$ concur, so by Ceva's theorem, $A_{1} B \cdot B_{1} C$. $C_{1} A=A B_{1} \cdot B C_{1} \cdot C A_{1}$, which together with (1) gives the desired inequality. Equality holds if and only if $C A_{1}=C B_{1}$, etc. 14. Let $a, b, c, d, e$, and $f$ denote the lengths of the sides $A B, B C, C D, D E$, $E F$, and $F A$ respectively. Note that $\angle A=\angle D, \angle B=\angle E$, and $\angle C=\angle F$. Draw the lines $P Q$ and $R S$ through $A$ and $D$ perpendicular to $B C$ and $E F$ respectively $(P, R \in B C, Q, S \in E F)$. Then $B F \geq P Q=R S$. Therefore $2 B F \geq$ $P Q+R S$, or ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-617.jpg?height=322&width=389&top_left_y=327&top_left_x=885) $$ \begin{array}{ll} & 2 B F \geq(a \sin B+f \sin C)+(c \sin C+d \sin B), \\ \text { and similarly, } & 2 B D \geq(c \sin A+b \sin B)+(e \sin B+f \sin A), \\ & 2 D F \geq(e \sin C+d \sin A)+(a \sin A+b \sin C) \end{array} $$ Next, we have the following formulas for the considered circumradii: $$ R_{A}=\frac{B F}{2 \sin A}, \quad R_{C}=\frac{B D}{2 \sin C}, \quad R_{E}=\frac{D F}{2 \sin E} $$ It follows from (1) that $$ \begin{aligned} R_{A}+R_{C}+R_{E} & \geq \frac{1}{4} a\left(\frac{\sin B}{\sin A}+\frac{\sin A}{\sin B}\right)+\frac{1}{4} b\left(\frac{\sin C}{\sin B}+\frac{\sin B}{\sin C}\right)+\cdots \\ & \geq \frac{1}{2}(a+b+\cdots)=\frac{P}{2} \end{aligned} $$ with equality if and only if $\angle A=\angle B=\angle C=120^{\circ}$ and $F B \perp B C$ etc., i.e., if and only if the hexagon is regular. Second solution. Let us construct points $A^{\prime \prime}, C^{\prime \prime}, E^{\prime \prime}$ such that $A B A^{\prime \prime} F$, $C D C^{\prime \prime} B$, and $E F E^{\prime \prime} D$ are parallelograms. It follows that $A^{\prime \prime}, C^{\prime \prime}, B$ are collinear and also $C^{\prime \prime}, E^{\prime \prime}, B$ and $E^{\prime \prime}, A^{\prime \prime}, F$. Furthermore, let $A^{\prime}$ be the intersection of the perpendiculars through $F$ and $B$ to $F A^{\prime \prime}$ and $B A^{\prime \prime}$, respectively, and let $C^{\prime}$ and $E^{\prime}$ be analogously defined. Since $A^{\prime} F A^{\prime \prime} B$ is cyclic with the diameter being $A^{\prime} A^{\prime \prime}$ and since $\triangle F A^{\prime \prime} B \cong$ $\triangle B A F$, it follows that $2 R_{A}=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-617.jpg?height=372&width=504&top_left_y=1470&top_left_x=830) $A^{\prime} A^{\prime \prime}=x$. Similarly, $2 R_{C}=C^{\prime} C^{\prime \prime}=y$ and $2 R_{E}=E^{\prime} E^{\prime \prime}=z$. We also have $A B=$ $F A^{\prime \prime}=y_{a}, A F=A^{\prime \prime} B=z_{a}, C D=C^{\prime \prime} B=z_{c}, C B=C^{\prime \prime} D=x_{c}$, $E F=E^{\prime \prime} D=x_{e}$, and $E D=E^{\prime \prime} F=y_{e}$. The original inequality we must prove now becomes $$ x+y+z \geq y_{a}+z_{a}+z_{c}+x_{c}+x_{e}+y_{e} . $$ We now follow and generalize the standard proof of the Erdős-Mordell inequality (for the triangle $A^{\prime} C^{\prime} E^{\prime}$ ), which is what (1) is equivalent to when $A^{\prime \prime}=C^{\prime \prime}=E^{\prime \prime}$. We set $C^{\prime} E^{\prime}=a, A^{\prime} E^{\prime}=c$ and $A^{\prime} C^{\prime}=e$. Let $A_{1}$ be the point symmetric to $A^{\prime \prime}$ with respect to the bisector of $\angle E^{\prime} A^{\prime} C^{\prime}$. Let $F_{1}$ and $B_{1}$ be the feet of the perpendiculars from $A_{1}$ to $A^{\prime} C^{\prime}$ and $A^{\prime} E^{\prime}$, respectively. In that case, $A_{1} F_{1}=A^{\prime \prime} F=y_{a}$ and $A_{1} B_{1}=A^{\prime \prime} B=z_{a}$. We have $$ \begin{aligned} a x=A^{\prime} A_{1} \cdot E^{\prime} C^{\prime} \geq 2 S_{A^{\prime} E^{\prime} A_{1} C^{\prime}} & =2 S_{A^{\prime} E^{\prime} A_{1}}+2 S_{A^{\prime} C^{\prime} A_{1}} \\ & =c z_{a}+e y_{a} . \end{aligned} $$ Similarly, $c y \geq e x_{c}+a z_{c}$ and $e z \geq a y_{e}+c x_{e}$. Thus $$ \begin{aligned} x+y+z & \geq \frac{c}{a} z_{a}+\frac{a}{c} z_{c}+\frac{e}{c} x_{c}+\frac{c}{e} x_{e}+\frac{a}{e} y_{e}+\frac{e}{a} y_{a} \\ & =\left(\frac{c}{a}+\frac{a}{c}\right)\left(\frac{z_{a}+z_{c}}{2}\right)+\left(\frac{c}{a}-\frac{a}{c}\right)\left(\frac{z_{a}-z_{c}}{2}\right)+\cdots . \end{aligned} $$ Let us set $a_{1}=\frac{x_{c}-x_{e}}{2}, c_{1}=\frac{y_{e}-y_{a}}{2}, e_{1}=\frac{z_{a}-z_{c}}{2}$. We note that $\triangle A^{\prime \prime} C^{\prime \prime} E^{\prime \prime} \sim$ $\triangle A^{\prime} C^{\prime} E^{\prime}$ and hence $a_{1} / a=c_{1} / c=e_{1} / e=k$. Thus $\left(\frac{c}{a}-\frac{a}{c}\right) e_{1}+$ $\left(\frac{e}{c}-\frac{c}{e}\right) a_{1}+\left(\frac{a}{e}-\frac{e}{a}\right) c_{1}=k\left(\frac{c e}{a}-\frac{a e}{c}+\frac{e a}{c}-\frac{c a}{e}+\frac{a c}{e}-\frac{e c}{a}\right)=0$. Equation (2) reduces to $$ \begin{aligned} x+y+z \geq & \left(\frac{c}{a}+\frac{a}{c}\right)\left(\frac{z_{a}+z_{c}}{2}\right)+\left(\frac{e}{c}+\frac{c}{e}\right)\left(\frac{x_{e}+x_{c}}{2}\right) \\ & +\left(\frac{a}{e}+\frac{e}{a}\right)\left(\frac{y_{a}+y_{e}}{2}\right) . \end{aligned} $$ Using $c / a+a / c, e / c+c / e, a / e+e / a \geq 2$ we finally get $x+y+z \geq$ $y_{a}+z_{a}+z_{c}+x_{c}+x_{e}+y_{e}$. Equality holds if and only if $a=c=e$ and $A^{\prime \prime}=C^{\prime \prime}=E^{\prime \prime}=$ center of $\triangle A^{\prime} C^{\prime} E^{\prime}$, i.e., if and only if $A B C D E F$ is regular. Remark. From the second proof it is evident that the Erdős-Mordell inequality is a special case of the problem. if $P_{a}, P_{b}, P_{c}$ are the feet of the perpendiculars from a point $P$ inside $\triangle A B C$ to the sides $B C, C A, A B$, and $P_{a} P P_{b} P_{c}^{\prime}, P_{b} P P_{c} P_{a}^{\prime}, P_{c} P P_{a} P_{b}^{\prime}$ parallelograms, we can apply the problem to the hexagon $P_{a} P_{c}^{\prime} P_{b} P_{a}^{\prime} P_{c} P_{b}^{\prime}$ to prove the Erdős-Mordell inequality for $\triangle A B C$ and point $P$. 15. Denote by $A B C D$ and $E F G H$ the two rectangles, where $A B=a, B C=$ $b, E F=c$, and $F G=d$. Obviously, the first rectangle can be placed within the second one with the angle $\alpha$ between $A B$ and $E F$ if and only if $$ a \cos \alpha+b \sin \alpha \leq c, \quad a \sin \alpha+b \cos \alpha \leq d $$ Hence $A B C D$ can be placed within $E F G H$ if and only if there is an $\alpha \in[0, \pi / 2]$ for which (1) holds. The lines $l_{1}(a x+b y=c)$ and $l_{2}(b x+a y=d)$ and the axes $x$ and $y$ bound a region $\mathcal{R}$. By (1), the desired placement of the rectangles is possible if and only if $\mathcal{R}$ contains some point $(\cos \alpha, \sin \alpha)$ of the unit circle centered at the origin $(0,0)$. This in turn holds if and only if the intersection point $L$ of $l_{1}$ and $l_{2}$ lies outside the unit circle. It is easily computed that $L$ has coordinates $\left(\frac{b d-a c}{b^{2}-a^{2}}, \frac{b c-a d}{b^{2}-a^{2}}\right)$. Now $L$ being outside the unit circle is exactly equivalent to the inequality we want to prove. Remark. If equality holds, there is exactly one way of placing. This happens, for example, when $(a, b)=(5,20)$ and $(c, d)=(16,19)$. Second remark. This problem is essentially very similar to (SL89-2). 16. Let $A_{1}$ be the point of intersection of $O A^{\prime}$ and $B C$; similarly define $B_{1}$ and $C_{1}$. From the similarity of triangles $O B A_{1}$ and $O A^{\prime} B$ we obtain $O A_{1}$. $O A^{\prime}=R^{2}$. Now it is enough to show that $8 O A_{1} \cdot O B^{\prime} \cdot O C^{\prime} \leq R^{3}$. Thus we must prove that $$ \lambda \mu \nu \leq \frac{1}{8}, \quad \text { where } \quad \frac{O A_{1}}{O A}=\lambda, \quad \frac{O B_{1}}{O B}=\mu, \quad \frac{O C_{1}}{O C}=\nu $$ On the other hand, we have $$ \frac{\lambda}{1+\lambda}+\frac{\mu}{1+\mu}+\frac{\nu}{1+\nu}=\frac{S_{O B C}}{S_{A B C}}+\frac{S_{A O C}}{S_{A B C}}+\frac{S_{A B O}}{S_{A B C}}=1 . $$ Simplifying this relation, we get $$ 1=\lambda \mu+\mu \nu+\nu \lambda+2 \lambda \mu \nu \geq 3(\lambda \mu \nu)^{2 / 3}+2 \lambda \mu \nu $$ which cannot hold if $\lambda \mu \nu>\frac{1}{8}$. Hence $\lambda \mu \nu \leq \frac{1}{8}$, with equality if and only if $\lambda=\mu=\nu=\frac{1}{2}$. This implies that $O$ is the centroid of $A B C$, and consequently, that the triangle is equilateral. Second solution. In the official solution, the inequality to be proved is transformed into $$ \cos (A-B) \cos (B-C) \cos (C-A) \geq 8 \cos A \cos B \cos C $$ Since $\frac{\cos (B-C)}{\cos A}=-\frac{\cos (B-C)}{\cos (B+C)}=\frac{\tan B \tan C+1}{\tan B \tan C-1}$, the last inequality becomes $(x y+1)(y z+1)(z x+1) \geq 8(x y-1)(y z-1)(z x-1)$, where we write $x, y, z$ for $\tan A, \tan B, \tan C$. Using the relation $x+y+z=x y z$, we can reduce this inequality to $$ (2 x+y+z)(x+2 y+z)(x+y+2 z) \geq 8(x+y)(y+z)(z+x) $$ This follows from the AM-GM inequality: $2 x+y+z=(x+y)+(x+z) \geq$ $2 \sqrt{(x+y)(x+z)}$, etc. 17. Let the diagonals $A C$ and $B D$ meet in $X$. Either $\angle A X B$ or $\angle A X D$ is geater than or equal to $90^{\circ}$, so we assume w.l.o.g. that $\angle A X B \geq 90^{\circ}$. Let $\alpha, \beta, \alpha^{\prime}, \beta^{\prime}$ denote $\angle C A B, \angle A B D, \angle B D C, \angle D C A$. These angles are all acute and satisfy $\alpha+\beta=\alpha^{\prime}+\beta^{\prime}$. Furthermore, $$ R_{A}=\frac{A D}{2 \sin \beta}, \quad R_{B}=\frac{B C}{2 \sin \alpha}, \quad R_{C}=\frac{B C}{2 \sin \alpha^{\prime}}, \quad R_{D}=\frac{A D}{2 \sin \beta^{\prime}} $$ Let $\angle B+\angle D=180^{\circ}$. Then $A, B, C, D$ are concyclic and trivially $R_{A}+$ $R_{C}=R_{B}+R_{D}$. Let $\angle B+\angle D>180^{\circ}$. Then $D$ lies within the circumcircle of $A B C$, which implies that $\beta>\beta^{\prime}$. Similarly $\alpha<\alpha^{\prime}$, so we obtain $R_{A}R_{D}$ and $R_{C}>R_{B}$, so $R_{A}+R_{C}>R_{B}+R_{D}$. 18. We first prove the result in the simplest case. Given a 2 -gon $A B A$ and a point $O$, let $a, b, c, h$ denote $O A, O B, A B$, and the distance of $O$ from $A B$. Then $D=a+b, P=2 c$, and $H=2 h$, so we should show that $$ (a+b)^{2} \geq 4 h^{2}+c^{2} $$ Indeed, let $l$ be the line through $O$ parallel to $A B$, and $D$ the point symmetric to $B$ with respect to $l$. Then $(a+b)^{2}=(O A+O B)^{2}=(O A+$ $O D)^{2} \geq A D^{2}=c^{2}+4 h^{2}$. Now we pass to the general case. Let $A_{1} A_{2} \ldots A_{n}$ be the polygon $\mathcal{F}$ and denote by $d_{i}, p_{i}$, and $h_{i}$ respectively $O A_{i}, A_{i} A_{i+1}$, and the distance of $O$ from $A_{i} A_{i+1}$ (where $A_{n+1}=A_{1}$ ). By the case proved above, we have for each $i, d_{i}+d_{i+1} \geq \sqrt{4 h_{i}^{2}+p_{i}^{2}}$. Summing these inequalities for $i=1, \ldots, n$ and squaring, we obtain $$ 4 D^{2} \geq\left(\sum_{i=1}^{n} \sqrt{4 h_{i}^{2}+p_{i}^{2}}\right)^{2} $$ It remains only to prove that $\sum_{i=1}^{n} \sqrt{4 h_{i}^{2}+p_{i}^{2}} \geq \sqrt{\sum_{i=1}^{n}\left(4 h_{i}^{2}+p_{i}^{2}\right)}=$ $\sqrt{4 H^{2}+D^{2}}$. But this follows immediately from the Minkowski inequality. Equality holds if and only if it holds in (1) and in the Minkowski inequality, i.e., if and only if $d_{1}=\cdots=d_{n}$ and $h_{1} / p_{1}=\cdots=h_{n} / p_{n}$. This means that $\mathcal{F}$ is inscribed in a circle with center at $O$ and $p_{1}=\cdots=p_{n}$, so $\mathcal{F}$ is a regular polygon and $O$ its center. 19. It is easy to check that after 4 steps we will have all $a, b, c, d$ even. Thus $|a b-c d|,|a c-b d|,|a d-b c|$ remain divisible by 4 , and clearly are not prime. The answer is no. Second solution. After one step we have $a+b+c+d=0$. Then $a c-b d=$ $a c+b(a+b+c)=(a+b)(b+c)$ etc., so $$ |a b-c d| \cdot|a c-b d| \cdot|a d-b c|=(a+b)^{2}(a+c)^{2}(b+c)^{2} $$ However, the product of three primes cannot be a square, hence the answer is $n o$. 20. Let $15 a+16 b=x^{2}$ and $16 a-15 b=y^{2}$, where $x, y \in \mathbb{N}$. Then we obtain $x^{4}+y^{4}=(15 a+16 b)^{2}+(16 a-15 b)^{2}=\left(15^{2}+16^{2}\right)\left(a^{2}+b^{2}\right)=481\left(a^{2}+b^{2}\right)$. In particular, $481=13 \cdot 37 \mid x^{4}+y^{4}$. We have the following lemma. Lemma. Suppose that $p \mid x^{4}+y^{4}$, where $x, y \in \mathbb{Z}$ and $p$ is an odd prime, where $p \not \equiv 1(\bmod 8)$. Then $p \mid x$ and $p \mid y$. Proof. Since $p \mid x^{8}-y^{8}$ and by Fermat's theorem $p \mid x^{p-1}-y^{p-1}$, we deduce that $p \mid x^{d}-y^{d}$, where $d=(p-1,8)$. But $d \neq 8$, so $d \mid 4$. Thus $p \mid x^{4}-y^{4}$, which implies that $p \mid 2 y^{4}$, i.e., $p \mid y$ and $p \mid x$. In particular, we can conclude that $13 \mid x, y$ and $37 \mid x, y$. Hence $x$ and $y$ are divisible by 481 . Thus each of them is at least 481. On the other hand, $x=y=481$ is possible. It is sufficient to take $a=$ $31 \cdot 481$ and $b=481$. Second solution. Note that $15 x^{2}+16 y^{2}=481 a^{2}$. It can be directly verified that the divisibility of $15 x^{2}+16 y^{2}$ by 13 and by 37 implies that both $x$ and $y$ are divisible by both primes. Thus $481 \mid x, y$. 21. (a) It clearly suffices to show that for every integer $c$ there exists a quadratic sequence with $a_{0}=0$ and $a_{n}=c$, i.e., that $c$ can be expressed as $\pm 1^{2} \pm 2^{2} \pm \cdots \pm n^{2}$. Since $$ (n+1)^{2}-(n+2)^{2}-(n+3)^{2}+(n+4)^{2}=4 $$ we observe that if our claim is true for $c$, then it is also true for $c \pm 4$. Thus it remains only to prove the claim for $c=0,1,2,3$. But one immediately finds $1=1^{2}, 2=-1^{2}-2^{2}-3^{2}+4^{2}$, and $3=-1^{2}+2^{2}$, while the case $c=0$ is trivial. (b) We have $a_{0}=0$ and $a_{n}=1996$. Since $a_{n} \leq 1^{2}+2^{2}+\cdots+n^{2}=$ $\frac{1}{6} n(n+1)(2 n+1)$, we get $a_{17} \leq 1785$, so $n \geq 18$. On the other hand, $a_{18}$ is of the same parity as $1^{2}+2^{2}+\cdots+18^{2}=2109$, so it cannot be equal to 1996. Therefore we must have $n \geq 19$. To construct a required sequence with $n=19$, we note that $1^{2}+2^{2}+\cdots+19^{2}=$ $2470=1996+2 \cdot 237$; hence it is enough to write 237 as a sum of distinct squares. Since $237=14^{2}+5^{2}+4^{2}$, we finally obtain $$ 1996=1^{2}+2^{2}+3^{2}-4^{2}-5^{2}+6^{2}+\cdots+13^{2}-14^{2}+15^{2}+\cdots+19^{2} $$ 22. Let $a, b \in \mathbb{N}$ satisfy the given equation. It is not possible that $a=b$ (since it leads to $a^{2}+2=2 a$ ), so we assume w.l.o.g. that $a>b$. Next, for $a>b=1$ the equation becomes $a^{2}=2 a$, and one obtains a solution $(a, b)=(2,1)$. Let $b>1$. If $\left[\frac{a^{2}}{b}\right]=\alpha$ and $\left[\frac{b^{2}}{a}\right]=\beta$, then we trivially have $a b \geq$ $\alpha \beta$. Since also $\frac{a^{2}+b^{2}}{a b} \geq 2$, we obtain $\alpha+\beta \geq \alpha \beta+2$, or equivalently $(\alpha-1)(\beta-1) \leq-1$. But $\alpha \geq 1$, and therefore $\beta=0$. It follows that $a>b^{2}$, i.e., $a=b^{2}+c$ for some $c>0$. Now the given equation becomes $b^{3}+2 b c+\left[\frac{c^{2}}{b}\right]=\left[\frac{b^{4}+2 b^{2} c+b^{2}+c^{2}}{b^{3}+b c}\right]+b^{3}+b c$, which reduces to $$ (c-1) b+\left[\frac{c^{2}}{b}\right]=\left[\frac{b^{2}(c+1)+c^{2}}{b^{3}+b c}\right] $$ If $c=1$, then (1) always holds, since both sides are 0 . We obtain a family of solutions $(a, b)=\left(n, n^{2}+1\right)$ or $(a, b)=\left(n^{2}+1, n\right)$. Note that the solution $(1,2)$ found earlier is obtained for $n=1$. If $c>1$, then $(1)$ implies that $\frac{b^{2}(c+1)+c^{2}}{b^{3}+b c} \geq(c-1) b$. This simplifies to $$ c^{2}\left(b^{2}-1\right)+b^{2}\left(c\left(b^{2}-2\right)-\left(b^{2}+1\right)\right) \leq 0 $$ Since $c \geq 2$ and $b^{2}-2 \geq 0$, the only possibility is $b=2$. But then (2) becomes $3 c^{2}+8 c-20 \leq 0$, which does not hold for $c \geq 2$. Hence the only solutions are $\left(n, n^{2}+1\right)$ and $\left(n^{2}+1, n\right), n \in \mathbb{N}$. 23. We first observe that the given functional equation is equivalent to $$ 4 f\left(\frac{(3 m+1)(3 n+1)-1}{3}\right)+1=(4 f(m)+1)(4 f(n)+1) . $$ This gives us the idea of introducing a function $g: 3 \mathbb{N}_{0}+1 \rightarrow 4 \mathbb{N}_{0}+1$ defined as $g(x)=4 f\left(\frac{x-1}{3}\right)+1$. By the above equality, $g$ will be multiplicative, i.e., $$ g(x y)=g(x) g(y) \quad \text { for all } x, y \in 3 \mathbb{N}_{0}+1 $$ Conversely, any multiplicative bijection $g$ from $3 \mathbb{N}_{0}+1$ onto $4 \mathbb{N}_{0}+1$ gives us a function $f$ with the required property: $f(x)=\frac{g(3 x+1)-1}{4}$. It remains to give an example of such a function $g$. Let $P_{1}, P_{2}, Q_{1}, Q_{2}$ be the sets of primes of the forms $3 k+1,3 k+2,4 k+1$, and $4 k+3$, respectively. It is well known that these sets are infinite. Take any bijection $h$ from $P_{1} \cup P_{2}$ onto $Q_{1} \cup Q_{2}$ that maps $P_{1}$ bijectively onto $Q_{1}$ and $P_{2}$ bijectively onto $Q_{2}$. Now define $g$ as follows: $g(1)=1$, and for $n=p_{1} p_{2} \cdots p_{m}\left(p_{i}\right.$ 's need not be different) define $g(n)=h\left(p_{1}\right) h\left(p_{2}\right) \cdots h\left(p_{m}\right)$. Note that $g$ is well-defined. Indeed, among the $p_{i}$ 's an even number are of the form $3 k+2$, and consequently an even number of $h\left(p_{i}\right) \mathrm{s}$ are of the form $4 k+3$. Hence the product of the $h\left(p_{i}\right)$ 's is of the form $4 k+1$. Also, it is obvious that $g$ is multiplicative. Thus, the defined $g$ satisfies all the required properties. 24. We shall work on the array of lattice points defined by $\mathcal{A}=\left\{(x, y) \in \mathbb{Z}^{2} \mid\right.$ $0 \leq x \leq 19,0 \leq y \leq 11\}$. Our task is to move from $(0,0)$ to $(19,0)$ via the points of $\mathcal{A}$ so that each move has the form $(x, y) \rightarrow(x+a, y+b)$, where $a, b \in \mathbb{Z}$ and $a^{2}+b^{2}=r$. (a) If $r$ is even, then $a+b$ is even whenever $a^{2}+b^{2}=r(a, b \in \mathbb{Z})$. Thus the parity of $x+y$ does not change after each move, so we cannot reach $(19,0)$ from $(0,0)$. If $3 \mid r$, then both $a$ and $b$ are divisible by 3 , so if a point $(x, y)$ can be reached from $(0,0)$, we must have $3 \mid x$. Since $3 \nmid 19$, we cannot get to $(19,0)$. (b) We have $r=73=8^{2}+3^{2}$, so each move is either $(x, y) \rightarrow(x \pm 8, y \pm 3)$ or $(x, y) \rightarrow(x \pm 3, y \pm 8)$. One possible solution is shown in Fig. 1. (c) We have $97=9^{2}+4^{2}$. Let us partition $\mathcal{A}$ as $\mathcal{B} \cup \mathcal{C}$, where $\mathcal{B}=$ $\{(x, y) \in \mathcal{A} \mid 4 \leq y \leq 7\}$. It is easily seen that moves of the type $(x, y) \rightarrow(x \pm 9, y \pm 4)$ always take us from the set $\mathcal{B}$ to $\mathcal{C}$ and vice versa, while the moves $(x, y) \rightarrow(x \pm 4, y \pm 9)$ always take us from $\mathcal{C}$ to $\mathcal{C}$. Furthermore, each move of the type $(x, y) \rightarrow(x \pm 9, y \pm 4)$ changes the parity of $x$, so to get from $(0,0)$ to $(19,0)$ we must have an odd number of such moves. On the other hand, with an odd number of such moves, starting from $\mathcal{C}$ we can end up only in $\mathcal{B}$, although the point $(19,0)$ is not in $\mathcal{B}$. Hence, the answer is no. Remark. Part (c) can also be solved by examining all cells that can be reached from $(0,0)$. All these cells are marked in Fig. 2. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-623.jpg?height=259&width=420&top_left_y=1081&top_left_x=289) Fig. 1 ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-623.jpg?height=256&width=414&top_left_y=1083&top_left_x=886) Fig. 2 25. Let the vertices in the bottom row be assigned an arbitrary coloring, and suppose that some two adjacent vertices receive the same color. The number of such colorings equals $2^{n}-2$. It is easy to see that then the colors of the remaining vertices get fixed uniquely in order to satisfy the requirement. So in this case there are $2^{n}-2$ possible colorings. Next, suppose that the vertices in the bottom row are colored alternately red and blue. There are two such colorings. In this case, the same must hold for every row, and thus we get $2^{n}$ possible colorings. It follows that the total number of considered colorings is $\left(2^{n}-2\right)+2^{n}=$ $2^{n+1}-2$. 26. Denote the required maximum size by $M_{k}(m, n)$. If $m<\frac{n(n+1)}{2}$, then trivially $M=k$, so from now on we assume that $m \geq \frac{n(n+1)}{2}$. First we give a lower bound for $M$. Let $r=r_{k}(m, n)$ be the largest integer such that $r+(r+1)+\cdots+(r+n-1) \leq m$. This is equivalent to $n r \leq m-\frac{n(n-1)}{2} \leq n(r+1)$, so $r=\left[\frac{m}{n}-\frac{n-1}{2}\right]$. Clearly no $n$ elements from $\{r+1, r+2, \ldots, k\}$ add up to $m$, so $$ M \geq k-r_{k}(m, n)=k-\left[\frac{m}{n}-\frac{n-1}{2}\right] . $$ We claim that $M$ is actually equal to $k-r_{k}(m, n)$. To show this, we shall prove by induction on $n$ that if no $n$ elements of a set $S \subseteq\{1,2, \ldots, k\}$ add up to $m$, then $|S| \leq k-r_{k}(m, n)$. For $n=2$ the claim is true, because then for each $i=1, \ldots, r_{k}(m, 2)=$ $\left[\frac{m-1}{2}\right]$ at least one of $i$ and $m-i$ must be excluded from $S$. Now let us assume that $n>2$ and that the result holds for $n-1$. Suppose that $S \subseteq\{1,2, \ldots, k\}$ does not contain $n$ distinct elements with the sum $m$, and let $x$ be the smallest element of $S$. We may assume that $x \leq r_{k}(m, n)$, because otherwise the statement is clear. Consider the set $S^{\prime}=\{y-x \mid$ $y \in S, y \neq x\}$. Then $S^{\prime}$ is a subset of $\{1,2, \ldots, k-x\}$ no $n-1$ elements of which have the sum $m-n x$. Also, it is easily checked that $n-1 \leq$ $m-n x-1 \leq k-x$, so we may apply the induction hypothesis, which yields that $$ |S| \leq 1+k-x-r_{k}(m-n x, n-1)=k-\left[\frac{m-x}{n-1}-\frac{n}{2}\right] . $$ On the other hand, $\left(\frac{m-x}{n-1}-\frac{n}{2}\right)-r_{k}(m, n)=\frac{m-n x-\frac{n(n-1)}{2}}{n(n-1)} \geq 0$ because $x \leq r_{k}(m, n)$; hence (2) implies $|S| \leq k-r_{k}(m, n)$ as claimed. 27. Suppose that such sets of points $\mathcal{A}, \mathcal{B}$ exist. First, we observe that there exist five points $A, B, C, D, E$ in $\mathcal{A}$ such that their convex hull does not contain any other point of $\mathcal{A}$. Indeed, take any point $A \in \mathcal{A}$. Since any two points of $\mathcal{A}$ are at distance at least 1 , the number of points $X \in \mathcal{A}$ with $X A \leq r$ is finite for every $r>0$. Thus it is enough to choose four points $B, C, D, E$ of $\mathcal{A}$ that are closest to $A$. Now consider the convex hull $\mathcal{C}$ of $A, B, C, D, E$. Suppose that $\mathcal{C}$ is a pentagon, say $A B C D E$. Then each of the disjoint triangles $A B C, A C D, A D E$ contains a point of $\mathcal{B}$. Denote these points by $P, Q, R$. Then $\triangle P Q R$ contains some point $F \in \mathcal{A}$, so $F$ is inside $A B C D E$, a contradiction. Suppose that $\mathcal{C}$ is a quadrilateral, say $A B C D$, with $E$ lying within $A B C D$. Then the triangles $A B E, B C E, C D E, D A E$ contain some points $P, Q, R, S$ of $\mathcal{B}$ that form two disjoint triangles. It follows that there are two points of $\mathcal{A}$ inside $A B C D$, which is a contradiction. Finally, suppose that $\mathcal{C}$ is a triangle with two points of $\mathcal{A}$ inside. Then $\mathcal{C}$ is the union of five disjoint triangles with vertices in $\mathcal{A}$, so there are at least five points of $\mathcal{B}$ inside $\mathcal{C}$. These five points make at least three disjoint triangles containing three points of $\mathcal{A}$. This is again a contradiction. It follows that no such sets $\mathcal{A}, \mathcal{B}$ exist. 28. Note that w.l.o.g., we can assume that $p$ and $q$ are coprime. Indeed, otherwise it suffices to consider the problem in which all $x_{i}$ 's and $p, q$ are divided by $\operatorname{gcd}(p, q)$. Let $k, l$ be the number of indices $i$ with $x_{i+1}-x_{i}=p$ and the number of those $i$ with $x_{i+1}-x_{i}=-q(0 \leq i1, k=q t, l=p t$, and $n=(p+q) t$. Consider the sequence $y_{i}=x_{i+p+q}-x_{i}, i=0, \ldots, n-p-q$. We claim that at least one of the $y_{i}$ 's equals zero. We begin by noting that each $y_{i}$ is of the form $u p-v q$, where $u+v=p+q$; therefore $y_{i}=(u+v) p-$ $v(p+q)=(p-v)(p+q)$ is always divisible by $p+q$. Moreover, $y_{i+1}-y_{i}=$ $\left(x_{i+p+q+1}-x_{i+p+q}\right)-\left(x_{i+1}-x_{i}\right)$ is 0 or $\pm(p+q)$. We conclude that if no $y_{i}$ is 0 then all $y_{i}$ 's are of the same sign. But this is in contradiction with the relation $y_{0}+y_{p+q}+\cdots+y_{n-p-q}=x_{n}-x_{0}=0$. Consequently some $y_{i}$ is zero, as claimed. Second solution. As before we assume $(p, q)=1$. Let us define a sequence of points $A_{i}\left(y_{i}, z_{i}\right)(i=0,1, \ldots, n)$ in $\mathbb{N}_{0}^{2}$ inductively as follows. Set $A_{0}=$ $(0,0)$ and define $\left(y_{i+1}, z_{i+1}\right)$ as $\left(y_{i}, z_{i}+1\right)$ if $x_{i+1}=x_{i}+p$ and $\left(y_{i}+1, z_{i}\right)$ otherwise. The points $A_{i}$ form a trajectory $L$ in $\mathbb{N}_{0}^{2}$ continuously moving upwards and rightwards by steps of length 1 . Clearly, $x_{i}=p z_{i}-q y_{i}$ for all $i$. Since $x_{n}=0$, it follows that $\left(z_{n}, y_{n}\right)=(k q, k p), k \in \mathbb{N}$. Since $y_{n}+z_{n}=n>p+q$, it follows that $k>1$. We observe that $x_{i}=x_{j}$ if and only if $A_{i} A_{j} \| A_{0} A_{n}$. We shall show that such $i, j$ with $i1$. Such an index $j$ exists, since otherwise the game is over. Then one must make at least one move in the $j$ th cell, which implies that $x_{j}, x_{j}^{\prime} \geq 1$. However, then the sequences $\left\{x_{i}\right\}$ and $\left\{x_{i}^{\prime}\right\}$ with $x_{j}$ and $x_{j}^{\prime}$ decreased by 1 also satisfy (1) for a sequence $\left\{b_{i}\right\}$ where $b_{j-1}, b_{j}, b_{j+1}$ is replaced with $b_{j-1}+1, b_{j}-2, b_{j+1}+1$. This contradicts the assumption of minimal $\min \left\{\sum_{i \in \mathbb{Z}} x_{i}, \sum_{i \in \mathbb{Z}} x_{i}^{\prime}\right\}$ for the initial $\left\{b_{i}\right\}$. 30. For convenience, we shall write $f^{2}, f g, \ldots$ for the functions $f \circ f, f \circ g, \ldots$ We need two lemmas. Lemma 1. If $f(x) \in S$ and $g(x) \in T$, then $x \in S \cap T$. Proof. The given condition means that $f^{3}(x)=g^{2} f(x)$ and $g f g(x)=$ $f g^{2}(x)$. Since $x \in S \cup T=U$, we have two cases: $x \in S$. Then $f^{2}(x)=g^{2}(x)$, which also implies $f^{3}(x)=f g^{2}(x)$. Therefore $g f g(x)=f g^{2}(x)=f^{3}(x)=g^{2} f(x)$, and since $g$ is a bijection, we obtain $f g(x)=g f(x)$, i.e., $x \in T$. $x \in T$. Then $f g(x)=g f(x)$, so $g^{2} f(x)=g f g(x)$. It follows that $f^{3}(x)=g^{2} f(x)=g f g(x)=f g^{2}(x)$, and since $f$ is a bijection, we obtain $x \in S$. Hence $x \in S \cap T$ in both cases. Similarly, $f(x) \in T$ and $g(x) \in S$ again imply $x \in S \cap T$. Lemma 2. $f(S \cap T)=g(S \cap T)=S \cap T$. Proof. By symmetry, it is enough to prove $f(S \cap T)=S \cap T$, or in other words that $f^{-1}(S \cap T)=S \cap T$. Since $S \cap T$ is finite, this is equivalent to $f(S \cap T) \subseteq S \cap T$. Let $f(x) \in S \cap T$. Then if $g(x) \in S$ (since $f(x) \in T$ ), Lemma 1 gives $x \in S \cap T$; similarly, if $g(x) \in T$, then by Lemma $1, x \in S \cap T$. Now we return to the problem. Assume that $f(x) \in S$. If $g(x) \notin S$, then $g(x) \in T$, so from Lemma 1 we deduce that $x \in S \cap T$. Then Lemma 2 claims that $g(x) \in S \cap T$ too, a contradiction. Analogously, from $g(x) \in S$ we are led to $f(x) \in S$. This finishes the proof. ### 4.38 Solutions to the Shortlisted Problems of IMO 1997 1. Let $A B C$ be the given triangle, with $\angle B=90^{\circ}$ and $A B=m, B C=n$. For an arbitrary polygon $\mathcal{P}$ we denote by $w(\mathcal{P})$ and $b(\mathcal{P})$ respectively the total areas of the white and black parts of $\mathcal{P}$. (a) Let $D$ be the fourth vertex of the rectangle $A B C D$. When $m$ and $n$ are of the same parity, the coloring of the rectangle $A B C D$ is centrally symmetric with respect to the midpoint of $A C$. It follows that $w(A B C)=\frac{1}{2} w(A B C D)$ and $b(A B C)=\frac{1}{2} b(A B C D)$; thus $f(m, n)=\frac{1}{2}|w(A B C D)-b(A B C D)|$. Hence $f(m, n)$ equals $\frac{1}{2}$ if $m$ and $n$ are both odd, and 0 otherwise. (b) The result when $m, n$ are of the same parity follows from (a). Suppose that $m>n$, where $m$ and $n$ are of different parity. Choose a point $E$ on $A B$ such that $A E=1$. Since by (a) $|w(E B C)-b(E B C)|=$ $f(m-1, n) \leq \frac{1}{2}$, we have $f(m, n) \leq \frac{1}{2}+|w(E A C)-b(E A C)| \leq$ $\frac{1}{2}+S(E A C)=\frac{1}{2}+\frac{n-1}{2}=\frac{n}{2}$. Therefore $f(m, n) \leq \frac{1}{2} \min (m, n)$. (c) Let us calculate $f(m, n)$ for $m=2 k+1, n=2 k, k \in \mathbb{N}$. With $E$ defined as in (b), we have $B E=B C=2 k$. If the square at $B$ is w.l.o.g. white, $C E$ passes only through black squares. The white part of $\triangle E A C$ then consists of $2 k$ similar triangles with areas $\frac{1}{2} \frac{i}{2 k} \frac{i}{2 k+1}=\frac{i^{2}}{4 k(2 k+1)}$, where $i=1,2, \ldots, 2 k$. The total white area of $E A C$ is $$ \frac{1}{4 k(2 k+1)}\left(1^{2}+2^{2}+\cdots+(2 k)^{2}\right)=\frac{4 k+1}{12} . $$ Therefore the black area is $(8 k-1) / 12$, and $f(2 k+1,2 k)=(2 k-1) / 6$, which is not bounded. 2. For any sequence $X=\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ let us define $$ \bar{X}=\left(1,2, \ldots, x_{1}, 1,2, \ldots, x_{2}, \ldots, 1,2, \ldots, x_{n}\right) $$ Also, for any two sequences $A, B$ we denote their concatenation by $A B$. It clearly holds that $\overline{A B}=\bar{A} \bar{B}$. The sequences $R_{1}, R_{2}, \ldots$ are given by $R_{1}=(1)$ and $R_{n}=\overline{R_{n-1}}(n)$ for $n>1$. We consider the family of sequences $Q_{n i}$ for $n, i \in \mathbb{N}, i \leq n$, defined as follows: $Q_{n 1}=(1), \quad Q_{n n}=(n), \quad$ and $\quad Q_{n i}=Q_{n-1, i-1} Q_{n-1, i} \quad$ if $11$. Let $x \in\{1,2, \ldots, 2 n-1\}$ be a fixed number that does not appear on the fixed diagonal of $A$. Such an element must exist, since the diagonal can contain at most $n$ different numbers. Let us call the union of the $i$ th row and the $i$ th column the $i$ th cross. There are $n$ crosses, and each of them contains exactly one $x$. On the other hand, each entry $x$ of $A$ is contained in exactly two crosses. Hence $n$ must be even. However, 1997 is an odd number; hence no coveralls matrix exists for $n=1997$. (b) For $n=2, A_{2}=\left[\begin{array}{ll}1 & 2 \\ 3 & 1\end{array}\right]$ is a coveralls matrix. For $n=4$, one such matrix is, for example, $$ A_{4}=\left[\begin{array}{llll} 1 & 2 & 5 & 6 \\ 3 & 1 & 7 & 5 \\ 4 & 6 & 1 & 2 \\ 7 & 4 & 3 & 1 \end{array}\right] $$ This construction can be generalized. Suppose that we are given an $n \times n$ coveralls matrix $A_{n}$. Let $B_{n}$ be the matrix obtained from $A_{n}$ by adding $2 n$ to each entry, and $C_{n}$ the matrix obtained from $B_{n}$ by replacing each diagonal entry (equal to $2 n+1$ by induction) with $2 n$. Then the matrix $$ A_{2 n}=\left[\begin{array}{ll} A_{n} & B_{n} \\ C_{n} & A_{n} \end{array}\right] $$ is coveralls. To show this, suppose that $i \leq n$ (the case $i>n$ is similar). The $i$ th cross is composed of the $i$ th cross of $A_{n}$, the $i$ th row of $B_{n}$, and the $i$ th column of $C_{n}$. The $i$ th cross of $A_{i}$ covers $1,2, \ldots, 2 n-1$. The $i$ th row of $B_{n}$ covers all numbers of the form $2 n+j$, where $j$ is covered by the $i$ th row of $A_{n}$ (including $j=1$ ). Similarly, the $i$ th column of $C_{n}$ covers $2 n$ and all numbers of the form $2 n+k$, where $k>1$ is covered by the $i$ th column of $A_{n}$. Thus we see that all numbers are accounted for in the $i$ th cross of $A_{2 n}$, and hence $A_{2 n}$ is a desired coveralls matrix. It follows that we can find a coveralls matrix whenever $n$ is a power of 2 . Second solution for part $b$. We construct a coveralls matrix explicitly for $n=2^{k}$. We consider the coordinates/cells of the matrix elements modulo $n$ throughout the solution. We define the $i$-diagonal $(0 \leq i<$ $n$ ) to be the set of cells of the form $(j, j+i)$, for all $j$. We note that each cross contains exactly one cell from the 0 -diagonal (the main diagonal) and two cells from each $i$-diagonal. For two cells within an $i$ diagonal, $x$ and $y$, we define $x$ and $y$ to be related if there exists a cross containing both $x$ and $y$. Evidently, for every cell $x$ not on the 0 -diagonal there are exactly two other cells related to it. The relation thus breaks up each $i$-diagonal $(i>0)$ into cycles of length larger than 1 . Due to the diagonal translational symmetry (modulo $n$ ), all the cycles within a given $i$-diagonal must be of equal length and thus of an even length, since $n=2^{k}$. The construction of a coveralls matrix is now obvious. We select a number, say 1, to place on all the cells of the 0-diagonal. We pair up the remaining numbers and assign each pair to an $i$-diagonal, say $(2 i, 2 i+1)$. Going along each cycle within the $i$-diagonal we alternately assign values of $2 i$ and $2 i+1$. Since the cycle has an even length, a cell will be related only to a cell of a different number, and hence each cross will contain both $2 i$ and $2 i+1$. 5. We shall prove first the 2-dimensional analogue: Lemma. Given an equilateral triangle $A B C$ and two points $M, N$ on the sides $A B$ and $A C$ respectively, there exists a triangle with sides $C M, B N, M N$. Proof. Consider a regular tetrahedron $A B C D$. Since $C M=D M$ and $B N=D N$, one such triangle is $D M N$. Now, to solve the problem for a regular tetrahedron $A B C D$, we consider a 4-dimensional polytope $A B C D E$ whose faces $A B C D, A B C E, A B D E$, $A C D E, B C D E$ are regular tetrahedra. We don't know what it looks like, but it yields a desired triangle: for $M \in A B C$ and $N \in A D C$, we have $D M=E M$ and $B N=E N$; hence the desired triangle is $E M N$. Remark. A solution that avoids embedding in $\mathbb{R}^{4}$ is possible, but no longer so short. 6. (a) One solution is $$ x=2^{n^{2}} 3^{n+1}, \quad y=2^{n^{2}-n} 3^{n}, \quad z=2^{n^{2}-2 n+2} 3^{n-1} . $$ (b) Suppose w.l.o.g. that $\operatorname{gcd}(c, a)=1$. We look for a solution of the form $$ x=p^{m}, \quad y=p^{n}, \quad z=q p^{r}, \quad p, q, m, n, r \in \mathbb{N} . $$ Then $x^{a}+y^{b}=p^{m a}+p^{n b}$ and $z^{c}=q^{c} p^{r c}$, and we see that it is enough to assume $m a-1=n b=r c$ (there are infinitely many such triples $(m, n, r))$ and $q^{c}=p+1$. 7. Let us set $A C=a, C E=b, E A=c$. Applying Ptolemy's inequality for the quadrilateral $A C E F$ we get $$ A C \cdot E F+C E \cdot A F \geq A E \cdot C F $$ Since $E F=A F$, this implies $\frac{F A}{F C} \geq \frac{c}{a+b}$. Similarly $\frac{B C}{B E} \geq \frac{a}{b+c}$ and $\frac{D E}{D A} \geq$ $\frac{b}{c+a}$. Now, $$ \frac{B C}{B E}+\frac{D E}{D A}+\frac{F A}{F C} \geq \frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b} $$ Hence it is enough to prove that $$ \frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b} \geq \frac{3}{2} $$ If we now substitute $x=b+c, y=c+a, z=a+b$ and $S=a+b+c$ the inequality (1) becomes equivalent to $S(1 / x+1 / y+1 / y)-3 \geq 3 / 2$ which follows immediately form $1 / x+1 / y+1 / z \geq 9 /(x+y+z)=9 /(2 S)$. Equality occurs if it holds in Ptolemy's inequalities and also $a=b=c$. The former happens if and only if the hexagon is cyclic. Hence the only case of equality is when $A B C D E F$ is regular. 8. (a) Denote by $b$ and $c$ the perpendicular bisectors of $A B$ and $A C$ respectively. If w.l.o.g. $b$ and $A D$ do not intersect (are parallel), then $\angle B C D=\angle B A D=90^{\circ}$, a contradiction. Hence $V, W$ are well-defined. Now, $\angle D W B=2 \angle D A B$ and $\angle D V C=2 \angle D A C$ as oriented angles, and therefore $\angle(W B, V C)=2(\angle D V C-\angle D W B)=2 \angle B A C=$ $2 \angle B C D$ is not equal to 0 . Consequently $C V$ and $B W$ meet at some $T$ with $\angle B T C=2 \angle B A C$. (b) Let $B^{\prime}$ be the second point of intersection of $B W$ with $\Gamma$. Clearly $A D=B B^{\prime}$. But we also have $\angle B T C=2 \angle B A C=2 \angle B B^{\prime} C$, which implies that $C T=T B^{\prime}$. It follows that $A D=B B^{\prime}=\left|B T \pm T B^{\prime}\right|=$ $|B T \pm C T|$. Remark. This problem is also solved easily using trigonometry. 9. For $i=1,2,3$ (all indices in this problem will be modulo 3 ) we denote by $O_{i}$ the center of $C_{i}$ and by $M_{i}$ the midpoint of the $\operatorname{arc} A_{i+1} A_{i+2}$ that does not contain $A_{i}$. First we have that $O_{i+1} O_{i+2}$ is the perpendicular bisector of $I B_{i}$, and thus it contains the circumcenter $R_{i}$ of $A_{i} B_{i} I$. Additionally, it is easy to show that $T_{i+1} A_{i}=T_{i+1} I$ and $T_{i+2} A_{i}=$ $T_{i+2} I$, which implies that $R_{i}$ lies on the line $T_{i+1} T_{i+2}$. Therefore $R_{i}=$ $O_{i+1} O_{i+2} \cap T_{i+1} T_{i+2}$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-631.jpg?height=360&width=548&top_left_y=579&top_left_x=806) Now, the lines $T_{1} O_{1}, T_{2} O_{2}, T_{3} O_{3}$ are concurrent at $I$. By Desargues's theorem, the points of intersection of $O_{i+1} O_{i+2}$ and $T_{i+1} T_{i+2}$, i.e., the $R_{i}$ 's, lie on a line for $i=1,2,3$. Second solution. The centers of three circles passing through the same point $I$ and not touching each other are collinear if and only if they have another common point. Hence it is enough to show that the circles $A_{i} B_{i} I$ have a common point other than $I$. Now apply inversion at center $I$ and with an arbitrary power. We shall denote by $X^{\prime}$ the image of $X$ under this inversion. In our case, the image of the circle $C_{i}$ is the line $B_{i+1}^{\prime} B_{i+2}^{\prime}$ while the image of the line $A_{i+1} A_{i+2}$ is the circle $I A_{i+1}^{\prime} A_{i+2}^{\prime}$ that is tangent to $B_{i}^{\prime} B_{i+2}^{\prime}$, and $B_{i}^{\prime} B_{i+2}^{\prime}$. These three circles have equal radii, so their centers $P_{1}, P_{2}, P_{3}$ form a triangle also homothetic to $\triangle B_{1}^{\prime} B_{2}^{\prime} B_{3}^{\prime}$. Consequently, points $A_{1}^{\prime}, A_{2}^{\prime}, A_{3}^{\prime}$, that are the reflections of $I$ across the sides of $P_{1} P_{2} P_{3}$, are vertices of a triangle also homothetic to $B_{1}^{\prime} B_{2}^{\prime} B_{3}^{\prime}$. It follows that $A_{1}^{\prime} B_{1}^{\prime}, A_{2}^{\prime} B_{2}^{\prime}, A_{3}^{\prime} B_{3}^{\prime}$ are concurrent at some point $J^{\prime}$, i.e., that the circles $A_{i} B_{i} I$ all pass through $J$. 10. Suppose that $k \geq 4$. Consider any polynomial $F(x)$ with integer coefficients such that $0 \leq F(x) \leq k$ for $x=0,1, \ldots, k+1$. Since $F(k+1)-F(0)$ is divisible by $k+1$, we must have $F(k+1)=F(0)$. Hence $$ F(x)-F(0)=x(x-k-1) Q(x) $$ for some polynomial $Q(x)$ with integer coefficients. In particular, $F(x)-$ $F(0)$ is divisible by $x(k+1-x)>k+1$ for every $x=2,3, \ldots, k-1$, so $F(x)=F(0)$ must hold for any $x=2,3, \ldots, k-1$. It follows that $$ F(x)-F(0)=x(x-2)(x-3) \cdots(x-k+1)(x-k-1) R(x) $$ for some polynomial $R(x)$ with integer coefficients. Thus $k \geq \mid F(1)-$ $F(0)|=k(k-2)!| R(1) \mid$, although $k(k-2)!>k$ for $k \geq 4$. In this case we have $F(1)=F(0)$ and similarly $F(k)=F(0)$. Hence, the statement is true for $k \geq 4$. It is easy to find counterexamples for $k \leq 3$. These are, for example, $$ F(x)= \begin{cases}x(2-x) & \text { for } k=1 \\ x(3-x) & \text { for } k=2 \\ x(2-x)^{2}(4-x) & \text { for } k=3\end{cases} $$ 11. All real roots of $P(x)$ (if any) are negative: say $-a_{1},-a_{2}, \ldots,-a_{k}$. Then $P(x)$ can be factored as $$ P(x)=C\left(x+a_{1}\right) \cdots\left(x+a_{k}\right)\left(x^{2}-b_{1} x+c_{1}\right) \cdots\left(x^{2}-b_{m} x+c_{m}\right) $$ where $x^{2}-b_{i} x+c_{i}$ are quadratic polynomials without real roots. Since the product of polynomials with positive coefficients is again a polynomial with positive coefficients, it will be sufficient to prove the result for each of the factors in (1). The case of $x+a_{j}$ is trivial. It remains only to prove the claim for every polynomial $x^{2}-b x+c$ with $b^{2}<4 c$. From the binomial formula, we have for any $n \in \mathbb{N}$, $$ (1+x)^{n}\left(x^{2}-b x+c\right)=\sum_{i=0}^{n+2}\left[\binom{n}{i-2}-b\binom{n}{i-1}+c\binom{n}{i}\right] x^{i}=\sum_{i=0}^{n+2} C_{i} x^{i} $$ where $$ C_{i}=\frac{n!\left((b+c+1) i^{2}-((b+2 c) n+(2 b+3 c+1)) i+c\left(n^{2}+3 n+2\right)\right) x^{i}}{i!(n-i+2)!} $$ The coefficients $C_{i}$ of $x^{i}$ appear in the form of a quadratic polynomial in $i$ depending on $n$. We claim that for large enough $n$ this polynomial has negative discriminant, and is thus positive for every $i$. Indeed, this discriminant equals $D=((b+2 c) n+(2 b+3 c+1))^{2}-4(b+c+1) c\left(n^{2}+\right.$ $3 n+2)=\left(b^{2}-4 c\right) n^{2}-2 U n+V$, where $U=2 b^{2}+b c+b-4 c$ and $V=(2 b+c+1)^{2}-4 c$, and since $b^{2}-4 c<0$, for large $n$ it clearly holds that $D<0$. 12. Lemma. For any polynomial $P$ of degree at most $n$, the following equality holds: $$ \sum_{i=0}^{n+1}(-1)^{i}\binom{n+1}{i} P(i)=0 $$ Proof. See (SL81-13). Suppose to the contrary that the degree of $f$ is at most $p-2$. Then it follows from the lemma that $$ 0=\sum_{i=0}^{p-1}(-1)^{i}\binom{p-1}{i} f(i) \equiv \sum_{i=0}^{p-1} f(i)(\bmod p) $$ since $\binom{p-1}{i}=\frac{(p-1)(p-2) \cdots(p-i)}{i!} \equiv(-1)^{i}(\bmod p)$. But this is clearly impossible if $f(i)$ equals 0 or 1 modulo $p$ and $f(0)=0, f(1)=1$. Remark. In proving the essential relation $\sum_{i=0}^{p-1} f(i) \equiv 0(\bmod p)$, it is clearly enough to show that $S_{k}=1^{k}+2^{k}+\cdots+(p-1)^{k}$ is divisible by $p$ for every $k \leq p-2$. This can be shown in two other ways. (1) By induction. Assume that $S_{0} \equiv \cdots \equiv S_{k-1}(\bmod p)$. By the binomial formula we have $$ 0 \equiv \sum_{n=0}^{p-1}\left[(n+1)^{k+1}-n^{k+1}\right] \equiv(k+1) S_{k}+\sum_{i=0}^{k-1}\binom{k+1}{i} S_{i}(\bmod p), $$ and the inductive step follows. (2) Using the primitive root $g$ modulo $p$. Then $$ S_{k} \equiv 1+g^{k}+\cdots+g^{k(p-2)}=\frac{g^{k(p-1)}-1}{g^{k}-1} \equiv 0(\bmod p) . $$ 13. Denote $A(r)$ and $B(r)$ by $A(n, r)$ and $B(n, r)$ respectively. The numbers $A(n, r)$ can be found directly: one can choose $r$ girls and $r$ boys in $\binom{n}{r}^{2}$ ways, and pair them in $r$ ! ways. Hence $$ A(n, r)=\binom{n}{r}^{2} \cdot r!=\frac{n!^{2}}{(n-r)!^{2} r!} $$ Now we establish a recurrence relation between the $B(n, r)$ 's. Let $n \geq 2$ and $2 \leq r \leq n$. There are two cases for a desired selection of $r$ pairs of girls and boys: (i) One of the girls dancing is $g_{n}$. Then the other $r-1$ girls can choose their partners in $B(n-1, r-1)$ ways and $g_{n}$ can choose any of the remaining $2 n-r$ boys. Thus, the total number of choices in this case is $(2 n-r) B(n-1, r-1)$. (ii) $g_{n}$ is not dancing. Then there are exactly $B(n-1, r)$ possible choices. Therefore, for every $n \geq 2$ it holds that $$ B(n, r)=(2 n-r) B(n-1, r-1)+B(n-1, r) \quad \text { for } r=2, \ldots, n $$ Here we assume that $B(n, r)=0$ for $r>n$, while $B(n, 1)=1+3+\cdots+$ $(2 n-1)=n^{2}$ 。 It is directly verified that the numbers $A(n, r)$ satisfy the same initial conditions and recurrence relations, from which it follows that $A(n, r)=$ $B(n, r)$ for all $n$ and $r \leq n$. 14. We use the following nonstandard notation: ( $1^{\circ}$ ) for $x, y \in \mathbb{N}, x \sim y$ means that $x$ and $y$ have the same prime divisors; $\left(2^{\circ}\right)$ for a prime $p$ and integers $r \geq 0$ and $x>0, p^{r} \| x$ means that $x$ is divisible by $p^{r}$, but not by $p^{r+1}$. First, $b^{m}-1 \sim b^{n}-1$ is obviously equivalent to $b^{m}-1 \sim \operatorname{gcd}\left(b^{m}-1, b^{n}-\right.$ $1)=b^{d}-1$, where $d=\operatorname{gcd}(m, n)$. Setting $b^{d}=a$ and $m=k d$, we reduce the condition of the problem to $a^{k}-1 \sim a-1$. We are going to show that this implies that $a+1$ is a power of 2 . This will imply that $d$ is odd (for even $d$, $a+1=b^{d}+1$ cannot be divisible by 4 , and consequently $b+1$, as a divisor of $a+1$, is also a power of 2 . But before that, we need the following important lemma (Theorem 2.126). Lemma. Let $a, k$ be positive integers and $p$ an odd prime. If $\alpha \geq 1$ and $\beta \geq 0$ are such that $p^{\alpha} \| a-1$ and $p^{\beta} \| k$, then $p^{\alpha+\beta} \| a^{k}-1$. Proof. We use induction on $\beta$. If $\beta=0$, then $\frac{a^{k}-1}{a-1}=a^{k-1}+\cdots+a+1 \equiv k$ $(\bmod p)($ because $a \equiv 1$ ), and it is not divisible by $p$. Suppose that the lemma is true for some $\beta \geq 0$, and let $k=p^{\beta+1} t$ where $p \nmid t$. By the induction hypothesis, $a^{k / p}=a^{p^{\beta} t}=m p^{\alpha+\beta}+1$ for some $m$ not divisible by $p$. Furthermore, $$ a^{k}-1=\left(m p^{\alpha+\beta}+1\right)^{p}-1=\left(m p^{\alpha+\beta}\right)^{p}+\cdots+\binom{p}{2}\left(m p^{\alpha+\beta}\right)^{2}+m p^{\alpha+\beta+1} $$ Since $p \left\lvert\,\binom{ p}{2}=\frac{p(p-1)}{2}\right.$, all summands except for the last one are divisible by $p^{\alpha+\beta+2}$. Hence $p^{\alpha+\beta+1} \| a^{k}-1$, completing the induction. Now let $a^{k}-1 \sim a-1$ for some $a, k>1$. Suppose that $p$ is an odd prime divisor of $k$, with $p^{\beta} \| k$. Then putting $X=a^{p^{\beta}-1}+\cdots+a+1$ we also have $(a-1) X=a^{p^{\beta}}-1 \sim a-1$; hence each prime divisor $q$ of $X$ must also divide $a-1$. But then $a^{i} \equiv 1(\bmod q)$ for each $i \in \mathbb{N}_{0}$, which gives us $X \equiv p^{\beta}(\bmod q)$. Therefore $q \mid p^{\beta}$, i.e., $q=p$; hence $X$ is a power of $p$. On the other hand, since $p \mid a-1$, we put $p^{\alpha} \| a-1$. From the lemma we obtain $p^{\alpha+\beta} \| a^{p^{\beta}}-1$, and deduce that $p^{\beta} \| X$. But $X$ has no prime divisors other than $p$, so we must have $X=p^{\beta}$. This is clearly impossible, because $X>p^{\beta}$ for $a>1$. Thus our assumption that $k$ has an odd prime divisor leads to a contradiction: in other words, $k$ must be a power of 2 . Now $a^{k}-1 \sim a-1$ implies $a-1 \sim a^{2}-1=(a-1)(a+1)$, and thus every prime divisor $q$ of $a+1$ must also divide $a-1$. Consequently $q=2$, so it follows that $a+1$ is a power of 2 . As we explained above, this gives that $b+1$ is also a power of 2 . Remark. In fact, one can continue and show that $k$ must be equal to 2 . It is not possible for $a^{4}-1 \sim a^{2}-1$ to hold. Similarly, we must have $d=1$. Therefore all possible triples $(b, m, n)$ with $m>n$ are $\left(2^{s}-1,2,1\right)$. 15. Let $a+b t, t=0,1,2, \ldots$, be a given arithmetic progression that contains a square and a cube $(a, b>0)$. We use induction on the progression step $b$ to prove that the progression contains a sixth power. (i) $b=1$ : this case is trivial. (ii) $b=p^{m}$ for some prime $p$ and $m>0$. The case $p^{m} \mid a$ trivially reduces to the previous case, so let us have $p^{m} \nmid a$. Suppose that $\operatorname{gcd}(a, p)=1$. If $x, y$ are integers such that $x^{2} \equiv y^{3} \equiv a$ (here all the congruences will be $\bmod p^{m}$ ), then $x^{6} \equiv a^{3}$ and $y^{6} \equiv a^{2}$. Consider an integer $y_{1}$ such that $y y_{1} \equiv 1$. It satisfies $a^{2}\left(x y_{1}\right)^{6} \equiv$ $x^{6} y^{6} y_{1}^{6} \equiv x^{6} \equiv a^{3}$, and consequently $\left(x y_{1}\right)^{6} \equiv a$. Hence a sixth power exists in the progression. If $\operatorname{gcd}(a, p)>1$, we can write $a=p^{k} c$, where $k1$ and $\operatorname{gcd}\left(b_{1}, b_{2}\right)=1$. It is given that progressions $a+b_{1} t$ and $a+b_{2} t$ both contain a square and a cube, and therefore by the inductive hypothesis they both contain sixth powers: say $z_{1}^{6}$ and $z_{2}^{6}$, respectively. By the Chinese remainder theorem, there exists $z \in \mathbb{N}$ such that $z \equiv z_{1}\left(\bmod b_{1}\right)$ and $z \equiv z_{2}\left(\bmod b_{2}\right)$. But then $z^{6}$ belongs to both of the progressions $a+b_{1} t$ and $a+b_{2} t$. Hence $z^{6}$ is a member of the progression $a+b t$. 16. Let $d_{a}(X), d_{b}(X), d_{c}(X)$ denote the distances of a point $X$ interior to $\triangle A B C$ from the lines $B C, C A, A B$ respectively. We claim that $X \in P Q$ if and only if $d_{a}(X)+d_{b}(X)=d_{c}(X)$. Indeed, if $X \in P Q$ and $P X=$ $k P Q$ then $d_{a}(X)=k d_{a}(Q), d_{b}(X)=(1-k) d_{b}(P)$, and $d_{c}(X)=(1-$ $k) d_{c}(P)+k d_{c}(Q)$, and simple substitution yields $d_{a}(X)+d_{b}(X)=d_{c}(X)$. The converse follows easily. In particular, $O \in P Q$ if and only if $d_{a}(O)+$ $d_{b}(O)=d_{c}(O)$, i.e., $\cos \alpha+\cos \beta=\cos \gamma$. We shall now show that $I \in D E$ if and only if $A E+B D=D E$. Let $K$ be the point on the segment $D E$ such that $A E=E K$. Then $\angle E K A=$ $\frac{1}{2} \angle D E C=\frac{1}{2} \angle C B A=\angle I B A$; hence the points $A, B, I, K$ are concyclic. The point $I$ lies on $D E$ if and only if $\angle B K D=\angle B A I=\frac{1}{2} \angle B A C=$ $\frac{1}{2} \angle C D E=\angle D B K$, which is equivalent to $K D=B D$, i.e., to $A E+B D=$ $D E$. But since $A E=A B \cos \alpha, B D=A B \cos \beta$, and $D E=A B \cos \gamma$, we have that $I \in D E \Leftrightarrow \cos \alpha+\cos \beta=\cos \gamma$. The conditions for $O \in P Q$ and $I \in D E$ are thus equivalent. Second solution. We know that three points $X, Y, Z$ are collinear if and only if for some $\lambda, \mu \in \mathbb{R}$ with sum 1 , we have $\lambda \overrightarrow{C X}+\mu \overrightarrow{C Y}=\overrightarrow{C Z}$. Specially, if $\overrightarrow{C X}=p \overrightarrow{C A}$ and $\overrightarrow{C Y}=q \overrightarrow{C B}$ for some $p, q$, and $\overrightarrow{C Z}=k \overrightarrow{C A}+$ $l \overrightarrow{C B}$, then $Z$ lies on $X Y$ if and only if $k q+l p=p q$. Using known relations in a triangle we directly obtain $$ \begin{array}{rlrl} \overrightarrow{C P} & =\frac{\sin \beta}{\sin \beta+\sin \gamma} \overrightarrow{C B}, & \overrightarrow{C Q}=\frac{\sin \alpha}{\sin \alpha+\sin \gamma} \overrightarrow{C A} \\ \overrightarrow{C O} & =\frac{\sin 2 \alpha \cdot \overrightarrow{C A}+\sin 2 \beta \cdot \overrightarrow{C B}}{\sin 2 \alpha+\sin 2 \beta+\sin 2 \gamma} ; & \overrightarrow{C D}=\frac{\tan \beta}{\tan \beta+\tan \gamma} \overrightarrow{C B} \\ \overrightarrow{C E} & =\frac{\tan \beta}{\tan \beta+\tan \gamma} \overrightarrow{C A}, & \overrightarrow{C I} & =\frac{\sin \alpha \cdot \overrightarrow{C A}+\sin \beta \cdot \overrightarrow{C B}}{\sin \alpha+\sin \beta+\sin \gamma} \end{array} $$ Now by the above considerations we get that the conditions (1) $P, Q, O$ are collinear and (2) $D, E, I$ are collinear are both equivalent to $\cos \alpha+\cos \beta=$ $\cos \gamma$. 17. We note first that $x$ and $y$ must be powers of the same positive integer. Indeed, if $x=p_{1}^{\alpha_{1}} \cdots p_{k}^{\alpha_{k}}$ and $y=p_{1}^{\beta_{1}} \cdots p_{k}^{\beta_{k}}$ (some of $\alpha_{i}$ and $\beta_{i}$ may be 0 , but not both for the same index $i$ ), then $x^{y^{2}}=y^{x}$ implies $\frac{\alpha_{i}}{\beta_{i}}=\frac{x}{y^{2}}=\frac{p}{q}$ for some $p, q>0$ with $\operatorname{gcd}(p, q)=1$, so for $a=p_{1}^{\alpha_{1} / p} \cdots p_{k}^{\alpha_{k} / p}$ we can take $x=a^{p}$ and $y=a^{q}$. If $a=1$, then $(x, y)=(1,1)$ is the trivial solution. Let $a>1$. The given equation becomes $a^{p a^{2 q}}=a^{q a^{p}}$, which reduces to $p a^{2 q}=q a^{p}$. Hence $p \neq q$, so we distinguish two cases: (i) $p>q$. Then from $a^{2 q}2 q$. We can rewrite the equation as $p=a^{p-2 q} q$, and putting $p=2 q+d, d>0$, we obtain $d=q\left(a^{d}-2\right)$. By induction, $2^{d}-2>d$ for each $d>2$, so we must have $d \leq 2$. For $d=1$ we get $q=1$ and $a=p=3$, and therefore $(x, y)=(27,3)$, which is indeed a solution. For $d=2$ we get $q=1$, $a=2$, and $p=4$, so $(x, y)=(16,2)$, which is another solution. (ii) $p0$, 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\frac{n+1}{2}$ for any $\pi$. Further, we note that if $\pi^{\prime}$ is obtained from $\pi$ by interchanging two neighboring elements, say $y_{k}$ and $y_{k+1}$, then $S(\pi)$ and $S\left(\pi^{\prime}\right)$ differ by $\left|y_{k}+y_{k+1}\right| \leq n+1$, and consequently they must be of the same sign. Now consider the identity permutation $\pi_{0}=\left(x_{1}, \ldots, x_{n}\right)$ and the reverse permutation $\overline{\pi_{0}}=\left(x_{n}, \ldots, x_{1}\right)$. There is a sequence of permutations $\pi_{0}, \pi_{1}, \ldots, \pi_{m}=\overline{\pi_{0}}$ such that for each $i, \pi_{i+1}$ is obtained from $\pi_{i}$ by interchanging two neighboring elements. Indeed, by successive interchanges we can put $x_{n}$ in the first place, then $x_{n-1}$ in the second place, etc. Hence all $S\left(\pi_{0}\right), \ldots, S\left(\pi_{m}\right)$ are of the same sign. However, since $\left|S\left(\pi_{0}\right)+S\left(\pi_{m}\right)\right|=(n+1)\left|x_{1}+\cdots+x_{n}\right|=n+1$, this implies that one of $S\left(\pi_{0}\right)$ and $S\left(\overline{\pi_{0}}\right)$ is smaller than $\frac{n+1}{2}$ in absolute value, contradicting the initial assumption. 22. (a) Suppose that $f$ and $g$ are such functions. From $g(f(x))=x^{3}$ we have $f\left(x_{1}\right) \neq f\left(x_{2}\right)$ whenever $x_{1} \neq x_{2}$. In particular, $f(-1), f(0)$, and $f(1)$ are three distinct numbers. However, since $f(x)^{2}=f(g(f(x)))=$ $f\left(x^{3}\right)$, each of the numbers $f(-1), f(0), f(1)$ is equal to its square, and so must be either 0 or 1 . This contradiction shows that no such $f, g$ exist. (b) The answer is yes. We begin with constructing functions $F, G:(1, \infty)$ $\rightarrow(1, \infty)$ with the property $F(G(x))=x^{2}$ and $G(F(x))=x^{4}$ for $x>$ 1. Define the functions $\varphi, \psi$ by $F\left(2^{2^{t}}\right)=2^{2^{\varphi(t)}}$ and $G\left(2^{2^{t}}\right)=2^{2^{\psi(t)}}$. These functions determine $F$ and $G$ on the entire interval $(1, \infty)$, and satisfy $\varphi(\psi(t))=t+1$ and $\psi(\varphi(t))=t+2$. It is easy to find examples of $\varphi$ and $\psi$ : for example, $\varphi(t)=\frac{1}{2} t+1, \psi(t)=2 t$. Thus we also arrive at an example for $F, G$ : $$ F(x)=2^{2^{\frac{1}{2} \log _{2} \log _{2} x+1}}=2^{2 \sqrt{\log _{2} x}}, \quad G(x)=2^{2^{2 \log _{2} \log _{2} x}}=2^{\log _{2}^{2} x} $$ It remains only to extend these functions to the whole of $\mathbb{R}$. This can be done as follows: $$ \widetilde{f}(x)= \begin{cases}F(x) & \text { for } x>1 \\ 1 / F(1 / x) & \text { for } 0 1 } \\ { x } & { \text { for } x \in \{ 0 , 1 \} ; } \end{array} \left\{\begin{array}{cl} 1 / G(1 / x) & \text { for } 0\beta_{4}$. Then point $A$ lies inside the circle $B C D$, which is further equivalent to $\beta_{1}>\alpha_{2}$. On the other hand, from $\alpha_{1}+\beta_{2}=\alpha_{3}+\beta_{4}$ we deduce $\alpha_{3}>\beta_{2}$, and similarly $\beta_{3}>\alpha_{4}$. Therefore, since the cosine is strictly decreasing on $(0, \pi)$, the left side of (1) is strictly negative, yielding a contradiction. 24. There is a bijective correspondence between representations in the given form of $2 k$ and $2 k+1$ for $k=0,1, \ldots$, since adding 1 to every representation of $2 k$, we obtain a representation of $2 k+1$, and conversely, every representation of $2 k+1$ contains at least one 1 , which can be removed. Hence, $f(2 k+1)=f(2 k)$. Consider all representations of $2 k$. The number of those that contain at least one 1 equals $f(2 k-1)=f(2 k-2)$, while the number of those not containing a 1 equals $f(k)$ (the correspondence is given by division of summands by 2). Therefore $$ f(2 k)=f(2 k-2)+f(k) . $$ Summing these equalities over $k=1, \ldots, n$, we obtain $$ f(2 n)=f(0)+f(1)+\cdots+f(n) $$ We first prove the right-hand inequality. Since $f$ is increasing, and $f(0)+$ $f(1)=f(2)$, (2) yields $f(2 n) \leq n f(n)$ for $n \geq 2$. Now $f\left(2^{3}\right)=f(0)+$ $\cdots+f(4)=10<2^{3^{2} / 2}$, and one can easily conclude by induction that $f\left(2^{n+1}\right) \leq 2^{n} f\left(2^{n}\right)<2^{n} \cdot 2^{n^{2} / 2}<2^{(n+1)^{2} / 2}$ for each $n \geq 3$. We now derive the lower estimate. It follows from (1) that $f(x+2)-f(x)$ is increasing. Consequently, for each $m$ and $k(2 m-1) f(2 m)$, which together with the above inequality gives $$ f(8 m)=f(0)+f(1)+\cdots+f(4 m)>4 m f(2 m) . $$ Finally, we have that the inequality $f\left(2^{n}\right)>2^{n^{2} / 4}$ holds for $n=2$ and $n=3$, while for larger $n$ we have by induction $f\left(2^{n}\right)>2^{n-1} f\left(2^{n-2}\right)>$ $2^{n-1+(n-2)^{2} / 4}=2^{n^{2} / 4}$. This completes the proof. Remark. Despite the fact that the lower estimate is more difficult, it is much weaker than the upper estimate. It can be shown that $f\left(2^{n}\right)$ eventually (for large $n$ ) exceeds $2^{c n^{2}}$ for any $c<\frac{1}{2}$. 25. Let $M R$ meet the circumcircle of triangle $A B C$ again at a point $X$. We claim that $X$ is the common point of the lines $K P, L Q, M R$. By symmetry, it will be enough to show that $X$ lies on $K P$. It is easy to see that $X$ and $P$ lie on the same side of $A B$ as $K$. Let $I_{a}=A K \cap B P$ be the excenter of $\triangle A B C$ corresponding to $A$. It is easy to calculate that $\angle A I_{a} B=\gamma / 2$, from which we get $\angle R P B=\angle A I_{a} B=\angle M C B=\angle R X B$. Therefore $R, B, P, X$ are concyclic. Now if $P$ and $K$ are on distinct sides of $B X$ (the other case is similar), we have $\angle R X P=180^{\circ}-\angle R B P=90^{\circ}-$ $\beta / 2=\angle M A K=180^{\circ}-\angle R X K$, from which it follows that $K, X, P$ are collinear, as claimed. Remark. It is not essential for the statement of the problem that $R$ be an internal point of $A B$. Work with cases can be avoided using oriented ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-640.jpg?height=399&width=439&top_left_y=248&top_left_x=858) angles. 26. Let us first examine the case that all the inequalities in the problem are actually equalities. Then $a_{n-2}=a_{n-1}+a_{n}, a_{n-3}=2 a_{n-1}+a_{n}, \ldots, a_{0}=$ $F_{n} a_{n-1}+F_{n-1} a_{n}=1$, where $F_{n}$ is the $n$th Fibonacci number. Then it is easy to see (from $F_{1}+F_{2}+\cdots+F_{k}=F_{k+2}$ ) that $a_{0}+\cdots+a_{n}=$ $\left(F_{n+2}-1\right) a_{n-1}+F_{n+1} a_{n}=\frac{F_{n+2}-1}{F_{n}}+\left(F_{n+1}-\frac{F_{n-1}\left(F_{n+2}-1\right)}{F_{n}}\right) a_{n}$. Since $\frac{F_{n-1}\left(F_{n+2}-1\right)}{F_{n}} \leq F_{n+1}$, it follows that $a_{0}+a_{1}+\cdots+a_{n} \geq \frac{F_{n+2}-1}{F_{n}}$, with equality holding if and only if $a_{n}=0$ and $a_{n-1}=\frac{1}{F_{n}}$. We denote by $M_{n}$ the required minimum in the general case. We shall prove by induction that $M_{n}=\frac{F_{n+2}-1}{F_{n}}$. For $M_{1}=1$ and $M_{2}=2$ it is easy to show that the formula holds; hence the inductive basis is true. Suppose that $n>2$. The sequences $1, \frac{a_{2}}{a_{1}}, \ldots, \frac{a_{n}}{a_{1}}$ and $1, \frac{a_{3}}{a_{2}}, \ldots, \frac{a_{n}}{a_{2}}$ also satisfy the conditions of the problem. Hence we have $$ a_{0}+\cdots+a_{n}=a_{0}+a_{1}\left(1+\frac{a_{2}}{a_{1}}+\cdots+\frac{a_{n}}{a_{1}}\right) \geq 1+a_{1} M_{n-1} $$ and $$ a_{0}+\cdots+a_{n}=a_{0}+a_{1}+a_{2}\left(1+\frac{a_{3}}{a_{2}}+\cdots+\frac{a_{n}}{a_{2}}\right) \geq 1+a_{1}+a_{2} M_{n-2} $$ Multiplying the first inequality by $M_{n-2}-1$ and the second one by $M_{n-1}$, adding the inequalities and using that $a_{1}+a_{2} \geq 1$, we obtain ( $M_{n-1}+$ $\left.M_{n-2}+1\right)\left(a_{0}+\cdots+a_{n}\right) \geq M_{n-1} M_{n-2}+M_{n-1}+M_{n-2}+1$, so $$ M_{n} \geq \frac{M_{n-1} M_{n-2}+M_{n-1}+M_{n-2}+1}{M_{n-1}+M_{n-2}+1} $$ Since $M_{n-1}=\frac{F_{n+1}-1}{F_{n-1}}$ and $M_{n-2}=\frac{F_{n}-1}{F_{n-2}}$, the above inequality easily yields $M_{n} \geq \frac{F_{n+2}-1}{F_{n}}$. However, we have shown above that equality can occur; hence $\frac{F_{n+2}-1}{F_{n}}$ is indeed the required minimum. ### 4.39 Solutions to the Shortlisted Problems of IMO 1998 1. We begin with the following observation: Suppose that $P$ lies in $\triangle A E B$, where $E$ is the intersection of $A C$ and $B D$ (the other cases are similar). Let $M, N$ be the feet of the perpendiculars from $P$ to $A C$ and $B D$ respectively. We have $S_{A B P}=S_{A B E}-S_{A E P}-S_{B E P}=\frac{1}{2}(A E \cdot B E-A E \cdot E N-B E$. $E M)=\frac{1}{2}(A M \cdot B N-E M \cdot E N)$. Similarly, $S_{C D P}=\frac{1}{2}(C M \cdot D N-E M$. $E N)$. Therefore, we obtain $$ S_{A B P}-S_{C D P}=\frac{A M \cdot B N-C M \cdot D N}{2} $$ Now suppose that $A B C D$ is cyclic. Then $P$ is the circumcenter of $A B C D$; hence $M$ and $N$ are the midpoints of $A C$ and $B D$. Hence $A M=C M$ and $B N=D N$; thus (1) gives us $S_{A B P}=S_{C D P}$. On the other hand, suppose that ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-641.jpg?height=311&width=410&top_left_y=703&top_left_x=875) $A B C D$ is not cyclic and let w.l.o.g. $P A=P B>P C=P D$. Then we must have $A M>C M$ and $B N>$ $D N$, and consequently by (1), $S_{A B P}>S_{C D P}$. This proves the other implication. Second solution. Let $F$ and $G$ denote the midpoints of $A B$ and $C D$, and assume that $P$ is on the same side of $F G$ as $B$ and $C$. Since $P F \perp A B$, $P G \perp C D$, and $\angle F E B=\angle A B E, \angle G E C=\angle D C E$, a direct computation yields $\angle F P G=\angle F E G=90^{\circ}+\angle A B E+\angle D C E$. Taking into account that $S_{A B P}=\frac{1}{2} A B \cdot F P=F E \cdot F P$, we note that $S_{A B P}=S_{C D P}$ is equivalent to $F E \cdot F P=G E \cdot G P$, i.e., to $F E / E G=$ $G P / P F$. But this last is equivalent to triangles $E F G$ and $P G F$ being similar, which holds if and only if $E F P G$ is a parallelogram. This last is equivalent to $\angle E F P=\angle E G P$, or $2 \angle A B E=2 \angle D C E$. Thus $S_{A B P}=$ $S_{C D P}$ is equivalent to $A B C D$ being cyclic. Remark. The problems also allows an analytic solution, for example putting the $x$ and $y$ axes along the diagonals $A C$ and $B D$. 2. If $A D$ and $B C$ are parallel, then $A B C D$ is an isosceles trapezoid with $A B=C D$, so $P$ is the midpoint of $E F$. Let $M$ and $N$ be the midpoints of $A B$ and $C D$. Then $M N \| B C$, and the distance $d(E, M N)$ equals the distance $d(F, M N)$ because $B$ and $D$ are the same distance from $M N$ and $E M / B M=F N / D N$. It follows that the midpoint $P$ of $E F$ lies on $M N$, and consequently $S_{A P D}: S_{B P C}=A D: B C$. If $A D$ and $B C$ are not parallel, then they meet at some point $Q$. It is plain that $\triangle Q A B \sim \triangle Q C D$, and since $A E / A B=C F / C D$, we also deduce that $\triangle Q A E \sim \triangle Q C F$. Therefore $\angle A Q E=\angle C Q F$. Further, from these similarities we obtain $Q E / Q F=Q A / Q C=A B / C D=P E / P F$, which in turn means that $Q P$ is the internal bisector of $\angle E Q F$. But since $\angle A Q E=\angle C Q F$, this is also the internal bisector of $\angle A Q B$. Hence $P$ is at equal distances from $A D$ and $B C$, so again $S_{A P D}: S_{B P C}=A D: B C$. Remark. The part $A B \| C D$ could also be regarded as a limiting case of the other part. Second solution. Denote $\lambda=\frac{A E}{A B}, A B=a, B C=b, C D=c, D A=d$, $\angle D A B=\alpha, \angle A B C=\beta$. Since $d(P, A D)=\frac{c \cdot d(E, A D)+a \cdot d(F, A D)}{a+c}$, we have $S_{A P D}=\frac{c S_{E A D}+a S_{F A D}}{a+c}=\frac{\lambda c S_{A B D}+(1-\lambda) a S_{A C D}}{a+c}$. Since $S_{A B D}=\frac{1}{2} a d \sin \alpha$ and $S_{A C D}=\frac{1}{2} c d \sin \beta$, we are led to $S_{A P D}=\frac{a c d}{a+c}[\lambda \sin \alpha+(1-\lambda) \sin \beta]$, and analogously $S_{B P C}=\frac{a b c}{a+c}[\lambda \sin \alpha+(1-\lambda) \sin \beta]$. Thus we obtain $S_{A P D}: S_{B P C}=d: b$. 3. Lemma. If $U, W, V$ are three points on a line $l$ in this order, and $X$ a point in the plane with $X W \perp U V$, then $\angle U X V<90^{\circ}$ if and only if $X W^{2}>U W \cdot V W$. Proof. Let $X W^{2}>U W \cdot V W$, and let $X_{0}$ be a point on the segment $X W$ such that $X_{0} W^{2} \geq U W \cdot V W$. Then $X_{0} W / U W=V W / X_{0} W$, so that triangles $X_{0} W U$ and $V W X_{0}$ are similar. Thus $\angle U X_{0} V=\angle U X_{0} W+$ $\angle W U X_{0}=90^{\circ}$, which immediately implies that $\angle U X V<90^{\circ}$. Similarly, if $X W^{2} \leq U W \cdot V W$, then $\angle U X V \geq 90^{\circ}$. Since $B I \perp R S$, it will be enough by the lemma to show that $B I^{2}>$ $B R \cdot B S$. Note that $\triangle B K R \sim \triangle B S L$ : in fact, we have $\angle K B R=\angle S B L=$ $90^{\circ}-\beta / 2$ and $\angle B K R=\angle A K M=\angle K L M=\angle B S L=90^{\circ}-\alpha / 2$. In particular, we obtain $B R / B K=B L / B S=B K / B S$, so that $B R \cdot B S=$ $B K^{2}B K$ and $B M>B L$. We conclude that $\angle M B E<\frac{1}{2} \angle M B K$ and $\angle M B F<\frac{1}{2} \angle M B L$. Adding these two inequalities gives $\angle E B F<$ $\beta / 2$. Therefore $\angle R I S<90^{\circ}$. Remark. It can be shown (using vectors) that the statement remains true for an arbitrary line $t$ passing through $B$. 4. Let $K$ be the point on the ray $B N$ with $\angle B C K=\angle B M A$. Since $\angle K B C=\angle A B M$, we get $\triangle B C K \sim \triangle B M A$. It follows that $B C / B M=$ $B K / B A$, which implies that also $\triangle B A K \sim \triangle B M C$. The quadrilateral $A N C K$ is cyclic, because $\angle B K C=\angle B A M=\angle N A C$. Then by Ptolemy's theorem we obtain $$ A C \cdot B K=A C \cdot B N+A N \cdot C K+C N \cdot A K $$ On the other hand, from the similarities noted above we get $$ C K=\frac{B C \cdot A M}{B M}, A K=\frac{A B \cdot C M}{B M} \text { and } B K=\frac{A B \cdot B C}{B M} . $$ After substitution of these values, the equality (1) becomes $$ \frac{A B \cdot B C \cdot A C}{B M}=A C \cdot B N+\frac{B C \cdot A M \cdot A N}{B M}+\frac{A B \cdot C M \cdot C N}{B M}, $$ which is exactly the equality we must prove multiplied by $\frac{A B \cdot B C \cdot C A}{B M}$. 5. Let $G$ be the centroid of $\triangle A B C$ and $\mathcal{H}$ the homothety with center $G$ and ratio $-\frac{1}{2}$. It is well-known that $\mathcal{H}$ maps $H$ into $O$. For every other point $X$, let us denote by $X^{\prime}$ its image under $\mathcal{H}$. Also, let $A_{2} B_{2} C_{2}$ be the triangle in which $A, B, C$ are the midpoints of $B_{2} C_{2}, C_{2} A_{2}$, and $A_{2} B_{2}$, respectively. It is clear that $A^{\prime}, B^{\prime}, C^{\prime}$ are the midpoints of sides $B C, C A, A B$ respectively. Furthermore, $D^{\prime}$ is the reflection of $A^{\prime}$ across $B^{\prime} C^{\prime}$. Thus $D^{\prime}$ must lie on $B_{2} C_{2}$ and $A^{\prime} D^{\prime} \perp$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-643.jpg?height=484&width=552&top_left_y=612&top_left_x=806) $B_{2} C_{2}$. However, it also holds that $O A^{\prime} \perp B_{2} C_{2}$, so we conclude that $O, D^{\prime}, A^{\prime}$ are collinear and $D^{\prime}$ is the projection of $O$ on $B_{2} C_{2}$. Analogously, $E^{\prime}, F^{\prime}$ are the projections of $O$ on $C_{2} A_{2}$ and $A_{2} B_{2}$. Now we apply Simson's theorem. It claims that $D^{\prime}, E^{\prime}, F^{\prime}$ are collinear (which is equivalent to $D, E, F$ being collinear) if and only if $O$ lies on the circumcircle of $A_{2} B_{2} C_{2}$. However, this circumcircle is centered at $H$ with radius $2 R$, so the last condition is equivalent to $H O=2 R$. 6. Let $P$ be the point such that $\triangle C D P$ and $\triangle C B A$ are similar and equally oriented. Since then $\angle D C P=\angle B C A$ and $\frac{B C}{C A}=\frac{D C}{C P}$, it follows that $\angle A C P=\angle B C D$ and $\frac{A C}{C P}=\frac{B C}{C D}$, so $\triangle A C P \sim \triangle B C D$. In particular, $\frac{B C}{C A}=\frac{D B}{P A}$. Furthermore, by the conditions of the problem we have $\angle E D P=360^{\circ}-$ $\angle B-\angle D=\angle F$ and $\frac{P D}{D E}=\frac{P D}{C D} \cdot \frac{C D}{D E}=\frac{A B}{B C} \cdot \frac{C D}{D E}=\frac{A F}{F E}$. Therefore $\triangle E D P \sim \triangle E F A$ as well, so that similarly as above we conclude that $\triangle A E P \sim \triangle F E D$ and consequently $\frac{A E}{E F}=\frac{P A}{F D}$. Finally, $\frac{B C}{C A} \cdot \frac{A E}{E F} \cdot \frac{F D}{D B}=\frac{D B}{P A} \cdot \frac{P A}{F D} \cdot \frac{F D}{D B}=1$. Second solution. Let $a, b, c, d, e, f$ be the complex coordinates of $A, B$, $C, D, E, F$, respectively. The condition of the problem implies that $\frac{a-b}{b-c}$. $\frac{c-d}{d-e} \cdot \frac{e-f}{f-a}=-1$. On the other hand, since $(a-b)(c-d)(e-f)+(b-c)(d-e)(f-a)=$ $(b-c)(a-e)(f-d)+(c-a)(e-f)(d-b)$ holds identically, we immediately deduce that $\frac{b-c}{c-a} \cdot \frac{a-e}{e-f} \cdot \frac{f-d}{d-b}=-1$. Taking absolute values gives $\frac{B C}{C A} \cdot \frac{A E}{E F}$. $\frac{F D}{D B}=1$. 7. We shall use the following result. Lemma. In a triangle $A B C$ with $B C=a, C A=b$, and $A B=c$, i. $\angle C=2 \angle B$ if and only if $c^{2}=b^{2}+a b$; ii. $\angle C+180^{\circ}=2 \angle B$ if and only if $c^{2}=b^{2}-a b$. Proof. i. Take a point $D$ on the extension of $B C$ over $C$ such that $C D=b$. The condition $\angle C=2 \angle B$ is equivalent to $\angle A D C=\frac{1}{2} \angle C=\angle B$, and thus to $A D=A B=c$. This is further equivalent to triangles $C A D$ and $A B D$ being similar, so $C A / A D=A B / B D$, i.e., $c^{2}=$ $b(a+b)$. ii. Take a point $E$ on the ray $C B$ such that $C E=b$. As above, $\angle C+180^{\circ}=2 \angle B$ if and only if $\triangle C A E \sim \triangle A B E$, which is equivalent to $E B / B A=E A / A C$, or $c^{2}=b(b-a)$. Let $F, G$ be points on the ray $C B$ such that $C F=\frac{1}{3} a$ and $C G=\frac{4}{3} a$. Set $B C=a, C A=b, A B=c, E C=b_{1}$, and $E B=c_{1}$. By the lemma it follows that $c^{2}=b^{2}+a b$. Also $b_{1}=A G$ and $c_{1}=A F$, so Stewart's theorem gives us $c_{1}^{2}=\frac{2}{3} b^{2}+\frac{1}{3} c^{2}-\frac{2}{9} a^{2}=b^{2}+\frac{1}{3} a b-\frac{2}{9} a^{2}$ and $b_{1}^{2}=$ $-\frac{1}{3} b^{2}+\frac{4}{3} c^{2}+\frac{4}{9} a^{2}=b^{2}+\frac{4}{3} a b+\frac{4}{9} a^{2}$. It follows that $b_{1}=\frac{2}{3} a+b$ and $c_{1}^{2}=b_{1}^{2}-\left(a b+\frac{2}{3} a^{2}\right)=b_{1}^{2}-a b_{1}$. The statement of the problem follows immediately by the lemma. 8. Let $M$ be the point of intersection of $A E$ and $B C$, and let $N$ be the point on $\omega$ diametrically opposite $A$. Since $\angle B<\angle C$, points $N$ and $B$ are on the same side of $A E$. Furthermore, $\angle N A E=\angle B A X=$ $90^{\circ}-\angle A B E$; hence the triangles $N A E$ and $B A X$ are similar. Consequently, $\triangle B A Y$ and $\triangle N A M$ are also similar, since $M$ is the midpoint ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-644.jpg?height=279&width=555&top_left_y=1171&top_left_x=802) of $A E$. Thus $\angle A N Z=\angle A B Z=\angle A B Y=\angle A N M$, implying that $N, M, Z$ are collinear. Now we have $\angle Z M D=90^{\circ}-\angle Z M A=\angle E A Z=$ $\angle Z E D$ (the last equality because $E D$ is tangent to $\omega$ ); hence $Z M E D$ is a cyclic quadrilateral. It follows that $\angle Z D M=\angle Z E A=\angle Z A D$, which is enough to conclude that $M D$ is tangent to the circumcircle of $A Z D$. Remark. The statement remains valid if $\angle B \geq \angle C$. 9. Set $a_{n+1}=1-\left(a_{1}+\cdots+a_{n}\right)$. Then $a_{n+1}>0$, and the desired inequality becomes $$ \frac{a_{1} a_{2} \cdots a_{n+1}}{\left(1-a_{1}\right)\left(1-a_{2}\right) \cdots\left(1-a_{n+1}\right)} \leq \frac{1}{n^{n+1}} $$ To prove it, we observe that $1-a_{i}=a_{1}+\cdots+a_{i-1}+a_{i+1}+\cdots+a_{n+1} \geq n \sqrt[n]{a_{1} \cdots a_{i-1} a_{i+1} \cdots a_{n+1}}$. Multiplying these inequalities for $i=1,2, \ldots, n+1$, we get exactly the inequality we need. 10. We shall first prove the inequality for $n$ of the form $2^{k}, k=0,1,2, \ldots$ The case $k=0$ is clear. For $k=1$, we have $$ \frac{1}{r_{1}+1}+\frac{1}{r_{2}+1}-\frac{2}{\sqrt{r_{1} r_{2}}+1}=\frac{\left(\sqrt{r_{1} r_{2}}-1\right)\left(\sqrt{r_{1}}-\sqrt{r_{2}}\right)^{2}}{\left(r_{1}+1\right)\left(r_{2}+1\right)\left(\sqrt{r_{1} r_{2}}+1\right)} \geq 0 $$ For the inductive step it suffices to show that the claim for $k$ and 2 implies that for $k+1$. Indeed, $$ \begin{aligned} \sum_{i=1}^{2^{k+1}} \frac{1}{r_{i}+1} & \geq \frac{2^{k}}{\sqrt[2^{k}]{r_{1} r_{2} \cdots r_{2^{k}}}+1}+\frac{2^{k}}{\sqrt[2^{k}]{r_{2^{k}+1^{\prime} r_{2^{k}}+2^{\cdots r_{2^{k+1}}}+1}}} \\ & \geq \frac{2^{k+1}}{\sqrt[2^{k+1}]{r_{1} r_{2} \cdots r_{2^{k+1}}}+1} \end{aligned} $$ and the induction is complete. We now show that if the statement holds for $2^{k}$, then it holds for every $n<2^{k}$ as well. Put $r_{n+1}=r_{n+2}=\cdots=r_{2^{k}}=\sqrt[n]{r_{1} r_{2} \ldots r_{n}}$. Then (1) becomes $$ \frac{1}{r_{1}+1}+\cdots+\frac{1}{r_{n}+1}+\frac{2^{k}-n}{\sqrt[n]{r_{1} \cdots r_{n}}+1} \geq \frac{2^{k}}{\sqrt[n]{r_{1} \cdots r_{n}}+1} $$ This proves the claim. Second solution. Define $r_{i}=e^{x_{i}}$, where $x_{i}>0$. The function $f(x)=\frac{1}{1+e^{x}}$ is convex for $x>0$ : indeed, $f^{\prime \prime}(x)=\frac{e^{x}\left(e^{x}-1\right)}{\left(e^{x}+1\right)^{3}}>0$. Thus by Jensen's inequality applied to $f\left(x_{1}\right), \ldots, f\left(x_{n}\right)$, we get $\frac{1}{r_{1}+1}+\cdots+\frac{1}{r_{n}+1} \geq \frac{n}{\sqrt[n]{r_{1} \cdots r_{n}}+1}$. 11. The given inequality is equivalent to $x^{3}(x+1)+y^{3}(y+1)+z^{3}(z+1) \geq$ $\frac{3}{4}(x+1)(y+1)(z+1)$. By the A-G mean inequality, it will be enough to prove a stronger inequality: $$ x^{4}+x^{3}+y^{4}+y^{3}+z^{4}+z^{3} \geq \frac{1}{4}\left[(x+1)^{3}+(y+1)^{3}+(z+1)^{3}\right] . $$ If we set $S_{k}=x^{k}+y^{k}+z^{k}$, (1) takes the form $S_{4}+S_{3} \geq \frac{1}{4} S_{3}+\frac{3}{4} S_{2}+\frac{3}{4} S_{1}+\frac{3}{4}$. Note that by the A-G mean inequality, $S_{1}=x+y+z \geq 3$. Thus it suffices to prove the following: $$ \text { If } S_{1} \geq 3 \text { and } m>n \text { are positive integers, then } S_{m} \geq S_{n} \text {. } $$ This can be shown in many ways. For example, by Hölder's inequality, $$ \left(x^{m}+y^{m}+z^{m}\right)^{n / m}(1+1+1)^{(m-n) / m} \geq x^{n}+y^{n}+z^{n} . $$ (Another way is using the Chebyshev inequality: if $x \geq y \geq z$ then $x^{k-1} \geq$ $y^{k-1} \geq z^{k-1}$; hence $S_{k}=x \cdot x^{k-1}+y \cdot y^{k-1}+z \cdot z^{k-1} \geq \frac{1}{3} S_{1} S_{k-1}$, and the claim follows by induction.) Second solution. Assume that $x \geq y \geq z$. Then also $\frac{1}{(y+1)(z+1)} \geq$ $\frac{1}{(x+1)(z+1)} \geq \frac{1}{(x+1)(y+1)}$. Hence Chebyshev's inequality gives that $$ \begin{aligned} & \frac{x^{3}}{(1+y)(1+z)}+\frac{y^{3}}{(1+x)(1+z)}+\frac{z^{3}}{(1+x)(1+y)} \\ \geq & \frac{1}{3} \frac{\left(x^{3}+y^{3}+z^{3}\right) \cdot(3+x+y+z)}{(1+x)(1+y)(1+z)} \end{aligned} $$ Now if we put $x+y+z=3 S$, we have $x^{3}+y^{3}+z^{3} \geq 3 S$ and $(1+$ $x)(1+y)(1+z) \leq(1+a)^{3}$ by the A-G mean inequality. Thus the needed inequality reduces to $\frac{6 S^{3}}{(1+S)^{3}} \geq \frac{3}{4}$, which is obviously true because $S \geq 1$. Remark. Both these solutions use only that $x+y+z \geq 3$. 12. The assertion is clear for $n=0$. We shall prove the general case by induction on $n$. Suppose that $c(m, i)=c(m, m-i)$ for all $i$ and $m \leq n$. Then by the induction hypothesis and the recurrence formula we have $c(n+1, k)=2^{k} c(n, k)+c(n, k-1)$ and $c(n+1, n+1-k)=$ $2^{n+1-k} c(n, n+1-k)+c(n, n-k)=2^{n+1-k} c(n, k-1)+c(n, k)$. Thus it remains only to show that $$ \left(2^{k}-1\right) c(n, k)=\left(2^{n+1-k}-1\right) c(n, k-1) $$ We prove this also by induction on $n$. By the induction hypothesis, $$ c(n-1, k)=\frac{2^{n-k}-1}{2^{k}-1} c(n-1, k-1) $$ and $$ c(n-1, k-2)=\frac{2^{k-1}-1}{2^{n+1-k}-1} c(n-1, k-1) $$ Using these formulas and the recurrence formula we obtain $\left(2^{k}-1\right) c(n, k)-$ $\left(2^{n+1-k}-1\right) c(n, k-1)=\left(2^{2 k}-2^{k}\right) c(n-1, k)-\left(2^{n}-3 \cdot 2^{k-1}+1\right) c(n-$ $1, k-1)-\left(2^{n+1-k}-1\right) c(n-1, k-2)=\left(2^{n}-2^{k}\right) c(n-1, k-1)-\left(2^{n}-\right.$ $\left.3 \cdot 2^{k-1}+1\right) c(n-1, k-1)-\left(2^{k-1}-1\right) c(n-1, k-1)=0$. This completes the proof. Second solution. The given recurrence formula resembles that of binomial coefficients, so it is natural to search for an explicit formula of the form $c(n, k)=\frac{F(n)}{F(k) F(n-k)}$, where $F(m)=f(1) f(2) \cdots f(m)($ with $F(0)=1$ ) and $f$ is a certain function from the natural numbers to the real numbers. If there is such an $f$, then $c(n, k)=c(n, n-k)$ follows immediately. After substitution of the above relation, the recurrence equivalently reduces to $f(n+1)=2^{k} f(n-k+1)+f(k)$. It is easy to see that $f(m)=2^{m}-1$ satisfies this relation. Remark. If we introduce the polynomial $P_{n}(x)=\sum_{k=0}^{n} c(n, k) x^{k}$, the recurrence relation gives $P_{0}(x)=1$ and $P_{n+1}(x)=x P_{n}(x)+P_{n}(2 x)$. As a consequence of the problem, all polynomials in this sequence are symmetric, i.e., $P_{n}(x)=x^{n} P_{n}\left(x^{-1}\right)$. 13. Denote by $\mathcal{F}$ the set of functions considered. Let $f \in \mathcal{F}$, and let $f(1)=a$. Putting $n=1$ and $m=1$ we obtain $f(f(z))=a^{2} z$ and $f\left(a z^{2}\right)=f(z)^{2}$ for all $z \in \mathbb{N}$. These equations, together with the original one, imply $f(x)^{2} f(y)^{2}=f(x)^{2} f\left(a y^{2}\right)=f\left(x^{2} f\left(f\left(a y^{2}\right)\right)\right)=f\left(x^{2} a^{3} y^{2}\right)=$ $f\left(a(a x y)^{2}\right)=f(a x y)^{2}$, or $f(a x y)=f(x) f(y)$ for all $x, y \in \mathbb{N}$. Thus $f(a x)=a f(x)$, and we conclude that $$ a f(x y)=f(x) f(y) \quad \text { for all } x, y \in \mathbb{N} $$ We now prove that $f(x)$ is divisible by $a$ for each $x \in \mathbb{N}$. In fact, we inductively get that $f(x)^{k}=a^{k-1} f\left(x^{k}\right)$ is divisible by $a^{k-1}$ for every $k$. If $p^{\alpha}$ and $p^{\beta}$ are the exact powers of a prime $p$ that divide $f(x)$ and $a$ respectively, we deduce that $k \alpha \geq(k-1) \beta$ for all $k$, so we must have $\alpha \geq \beta$ for any $p$. Therefore $a \mid f(x)$. Now we consider the function on natural numbers $g(x)=f(x) / a$. The above relations imply $$ g(1)=1, \quad g(x y)=g(x) g(y), \quad g(g(x))=x \quad \text { for all } x, y \in \mathbb{N} $$ Since $g \in \mathcal{F}$ and $g(x) \leq f(x)$ for all $x$, we may restrict attention to the functions $g$ only. Clearly $g$ is bijective. We observe that $g$ maps a prime to a prime. Assume to the contrary that $g(p)=u v, u, v>1$. Then $g(u v)=p$, so either $g(u)=1$ and $g(v)=1$. Thus either $g(1)=u$ or $g(1)=v$, which is impossible. We return to the problem of determining the least possible value of $g(1998)$. Since $g(1998)=g\left(2 \cdot 3^{3} \cdot 37\right)=g(2) \cdot g(3)^{3} \cdot g(37)$, and $g(2)$, $g(3), g(37)$ are distinct primes, $g(1998)$ is not smaller than $2^{3} \cdot 3 \cdot 5=120$. On the other hand, the value of 120 is attained for any function $g$ satisfying (2) and $g(2)=3, g(3)=2, g(5)=37, g(37)=5$. Hence the answer is 120 . 14. If $x^{2} y+x+y$ is divisible by $x y^{2}+y+7$, then so is the number $y\left(x^{2} y+\right.$ $x+y)-x\left(x y^{2}+y+7\right)=y^{2}-7 x$. If $y^{2}-7 x \geq 0$, then since $y^{2}-7 x0$ is divisible by $x y^{2}+y+7$. But then $x y^{2}+y+7 \leq 7 x-y^{2}<7 x$, from which we obtain $y \leq 2$. For $y=1$, we are led to $x+8 \mid 7 x-1$, and hence $x+8 \mid 7(x+8)-(7 x-1)=57$. Thus the only possibilities are $x=11$ and $x=49$, and the obtained pairs $(11,1),(49,1)$ are indeed solutions. For $y=2$, we have $4 x+9 \mid 7 x-4$, so that $7(4 x+9)-4(7 x-4)=79$ is divisible by $4 x+9$. We do not get any new solutions in this case. Therefore all required pairs $(x, y)$ are $\left(7 t^{2}, 7 t\right)(t \in \mathbb{N}),(11,1)$, and $(49,1)$. 15. The condition is obviously satisfied if $a=0$ or $b=0$ or $a=b$ or $a, b$ are both integers. We claim that these are the only solutions. Suppose that $a, b$ belong to none of the above categories. The quotient $a / b=\lfloor a\rfloor /\lfloor b\rfloor$ is a nonzero rational number: let $a / b=p / q$, where $p$ and $q$ are coprime nonzero integers. Suppose that $p \notin\{-1,1\}$. Then $p$ divides $\lfloor a n\rfloor$ for all $n$, so in particular $p$ divides $\lfloor a\rfloor$ and thus $a=k p+\varepsilon$ for some $k \in \mathbb{N}$ and $0 \leq \varepsilon<1$. Note that $\varepsilon \neq 0$, since otherwise $b=k q$ would also be an integer. It follows that there exists an $n \in \mathbb{N}$ such that $1 \leq n \varepsilon<2$. But then $\lfloor n a\rfloor=\lfloor k n p+n \varepsilon\rfloor=k n p+1$ is not divisible by $p$, a contradiction. Similarly, $q \notin\{-1,1\}$ is not possible. Therefore we must have $p, q= \pm 1$, and since $a \neq b$, the only possibility is $b=-a$. However, this leads to $\lfloor-a\rfloor=-\lfloor a\rfloor$, which is not valid if $a$ is not an integer. 16. Let $S$ be a set of integers such that for no four distinct elements $a, b, c, d \in$ $S$, it holds that $20 \mid a+b-c-d$. It is easily seen that there cannot exist distinct elements $a, b, c, d$ with $a \equiv b$ and $c \equiv d(\bmod 20)$. Consequently, if the elements of $S$ give $k$ different residues modulo 20, then $S$ itself has at most $k+2$ elements. Next, consider these $k$ elements of $S$ with different residues modulo 20. They give $\frac{k(k-1)}{2}$ different sums of two elements. For $k \geq 7$ there are at least 21 such sums, and two of them, say $a+b$ and $c+d$, are equal modulo 20 ; it is easy to see that $a, b, c, d$ are discinct. It follows that $k$ cannot exceed 6 , and consequently $S$ has at most 8 elements. An example of a set $S$ with 8 elements is $\{0,20,40,1,2,4,7,12\}$. Hence the answer is $n=9$. 17. Initially, we determine that the first few values for $a_{n}$ are $1,3,4,7,10$, $12,13,16,19,21,22,25$. Since these are exactly the numbers of the forms $3 k+1$ and $9 k+3$, we conjecture that this is the general pattern. In fact, it is easy to see that the equation $x+y=3 z$ has no solution in the set $K=\{3 k+1,9 k+3 \mid k \in \mathbb{N}\}$. We shall prove that the sequence $\left\{a_{n}\right\}$ is actually this set ordered increasingly. Suppose $a_{n}>25$ is the first member of the sequence not belonging to $K$. We have several cases: (i) $a_{n}=3 r+2, r \in \mathbb{N}$. By the assumption, one of $r+1, r+2, r+3$ is of the form $3 k+1$ (and smaller than $a_{n}$ ), and therefore is a member $a_{i}$ of the sequence. Then $3 a_{i}$ equals $a_{n}+1$, $a_{n}+4$, or $a_{n}+7$, which is a contradiction because $1,4,7$ are in the sequence. (ii) $a_{n}=9 r, r \in \mathbb{N}$. Then $a_{n}+a_{2}=3(3 r+1)$, although $3 r+1$ is in the sequence, a contradiction. (iii) $a_{n}=9 r+6, r \in \mathbb{N}$. Then one of the numbers $3 r+3,3 r+6,3 r+9$ is a member $a_{j}$ of the sequence, and thus $3 a_{j}$ is equal to $a_{n}+3$, $a_{n}+12$, or $a_{n}+21$, where $3,12,21$ are members of the sequence, again a contradiction. Once we have revealed the structure of the sequence, it is easy to compute $a_{1998}$. We have $1998=4 \cdot 499+2$, which implies $a_{1998}=9 \cdot 499+a_{2}=4494$. 18. We claim that, if $2^{n}-1$ divides $m^{2}+9$ for some $m \in \mathbb{N}$, then $n$ must be a power of 2 . Suppose otherwise that $n$ has an odd divisor $d>1$. Then $2^{d}-1 \mid 2^{n}-1$ is also a divisor of $m^{2}+9=m^{2}+3^{2}$. However, $2^{d}-1$ has some prime divisor $p$ of the form $4 k-1$, and by a well-known fact, $p$ divides both $m$ and 3 . Hence $p=3$ divides $2^{d}-1$, which is impossible, because for $d$ odd, $2^{d} \equiv 2(\bmod 3)$. Hence $n=2^{r}$ for some $r \in \mathbb{N}$. Now let $n=2^{r}$. We prove the existence of $m$ by induction on $r$. The case $r=1$ is trivial. Now for any $r>1$ note that $2^{2^{r}}-1=\left(2^{2^{r-1}}-1\right)\left(2^{2^{r-1}}+\right.$ 1). The induction hypothesis claims that there exists an $m_{1}$ such that $2^{2^{r-1}}-1 \mid m_{1}^{2}+9$. We also observe that $2^{2^{r-1}}+1 \mid m_{2}^{2}+9$ for simple $m_{2}=3 \cdot 2^{2^{r-2}}$. By the Chinese remainder theorem, there is an $m \in \mathbb{N}$ that satisfies $m \equiv m_{1}\left(\bmod 2^{2^{r-1}}-1\right)$ and $m \equiv m_{2}\left(\bmod 2^{2^{r-1}}+1\right)$. It is easy to see that this $m^{2}+9$ will be divisible by both $2^{2^{r-1}}-1$ and $2^{2^{r-1}}+1$, i.e., that $2^{2^{r}}-1 \mid m^{2}+9$. This completes the induction. 19. For $n=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \cdots p_{r}^{\alpha_{r}}$, where $p_{i}$ are distinct primes and $\alpha_{i}$ natural numbers, we have $\tau(n)=\left(\alpha_{1}+1\right) \cdots\left(\alpha_{r}+1\right)$ and $\tau\left(n^{2}\right)=\left(2 \alpha_{1}+1\right) \ldots\left(2 \alpha_{r}+1\right)$. Putting $k_{i}=\alpha_{i}+1$, the problem reduces to determining all natural values of $m$ that can be represented as $$ m=\frac{2 k_{1}-1}{k_{1}} \cdot \frac{2 k_{2}-1}{k_{2}} \cdots \frac{2 k_{r}-1}{k_{r}} $$ Since the numerator $\tau\left(n^{2}\right)$ is odd, $m$ must be odd too. We claim that every odd $m$ has a representation of the form (1). The proof will be done by induction. This is clear for $m=1$. Now for every $m=2 k-1$ with $k$ odd the result follows easily, since $m=\frac{2 k-1}{k} \cdot k$, and $k$ can be written as (1). We cannot do the same if $k$ is even; however, in the case $m=4 k-1$ with $k$ odd, we can write it as $m=\frac{12 k-3}{6 k-1} \cdot \frac{6 k-1}{3 k} \cdot k$, and this works. In general, suppose that $m=2^{t} k-1$, with $k$ odd. Following the same pattern, we can write $m$ as $$ m=\frac{2^{t}\left(2^{t}-1\right) k-\left(2^{t}-1\right)}{2^{t-1}\left(2^{t}-1\right) k-\left(2^{t-1}-1\right)} \cdots \frac{4\left(2^{t}-1\right) k-3}{2\left(2^{t}-1\right) k-1} \cdot \frac{2\left(2^{t}-1\right) k-1}{\left(2^{t}-1\right) k} \cdot k $$ The induction is finished. Hence $m$ can be represented as $\frac{\tau\left(n^{2}\right)}{\tau(n)}$ if and only if it is odd. 20. We first consider the special case $n=3^{r}$. Then the simplest choice $\frac{10^{n}-1}{9}=$ $11 \ldots 1$ ( $n$ digits) works. This can be shown by induction: it is true for $r=$ 1, while the inductive step follows from $10^{3^{r}}-1=\left(10^{3^{r-1}}-1\right)\left(10^{2 \cdot 3^{r-1}}+\right.$ $10^{3^{r-1}}+1$ ), because the second factor is divisible by 3 . In the general case, let $k \geq n / 2$ be a positive integer and $a_{1}, \ldots, a_{n-k}$ be nonzero digits. We have $$ \begin{aligned} A & =\left(10^{k}-1\right) \overline{a_{1} a_{2} \ldots a_{n-k}} \\ & =\overline{a_{1} a_{2} \ldots a_{n-k-1} a_{n-k}^{\prime} \underbrace{99 \ldots 99}_{2 k-n}} b_{1} b_{2} \ldots b_{n-k-1} b_{n-k}^{\prime} \end{aligned} $$ where $a_{n-k}^{\prime}=a_{n-k}-1, b_{i}=9-a_{i}$, and $b_{n-k}^{\prime}=9-a_{n-k}^{\prime}$. The sum of digits of $A$ equals $9 k$ independently of the choice of digits $a_{1}, \ldots, a_{n-k}$. Thus we need only choose $k \geq \frac{n}{2}$ and digits $a_{1}, \ldots, a_{n-k-1} \notin\{0,9\}$ and $a_{n-k} \in\{0,1\}$ in order for the conditions to be fulfilled. Let us choose $$ k=\left\{\begin{array}{l} 3^{r}, \quad \text { if } 3^{r}1$ we have $N_{s} \equiv 1(\bmod 4)$. Now we prove $3 \mid d\left(p_{s}\right)$. We have $p_{s}\left|N_{s}\right| 10^{3 s}-1$ and hence $d\left(p_{s}\right) \mid 3 s$. We cannot have $d\left(p_{s}\right) \mid s$, for otherwise $p_{s}\left|10^{s}-1 \Rightarrow p_{s}\right|\left(10^{2 s}+\right.$ $\left.10^{s}+1,10^{s}-1\right)=3$; and we cannot have $d\left(p_{s}\right) \mid 3$, for otherwise $p_{s} \mid 10^{3}-1=999=3^{3} \cdot 37$, both of which contradict $p_{s} \neq 3,37$. It follows that $d\left(p_{s}\right)=3 s$. Hence for every prime $s$ there exists a prime $p_{s}$ such that $d\left(p_{s}\right)=3 s$. It follows that the cardinality of $S$ is infinite. (b) Let $r=r(s)$ be the fundamental period of $p \in S$. Then $p \mid 10^{3 r}-1$, $p \nmid 10^{r}-1 \Rightarrow p \mid 10^{2 r}+10^{r}+1$. Let $x_{j}=\frac{10^{j-1}}{p}$ and $y_{j}=\left\{x_{j}\right\}=$ $0 . a_{j} a_{j+1} a_{j+2} \ldots$. Then $a_{j}<10 y_{j}$, and hence $$ f(k, p)=a_{k}+a_{k+r}+a_{k+2 r}<10\left(y_{k}+y_{k+r}+y_{k+2 r}\right) . $$ We note that $x_{k}+x_{k+s(p)}+x_{k+2 s(p)}=\frac{10^{k-1} N_{p}}{p}$ is an integer, from which it follows that $y_{k}+y_{k+s(p)}+y_{k+2 s(p)} \in \mathbb{N}$. Hence $y_{k}+y_{k+s(p)}+$ $y_{k+2 s(p)} \leq 2$. It follows that $f(k, p)<20$. We note that $f(2,7)=$ $4+8+7=19$. Hence 19 is the greatest possible value of $f(k, p)$. 5. Since one can arbitrarily add zeros at the end of $m$, which increases divisibility by 2 and 5 to an arbitrary exponent, it suffices to assume $2,5 \nmid n$. If $(n, 10)=1$, there exists an integer $w \geq 2$ such that $10^{w} \equiv 1(\bmod n)$. We also note that $10^{i w} \equiv 1(\bmod n)$ and $10^{j w+1} \equiv 10(\bmod n)$ for all integers $i$ and $j$. Let us assume that $m$ is of the form $m=\sum_{i=1}^{u} 10^{i w}+\sum_{j=1}^{v} 10^{j w+1}$ for integers $u, v \geq 0$ (where if $u$ or $v$ is 0 , the corresponding sum is 0 ). Obviously, the sum of the digits of $m$ is equal to $u+v$, and also $m \equiv u+10 v(\bmod n)$. Hence our problem reduces to finding integers $u, v \geq 0$ such that $u+v=k$ and $n \mid u+10 v=k+9 v$. Since $(n, 9)=1$, it follows that there exists some $v_{0}$ such that $0 \leq v_{0}b)$ are respectively their smallest elements. Lemma 1. Numbers $x, y$, and $x+y$ cannot belong to three different sets. Proof. The number $f(x, x+y)=f(y, x+y)$ must belong to both the set containing $y$ and the set containing $x$, a contradiction. Lemma 2. The subset $C$ contains a multiple of $b$. Moreover, if $k b$ is the smallest such multiple, then $(k-1) b \in B$ and $(k-1) b+1, k b+1 \in A$. Proof. Let $r$ be the residue of $c$ modulo $b$. If $r=0$, the first statement automatically holds. Let $02$ that for all $s$ we have $f(n, s)=\frac{1}{s}\binom{n-1}{s-1}\binom{n}{s-1}$. We shall prove that the given formula holds also for all $f(n+1, s)$, where $s \geq 2$. We say that an $(n+1, s)$ - or $(n+1, s+1)$-path is related to a given $(n, s)$ path if it is obtained from the given path by inserting a step $E N$ between two moves or at the beginning or the end of the path. We note that by inserting the step between two moves that form a step one obtains an $(n+1, s)$-path; in all other cases one obtains an $(n+1, s+1)$-path. For each $(n, s)$-path there are exactly $2 n+1-s$ related $(n+1, s+1)$-paths, and for each $(n, s+1)$-path there are $s+1$ related $(n+1, s+1)$-paths. Also, each $(n+1, s+1)$-path is related to exactly $s+1$ different $(n, s)$ - or $(n, s+1)$-paths. Thus: $$ \begin{aligned} (s+1) f(n+1, s+1) & =(2 n+1-s) f(n, s)+(s+1) f(n, s+1) \\ & =\frac{2 n+1-s}{s}\binom{n-1}{s-1}\binom{n}{s-1}+\binom{n-1}{s}\binom{n}{s} \\ & =\binom{n}{s}\binom{n+1}{s}, \end{aligned} $$ i.e., $f(n+1, s+1)=\frac{1}{s+1}\binom{n}{s}\binom{n+1}{s}$. This completes the proof. 22. (a) Color the first, third, and fifth row red, and the remaining squares white. There in total $n$ pieces and $3 n$ red squares. Since each piece can cover at most three red squares, it follows that each piece colors exactly three red squares. Then it follows that the two white squares it covers must be on the same row; otherwise, the piece has to cover at least three. Hence, each white row can be partitioned into pairs of squares belonging to the same piece. Thus it follows that the number of white squares in a row, which is $n$, must be even. (b) Let $a_{k}$ denote the number of different tilings of a $5 \times 2 k$ rectangle. Let $b_{k}$ be the number of tilings that cannot be partitioned into two smaller tilings along a vertical line (without cutting any pieces). It is easy to see that $a_{1}=b_{1}=2, b_{2}=2, a_{2}=6=2 \cdot 3, b_{3}=4$, and subsequently, by induction, $b_{3 k} \geq 4, b_{3 k+1} \geq 2$, and $b_{3 k+2} \geq 2$. We also have $a_{k}=b_{k}+\sum_{i=1}^{k-1} b_{i} a_{k-i}$. For $k \geq 3$ we now have inductively $$ a_{k}>2+\sum_{i=1}^{k-1} 2 a_{k-i} \geq 2 \cdot 3^{k-1}+2 a_{k-1} \geq 2 \cdot 3^{k} $$ 23. Let $r(m)$ denote the rest period before the $m$ th catch, $t(m)$ the number of minutes before the $m$ th catch, and $f(n)$ as the number of flies caught in $n$ minutes. We have $r(1)=1, r(2 m)=r(m)$, and $r(2 m+1)=f(m)+1$. We then have by induction that $r(m)$ is the number of ones in the binary representation of $m$. We also have $t(m)=\sum_{i=1}^{m} r(i)$ and $f(t(m))=m$. From the recursive relations for $r$ we easily derive $t(2 m+1)=2 t(m)+m+1$ and consequently $t(2 m)=2 t(m)+m-r(m)$. We then have, by induction on $p, t\left(2^{p} m\right)=2^{p} t(m)+p \cdot m \cdot 2^{p-1}-\left(2^{p}-1\right) r(m)$. (a) We must find the smallest number $m$ such that $r(m+1)=9$. The smallest number with nine binary digits is $\overline{111111111}_{2}=511$; hence the required $m$ is 510 . (b) We must calculate $t(98)$. Using the recursive formulas we have $t(98)=$ $2 t(49)+49-r(49), t(49)=2 t(24)+25$, and $t(24)=8 t(3)+36-7 r(3)$. Since we have $t(3)=4, r(3)=2$ and $r(49)=r\left(\overline{110001}_{2}\right)=3$, it follows $t(24)=54 \Rightarrow t(49)=133 \Rightarrow t(98)=312$. (c) We must find $m_{c}$ such that $t\left(m_{c}\right) \leq 1999e>2$, it follows that $\left|\bigcup_{j=1}^{N} A_{i_{j}}\right| \geq \frac{1}{2}|S|$; hence the chosen $i_{1}<\cdots0$. Hence $F_{B}(w) \geq 1$. It remains to show that $F_{B}(w)=1$ if and only if $p=5$. We have the formula $(x-w)\left(x-w^{2}\right) \cdots\left(x-w^{p-1}\right)=x^{p-1}+x^{p-2}+\cdots+x+1=\frac{x^{p}-1}{x-1}$. Let $f_{B}(x)=x^{3}+x+1=(x-\lambda)(x-\mu)(x-\nu)$, where $\lambda$, $\mu$, and $\nu$ are the three zeros of the polynomial $f_{B}(x)$. It follows that $F_{B}(w)=\left(\frac{\lambda^{p}-1}{\lambda-1}\right)\left(\frac{\mu^{p}-1}{\mu-1}\right)\left(\frac{\nu^{p}-1}{\nu-1}\right)=-\frac{1}{3}\left(\lambda^{p}-1\right)\left(\mu^{p}-1\right)\left(\nu^{p}-1\right)$, since $(\lambda-1)(\mu-1)(\nu-1)=-f_{B}(1)=-3$. We also have $\lambda+\mu+\nu=0$, $\lambda \mu \nu=-1, \lambda \mu+\lambda \nu+\mu \nu=1$, and $\lambda^{2}+\mu^{2}+\nu^{2}=(\lambda+\mu+\nu)^{2}-2(\lambda \mu+$ $\lambda \nu+\mu \nu)=-2$. By induction (using that $\left(\lambda^{r}+\mu^{r}+\nu^{r}\right)+\left(\lambda^{r-2}+\mu^{r-2}+\right.$ $\left.\nu^{r-2}\right)+\left(\lambda^{r-3}+\mu^{r-3}+\nu^{r-3}\right)=0$ ), it follows that $\lambda^{r}+\mu^{r}+\nu^{r}$ is an integer for all $r \in \mathbb{N}$. Let us assume $F_{B}(x)=1$. It follows that $\left(\lambda^{p}-1\right)\left(\mu^{p}-1\right)\left(\nu^{p}-1\right)=-3$. Hence $\lambda^{p}, \mu^{p}, \nu^{p}$ are roots of the polynomial $p(x)=x^{3}-q x^{2}+(1+q) x+1$, where $q=\lambda^{p}+\mu^{p}+\nu^{p}$. Since $f_{B}(x)$ is an increasing function in real numbers, it follows that it has only one real root (w.l.o.g.) $\lambda$, the other two roots being complex conjugates. From $f_{B}(-1)<00$; otherwise, $q\left(x^{2}-x\right)$ intersects $x^{3}+x+1$ at a value smaller than $\lambda$. Additionally, as $p$ increases, $\lambda^{p}$ approaches 0 , and hence $q$ must increase. For $p=5$ we have $1+w+w^{3}=-w^{2}\left(1+w^{2}\right)$ and hence $G(w)=\prod_{i=1}^{p-1}(1+$ $\left.w^{2 j}\right)=1$. For a zero of $f_{B}(x)$ we have $x^{5}=-x^{3}-x^{2}=-x^{2}+x+1$ and hence $q=\lambda^{5}+\mu^{5}+\nu^{5}=-\left(\lambda^{2}+\mu^{2}+\nu^{2}\right)+(\lambda+\mu+\nu)+3=5$. For $p>5$ we also have $q \geq 6$. Assuming again $F_{B}(x)=1$ and defining $p(x)$ as before, we have $p(-1)<0, p(0)>0, p(2)<0$, and $p(x)>0$ for a sufficiently large $x>2$. It follows that $p(x)$ must have three distinct real roots. However, since $\mu^{p}, \nu^{p} \in \mathbb{R} \Rightarrow \nu^{p}=\overline{\mu^{p}}=\mu^{p}$, it follows that $p(x)$ has at most two real roots, which is a contradiction. Hence, it follows that $F_{B}(x)>1$ for $p>5$ and thus $E(A) \leq E(B)$, where equality holds only for $p=5$. ### 4.41 Solutions to the Shortlisted Problems of IMO 2000 1. In order for the trick to work, whenever $x+y=z+t$ and the cards $x, y$ are placed in different boxes, either $z, t$ are in these boxes as well or they are both in the remaining box. Case 1. The cards $i, i+1, i+2$ are in different boxes for some $i$. Since $i+(i+3)=(i+1)+(i+2)$, the cards $i$ and $i+3$ must be in the same box; moreover, $i-1$ must be in the same box as $i+2$, etc. Hence the cards $1,4,7, \ldots, 100$ are placed in one box, the cards $2,5, \ldots, 98$ are in the second, while $3,6, \ldots, 99$ are in the third box. The number of different arrangements of the cards is 6 in this case. Case 2. No three successive cards are all placed in different boxes. Suppose that 1 is in the blue box, and denote by $w$ and $r$ the smallest numbers on cards lying in the white and red boxes; assume w.l.o.g. that $w$ $w+1$. Now suppose that $r<100$. Since $w+r=(w-1)+(r+1), r+1$ must be in the blue box. But then $(r+1)+w=r+(w+1)$ implies that $w+1$ must be red, which is a contradiction. Hence the red box contains only the card 100 . Since $99+w=100+(w-1)$, we deduce that the card 99 is in the white box. Moreover, if any of the cards $k$, $2 \leq k \leq 99$, were in the blue box, then since $k+99=(k-1)+100$, the card $k-1$ should be in the red box, which is impossible. Hence the blue box contains only the card 1 , whereas the cards $2,3, \ldots, 99$ are all in the white box. In general, one box contains 1 , another box only 100 , while the remaining contains all the other cards. There are exactly 6 such arrangements, and the trick works in each of them. Therefore the answer is 12. 2. Since the volume of each brick is 12 , the side of any such cube must be divisible by 6 . Suppose that a cube of side $n=6 k$ can be built using $\frac{n^{3}}{12}=18 k^{3}$ bricks. Set a coordinate system in which the cube is given as $[0, n] \times[0, n] \times[0, n]$ and color in black each unit cube $[2 p, 2 p+1] \times[2 q, 2 q+1] \times[2 r, 2 r+1]$. There are exactly $\frac{n^{3}}{9}=27 k^{3}$ black cubes. Each brick covers either one or three black cubes, which is in any case an odd number. It follows that the total number of black cubes must be even, which implies that $k$ is even. Hence $12 \mid n$. On the other hand, two bricks can be fitted together to give a $2 \times 3 \times 4$ box. Using such boxes one can easily build a cube of side 12 , and consequently any cube of side divisible by 12 . 3. Clearly $m(S)$ is the number of pairs of point and triangle $\left(P_{t}, P_{i} P_{j} P_{k}\right)$ such that $P_{t}$ lies inside the circle $P_{i} P_{j} P_{k}$. Consider any four-element set $S_{i j k l}=\left\{P_{i}, P_{j}, P_{k}, P_{l}\right\}$. If the convex hull of $S_{i j k l}$ is the triangle $P_{i} P_{j} P_{k}$, then we have $a_{i}=a_{j}=a_{k}=0, a_{l}=1$. Suppose that the convex hull is the quadrilateral $P_{i} P_{j} P_{k} P_{l}$. Since this quadrilateral is not cyclic, we may suppose that $\angle P_{i}+\angle P_{k}<180^{\circ}<\angle P_{j}+\angle P_{l}$. In this case $a_{i}=a_{k}=0$ and $a_{j}=a_{l}=1$. Therefore $m\left(S_{i j k l}\right)$ is 2 if $P_{i}, P_{j}, P_{k}, P_{l}$ are vertices of a convex quadrilateral, and 1 otherwise. There are $\binom{n}{4}$ four-element subsets $S_{i j k l}$. If $a(S)$ is the number of such subsets whose points determine a convex quadrilateral, we have $m(S)=$ $2 a(S)+\left(\binom{n}{4}-a(S)\right)=\binom{n}{4}+a(S) \leq 2\binom{n}{4}$. Equality holds if and only if every four distinct points of $S$ determine a convex quadrilateral, i.e. if and only if the points of $S$ determine a convex polygon. Hence $f(n)=2\binom{n}{4}$ has the desired property. 4. By a good placement of pawns we mean the placement in which there is no block of $k$ adjacent unoccupied squares in a row or column. We can make a good placement as follows: Label the rows and columns with $0,1, \ldots, n-1$ and place a pawn on a square $(i, j)$ if and only if $k$ divides $i+j+1$. This is obviously a good placement in which the pawns are placed on three lines with $k, 2 n-2 k$, and $2 n-3 k$ squares, which adds up to $4 n-4 k$ pawns in total. Now we shall prove that a good placement must contain at least $4 n-4 k$ pawns. Suppose we have a good placement of $m$ pawns. Partition the board into nine rectangular regions as shown in the picture. Let $a, b, \ldots, h$ be the numbers of pawns in the rectangles $A, B, \ldots, H$ respectively. Note that each row that ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-671.jpg?height=394&width=450&top_left_y=962&top_left_x=850) passes through $A, B$, and $C$ either contains a pawn inside $B$, or contains a pawn in both $A$ and $C$. It follows that $a+c+2 b \geq 2(n-k)$. We similarly obtain that $c+e+2 d, e+g+2 f$, and $g+a+2 h$ are all at least $2(n-k)$. Adding and dividing by 2 yields $a+b+\cdots+h \geq 4(n-k)$, which proves the statement. 5. We say that a vertex of a nice region is convex if the angle of the region at that vertex equals $90^{\circ}$; otherwise (if the angle is $270^{\circ}$ ), we say that a vertex is concave. For a simple broken line $C$ contained in the boundary of a nice region $R$ we call the pair $(R, C)$ a boundary pair. Such a pair is called outer if the region $R$ is inside the broken line $C$, and inner otherwise. Let $\mathcal{B}_{i}, \mathcal{B}_{o}$ be the sets of inner and outer boundary pairs of nice regions respectively, and let $\mathcal{B}=\mathcal{B}_{i} \cup \mathcal{B}_{o}$. For a boundary pair $b=(R, C)$ denote by $c_{b}$ and $v_{b}$ respectively the number of convex and concave vertices of $R$ that belong to $C$. We have the following facts: (1) Each vertex of a rectangle corresponds to one concave angle of a nice region and vice versa. This correspondence is bijective, so $\sum_{b \in \mathcal{B}} v_{b}=$ $4 n$. (2) For a boundary pair $b=(R, C)$ the sum of angles of $R$ that are on $C$ equals $\left(c_{b}+v_{b}-2\right) 180^{\circ}$ if $b$ is outer, and $\left(c_{b}+v_{b}+2\right) 180^{\circ}$ if $b$ is inner. On the other hand the sum of angles is obviously equal to $c_{b} \cdot 90^{\circ}+v_{b} \cdot 270^{\circ}$. It immediately follows that $c_{b}-v_{b}=\left\{\begin{array}{r}4 \text { if } b \in \mathcal{B}_{o}, \\ -4 \text { if } b \in \mathcal{B}_{i} .\end{array}\right.$ (3) Since every vertex of a rectangle appears in exactly two boundary pairs and each boundary pair contains at least one vertex of a rectangle, the number $K$ of boundary pairs is less than or equal to $8 n$. (4) The set $\mathcal{B}_{i}$ is nonempty, because every boundary of the infinite region is inner. Consequently, the sum of the numbers of the vertices of all nice regions is equal to $$ \sum_{b \in \mathcal{B}}\left(c_{b}+v_{b}\right)=\sum_{b \in \mathcal{B}}\left(2 v_{b}+\left(c_{b}-v_{b}\right)\right) \leq 2 \cdot 4 n+4(K-1)-4 \leq 40 n-8 $$ 6. Every integer $z$ has a unique representation $z=p x+q y$, where $x, y \in \mathbb{Z}$, $0 \leq x \leq q-1$. Consider the region $T$ in the $x y$-plane defined by the last inequality and $p x+q y \geq 0$. There is a bijective correspondence between lattice points of this region and nonnegative integers given by $(x, y) \mapsto$ $z=p x+q y$. Let us mark all lattice points of $T$ whose corresponding integers belong to $S$ and color in black the unit squares whose left-bottom vertices are at marked points. Due to the condition for $S$, this coloring has the property that all points lying on the right or above a colored point are colored as well. In particular, since the point $(0,0)$ is colored, all points above or on the line $y=0$ are colored. What we need is the number of such colorings of $T$. The border of the colored subregion $C$ of $T$ determines a path from $(0,0)$ to $(q,-p)$ consisting of consecutive unit moves either to the right or downwards. There are $\binom{p+q}{p}$ such paths in total. We must find the number of such paths not going below the line $l: p x+q y=0$. Consider any path $\gamma=A_{0} A_{1} \ldots A_{p+q}$ from $A_{0}=(0,0)$ to $A_{p+q}=(q,-p)$. We shall see the path $\gamma$ as a sequence $G_{1} G_{2} \ldots G_{p+q}$ of moves to the right $(R)$ or downwards ( $D$ ) with exactly $p D$ 's and $q R$ 's. Two paths are said to be equivalent if one is obtained from the other by a circular shift of the corresponding sequence $G_{1} G_{2} \ldots G_{p+q}$. We note that all the $p+q$ circular shifts of a path are distinct. Indeed, $G_{1} \ldots G_{p+q} \equiv$ $G_{i+1} \ldots G_{i+p+q}$ would imply $G_{1}=G_{i+1}=G_{2 i+1}=\cdots$ (where $G_{j+p+q}=$ $G_{j}$ ), so $G_{1}=\cdots=G_{p+q}$, which is impossible. Hence each equivalence class contains exactly $p+q$ paths. Let $l_{i}, 0 \leq i0$, 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)0$. Furthermore, by the induction hypothesis the polynomials of the form $Q_{k}(x)$ take at least $2^{k-2}$ values at $x=n$. Hence the total number of values of $Q(n)$ for $Q \in M(P)$ is at least $1+1+2+2^{2}+\cdots+2^{m-1}=2^{m}$. Now we return to the main result. Suppose that $P(x)=a_{2000} x^{2000}$ $+a_{1999} x^{1999}+a_{0}$ is an $n$-independent polynomial. Since $P_{2}(x)=a_{2000} x^{2000}$ $+a_{1998} x^{1998}+\cdots+a_{2} x^{2}+a_{0}$ is a polynomial in $t=x^{2}$ of degree 1000 , by the lemma it takes at least $2^{1000}$ distinct values at $x=n$. Hence $\{Q(n) \mid Q \in$ $M(P)\}$ contains at least $2^{1000}$ elements. On the other hand, interchanging the coefficients $b_{i}$ and $b_{j}$ in a polynomial $Q(x)=b_{2000} x^{2000}+\cdots+b_{0}$ modifies the value of $Q$ at $x=n$ by $\left(b_{i}-b_{j}\right)\left(n^{i}-n^{j}\right)=\left(a_{k}-a_{l}\right)\left(n^{i}-n^{j}\right)$ for some $k, l$. Hence there are fewer than $2001^{4}$ possible modifications of the value at $n$. Since $2001^{4}<2^{1000}$, we have arrived at a contradiction. 14. The given condition is obviously equivalent to $a^{2} \equiv 1(\bmod n)$ for all integers $a$ coprime to $n$. Let $n=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \cdots p_{k}^{\alpha_{k}}$ be the factorization of $n$ onto primes. Since by the Chinese remainder theorem the numbers coprime to $n$ can give any remainder modulo $p_{i}^{\alpha_{i}}$ except 0 , our condition is equivalent to $a^{2} \equiv 1\left(\bmod p_{i}^{\alpha_{i}}\right)$ for all $i$ and integers $a$ coprime to $p_{i}$. Now if $p_{i} \geq 3$, we have $2^{2} \equiv 1\left(\bmod p_{i}^{\alpha_{i}}\right)$, so $p_{i}=3$ and $\alpha_{i}=2$. If $p_{j}=2$, then $3^{2} \equiv 1\left(\bmod 2^{\alpha_{j}}\right)$ implies $\alpha_{j} \leq 3$. Hence $n$ is a divisor of $2^{3} \cdot 3=24$. Conversely, each $n \mid 24$ has the desired property. 15. Let $n=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \cdots p_{k}^{\alpha_{k}}$ be the factorization of $n$ onto primes $\left(p_{1}5$ or $\beta_{i}>1$, then $\frac{p_{i}^{\beta_{i}}}{3 \beta_{i}+1}>\frac{5}{4}$, which is impossible. We conclude that $p_{2}=5$ and $k=2$, so $n \stackrel{2000}{=}$. Hence the solutions for $n$ are 2, 128, and 2000. 16. More generally, we will prove by induction on $k$ that for each $k \in \mathbb{N}$ there exists $n_{k} \in \mathbb{N}$ that has exactly $k$ distinct prime divisors such that $n_{k} \mid 2^{n_{k}}+1$ and $3 \mid n_{k}$. For $k=1, n_{1}=3$ satisfies the given conditions. Now assume that $k \geq 1$ and $n_{k}=3^{\alpha} m$ where $3 \nmid m$, so that $m$ has exactly $k-1$ prime divisors. Then the number $3 n_{k}=3^{\alpha+1} m$ has exactly $k$ prime divisors and $2^{3 n_{k}}+1=$ $\left(2^{n_{k}}+1\right)\left(2^{2 n_{k}}-2^{n_{k}}+1\right)$ is divisible by $3 n_{k}$, since $3 \mid 2^{2 n_{k}}-2^{n_{k}}+1$. We shall find a prime $p$ not dividing $n_{k}$ such that $n_{k+1}=3 p n_{k}$. It is enough to find $p$ such that $p \mid 2^{3 n_{k}}+1$ and $p \nmid 2^{n_{k}}+1$. Moreover, we shall show that for every integer $a>2$ there exists a prime number $p$ that divides $a^{3}+1=(a+1)\left(a^{2}-a+1\right)$ but not $a+1$. To prove this we observe that $\operatorname{gcd}\left(a^{2}-a+1, a+1\right)=\operatorname{gcd}(3, a+1)$. Now if $3 \nmid a+1$, we can simply take $p=3$; otherwise, if $a=3 b-1$, then $a^{2}-a+1=9 b^{2}-9 b+3$ is not divisible by $3^{2}$; hence we can take for $p$ any prime divisor of $\frac{a^{2}-a+1}{3}$. 17. Trivially all triples $(a, 1, n)$ and $(1, m, n)$ are solutions. Assume now that $a>1$ and $m>1$. If $m$ is even, then $a^{m}+1 \equiv(-1)^{m}+1 \equiv 2(\bmod a+1)$, which implies that $a^{m}+1=2^{t}$. In particular, $a$ is odd. But this is impossible, since $2p$ for $p>3$, so we must have $P=p=3$ and $b=2$. Since $b=a^{m_{1}}$, we obtain $a=2$ and $m=3$. The triple $(2,3, n)$ is indeed a solution if $n \geq 2$. Hence the set of solutions is $\{(a, 1, n),(1, m, n) \mid a, m, n \in \mathbb{N}\} \cup\{(2,3, n) \mid$ $n \geq 2\}$. Remark. This problem is very similar to (SL97-14). 18. It is known that the area of the triangle is $S=p r=p^{2} / n$ and $S=$ $\sqrt{p(p-a)(p-b)(p-c)}$. It follows that $p^{3}=n^{2}(p-a)(p-b)(p-c)$, which by putting $x=p-a, y=p-b$, and $z=p-c$ transforms into $$ (x+y+z)^{3}=n^{2} x y z . $$ We will be done if we show that (1) has a solution in positive integers for infinitely many natural numbers $n$. Let us assume that $z=k(x+y)$ for an integer $k>0$. Then (1) becomes $(k+1)^{3}(x+y)^{2}=k n^{2} x y$. Further, by setting $n=3(k+1)$ this equation reduces to $$ (k+1)(x+y)^{2}=9 k x y $$ Set $t=x / y$. Then (2) has solutions in positive integers if and only if $(k+$ 1) $(t+1)^{2}=9 k t$ has a rational solution, i.e., if and only if its discriminant $D=k(5 k-4)$ is a perfect square. Setting $k=u^{2}$, we are led to show that $5 u^{2}-4=v^{2}$ has infinitely many integer solutions. But this is a classic Pell-type equation, whose solution is every Fibonacci number $u=F_{2 i+1}$. This completes the proof. 19. Suppose that a natural number $N$ satisfies $N=a_{1}^{2}+\cdots+a_{k}^{2}, 2 N=$ $b_{1}^{2}+\cdots+b_{l}^{2}$, where $a_{i}, b_{j}$ are natural numbers such that none of the ratios $a_{i} / a_{j}, b_{i} / b_{j}, a_{i} / b_{j}, b_{j} / a_{i}$ is a power of 2. We claim that every natural number $n>\sum_{i=0}^{4 N-2}(2 i N+1)^{2}$ can be represented as a sum of distinct squares. Suppose $n=4 q N+r, 0 \leq r<4 N$. Then $$ n=4 N s+\sum_{i=0}^{r-1}(2 i N+1)^{2} $$ for some positive integer $s$, so it is enough to show that $4 N s$ is a sum of distinct even squares. Let $s=\sum_{c=1}^{C} 2^{2 u_{c}}+\sum_{d=1}^{D} 2^{2 v_{d}+1}$ be the binary expansion of $s$. Then $$ 4 N s=\sum_{c=1}^{C} \sum_{i=1}^{k}\left(2^{u_{c}+1} a_{i}\right)^{2}+\sum_{d=1}^{D} \sum_{j=1}^{l}\left(2^{u_{d}+1} b_{j}\right)^{2} $$ where all the summands are distinct by the condition on $a_{i}, b_{j}$. It remains to choose an appropriate $N$ : for example $N=29$, because $29=5^{2}+2^{2}$ and $58=7^{2}+3^{2}$. Second solution. It can be directly checked that every odd integer $67<$ $n \leq 211$ can be represented as a sum of distinct squares. For any $n>211$ we can choose an integer $m$ such that $m^{2}>\frac{n}{2}$ and $n-m^{2}$ is odd and greater than 67 , and therefore by the induction hypothesis can be written as a sum of distinct squares. Hence $n$ is also a sum of distinct squares. 20. Denote by $k_{1}, k_{2}$ the given circles and by $k_{3}$ the circle through $A, B, C, D$. We shall consider the case that $k_{3}$ is inside $k_{1}$ and $k_{2}$, since the other case is analogous. Let $A C$ and $A D$ meet $k_{1}$ at points $P$ and $R$, and $B C$ and $B D$ meet $k_{2}$ at $Q$ and $S$ respectively. We claim that $P Q$ and $R S$ are the common tangents to $k_{1}$ and $k_{2}$, and therefore $P, Q, R, S$ are the desired points. The circles $k_{1}$ and $k_{3}$ are tangent to each other, so we have $D C \| R P$. Since ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-680.jpg?height=374&width=468&top_left_y=669&top_left_x=848) $$ A C \cdot C P=X C \cdot C Y=B C \cdot C Q $$ the quadrilateral $A B Q P$ is cyclic, implying that $\angle A P Q=\angle A B Q=$ $\angle A D C=\angle A R P$. It follows that $P Q$ is tangent to $k_{1}$. Similarly, $P Q$ is tangent to $k_{2}$. 21. Let $K$ be the intersection point of the lines $M N$ and $A B$. Since $K A^{2}=K M \cdot K N=K B^{2}$, it follows that $K$ is the midpoint of the segment $A B$, and consequently $M$ is the midpoint of $A B$. Thus it will be enough to show that $E M \perp$ $P Q$, or equivalently that $E M \perp$ $A B$. However, since $A B$ is tangent to the circle $G_{1}$ we have $\angle B A M=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-680.jpg?height=356&width=509&top_left_y=1295&top_left_x=812) $\angle A C M=\angle E A B$, and similarly $\angle A B M=\angle E B A$. This implies that the triangles $E A B$ and $M A B$ are congruent. Hence $E$ and $M$ are symmetric with respect to $A B$; hence $E M \perp A B$. Remark. The proposer has suggested an alternative version of the problem: to prove that $E N$ bisects the angle $C N D$. This can be proved by noting that $E A N B$ is cyclic. 22. Let $L$ be the point symmetric to $H$ with respect to $B C$. It is well known that $L$ lies on the circumcircle $k$ of $\triangle A B C$. Let $D$ be the intersection point of $O L$ and $B C$. We similarly define $E$ and $F$. Then $$ O D+D H=O D+D L=O L=O E+E H=O F+F H $$ We shall prove that $A D, B E$, and $C F$ are concurrent. Let line $A O$ meet $B C$ at $D^{\prime}$. It is easy to see that $\angle O D^{\prime} D=\angle O D D^{\prime}$; hence the perpendicular bisector of $B C$ bisects $D D^{\prime}$ as well. Hence $B D=C D^{\prime}$. If we define $E^{\prime}$ and $F^{\prime}$ analogously, we have $C E=A E^{\prime}$ and $A F=B F^{\prime}$. Since the lines $A D^{\prime}, B E^{\prime}, C F^{\prime}$ meet at $O$, it follows that $\frac{B D}{D C} \cdot \frac{C E}{E A} \cdot \frac{A F}{F B}=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-681.jpg?height=399&width=430&top_left_y=252&top_left_x=867) $\frac{B D^{\prime}}{D^{\prime} C} \cdot \frac{C E^{\prime}}{E^{\prime} A} \cdot \frac{A F^{\prime}}{F^{\prime} B}=1$. This proves our claim by Ceva's theorem. 23. First, suppose that there are numbers $\left(b_{i}, c_{i}\right)$ assigned to the vertices of the polygon such that $$ A_{i} A_{j}=b_{j} c_{i}-b_{i} c_{j} \quad \text { for all } i, j \text { with } 1 \leq i \leq j \leq n $$ In order to show that the polygon is cyclic, it is enough to prove that $A_{1}, A_{2}, A_{3}, A_{i}$ lie on a circle for each $i, 4 \leq i \leq n$, or equivalently, by Ptolemy's theorem, that $A_{1} A_{2} \cdot A_{3} A_{i}+A_{2} A_{3} \cdot A_{i} A_{1}=A_{1} A_{3} \cdot A_{2} A_{i}$. But this is straightforward with regard to (1). Now suppose that $A_{1} A_{2} \ldots A_{n}$ is a cyclic quadrilateral. By Ptolemy's theorem we have $A_{i} A_{j}=A_{2} A_{j} \cdot \frac{A_{1} A_{i}}{A_{1} A_{2}}-A_{2} A_{i} \cdot \frac{A_{1} A_{j}}{A_{1} A_{2}}$ for all $i, j$. This suggests taking $b_{1}=-A_{1} A_{2}, b_{i}=A_{2} A_{i}$ for $i \geq 2$ and $c_{i}=\frac{A_{1} A_{i}}{A_{1} A_{2}}$ for all $i$. Indeed, using Ptolemy's theorem, one easily verifies (1). 24. Since $\angle A B T=180^{\circ}-\gamma$ and $\angle A C T=180^{\circ}-\beta$, the law of sines gives $\frac{B P}{P C}=\frac{S_{A B T}}{S_{A C T}}=\frac{A B \cdot B T \cdot \sin \gamma}{A B \cdot B T \cdot \sin \beta}=\frac{A B \sin \gamma}{A C \sin \beta}=\frac{c^{2}}{b^{2}}$, which implies $B P=\frac{c^{2} a}{b^{2}+c^{2}}$. Denote by $M$ and $N$ the feet of perpendiculars from $P$ and $Q$ on $A B$. We have $\cot \angle A B Q=\frac{B N}{N Q}=\frac{2 B N}{P M}=\frac{B A+B M}{B P \sin \beta}=\frac{c+B P \cos \beta}{B P \sin \beta}=\frac{b^{2}+c^{2}+a c \cos \beta}{c a \sin \beta}=$ $\frac{2\left(b^{2}+c^{2}\right)+a^{2}+c^{2}-b^{2}}{2 c a \sin \beta}=\frac{a^{2}+b^{2}+3 c^{2}}{4 S_{A B C}}=2 \cot \alpha+2 \cot \beta+\cot \gamma$. Similarly, $\cot \angle B A S=2 \cot \alpha+2 \cot \beta+\cot \gamma$; hence $\angle A B Q=\angle B A S$. Now put $p=\cot \alpha$ and $q=\cot \beta$. Since $p+q \geq 0$, the A-G mean inequality gives us $\cot \angle A B Q=2 p+2 q+\frac{1-p q}{p+q} \geq 2 p+2 q+\frac{1-(p+q)^{2} / 4}{p+q}=\frac{7}{4}(p+q)+$ $\frac{1}{p+q} \geq 2 \sqrt{\frac{7}{4}}=\sqrt{7}$. Hence $\angle A B Q \leq \arctan \frac{1}{\sqrt{7}}$. Equality holds if and only if $\cot \alpha=\cot \beta=\frac{1}{\sqrt{7}}$, i.e., when $a: b: c=1: 1: \frac{1}{\sqrt{2}}$. 25. By the condition of the problem, $\triangle A D X$ and $\triangle B C X$ are similar. Then there exist points $Y^{\prime}$ and $Z^{\prime}$ on the perpendicular bisector of $A B$ such that $\triangle A Y^{\prime} Z^{\prime}$ is similar and oriented the same as $\triangle A D X$, and $\triangle B Y^{\prime} Z^{\prime}$ is (being congruent to $\triangle A Y^{\prime} Z^{\prime}$ ) similar and oriented the same as $\triangle B C X$. Since then $A D / A Y^{\prime}=A X / A Z^{\prime}$ and $\angle D A Y^{\prime}=\angle X A Z^{\prime}, \triangle A D Y^{\prime}$ and $\triangle A X Z^{\prime}$ are also similar, implying $\frac{A D}{A X}=\frac{D Y^{\prime}}{X Z^{\prime}}$. Analogously, $\frac{B C}{B X}=\frac{C Y^{\prime}}{X Z^{\prime}}$. It follows from $\frac{A D}{A X}=\frac{B C}{B X}$ that $C Y^{\prime}=D Y^{\prime}$, which means that $Y^{\prime}$ lies on the perpendicular bisector of $C D$. Hence $Y^{\prime} \equiv Y$. Now $\angle A Y B=2 \angle A Y Z^{\prime}=2 \angle A D X$, as desired. 26. The problem can be reformulated in the following way: Given a set $S$ of ten points in the plane such that the distances between them are all distinct, for each point $P \in S$ we mark the point $Q \in S \backslash\{P\}$ nearest to $P$. Find the least possible number of marked points. Observe that each point $A \in S$ is the nearest to at most five other points. Indeed, for any six points $P_{1}, \ldots, P_{6}$ one of the angles $P_{i} A P_{j}$ is at most $60^{\circ}$, in which case $P_{i} P_{j}$ is smaller than one of the distances $A P_{i}, A P_{j}$. It follows that at least two points are marked. Now suppose that exactly two points, say $A$ and $B$, are marked. Then $A B$ is the minimal distance of the points from $S$, so by the previous observation the rest of the set $S$ splits into two subsets of four points according to whether the nearest point is $A$ or $B$. Let these subsets be $\left\{A_{1}, A_{2}, A_{3}, A_{4}\right\}$ and $\left\{B_{1}, B_{2}, B_{3}, B_{4}\right\}$ respectively. Assume that the points are labelled so that the angles $A_{i} A A_{i+1}$ are successively adjacent as well as the angles $B_{i} B B_{i+1}$, and that $A_{1}, B_{1}$ lie on one side of $A B$, and $A_{4}, B_{4}$ lie on the other side. Since all the angles $A_{i} A A_{i+1}$ and $B_{i} B B_{i+1}$ are greater than $60^{\circ}$, it follows that $$ \angle A_{1} A B+\angle B A A_{4}+\angle B_{1} B A+\angle A B B_{4}<360^{\circ} . $$ Therefore $\angle A_{1} A B+\angle B_{1} B A<180^{\circ}$ or $\angle A_{4} A B+\angle B_{4} B A<180^{\circ}$. Without loss of generality, let us assume the first inequality. On the other hand, note that the quadrilateral $A B B_{1} A_{1}$ is convex because $A_{1}$ and $B_{1}$ are on different sides of the perpendicular bisector of $A B$. From $A_{1} B_{1}>A_{1} A$ and $B B_{1}>A B$ we obtain $\angle A_{1} A B_{1}>\angle A_{1} B_{1} A$ and $\angle B A B_{1}>\angle A B_{1} B$. Adding these relations yields $\angle A_{1} A B>\angle A_{1} B_{1} B$. Similarly, $\angle B_{1} B A>\angle B_{1} A_{1} A$. Adding these two inequalities, we get $$ 180^{\circ}>\angle A_{1} A B+\angle B_{1} B A>\angle A_{1} B_{1} B+\angle B_{1} A_{1} A $$ hence the sum of the angles of the quadrilateral $A B B_{1} A_{1}$ is less than $360^{\circ}$, which is a contradiction. Thus at least 3 points are marked. An example of a configuration in which exactly 3 gangsters are killed is shown below. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-682.jpg?height=250&width=441&top_left_y=1700&top_left_x=579) 27. Denote by $\alpha_{1}, \alpha_{2}, \alpha_{3}$ the angles of $\triangle A_{1} A_{2} A_{3}$ at vertices $A_{1}, A_{2}, A_{3}$ respectively. Let $T_{1}, T_{2}, T_{3}$ be the points symmetric to $L_{1}, L_{2}, L_{3}$ with respect to $A_{1} I, A_{2} I$, and $A_{3} I$ respectively. We claim that $T_{1} T_{2} T_{3}$ is the desired triangle. Denote by $S_{1}$ and $R_{1}$ the points symmetric to $K_{1}$ and $K_{3}$ with respect to $L_{1} L_{3}$. It is enough to show that $T_{1}$ and $T_{3}$ lie on the line $R_{1} S_{1}$. To prove this, we shall prove that $\angle K_{1} S_{1} T_{1}=\angle K^{\prime} K_{1} S_{1}$ for a point $K^{\prime}$ on the line $K_{1} K_{3}$ such that $K_{3}$ and $K^{\prime}$ lie on different sides of $K_{1}$. We show first that $S_{1} \in A_{1} I$. Let $X$ be the point of intersection of lines $A_{1} I$ and $L_{1} L_{3}$. We see from the triangle $A_{1} L_{3} X$ that $\angle L_{1} X I=$ $\alpha_{3} / 2=\angle L_{1} A_{3} I$, which implies that ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-683.jpg?height=489&width=559&top_left_y=289&top_left_x=805) $L_{1} X A_{3} I$ is cyclic. We now have $\angle A_{1} X A_{3}=90^{\circ}=\angle A_{1} K_{1} A_{3}$; hence $A_{1} K_{1} X A_{3}$ is also cyclic. It follows that $\angle K_{1} X I=\angle K_{1} A_{3} A_{1}=\alpha_{3}=2 \angle L_{1} X I$; hence $X_{1} L_{1}$ bisects the angle $K_{1} X_{1} I$. Hence $S_{1} \in X I$ as claimed. Now we have $\angle K_{1} S_{1} T_{1}=\angle K_{1} S_{1} L_{1}+2 \angle L_{1} S_{1} X=\angle S_{1} K_{1} L_{1}+2 \angle L_{1} K_{1} X$. It remains to prove that $K_{1} X$ bisects $\angle A_{3} K_{1} K^{\prime}$. From the cyclic quadrilateral $A_{1} K_{1} X A_{3}$ we see that $\angle X K_{1} A_{3}=\alpha_{1} / 2$. Since $A_{1} K_{3} K_{1} A_{3}$ is cyclic, we also have $\angle K^{\prime} K_{1} A_{3}=\alpha_{1}=2 \angle X K_{1} A_{3}$, which proves the claim. ### 4.42 Solutions to the Shortlisted Problems of IMO 2001 1. First, let us show that such a function is at most unique. Suppose that $f_{1}$ and $f_{2}$ are two such functions, and consider $g=f_{1}-f_{2}$. Then $g$ is zero on the boundary and satisfies $$ g(p, q, r)=\frac{1}{6}[g(p+1, q-1, r)+\cdots+g(p, q-1, r+1)] $$ i.e., $g(p, q, r)$ is equal to the average of the values of $g$ at six points $(p+$ $1, q-1, r), \ldots$ that lie in the plane $\pi$ given by $x+y+z=p+q+r$. Suppose that $(p, q, r)$ is the point at which $g$ attains its maximum in absolute value on $\pi \cap T$. The averaging property of $g$ implies that the values of $g$ at $(p+1, q-1, r)$ etc. are all equal to $g(p, q, r)$. Repeating this argument we obtain that $g$ is constant on the whole of $\pi \cap T$, and hence it equals 0 everywhere. Therefore $f_{1} \equiv f_{2}$. It remains to guess $f$. It is natural to try $\bar{f}(p, q, r)=p q r$ first: it satisfies $\bar{f}(p, q, r)=\frac{1}{6}[\bar{f}(p+1, q-1, r)+\cdots+\bar{f}(p, q-1, r+1)]+\frac{p+q+r}{3}$. Thus we simply take $$ f(p, q, r)=\frac{3}{p+q+r} \bar{f}(p, q, r)=\frac{3 p q r}{p+q+r} $$ and directly check that it satisfies the required property. Hence this is the unique solution. 2. It follows from Bernoulli's inequality that for each $n \in \mathbb{N},\left(1+\frac{1}{n}\right)^{n} \geq 2$, or $\sqrt[n]{2} \leq 1+\frac{1}{n}$. Consequently, it will be enough to show that $1+a_{n}>$ $\left(1+\frac{1}{n}\right) a_{n-1}$. Assume the opposite. Then there exists $N$ such that for each $n \geq N$, $$ 1+a_{n} \leq\left(1+\frac{1}{n}\right) a_{n-1}, \quad \text { i.e., } \quad \frac{1}{n+1}+\frac{a_{n}}{n+1} \leq \frac{a_{n-1}}{n} $$ Summing for $n=N, \ldots, m$ yields $\frac{a_{m}}{m+1} \leq \frac{a_{N-1}}{N}-\left(\frac{1}{N+1}+\cdots+\frac{1}{m+1}\right)$. However, it is well known that the sum $\frac{1}{N+1}+\cdots+\frac{1}{m+1}$ can be arbitrarily large for $m$ large enough, so that $\frac{a_{m}^{N+1}}{m+1}$ is eventually negative. This contradiction yields the result. Second solution. Suppose that $1+a_{n} \leq \sqrt[n]{2} a_{n-1}$ for all $n \geq N$. Set $b_{n}=2^{-(1+1 / 2+\cdots+1 / n)}$ and multiply both sides of the above inequality to obtain $b_{n}+b_{n} a_{n} \leq b_{n-1} a_{n-1}$. Thus $$ b_{N} a_{N}>b_{N} a_{N}-b_{n} a_{n} \geq b_{N}+b_{N+1}+\cdots+b_{n} $$ However, it can be shown that $\sum_{n>N} b_{N}$ diverges: in fact, since $1+\frac{1}{2}+$ $\cdots+\frac{1}{n}<1+\ln n$, we have $b_{n}>2^{-1-\ln n}=\frac{1}{2} n^{-\ln 2}>\frac{1}{2 n}$, and we already know that $\sum_{n>N} \frac{1}{2 n}$ diverges. Remark. As can be seen from both solutions, the value 2 in the problem can be increased to $e$. 3. By the arithmetic-quadratic mean inequality, it suffices to prove that $$ \frac{x_{1}^{2}}{\left(1+x_{1}^{2}\right)^{2}}+\frac{x_{2}^{2}}{\left(1+x_{1}^{2}+x_{2}^{2}\right)^{2}}+\cdots+\frac{x_{n}^{2}}{\left(1+x_{1}^{2}+\cdots+x_{n}^{2}\right)^{2}}<1 . $$ Observe that for $k \geq 2$ the following holds: $$ \begin{aligned} \frac{x_{k}^{2}}{\left(1+x_{1}^{2}+\cdots+x_{k}^{2}\right)^{2}} & \leq \frac{x_{k}^{2}}{\left(1+\cdots+x_{k-1}^{2}\right)\left(1+\cdots+x_{k}^{2}\right)} \\ & =\frac{1}{1+x_{1}^{2}+\cdots+x_{k-1}^{2}}-\frac{1}{1+x_{1}^{2}+\cdots+x_{k}^{2}} \end{aligned} $$ For $k=1$ we have $\frac{x_{1}^{2}}{\left(1+x_{1}\right)^{2}} \leq 1-\frac{1}{1+x_{1}^{2}}$. Summing these inequalities, we obtain $$ \frac{x_{1}^{2}}{\left(1+x_{1}^{2}\right)^{2}}+\cdots+\frac{x_{n}^{2}}{\left(1+x_{1}^{2}+\cdots+x_{n}^{2}\right)^{2}} \leq 1-\frac{1}{1+x_{1}^{2}+\cdots+x_{n}^{2}}<1 $$ Second solution. Let $a_{n}(k)=\sup \left(\frac{x_{1}}{k^{2}+x_{1}^{2}}+\cdots+\frac{x_{n}}{k^{2}+x_{1}^{2}+\cdots+x_{n}^{2}}\right)$ and $a_{n}=$ $a_{n}(1)$. We must show that $a_{n}<\sqrt{n}$. Replacing $x_{i}$ by $k x_{i}$ shows that $a_{n}(k)=a_{n} / k$. Hence $$ a_{n}=\sup _{x_{1}}\left(\frac{x_{1}}{1+x_{1}^{2}}+\frac{a_{n-1}}{\sqrt{1+x_{1}^{2}}}\right)=\sup _{\theta}\left(\sin \theta \cos \theta+a_{n-1} \cos \theta\right), $$ where $\tan \theta=x_{1}$. The above supremum can be computed explicitly: $$ a_{n}=\frac{1}{8 \sqrt{2}}\left(3 a_{n-1}+\sqrt{a_{n-1}^{2}+8}\right) \sqrt{4-a_{n-1}^{2}+a_{n-1} \sqrt{a_{n-1}^{2}+8}} . $$ However, the required inequality is weaker and can be proved more easily: if $a_{n-1}<\sqrt{n-1}$, then by (1) $a_{n}<\sin \theta+\sqrt{n-1} \cos \theta=\sqrt{n} \sin (\theta+\alpha) \leq$ $\sqrt{n}$, for $\alpha \in(0, \pi / 2)$ with $\tan \alpha=\sqrt{n}$. 4. Let $(*)$ denote the given functional equation. Substituting $y=1$ we get $f(x)^{2}=x f(x) f(1)$. If $f(1)=0$, then $f(x)=0$ for all $x$, which is the trivial solution. Suppose $f(1)=C \neq 0$. Let $G=\{y \in \mathbb{R} \mid f(y) \neq 0\}$. Then $$ f(x)=\left\{\begin{array}{cl} C x & \text { if } x \in G \\ 0 & \text { otherwise } \end{array}\right. $$ We must determine the structure of $G$ so that the function defined by (1) satisfies (*). (1) Clearly $1 \in G$, because $f(1) \neq 0$. (2) If $x \in G, y \notin G$, then by $(*)$ it holds $f(x y) f(x)=0$, so $x y \notin G$. (3) If $x, y \in G$, then $x / y \in G$ (otherwise by $2^{\circ}, y(x / y)=x \notin G$ ). (4) If $x, y \in G$, then by $2^{\circ}$ we have $x^{-1} \in G$, so $x y=y / x^{-1} \in G$. Hence $G$ is a set that contains 1 , does not contain 0 , and is closed under multiplication and division. Conversely, it is easy to verify that every such $G$ in (1) gives a function satisfying (*). 5. Let $a_{1}, a_{2}, \ldots, a_{n}$ satisfy the conditions of the problem. Then $a_{k}>a_{k-1}$, and hence $a_{k} \geq 2$ for $k=1, \ldots, n$. The inequality $\left(a_{k+1}-1\right) a_{k-1} \geq$ $a_{k}^{2}\left(a_{k}-1\right)$ can be rewritten as $$ \frac{a_{k-1}}{a_{k}}+\frac{a_{k}}{a_{k+1}-1} \leq \frac{a_{k-1}}{a_{k}-1} . $$ Summing these inequalities for $k=i+1, \ldots, n-1$ and using the obvious inequality $\frac{a_{n-1}}{a_{n}}<\frac{a_{n-1}}{a_{n}-1}$, we obtain $\frac{a_{i}}{a_{i+1}}+\cdots+\frac{a_{n-1}}{a_{n}}<\frac{a_{i}}{a_{i+1}-1}$. Therefore $$ \frac{a_{i}}{a_{i+1}} \leq \frac{99}{100}-\frac{a_{0}}{a_{1}}-\cdots-\frac{a_{i-1}}{a_{i}}<\frac{a_{i}}{a_{i+1}-1} \quad \text { for } i=1,2, \ldots, n-1 $$ Consequently, given $a_{0}, a_{1}, \ldots, a_{i}$, there is at most one possibility for $a_{i+1}$. In our case, (1) yields $a_{1}=2, a_{2}=5, a_{3}=56, a_{4}=280^{2}=78400$. These values satisfy the conditions of the problem, so that this is a unique solution. 6. We shall determine a constant $k>0$ such that $$ \frac{a}{\sqrt{a^{2}+8 b c}} \geq \frac{a^{k}}{a^{k}+b^{k}+c^{k}} \quad \text { for all } a, b, c>0 $$ This inequality is equivalent to $\left(a^{k}+b^{k}+c^{k}\right)^{2} \geq a^{2 k-2}\left(a^{2}+8 b c\right)$, which further reduces to $$ \left(a^{k}+b^{k}+c^{k}\right)^{2}-a^{2 k} \geq 8 a^{2 k-2} b c $$ On the other hand, the AM-GM inequality yields $$ \left(a^{k}+b^{k}+c^{k}\right)^{2}-a^{2 k}=\left(b^{k}+c^{k}\right)\left(2 a^{k}+b^{k}+c^{k}\right) \geq 8 a^{k / 2} b^{3 k / 4} c^{3 k / 4} $$ and therefore $k=4 / 3$ is a good choice. Now we have $$ \begin{aligned} & \frac{a}{\sqrt{a^{2}+8 b c}}+\frac{b}{\sqrt{b^{2}+8 c a}}+\frac{c}{\sqrt{c^{2}+8 a b}} \\ & \geq \frac{a^{4 / 3}}{a^{4 / 3}+b^{4 / 3}+c^{4 / 3}}+\frac{b^{4 / 3}}{a^{4 / 3}+b^{4 / 3}+c^{4 / 3}}+\frac{c^{4 / 3}}{a^{4 / 3}+b^{4 / 3}+c^{4 / 3}}=1 \end{aligned} $$ Second solution. The numbers $x=\frac{a}{\sqrt{a^{2}+8 b c}}, y=\frac{b}{\sqrt{b^{2}+8 c a}}$ and $z=\frac{c}{\sqrt{c^{2}+8 a b}}$ satisfy $$ f(x, y, z)=\left(\frac{1}{x^{2}}-1\right)\left(\frac{1}{y^{2}}-1\right)\left(\frac{1}{z^{2}}-1\right)=8^{3} . $$ Our task is to prove $x+y+z \geq 1$. Since $f$ is decreasing on each of the variables $x, y, z$, this is the same as proving that $x, y, z>0, x+y+z=1$ implies $f(x, y, z) \geq 8^{3}$. However, since $\frac{1}{x^{2}}-1=\frac{(x+y+z)^{2}-x^{2}}{x^{2}}=\frac{(2 x+y+z)(y+z)}{x^{2}}$, the inequality $f(x, y, z) \geq 8^{3}$ becomes $$ \frac{(2 x+y+z)(x+2 y+z)(x+y+2 z)(y+z)(z+x)(x+y)}{x^{2} y^{2} z^{2}} \geq 8^{3} $$ which follows immediately by the AM-GM inequality. Third solution. We shall prove a more general fact: the inequality $\frac{a}{\sqrt{a^{2}+k b c}}+\frac{b}{\sqrt{b^{2}+k c a}}+\frac{c}{\sqrt{c^{2}+k a b}} \geq \frac{3}{\sqrt{1+k}}$ is true for all $a, b, c>0$ if and only if $k \geq 8$. Firstly suppose that $k \geq 8$. Setting $x=b c / a^{2}, y=c a / b^{2}, z=a b / c^{2}$, we reduce the desired inequality to $$ F(x, y, z)=f(x)+f(y)+f(z) \geq \frac{3}{\sqrt{1+k}}, \quad \text { where } f(t)=\frac{1}{\sqrt{1+k t}} $$ for $x, y, z>0$ such that $x y z=1$. We shall prove (2) using the method of Lagrange multipliers. The boundary of the set $D=\left\{(x, y, z) \in \mathbb{R}_{+}^{3} \mid x y z=1\right\}$ consists of points $(x, y, z)$ with one of $x, y, z$ being 0 and another one being $+\infty$. If w.l.o.g. $x=0$, then $F(x, y, z) \geq f(x)=1 \geq 3 / \sqrt{1+k}$. Suppose now that $(x, y, z)$ is a point of local minimum of $F$ on $D$. There exists $\lambda \in \mathbb{R}$ such that $(x, y, z)$ is stationary point of the function $F(x, y, z)+\lambda x y z$. Then $(x, y, z, \lambda)$ is a solution to the system $f^{\prime}(x)+\lambda y z=$ $f^{\prime}(y)+\lambda x z=f^{\prime}(z)+\lambda x y=0, x y z=1$. Eliminating $\lambda$ gives us $$ x f^{\prime}(x)=y f^{\prime}(y)=z f^{\prime}(z), \quad x y z=1 $$ The function $t f^{\prime}(t)=\frac{-k t}{2(1+k t)^{3 / 2}}$ decreases on the interval $(0,2 / k]$ and increases on $[2 / k,+\infty)$ because $\left(t f^{\prime}(t)\right)^{\prime}=\frac{k(k t-2)}{4(1+k t)^{5 / 2}}$. It follows that two of the numbers $x, y, z$ are equal. If $x=y=z$, then $(1,1,1)$ is the only solution to (3). Suppose that $x=y \neq z$. Since $\left(y f^{\prime}(y)\right)^{2}-\left(z f^{\prime}(z)\right)^{2}=$ $\frac{k^{2}(z-y)\left(k^{3} y^{2} z^{2}-3 k y z-y-z\right)}{4(1+k y)^{3}(1+k z)^{3}},(3)$ gives us $y^{2} z=1$ and $k^{3} y^{2} z^{2}-3 k y z-y-z=$ 0 . Eliminating $z$ we obtain an equation in $y, k^{3} / y^{2}-3 k / y-y-1 / y^{2}=0$, whose only real solution is $y=k-1$. Thus $\left(k-1, k-1,1 /(k-1)^{2}\right)$ and the cyclic permutations are the only solutions to (3) with $x, y, z$ being not all equal. Since $F\left(k-1, k-1,1 /(k-1)^{2}\right)=(k+1) / \sqrt{k^{2}-k+1}>$ $F(1,1,1)=1$, the inequality (2) follows. For $0\frac{a}{\sqrt{a^{2}+8 b c}}+$ $\frac{b}{\sqrt{b^{2}+8 c a}}+\frac{c}{\sqrt{c^{2}+8 a b}} \geq 1$. If we fix $c$ and let $a, b$ tend to 0 , the first two summands will tend to 0 while the third will tend to 1 . Hence the inequality cannot be improved. 7. It is evident that arranging of $A$ in increasing order does not diminish $m$. Thus we can assume that $A$ is nondecreasing. Assume w.l.o.g. that $a_{1}=1$, and let $b_{i}$ be the number of elements of $A$ that are equal to $i$ $\left(1 \leq i \leq n=a_{2001}\right)$. Then we have $b_{1}+b_{2}+\cdots+b_{n}=2001$ and $$ m=b_{1} b_{2} b_{3}+b_{2} b_{3} b_{4}+\cdots+b_{n-2} b_{n-1} b_{n} $$ Now if $b_{i}, b_{j}(i0$. Let $m$ be the number of positive terms among $x_{1}, \ldots, x_{n}$. Since $x_{i}$ counts the terms equal to $i$, the sum $x_{1}+\cdots+x_{n}$ counts the total number of positive terms in the sequence, which is known to be $m+1$. Therefore among $x_{1}, \ldots, x_{n}$ exactly $m-1$ terms are equal to 1 , one is equal to 2 , and the others are 0 . Only $x_{0}$ can exceed 2 , and consequently at most one of $x_{3}, x_{4}, \ldots$ can be positive. It follows that $m \leq 3$. (i) $m=1$ : Then $x_{2}=2$ (since $x_{1}=2$ is impossible), so $x_{0}=2$. The resulting sequence is $(2,0,2,0)$. (ii) $m=2$ : Either $x_{1}=2$ or $x_{2}=2$. These cases yield $(1,2,1,0)$ and $(2,1,2,0,0)$ respectively. (iii) $m=3$ : This means that $x_{k}>0$ for some $k>2$. Hence $x_{0}=k$ and $x_{k}=1$. Further, $x_{1}=1$ is impossible, so $x_{1}=2$ and $x_{2}=1$; there are no more positive terms in the sequence. The resulting sequence is $(p, 2,1, \underbrace{0, \ldots, 0}_{p-3}, 1,0,0,0)$. 12. For each balanced sequence $a=\left(a_{1}, a_{2}, \ldots, a_{2 n}\right)$ denote by $f(a)$ the sum of $j$ 's for which $a_{j}=1$ (for example, $f(100101)=1+4+6=11$ ). Partition the $\binom{2 n}{n}$ balanced sequences into $n+1$ classes according to the residue of $f$ modulo $n+1$. Now take $S$ to be a class of minimum size: obviously $|S| \leq \frac{1}{n+1}\binom{2 n}{n}$. We claim that every balanced sequence $a$ is either a member of $S$ or a neighbor of a member of $S$. We consider two cases. (i) Let $a_{1}$ be 1 . It is easy to see that moving this 1 just to the right of the $k$ th 0 , we obtain a neighboring balanced sequence $b$ with $f(b)=$ $f(a)+k$. Thus if $a \notin S$, taking a suitable $k \in\{1,2, \ldots, n\}$ we can achieve that $b \in S$. (ii) Let $a_{1}$ be 0 . Taking this 0 just to the right of the $k$ th 1 gives a neighbor $b$ with $f(b)=f(a)-k$, and the conclusion is similar to that of (i). This justifies our claim. 13. At any moment, let $p_{i}$ be the number of pebbles in the $i$ th column, $i=$ $1,2, \ldots$ The final configuration has obvious properties $p_{1} \geq p_{2} \geq \cdots$ and $p_{i+1} \in\left\{p_{i}, p_{i}-1\right\}$. We claim that $p_{i+1}=p_{i}>0$ is possible for at most one $i$. Assume the opposite. Then the final configuration has the property that for some $r$ and $s>r$ we have $p_{r+1}=p_{r}, p_{s+1}=p_{s}>0$ and $p_{r+k}=$ $p_{r+1}-k+1$ for all $k=1, \ldots, s-r$. Consider the earliest configuration, say $C$, with this property. What was the last move before $C$ ? The only possibilities are moving a pebble either from the $r$ th or from the $s$ th column; however, in both cases the configuration preceding this last move had the same property, contradicting the assumption that $C$ is the earliest. Therefore the final configuration looks as follows: $p_{1}=a \in \mathbb{N}$, and for some $r, p_{i}$ equals $a-(i-1)$ if $i \leq r$, and $a-(i-2)$ otherwise. It is easy to determine $a, r$ : since $n=p_{1}+p_{2}+\cdots=\frac{(a+1)(a+2)}{2}-r$, we get $\frac{a(a+1)}{2} \leq n<\frac{(a+1)(a+2)}{2}$, from which we uniquely find $a$ and then $r$ as well. The final configuration for $n=13$ : ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-690.jpg?height=162&width=155&top_left_y=922&top_left_x=1027) 14. We say that a problem is difficult for boys if at most two boys solved it, and difficult for girls if at most two girls solved it. Let us estimate the number of pairs boy-girl both of whom solved some problem difficult for boys. Consider any girl. By the condition (ii), among the six problems she solved, at least one was solved by at least 3 boys, and hence at most 5 were difficult for boys. Since each of these problems was solved by at most 2 boys and there are 21 girls, the considered number of pairs does not exceed $5 \cdot 2 \cdot 21=210$. Similarly, there are at most 210 pairs boy-girl both of whom solved some problem difficult for girls. On the other hand, there are $21^{2}>2 \cdot 210$ pairs boy-girl, and each of them solved one problem in common. Thus some problems were difficult neither for girls nor for boys, as claimed. Remark. The statement can be generalized: if $2(m-1)(n-1)+1$ boys and as many girls participated, and nobody solved more than $m$ problems, then some problem was solved by at least $n$ boys and $n$ girls. 15. Let $M N P Q$ be the square inscribed in $\triangle A B C$ with $M \in A B, N \in A C$, $P, Q \in B C$, and let $A A_{1}$ meet $M N, P Q$ at $K, X$ respectively. Put $M K=$ $P X=m, N K=Q X=n$, and $M N=d$. Then $$ \frac{B X}{X C}=\frac{m}{n}=\frac{B X+m}{X C+n}=\frac{B P}{C Q}=\frac{d \cot \beta+d}{d \cot \gamma+d}=\frac{\cot \beta+1}{\cot \gamma+1} . $$ Similarly, if $B B_{1}$ and $C C_{1}$ meet $A C$ and $B C$ at $Y, Z$ respectively then $\frac{C Y}{Y A}=\frac{\cot \gamma+1}{\cot \alpha+1}$ and $\frac{A Z}{Z B}=\frac{\cot \alpha+1}{\cot \beta+1}$. Therefore $\frac{B X}{X C} \frac{C Y}{Y A} \frac{A Z}{Z B}=1$, so by Ceva's theorem, $A X, B Y, C Z$ have a common point. Second solution. Let $A_{2}$ be the center of the square constructed over $B C$ outside $\triangle A B C$. Since this square and the inscribed square corresponding to the side $B C$ are homothetic, $A, A_{1}$, and $A_{2}$ are collinear. Points $B_{2}, C_{2}$ are analogously defined. Denote the angles $B A A_{2}, A_{2} A C, C B B_{2}$, $B_{2} B A, A C C_{2}, C_{2} C B$ by $\alpha_{1}, \alpha_{2}, \beta_{1}, \beta_{2}, \gamma_{1}, \gamma_{2}$. By the law of sines we have $$ \frac{\sin \alpha_{1}}{\sin \alpha_{2}}=\frac{\sin \left(\beta+45^{\circ}\right)}{\sin \left(\gamma+45^{\circ}\right)}, \frac{\sin \beta_{1}}{\sin \beta_{2}}=\frac{\sin \left(\gamma+45^{\circ}\right)}{\sin \left(\alpha+45^{\circ}\right)}, \frac{\sin \gamma_{1}}{\sin \gamma_{2}}=\frac{\sin \left(\alpha+45^{\circ}\right)}{\sin \left(\beta+45^{\circ}\right)} $$ Since the product of these ratios is 1 , by the trigonometric Ceva's theorem $A A_{2}, B B_{2}, C C_{2}$ are concurrent. 16. Since $\angle O C P=90^{\circ}-\angle A$, we are led to showing that $\angle O C P>\angle C O P$, i.e., $O P>C P$. By the triangle inequality it suffices to prove $C P<\frac{1}{2} C O$. Let $C O=R$. The law of sines yields $C P=A C \cos \gamma=2 R \sin \beta \cos \gamma<$ $2 R \sin \beta \cos \left(\beta+30^{\circ}\right)$. Finally, we have $$ 2 \sin \beta \cos \left(\beta+30^{\circ}\right)=\sin \left(2 \beta+30^{\circ}\right)-\sin 30^{\circ} \leq \frac{1}{2} $$ which completes the proof. 17. Let us investigate a more general problem, in which $G$ is any point of the plane such that $A G, B G, C G$ are sides of a triangle. Let $F$ be the point in the plane such that $B C: C F: F B=A G: B G: C G$ and $F, A$ lie on different sides of $B C$. Then by Ptolemy's inequality, on $B P C F$ we have $A G \cdot A P+B G \cdot B P+C G \cdot C P=A G \cdot A P+\frac{A G}{B C}(C F$. $B P+B F \cdot C P) \geq A G \cdot A P+\frac{A G}{B C} B C \cdot P F$. Hence $$ A G \cdot A P+B G \cdot B P+C G \cdot C P \geq A G \cdot A F $$ where equality holds if and only if $P$ lies on the segment $A F$ and on the circle $B C F$. Now we return to the case of $G$ the centroid of $\triangle A B C$. We claim that $F$ is then the point $\widehat{G}$ in which the line $A G$ meets again the circumcircle of $\triangle B G C$. Indeed, if $M$ is the midpoint of $A B$, by the law of sines we have $\frac{B C}{C \widehat{G}}=$ $\frac{\sin \angle B \widehat{G} C}{\sin \angle C B \widehat{G}}=\frac{\sin \angle B G M}{\sin \angle A G M}=\frac{A G}{B G}$, and similarly $\frac{B C}{B \widehat{G}}=\frac{A G}{C G}$. Thus (1) implies ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-691.jpg?height=342&width=507&top_left_y=1514&top_left_x=831) $$ A G \cdot A P+B G \cdot B P+C G \cdot C P \geq A G \cdot A \widehat{G} $$ It is easily seen from the above considerations that equality holds if and only if $P \equiv G$, and then the (minimum) value of $A G \cdot A P+B G \cdot B P+$ $C G \cdot C P$ equals $$ A G^{2}+B G^{2}+C G^{2}=\frac{a^{2}+b^{2}+c^{2}}{3} $$ Second solution. Notice that $A G \cdot A P \geq \overrightarrow{A G} \cdot \overrightarrow{A P}=\overrightarrow{A G} \cdot(\overrightarrow{A G}+\overrightarrow{P G})$. Summing this inequality with analogous inequalities for $B G \cdot B P$ and $C G \cdot C P$ gives us $A G \cdot A P+B G \cdot B P+C G \cdot C P \geq A G^{2}+B G^{2}+C G^{2}+$ $(\overrightarrow{A G}+\overrightarrow{B G}+\overrightarrow{C G}) \cdot \overrightarrow{P G}=A G^{2}+B G^{2}+C G^{2}=\frac{a^{2}+b^{2}+c^{2}}{3}$. Equality holds if and only if $P \equiv Q$. 18. Let $\alpha_{1}, \beta_{1}, \gamma_{1}, \alpha_{2}, \beta_{2}, \gamma_{2}$ denote the angles $\angle M A B, \angle M B C, \angle M C A$, $\angle M A C, \angle M B A, \angle M C B$ respectively. Then $\frac{M B^{\prime} \cdot M C^{\prime}}{M A^{2}}=\sin \alpha_{1} \sin \alpha_{2}$, $\frac{M C^{\prime} \cdot M A^{\prime}}{M B^{2}}=\sin \beta_{1} \sin \beta_{2}, \frac{M A^{\prime} \cdot M B^{\prime}}{M C^{2}}=\sin \gamma_{1} \sin \gamma_{2}$; hence $$ p(M)^{2}=\sin \alpha_{1} \sin \alpha_{2} \sin \beta_{1} \sin \beta_{2} \sin \gamma_{1} \sin \gamma_{2} $$ Since $$ \sin \alpha_{1} \sin \alpha_{2}=\frac{1}{2}\left(\cos \left(\alpha_{1}-\alpha_{2}\right)-\cos \left(\alpha_{1}+\alpha_{2}\right) \leq \frac{1}{2}(1-\cos \alpha)=\sin ^{2} \frac{\alpha}{2}\right. $$ we conclude that $$ p(M) \leq \sin \frac{\alpha}{2} \sin \frac{\beta}{2} \sin \frac{\gamma}{2} $$ Equality occurs when $\alpha_{1}=\alpha_{2}, \beta_{1}=\beta_{2}$, and $\gamma_{1}=\gamma_{2}$, that is, when $M$ is the incenter of $\triangle A B C$. It is well known that $\mu(A B C)=\sin \frac{\alpha}{2} \sin \frac{\beta}{2} \sin \frac{\gamma}{2}$ is maximal when $\triangle A B C$ is equilateral (it follows, for example, from Jensen's inequality applied to $\ln \sin x)$. Hence $\max \mu(A B C)=\frac{1}{8}$. 19. It is easy to see that the hexagon $A E B F C D$ is convex and $\angle A E B+$ $\angle B F C+\angle C D A=360^{\circ}$. Using this relation we obtain that the circles $\omega_{1}, \omega_{2}, \omega_{3}$ with centers at $D, E, F$ and radii $D A, E B, F C$ respectively all pass through a common point $O$. Indeed, if $\omega_{1} \cap \omega_{2}=\{O\}$, then $\angle A O B=180^{\circ}-\angle A E B / 2$ and $\angle B O C=180^{\circ}-\angle B F C / 2$; hence $\angle C O A=180^{\circ}-\angle C D A / 2$ as well, i.e., $O \in \omega_{3}$. The point $O$ is the re- ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-692.jpg?height=491&width=419&top_left_y=1318&top_left_x=870) flection of $A$ with respect to $D E$. Similarly, it is also the reflection of $B$ with respect to $E F$, and that of $C$ with respect to $F D$. Hence $$ \frac{D B}{D D^{\prime}}=1+\frac{D^{\prime} B}{D D^{\prime}}=1+\frac{S_{E B F}}{S_{E D F}}=1+\frac{S_{O E F}}{S_{D E F}} $$ Analogously $\frac{E C}{E E^{\prime}}=1+\frac{S_{O D F}}{S_{D E F}}$ and $\frac{F A}{F F^{\prime}}=1+\frac{S_{O D E}}{S_{D E F}}$. Adding these relations gives us $$ \frac{D B}{D D^{\prime}}+\frac{E C}{E E^{\prime}}+\frac{F A}{F F^{\prime}}=3+\frac{S_{O E F}+S_{O D F}+S_{O D E}}{S_{D E F}}=4 . $$ 20. By Ceva's theorem, we can choose real numbers $x, y, z$ such that $$ \frac{\overrightarrow{B D}}{\overrightarrow{D C}}=\frac{z}{y}, \frac{\overrightarrow{C E}}{\overrightarrow{E A}}=\frac{x}{z}, \text { and } \frac{\overrightarrow{A F}}{\overrightarrow{F B}}=\frac{y}{x} $$ The point $P$ lies outside the triangle $A B C$ if and only if $x, y, z$ are not all of the same sign. In what follows, $S_{X}$ will denote the signed area of a figure $X$. Let us assume that the area $S_{A B C}$ of $\triangle A B C$ is 1 . Since $S_{P B C}: S_{P C A}$ : $S_{P A B}=x: y: z$ and $S_{P B D}: S_{P D C}=z: y$, it follows that $S_{P B D}=\frac{z}{y+z} \frac{x}{x+y+z}$. Hence $S_{P B D}=\frac{1}{y(y+z)} \frac{x y z}{x+y+z}, S_{P C E}=\frac{1}{z(z+x)} \frac{x y z}{x+y+z}$, $S_{P A F}=\frac{1}{x(x+y)} \frac{x y z}{x+y+z}$. By the condition of the problem we have $\left|S_{P B D}\right|=$ $\left|S_{P C E}\right|=\left|S_{P A F}\right|$, or $$ |x(x+y)|=|y(y+z)|=|z(z+x)| . $$ Obviously $x, y, z$ are nonzero, so that we can put w.l.o.g. $z=1$. At least two of the numbers $x(x+y), y(y+1), 1(1+x)$ are equal, so we can assume that $x(x+y)=y(y+1)$. We distinguish two cases: (i) $x(x+y)=y(y+1)=1+x$. Then $x=y^{2}+y-1$, from which we obtain $\left(y^{2}+y-1\right)\left(y^{2}+2 y-1\right)=y(y+1)$. Simplification gives $y^{4}+3 y^{3}-y^{2}-4 y+1=0$, or $$ (y-1)\left(y^{3}+4 y^{2}+3 y-1\right)=0 $$ If $y=1$, then also $z=x=1$, so $P$ is the centroid of $\triangle A B C$, which is not an exterior point. Hence $y^{3}+4 y^{2}+3 y-1=0$. Now the signed area of each of the triangles $P B D, P C E, P A F$ equals $$ \begin{aligned} S_{P A F} & =\frac{y z}{(x+y)(x+y+z)} \\ & =\frac{y}{\left(y^{2}+2 y-1\right)\left(y^{2}+2 y\right)}=\frac{1}{y^{3}+4 y^{2}+3 y-2}=-1 . \end{aligned} $$ It is easy to check that not both of $x, y$ are positive, implying that $P$ is indeed outside $\triangle A B C$. This is the desired result. (ii) $x(x+y)=y(y+1)=-1-x$. In this case we are led to $$ f(y)=y^{4}+3 y^{3}+y^{2}-2 y+1=0 . $$ We claim that this equation has no real solutions. In fact, assume that $y_{0}$ is a real root of $f(y)$. We must have $y_{0}<0$, and hence $u=-y_{0}>0$ satisfies $3 u^{3}-u^{4}=(u+1)^{2}$. On the other hand, $$ \begin{aligned} 3 u^{3}-u^{4} & =u^{3}(3-u)=4 u\left(\frac{u}{2}\right)\left(\frac{u}{2}\right)(3-u) \\ & \leq 4 u\left(\frac{u / 2+u / 2+3-u}{3}\right)^{3}=4 u \\ & \leq(u+1)^{2} \end{aligned} $$ where at least one of the inequalities is strict, a contradiction. Remark. The official solution was incomplete, missing the case (ii). 21. We denote by $p(X Y Z)$ the perimeter of a triangle $X Y Z$. If $O$ is the circumcenter of $\triangle A B C$, then $A_{1}, B_{1}, C_{1}$ are the midpoints of the corresponding sides of the triangle, and hence $p\left(A_{1} B_{1} C_{1}\right)=$ $p\left(A B_{1} C_{1}\right)=p\left(A_{1} B C_{1}\right)=p\left(A_{1} B_{1} C\right)$. Conversely, suppose that $p\left(A_{1} B_{1} C_{1}\right) \geq p\left(A B_{1} C_{1}\right), p\left(A_{1} B C_{1}\right), p\left(A_{1} B_{1} C\right)$. Let $\alpha_{1}, \alpha_{2}, \beta_{1}, \beta_{2}, \gamma_{1}, \gamma_{2}$ denote $\angle B_{1} A_{1} C, \angle C_{1} A_{1} B, \angle C_{1} B_{1} A, \angle A_{1} B_{1} C$, $\angle A_{1} C_{1} B, \angle B_{1} C_{1} A$. Suppose that $\gamma_{1}, \beta_{2} \geq \alpha$. If $A_{2}$ is the fourth vertex of the parallelogram $B_{1} A C_{1} A_{2}$, then these conditions imply that $A_{1}$ is in the interior or on the border of $\triangle B_{1} C_{1} A_{2}$, and therefore $p\left(A_{1} B_{1} C_{1}\right) \leq p\left(A_{2} B_{1} C_{1}\right)=$ $p\left(A B_{1} C_{1}\right)$. Moreover, if one of the inequalities $\gamma_{1} \geq \alpha, \beta_{2} \geq \alpha$ is strict, ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-694.jpg?height=346&width=543&top_left_y=902&top_left_x=804) then $p\left(A_{1} B_{1} C_{1}\right)$ is strictly less than $p\left(A B_{1} C_{1}\right)$, contrary to the assumption. Hence $$ \begin{aligned} & \beta_{2} \geq \alpha \Longrightarrow \gamma_{1} \leq \alpha \\ & \gamma_{2} \geq \beta \Longrightarrow \alpha_{1} \leq \beta \\ & \alpha_{2} \geq \gamma \Longrightarrow \beta_{1} \leq \gamma \end{aligned} $$ the last two inequalities being obtained analogously to the first one. Because of the symmetry, there is no loss of generality in assuming that $\gamma_{1} \leq \alpha$. Then since $\gamma_{1}+\alpha_{2}=180^{\circ}-\beta=\alpha+\gamma$, it follows that $\alpha_{2} \geq \gamma$. From (1) we deduce $\beta_{1} \leq \gamma$, which further implies $\gamma_{2} \geq \beta$. Similarly, this leads to $\alpha_{1} \leq \beta$ and $\beta_{2} \geq \alpha$. To sum up, $$ \gamma_{1} \leq \alpha \leq \beta_{2}, \quad \alpha_{1} \leq \beta \leq \gamma_{2}, \quad \beta_{1} \leq \gamma \leq \alpha_{2} $$ Since $O A_{1} B C_{1}$ and $O B_{1} C A_{1}$ are cyclic, we have $\angle A_{1} O B=\gamma_{1}$ and $\angle A_{1} O C=\beta_{2}$. Hence $B O: C O=\cos \beta_{2}: \cos \gamma_{1}$, hence $B O \leq C O$. Analogously, $C O \leq A O$ and $A O \leq B O$. Therefore $A O=B O=C O$, i.e., $O$ is the circumcenter of $A B C$. 22. Let $S$ and $T$ respectively be the points on the extensions of $A B$ and $A Q$ over $B$ and $Q$ such that $B S=B P$ and $Q T=Q B$. It is given that $A S=$ $A B+B P=A Q+Q B=A T$. Since $\angle P A S=\angle P A T$, the triangles $A P S$ and $A P T$ are congruent, from which we deduce that $\angle A T P=\angle A S P=$ $\beta / 2=\angle Q B P$. Hence $\angle Q T P=\angle Q B P$. If $P$ does not lie on $B T$, then the last equality implies that $\triangle Q B P$ and $\triangle Q T P$ are congruent, so $P$ lies on the internal bisector of $\angle B Q T$. But $P$ also lies on the internal bisector of $\angle Q A B$; consequently, $P$ is an excenter of $\triangle Q A B$, thus lying on the internal bisector of $\angle Q B S$ as well. It follows that $\angle P B Q=\beta / 2=\angle P B S=180^{\circ}-\beta$, so $\beta=120^{\circ}$, which is impossible. Therefore $P \in B T$, which means that $T \equiv C$. Now from $Q C=Q B$ we conclude that $120^{\circ}-\beta=\gamma=\beta / 2$, i.e., $\beta=80^{\circ}$ and $\gamma=40^{\circ}$. 23. For each positive integer $x$, define $\alpha(x)=x / 10^{r}$ if $r$ is the positive integer satisfying $10^{r} \leq x<10^{r+1}$. Observe that if $\alpha(x) \alpha(y)<10$ for some $x, y \in \mathbb{N}$, then $\alpha(x y)=\alpha(x) \alpha(y)$. If, as usual, $[t]$ means the integer part of $t$, then $[\alpha(x)]$ is actually the leftmost digit of $x$. Now suppose that $n$ is a positive integer such that $k \leq \alpha((n+k)!)\alpha(n+k)$ (the opposite can hold only if $\alpha(n+k) \geq 9)$. Therefore $$ 1<\alpha(n+2)<\cdots<\alpha(n+9) \leq \frac{5}{4} . $$ On the other hand, this implies that $\alpha((n+4)!)=\alpha((n+1)!) \alpha(n+2) \alpha(n+$ 3) $\alpha(n+4)<(5 / 4)^{3} \alpha((n+1)$ ! $)<4$, contradicting the assumption that the leftmost digit of $(n+4)$ ! is 4 . 24. We shall find the general solution to the system. Squaring both sides of the first equation and subtracting twice the second equation we obtain $(x-y)^{2}=z^{2}+u^{2}$. Thus $(z, u, x-y)$ is a Pythagorean triple. Then it is well known that there are positive integers $t, a, b$ such that $z=t\left(a^{2}-b^{2}\right)$, $u=2 t a b$ (or vice versa), and $x-y=t\left(a^{2}+b^{2}\right)$. Using that $x+y=z+u$ we come to the general solution: $$ x=t\left(a^{2}+a b\right), \quad y=t\left(a b-b^{2}\right) ; \quad z=t\left(a^{2}-b^{2}\right), \quad u=2 t a b . $$ Putting $a / b=k$ we obtain $$ \frac{x}{y}=\frac{k^{2}+k}{k-1}=3+(k-1)+\frac{2}{k-1} \geq 3+2 \sqrt{2} $$ with equality for $k-1=\sqrt{2}$. On the other hand, $k$ can be arbitrarily close to $1+\sqrt{2}$, and so $x / y$ can be arbitrarily close to $3+2 \sqrt{2}$. Hence $m=3+2 \sqrt{2}$. Remark. There are several other techniques for solving the given system. The exact lower bound of $m$ itself can be obtained as follows: by the $\operatorname{system}\left(\frac{x}{y}\right)^{2}-6 \frac{x}{y}+1=\left(\frac{z-u}{y}\right)^{2} \geq 0$, so $x / y \geq 3+2 \sqrt{2}$. 25. Define $b_{n}=\left|a_{n+1}-a_{n}\right|$ for $n \geq 1$. From the equalities $a_{n+1}=b_{n-1}+b_{n-2}$, from $a_{n}=b_{n-2}+b_{n-3}$ we obtain $b_{n}=\left|b_{n-1}-b_{n-3}\right|$. From this relation we deduce that $b_{m} \leq \max \left(b_{n}, b_{n+1}, b_{n+2}\right)$ for all $m \geq n$, and consequently $b_{n}$ is bounded. Lemma. If $\max \left(b_{n}, b_{n+1}, b_{n+2}\right)=M \geq 2$, then $\max \left(b_{n+6}, b_{n+7}, b_{n+8}\right) \leq$ $M-1$. Proof. Assume the opposite. Suppose that $b_{j}=M, j \in\{n, n+1, n+2\}$, and let $b_{j+1}=x$ and $b_{j+2}=y$. Thus $b_{j+3}=M-y$. If $x, y, M-y$ are all less than $M$, then the contradiction is immediate. The remaining cases are these: (i) $x=M$. Then the sequence has the form $M, M, y, M-y, y, \ldots$, and since $\max (y, M-y, y)=M$, we must have $y=0$ or $y=M$. (ii) $y=M$. Then the sequence has the form $M, x, M, 0, x, M-x, \ldots$, and since $\max (0, x, M-x)=M$, we must have $x=0$ or $x=M$. (iii) $y=0$. Then the sequence is $M, x, 0, M, M-x, M-x, x, \ldots$, and since $\max (M-x, x, x)=M$, we have $x=0$ or $x=M$. In every case $M$ divides both $x$ and $y$. From the recurrence formula $M$ also divides $b_{i}$ for every $ib>c>d$ that $$ a b+c d>a c+b d>a d+b c $$ hence $a c+b d$ is relatively prime with $a b+c d$. But then (1) implies that $a c+b d$ divides $a d+b c$, which is impossible by (2). Remark. Alternatively, (1) could be obtained by applying the law of cosines and Ptolemy's theorem on a quadrilateral $X Y Z T$ with $X Y=a$, $Y Z=c, Z T=b, T X=d$ and $\angle Y=60^{\circ}, \angle T=120^{\circ}$. 28. Yes. The desired result is an immediate consequence of the following fact applied on $p=101$. Lemma. For any odd prime number $p$, there exist $p$ nonnegative integers less than $2 p^{2}$ with all pairwise sums mutually distinct. Proof. We claim that the numbers $a_{n}=2 n p+\left(n^{2}\right)$ have the desired property, where $(x)$ denotes the remainder of $x$ upon division by $p$. Suppose that $a_{k}+a_{l}=a_{m}+a_{n}$. By the construction of $a_{i}$, we have $2 p(k+l) \leq a_{k}+a_{l}<2 p(k+l+1)$. Hence we must have $k+l=m+n$, and therefore also $\left(k^{2}\right)+\left(l^{2}\right)=\left(m^{2}\right)+\left(n^{2}\right)$. Thus $$ k+l \equiv m+n \quad \text { and } \quad k^{2}+l^{2} \equiv m^{2}+n^{2} \quad(\bmod p) . $$ But then it holds that $(k-l)^{2}=2\left(k^{2}+l^{2}\right)-(k+l)^{2} \equiv(m-n)^{2}(\bmod$ $p)$, so $k-l \equiv \pm(m-n)$, which leads to $(k, l)=(m, n)$. This proves the lemma. ### 4.43 Solutions to the Shortlisted Problems of IMO 2002 1. Consider the given equation modulo 9 . Since each cube is congruent to either $-1,0$ or 1 , whereas $2002^{2002} \equiv 4^{2002}=4 \cdot 64^{667} \equiv 4(\bmod 9)$, we conclude that $t \geq 4$. On the other hand, $2002^{2002}=2002 \cdot\left(2002^{667}\right)^{3}=\left(10^{3}+10^{3}+1^{3}+\right.$ $\left.1^{3}\right)\left(2002^{667}\right)^{3}$ is a solution with $t=4$. Hence the answer is 4. 2. Set $S=d_{1} d_{2}+\cdots+d_{k-1} d_{k}$. Since $d_{i} / n=1 / d_{k+1-i}$, we have $\frac{S}{n^{2}}=$ $\frac{1}{d_{k} d_{k-1}}+\cdots+\frac{1}{d_{2} d_{1}}$. Hence $$ \frac{1}{d_{2} d_{1}} \leq \frac{S}{n^{2}} \leq\left(\frac{1}{d_{k-1}}-\frac{1}{d_{k}}\right)+\cdots+\left(\frac{1}{d_{1}}-\frac{1}{d_{2}}\right)=1-\frac{1}{d_{k}}<1 $$ or $\left(\right.$ since $\left.d_{1}=1\right) 1<\frac{n^{2}}{S} \leq d_{2}$. This shows that $S2^{a b}>2^{2 a} 2^{2 b}>Q^{2}$ if $a, b \geq 5$ ). Then $N$ has at least twice as many divisors as $Q$ (because for every $d \mid Q$ both $d$ and $N / d$ are divisors of $N$ ), which counts up to $4^{n}$ divisors, as required. Remark. With some knowledge of cyclotomic polynomials, one can show that $2^{p_{1} \cdots p_{n}}+1$ has at least $2^{2^{n-1}}$ divisors, far exceeding $4^{n}$. 4. For $a=b=c=1$ we obtain $m=12$. We claim that the given equation has infinitely many solutions in positive integers $a, b, c$ for this value of $m$. After multiplication by $a b c(a+b+c)$ the equation $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}+\frac{1}{a b c}-\frac{12}{a+b+c}=0$ becomes $$ a^{2}(b+c)+b^{2}(c+a)+c^{2}(a+b)+a+b+c-9 a b c=0 $$ We must show that this equation has infinitely many solutions in positive integers. Suppose that $(a, b, c)$ is one such solution with $a1$. We show that all $a_{n}$ 's are integers. This procedure is fairly standard. The above relation for $n$ and $n-1$ gives $a_{n+1} a_{n-2}=a_{n} a_{n-1}+1$ and $a_{n-1} a_{n-2}+1=a_{n} a_{n-3}$, so that adding yields $a_{n-2}\left(a_{n-1}+a_{n+1}\right)=$ $a_{n}\left(a_{n-1}+a_{n-3}\right)$. Therefore $\frac{a_{n+1}+a_{n-1}}{a_{n}}=\frac{a_{n-1}+a_{n-3}}{a_{n-2}}=\cdots$, from which it follows that $$ \frac{a_{n+1}+a_{n-1}}{a_{n}}=\left\{\begin{array}{l} \frac{a_{2}+a_{0}}{a_{1}}=2 \text { for } n \text { odd; } \\ \frac{a_{3}+a_{1}}{a_{2}}=3 \text { for } n \text { even. } \end{array}\right. $$ It is now an immediate consequence that every $a_{n}$ is integral. Also, the above consideration implies that $\left(a_{n-1}, a_{n}, a_{n+1}\right)$ is a solution of (1) for each $n \geq 1$. Since $a_{n}$ is strictly increasing, this gives an infinity of solutions in integers. Remark. There are infinitely many values of $m \in \mathbb{N}$ for which the given equation has at least one solution in integers, and each of those values admits an infinity of solutions. 5. Consider all possible sums $c_{1} a_{1}+c_{2} a_{2}+\cdots+c_{n} a_{n}$, where each $c_{i}$ is an integer with $0 \leq c_{i}$ $\alpha^{m}+\alpha-1=0$; hence $m<2 n$. Now we have $F(x) / G(x)=x^{m-n}-\left(x^{m-n+2}-x^{m-n}-x+1\right) / G(x)$, so $H(x)=x^{m-n+2}-x^{m-n}-x+1$ is also divisible by $G(x)$; but $\operatorname{deg} H(x)=$ $m-n+2 \leq n+1=\operatorname{deg} G(x)+1$, from which we deduce that either $H(x)=G(x)$ or $H(x)=(x-a) G(x)$ for some $a \in \mathbb{Z}$. The former case is impossible. In the latter case we must have $m=2 n-1$, and thus $H(x)=x^{n+1}-x^{n-1}-x+1$; on the other hand, putting $x=1$ gives $a=1$, so $H(x)=(x-1)\left(x^{n}+x^{2}-1\right)=x^{n+1}-x^{n}+x^{3}-x^{2}-x+1$. This is possible only if $n=3$ and $m=5$. Remark. It is an old (though difficult) result that the polynomial $x^{n} \pm$ $x^{k} \pm 1$ is either irreducible or equals $x^{2} \pm x+1$ times an irreducible factor. 7. To avoid working with cases, we use oriented angles modulo $180^{\circ}$. Let $K$ be the circumcenter of $\triangle B C D$, and $X$ any point on the common tangent to the circles at $D$. Since the tangents at the ends of a chord are equally inclined to the chord, we have $\angle B A C=\angle A B D+\angle B D C+\angle D C A=$ $\angle B D X+\angle B D C+\angle X D C=2 \angle B D C=\angle B K C$. It follows that $B, C, A, K$ are concyclic, as required. 8. Construct equilateral triangles $A C P$ and $A B Q$ outside the triangle $A B C$. Since $\angle A P C+\angle A F C=60^{\circ}+120^{\circ}=180^{\circ}$, the points $A, C, F, P$ lie on a circle; hence $\angle A F P=\angle A C P=60^{\circ}=\angle A F D$, so $D$ lies on the segment $F P$; similarly, $E$ lies on $F Q$. Further, note that $$ \frac{F P}{F D}=1+\frac{D P}{F D}=1+\frac{S_{A P C}}{S_{A F C}} \geq 4 $$ with equality if $F$ is the midpoint of the smaller $\operatorname{arc} A C$ : hence $F D \leq \frac{1}{4} F P$ and $F E \leq \frac{1}{4} F Q$. Then by the law of cosines, $$ \begin{aligned} D E & =\sqrt{F D^{2}+F E^{2}+F D \cdot F E} \\ & \leq \frac{1}{4} \sqrt{F P^{2}+F Q^{2}+F P \cdot F Q}=\frac{1}{4} P Q \leq A P+A Q=A B+A C . \end{aligned} $$ Equality holds if and only if $\triangle A B C$ is equilateral. 9. Since $\angle B C A=\frac{1}{2} \angle B O A=\angle B O D$, the lines $C A$ and $O D$ are parallel, so that $O D A I$ is a parallelogram. It follows that $A I=O D=O E=A E=$ $A F$. Hence $\angle I F E=\angle I F A-\angle E F A=\angle A I F-\angle E C A=\angle A I F-\angle A C F=\angle C F I$. Also, from $A E=A F$ we get that $C I$ bisects $\angle E C F$. Therefore $I$ is the incenter of $\triangle C E F$. 10. Let $O$ be the circumcenter of $A_{1} A_{2} C$, and $O_{1}, O_{2}$ the centers of $S_{1}, S_{2}$ respectively. First, from $\angle A_{1} Q A_{2}=180^{\circ}-\angle P A_{1} Q-\angle Q A_{2} P=\frac{1}{2}\left(360^{\circ}-\angle P O_{1} Q-\right.$ $\left.\angle Q O_{2} P\right)=\angle O_{1} Q O_{2}$ we obtain $\angle A_{1} Q A_{2}=\angle B_{1} Q B_{2}=\angle O_{1} Q O_{2}$. Therefore $\angle A_{1} Q A_{2}=\angle B_{1} Q P+$ $\angle P Q B_{2}=\angle C A_{1} P+\angle C A_{2} P=$ $180^{\circ}-\angle A_{1} C A_{2}$, from which we conclude that $Q$ lies on the circumcircle of $\triangle A_{1} A_{2} C$. Hence $O A_{1}=$ $O Q$. However, we also have $O_{1} A_{2}=$ $O_{1} Q$. Consequently, $O, O_{1}$ both lie on the perpendicular bisector of $A_{1} Q$, so $O O_{1} \perp A_{1} Q$. Similarly, $O O_{2} \perp A_{2} Q$, leading to $\angle O_{2} O O_{1}=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-701.jpg?height=412&width=518&top_left_y=598&top_left_x=825) $180^{\circ}-\angle A_{1} Q A_{2}=180^{\circ}-\angle O_{1} Q O_{2}$. Hence, $O$ lies on the circle through $O_{1}, O_{2}, Q$, which is fixed. 11. When $S$ is the set of vertices of a regular pentagon, then it is easily verified that $\frac{M(S)}{m(S)}=\frac{1+\sqrt{5}}{2}=\alpha$. We claim that this is the best possible. Let $A, B, C, D, E$ be five arbitrary points, and assume that $\triangle A B C$ has the area $M(S)$. We claim that some triangle has area less than or equal to $M(S) / \alpha$. Construct a larger triangle $A^{\prime} B^{\prime} C^{\prime}$ with $C \in A^{\prime} B^{\prime}\left\|A B, A \in B^{\prime} C^{\prime}\right\| B C$, $B \in C^{\prime} A^{\prime} \| C A$. The point $D$, as well as $E$, must lie on the same side of $B^{\prime} C^{\prime}$ as $B C$, for otherwise $\triangle D B C$ would have greater area than $\triangle A B C$. A similar result holds for the other edges, and therefore $D, E$ lie inside the triangle $A^{\prime} B^{\prime} C^{\prime}$ or on its boundary. Moreover, at least one of the triangles $A^{\prime} B C, A B^{\prime} C, A B C^{\prime}$, say $A B C^{\prime}$, contains neither $D$ nor $E$. Hence we can assume that $D, E$ are contained inside the quadrilateral $A^{\prime} B^{\prime} A B$. An affine linear transformation does not change the ratios between areas. Thus if we apply such an affine transformation mapping $A, B, C$ into the vertices $A B M C N$ of a regular pentagon, we won't change $M(S) / m(S)$. If now $D$ or $E$ lies inside $A B M C N$, then we are done. Suppose that both $D$ and $E$ are inside the triangles $C M A^{\prime}, C N B^{\prime}$. Then $C D, C E \leq C M$ (because $C M=C N=C A^{\prime}=C B^{\prime}$ ) and $\angle D C E$ is either less than or equal to $36^{\circ}$ or greater than or equal to $108^{\circ}$, from which we obtain that the area of $\triangle C D E$ cannot exceed the area of $\triangle C M N=M(S) / \alpha$. This completes the proof. 12. Let $l(M N)$ denote the length of the shorter $\operatorname{arc} M N$ of a given circle. Lemma. Let $P R, Q S$ be two chords of a circle $k$ of radius $r$ that meet each other at a point $X$, and let $\angle P X Q=\angle R X S=2 \alpha$. Then $l(P Q)+$ $l(R S)=4 \alpha r$. Proof. Let $O$ be the center of the circle. Then $l(P Q)+l(R S)=\angle P O Q$. $r+\angle R O S \cdot r=2(\angle Q S P+\angle R P S) r=2 \angle Q X P \cdot r=4 \alpha r$. Consider a circle $k$, sufficiently large, whose interior contains all the given circles. For any two circles $C_{i}, C_{j}$, let their exterior common tangents $P R, Q S(P, Q, R, S \in k)$ form an angle $2 \alpha$. Then $O_{i} O_{j}=\frac{2}{\sin \alpha}$, so $\alpha>$ $\sin \alpha=\frac{2}{O_{i} O_{j}}$. By the lemma we have $l(P Q)+l(R S)=4 \alpha r \geq \frac{8 r}{O_{i} O_{j}}$, and hence $$ \frac{1}{O_{i} O_{j}} \leq \frac{l(P Q)+l(R S)}{8 r} $$ Now sum all these inequalities for $iA B$. As usual, $R, r, \alpha, \beta, \gamma$ denote the circumradius and the inradius and the angles of $\triangle A B C$, respectively. We have $\tan \angle B K M=D M / D K$. Straightforward calculation gives $D M=\frac{1}{2} A D=R \sin \beta \sin \gamma$ and $D K=\frac{D C-D B}{2}-\frac{K C-K B}{2}=R \sin (\beta-$ $\gamma)-R(\sin \beta-\sin \gamma)=4 R \sin \frac{\beta-\gamma}{2} \sin \frac{\beta}{2} \sin \frac{\gamma}{2}$, so we obtain $$ \tan \angle B K M=\frac{\sin \beta \sin \gamma}{4 \sin \frac{\beta-\gamma}{2} \sin \frac{\beta}{2} \sin \frac{\gamma}{2}}=\frac{\cos \frac{\beta}{2} \cos \frac{\gamma}{2}}{\sin \frac{\beta-\gamma}{2}} $$ To calculate the angle $B K N^{\prime}$, we apply the inversion $\psi$ with center at $K$ and power $B K \cdot C K$. For each object $X$, we denote by $\widehat{X}$ its image under $\psi$. The incircle $\Omega$ maps to a ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-702.jpg?height=215&width=545&top_left_y=1844&top_left_x=807) line $\widehat{\Omega}$ parallel to $\widehat{B} \widehat{C}$, at distance $\frac{B K \cdot C K}{2 r}$ from $\widehat{B} \widehat{C}$. Thus the point $\widehat{N^{\prime}}$ is the projection of the midpoint $\widehat{U}$ of $\widehat{B} \widehat{C}$ onto $\widehat{\Omega}$. Hence $$ \tan \angle B K N^{\prime}=\tan \angle \widehat{B} K \widehat{N^{\prime}}=\frac{\widehat{U} \widehat{N^{\prime}}}{\widehat{U} K}=\frac{B K \cdot C K}{r(C K-B K)} . $$ Again, one easily checks that $K B \cdot K C=b c \sin ^{2} \frac{\alpha}{2}$ and $r=4 R \sin \frac{\alpha}{2}$. $\sin \frac{\beta}{2} \cdot \sin \frac{\gamma}{2}$, which implies $$ \begin{aligned} \tan \angle B K N^{\prime} & =\frac{b c \sin ^{2} \frac{\alpha}{2}}{r(b-c)} \\ & =\frac{4 R^{2} \sin \beta \sin \gamma \sin ^{2} \frac{\alpha}{2}}{4 R \sin \frac{\alpha}{2} \sin \frac{\beta}{2} \sin \frac{\gamma}{2} \cdot 2 R(\sin \beta-\sin \gamma)}=\frac{\cos \frac{\beta}{2} \cos \frac{\gamma}{2}}{\sin \frac{\beta-\gamma}{2}} . \end{aligned} $$ Hence $\angle B K M=\angle B K N^{\prime}$, which implies that $K, M, N^{\prime}$ are indeed collinear; thus $N^{\prime} \equiv N$. 14. Let $G$ be the other point of intersection of the line $F K$ with the arc $B A D$. Since $B N / N C=D K / K B$ and $\angle C E B=\angle B G D$ the triangles $C E B$ and $B G D$ are similar. Thus $B N / N E=D K / K G=F K / K B$. From $B N=M K$ and $B K=$ $M N$ it follows that $M N / N E=$ $F K / K M$. But we also have that $\angle M N E=90^{\circ}+\angle M N B=90^{\circ}+$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-703.jpg?height=327&width=539&top_left_y=1011&top_left_x=817) $\angle M K B=\angle F K M$, and hence $\triangle M N E \sim \triangle F K M$. Now $\angle E M F=\angle N M K-\angle N M E-\angle K M F=\angle N M K-\angle N M E-$ $\angle N E M=\angle N M K-90^{\circ}+\angle B N M=90^{\circ}$ as claimed. 15. We observe first that $f$ is surjective. Indeed, setting $y=-f(x)$ gives $f(f(-f(x))-x)=f(0)-2 x$, where the right-hand expression can take any real value. In particular, there exists $x_{0}$ for which $f\left(x_{0}\right)=0$. Now setting $x=x_{0}$ in the functional equation yields $f(y)=2 x_{0}+f\left(f(y)-x_{0}\right)$, so we obtain $$ f(z)=z-x_{0} \quad \text { for } z=f(y)-x_{0} $$ Since $f$ is surjective, $z$ takes all real values. Hence for all $z, f(z)=z+c$ for some constant $c$, and this is indeed a solution. 16. For $n \geq 2$, let $\left(k_{1}, k_{2}, \ldots, k_{n}\right)$ be the permutation of $\{1,2, \ldots, n\}$ with $a_{k_{1}} \leq a_{k_{2}} \leq \cdots \leq a_{k_{n}}$. Then from the condition of the problem, using the Cauchy-Schwarz inequality, we obtain $$ \begin{aligned} c & \geq a_{k_{n}}-a_{k_{1}}=\left|a_{k_{n}}-a_{k_{n-1}}\right|+\cdots+\left|a_{k_{3}}-a_{k_{2}}\right|+\left|a_{k_{2}}-a_{k_{1}}\right| \\ & \geq \frac{1}{k_{1}+k_{2}}+\frac{1}{k_{2}+k_{3}}+\cdots+\frac{1}{k_{n-1}+k_{n}} \\ & \geq \frac{(n-1)^{2}}{\left(k_{1}+k_{2}\right)+\left(k_{2}+k_{3}\right)+\cdots+\left(k_{n-1}+k_{n}\right)} \\ & =\frac{(n-1)^{2}}{2\left(k_{1}+k_{2}+\cdots+k_{n}\right)-k_{1}-k_{n}} \geq \frac{(n-1)^{2}}{n^{2}+n-3} \geq \frac{n-1}{n+2} . \end{aligned} $$ Therefore $c \geq 1-\frac{3}{n+2}$ for every positive integer $n$. But if $c<1$, this inequality is obviously false for all $n>\frac{3}{1-c}-2$. We conclude that $c \geq 1$. Remark. The least value of $c$ is not greater than $2 \ln 2$. An example of a sequence $\left\{a_{n}\right\}$ with $0 \leq a_{n} \leq 2 \ln 2$ can be constructed inductively as follows: Given $a_{1}, a_{2}, \ldots, a_{n-1}$, then $a_{n}$ can be any number from $[0,2 \ln 2]$ that does not belong to any of the intervals $\left(a_{i}-\frac{1}{i+n}, a_{i}+\frac{1}{i+n}\right)(i=$ $1,2, \ldots, n-1)$, and the total length of these intervals is always less than or equal to $$ \frac{2}{n+1}+\frac{2}{n+2}+\cdots+\frac{2}{2 n-1}<2 \ln 2 $$ 17. Let $x, y$ be distinct integers satisfying $x P(x)=y P(y)$; this is equivalent to $a\left(x^{4}-y^{4}\right)+b\left(x^{3}-y^{3}\right)+c\left(x^{2}-y^{2}\right)+d(x-y)=0$. Dividing by $x-y$ we obtain $$ a\left(x^{3}+x^{2} y+x y^{2}+y^{3}\right)+b\left(x^{2}+x y+y^{2}\right)+c(x+y)+d=0 . $$ Putting $x+y=p, x^{2}+y^{2}=q$ leads to $x^{2}+x y+y^{2}=\frac{p^{2}+q}{2}$, so the above equality becomes $$ a p q+\frac{b}{2}\left(p^{2}+q\right)+c p+d=0, \quad \text { i.e. } \quad(2 a p+b) q=-\left(b p^{2}+2 c p+2 d\right) $$ Since $q \geq p^{2} / 2$, it follows that $p^{2}|2 a p+b| \leq 2\left|b p^{2}+2 c p+2 d\right|$, which is possible only for finitely many values of $p$, although there are infinitely many pairs $(x, y)$ with $x P(x)=y P(y)$. Hence there exists $p$ such that $x P(x)=(p-x) P(p-x)$ for infinitely many $x$, and therefore for all $x$. If $p \neq 0$, then $p$ is a root of $P(x)$. If $p=0$, the above relation gives $P(x)=-P(-x)$. This forces $b=d=0$, so $P(x)=x\left(a x^{2}+c\right)$. Thus 0 is a root of $P(x)$. 18. Putting $x=z=0$ and $t=y$ into the given equation gives $4 f(0) f(y)=$ $2 f(0)$ for all $y$. If $f(0) \neq 0$, then we deduce $f(y)=\frac{1}{2}$, i.e., $f$ is identically equal to $\frac{1}{2}$. Now we suppose that $f(0)=0$. Setting $z=t=0$ we obtain $$ f(x y)=f(x) f(y) \quad \text { for all } x, y \in \mathbb{R} $$ Thus if $f(y)=0$ for some $y \neq 0$, then $f$ is identically zero. So, assume $f(y) \neq 0$ whenever $y \neq 0$. Next, we observe that $f$ is strictly increasing on the set of positive reals. Actually, it follows from (1) that $f(x)=f(\sqrt{x})^{2} \geq 0$ for all $x \geq 0$, so that the given equation for $t=x$ and $z=y$ yields $f\left(x^{2}+y^{2}\right)=(f(x)+f(y))^{2} \geq$ $f\left(x^{2}\right)$ for all $x, y \geq 0$. Using (1) it is easy to get $f(1)=1$. Now plugging $t=y$ into the given equation, we are led to $$ 2[f(x)+f(z)]=f(x-z)+f(x+z) \quad \text { for all } x, z $$ In particular, $f(z)=f(-z)$. Further, it is easy to get by induction from (2) that $f(n x)=n^{2} f(x)$ for all integers $n$ (and consequently for all rational numbers as well). Therefore $f(q)=f(-q)=q^{2}$ for all $q \in \mathbb{Q}$. But $f$ is increasing for $x>0$, so we must have $f(x)=x^{2}$ for all $x$. It is easy to verify that $f(x)=0, f(x)=\frac{1}{2}$ and $f(x)=x^{2}$ are indeed solutions. 19. Write $m=[\sqrt[3]{n}]$. To simplify the calculation, we shall assume that $[b]=1$. Then $a=\sqrt[3]{n}, b=\frac{1}{\sqrt[3]{n}-m}=\frac{1}{n-m^{3}}\left(m^{2}+m \sqrt[3]{n}+\sqrt[3]{n^{2}}\right), c=\frac{1}{b-1}=$ $u+v \sqrt[3]{n}+w \sqrt[3]{n^{2}}$ for certain rational numbers $u, v, w$. Obviously, integers $r, s, t$ with $r a+s b+t c=0$ exist if (and only if) $u=m^{2} w$, i.e., if ( $b-$ 1) $\left(m^{2} w+v \sqrt[3]{n}+w \sqrt[3]{n^{2}}\right)=1$ for some rational $v, w$. When the last equality is expanded and simplified, comparing the coefficients at $1, \sqrt[3]{n}, \sqrt[3]{n^{2}}$ one obtains $$ \begin{array}{rlrl} 1: & v+\left(\left(m^{2}+m^{3}-n\right) m^{2}+m\right) w & =n-m^{3}, \\ \sqrt[3]{n}: & \left(m^{2}+m^{3}-n\right) v+ & \left(m^{3}+n\right) w & =0, \\ \sqrt[3]{n^{2}}: & m v+ & \left(2 m^{2}+m^{3}-n\right) w & =0 . \end{array} $$ In order for the system (1) to have a solution $v, w$, we must have $\left(2 m^{2}+\right.$ $\left.m^{3}-n\right)\left(m^{2}+m^{3}-n\right)=m\left(m^{3}+n\right)$. This quadratic equation has solutions $n=m^{3}$ and $n=m^{3}+3 m^{2}+m$. The former is not possible, but the latter gives $a-[a]>\frac{1}{2}$, so $[b]=1$, and the system (1) in $v, w$ is solvable. Hence every number $n=m^{3}+3 m^{2}+m, m \in \mathbb{N}$, satisfies the condition of the problem. 20. Assume to the contrary that $\frac{1}{b_{1}}+\cdots+\frac{1}{b_{n}}>1$. Certainly $n \geq 2$ and $A$ is infinite. Define $f_{i}: A \rightarrow A$ as $f_{i}(x)=b_{i} x+c_{i}$ for each $i$. By condition (ii), $f_{i}(x)=f_{j}(y)$ implies $i=j$ and $x=y$; iterating this argument, we deduce that $f_{i_{1}}\left(\ldots f_{i_{m}}(x) \ldots\right)=f_{j_{1}}\left(\ldots f_{j_{m}}(x) \ldots\right)$ implies $i_{1}=j_{1}, \ldots, i_{m}=j_{m}$ and $x=y$. As an illustration, we shall consider the case $b_{1}=b_{2}=b_{3}=2$ first. If $a$ is large enough, then for any $i_{1}, \ldots, i_{m} \in\{1,2,3\}$ we have $f_{i_{1}} \circ \cdots \circ f_{i_{m}}(a) \leq$ $2.1^{m} a$. However, we obtain $3^{m}$ values in this way, so they cannot be all distinct if $m$ is sufficiently large, a contradiction. In the general case, let real numbers $d_{i}>b_{i}, i=1,2 \ldots, n$, be chosen such that $\frac{1}{d_{1}}+\cdots+\frac{1}{d_{n}}>1$ : for $a$ large enough, $f_{i}(x)0$ be arbitrary rational numbers with sum 1 ; denote by $N_{0}$ the least common multiple of their denominators. Let $N$ be a fixed multiple of $N_{0}$, so that each $k_{j} N$ is an integer. Consider all combinations $f_{i_{1}} \circ \cdots \circ f_{i_{N}}$ of $N$ functions, among which each $f_{i}$ appears exactly $k_{i} N$ times. There are $F_{N}=\frac{N!}{\left(k_{1} N\right)!\cdots\left(k_{n} N\right)!}$ such combinations, so they give $F_{N}$ distinct values when applied to $a$. On the other hand, $f_{i_{1}} \circ \cdots \circ f_{i_{N}}(a) \leq\left(d_{1}^{k_{1}} \cdots d_{n}^{k_{n}}\right)^{N} a$. Therefore $$ \left(d_{1}^{k_{1}} \cdots d_{n}^{k_{n}}\right)^{N} a \geq F_{N} \quad \text { for all } N, N_{0} \mid N $$ It remains to find a lower estimate for $F_{N}$. In fact, it is straightforward to verify that $F_{N+N_{0}} / F_{N}$ tends to $Q^{N_{0}}$, where $Q=1 /\left(k_{1}^{k_{1}} \cdots k_{n}^{k_{n}}\right)$. Consequently, for every $q0$ such that $F_{N}>p q^{N}$. Then (1) implies that $$ \left(\frac{d_{1}^{k_{1}} \cdots d_{n}^{k_{n}}}{q}\right)^{N}>\frac{p}{a} \text { for every multiple } N \text { of } N_{0} $$ and hence $d_{1}^{k_{1}} \cdots d_{n}^{k_{n}} / q \geq 1$. This must hold for every $q7$ this is possible as well: it follows by induction from Figure 2. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-707.jpg?height=186&width=195&top_left_y=302&top_left_x=402) Fig. 1 ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-707.jpg?height=239&width=249&top_left_y=251&top_left_x=903) Fig. 2 23. We claim that there are $n$ ! full sequences. To show this, we construct a bijection with the set of permutations of $\{1,2, \ldots, n\}$. Consider a full sequence $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$, and let $m$ be the greatest of the numbers $a_{1}, \ldots, a_{n}$. Let $S_{k}, 1 \leq k \leq m$, be the set of those indices $i$ for which $a_{i}=k$. Then $S_{1}, \ldots S_{m}$ are nonempty and form a partition of the set $\{1,2, \ldots, n\}$. Now we write down the elements of $S_{1}$ in descending order, then the elements of $S_{2}$ in descending order and so on. This maps the full sequence to a permutation of $\{1,2, \ldots, n\}$. Moreover, this map is reversible, since each permutation uniquely breaks apart into decreasing sequences $S_{1}^{\prime}, S_{2}^{\prime}, \ldots, S_{m}^{\prime}$, so that $\max S_{i}^{\prime}>\min S_{i-1}^{\prime}$. Therefore the full sequences are in bijection with the permutations of $\{1,2, \ldots, n\}$. Second solution. Let there be given a full sequence of length $n$. Removing from it the first occurrence of the highest number, we obtain a full sequence of length $n-1$. On the other hand, each full sequence of length $n-1$ can be obtained from exactly $n$ full sequences of length $n$. Therefore, if $x_{n}$ is the number of full sequences of length $n$, we deduce $x_{n}=n x_{n-1}$. 24. Two moves are not sufficient. Indeed, the answer to each move is an even number between 0 and 54 , so the answer takes at most 28 distinct values. Consequently, two moves give at most $28^{2}=784$ distinct outcomes, which is less than $10^{3}=1000$. We now show that three moves are sufficient. With the first move $(0,0,0)$, we get the reply $2(x+y+z)$, so we now know the value of $s=x+y+z$. Now there are several cases: (i) $s \leq 9$. Then we ask $(9,0,0)$ as the second move and get $(9-x-y)+$ $(9-x-z)+(y+z)=18-2 x$, so we come to know $x$. Asking $(0,9,0)$ we obtain $y$, which is enough, since $z=s-x-y$. (ii) $10 \leq s \leq 17$. In this case the second move is $(9, s-9,0)$. The answer is $z+(9-x)+|x+z-9|=2 k$, where $k=z$ if $x+z \geq 9$, or $k=9-x$ if $x+z<9$. In both cases we have $z \leq k \leq y+z \leq s$. Let $s-k \leq 9$. Then in the third move we ask $(s-k, 0, k)$ and obtain $|z-k|+|k-y-z|+y$, which is actually $(k-z)+(y+z-k)+y=2 y$. Thus we also find out $x+z$, and thus deduce whether $k$ is $z$ or $9-x$. Consequently we determine both $x$ and $z$. Let $s-k>9$. In this case, the third move is $(9, s-k-9, k)$. The answer is $|s-k-x-y|+|s-9-y-z|+|k+9-z-x|=$ $(k-z)+(9-x)+(9-x+k-z)=18+2 k-2(x+z)$, from which we find out again whether $k$ is $z$ or $9-x$. Now we are easily done. (iii) $18 \leq s \leq 27$. Then as in the first case, asking $(0,9,9)$ and $(9,0,9)$ we obtain $x$ and $y$. 25. Assume to the contrary that no set of size less than $r$ meets all sets in $\mathcal{F}$. Consider any set $A$ of size less than $r$ that is contained in infinitely many sets of $\mathcal{F}$. By the assumption, $A$ is disjoint from some set $B \in \mathcal{F}$. Then of the infinitely many sets that contain $A$, each must meet $B$, so some element $b$ of $B$ belongs to infinitely many of them. But then the set $A \cup\{b\}$ is contained in infinitely many sets of $\mathcal{F}$ as well. Such a set $A$ exists: for example, the empty set. Now taking for $A$ the largest such set we come to a contradiction. 26. Write $n=2 m$. We shall define a directed graph $G$ with vertices $1, \ldots, m$ and edges labelled $1,2, \ldots, 2 m$ in such a way that the edges issuing from $i$ are labelled $2 i-1$ and $2 i$, and those entering it are labelled $i$ and $i+m$. What we need is an Euler circuit in $G$, namely a closed path that passes each edge exactly once. Indeed, if $x_{i}$ is the $i$ th edge in such a circuit, then $x_{i}$ enters some vertex $j$ and $x_{i+1}$ leaves it, so $x_{i} \equiv j(\bmod m)$ and $x_{i+1}=2 j-1$ or $2 j$. Hence $2 x_{i} \equiv 2 j$ and $x_{i+1} \equiv 2 x_{i}$ or $2 x_{i}-1(\bmod n)$, as required. The graph $G$ is connected: by induction on $k$ there is a path from 1 to $k$, since 1 is connected to $j$ with $2 j=k$ or $2 j-1=k$, and there is an edge from $j$ to $k$. Also, the in-degree and out-degree of each vertex of $G$ are equal (to 2), and thus by a known result, $G$ contains an Euler circuit. 27. For a graph $G$ on 120 vertices (i.e., people at the party), write $q(G)$ for the number of weak quartets in $G$. Our solution will consist of three parts. First, we prove that some graph $G$ with maximal $q(G)$ breaks up as a disjoint union of complete graphs. This will follow if we show that any two adjacent vertices $x, y$ have the same neighbors (apart from themselves). Let $G_{x}$ be the graph obtained from $G$ by "copying" $x$ to $y$ (i.e., for each $z \neq x, y$, we add the edge $z y$ if $z x$ is an edge, and delete $z y$ if $z x$ is not an edge). Similarly $G_{y}$ is the graph obtained from $G$ by copying $y$ to $x$. We claim that $2 q(G) \leq q\left(G_{x}\right)+q\left(G_{y}\right)$. Indeed, the number of weak quartets containing neither $x$ nor $y$ is the same in $G, G_{x}$, and $G_{y}$, while the number of those containing both $x$ and $y$ is not less in $G_{x}$ and $G_{y}$ than in $G$. Also, the number containing exactly one of $x$ and $y$ in $G_{x}$ is at least twice the number in $G$ containing $x$ but not $y$, while the number containing exactly one of $x$ and $y$ in $G_{y}$ is at least twice the number in $G$ containing $y$ but not $x$. This justifies our claim by adding. It follows that for an extremal graph $G$ we must have $q(G)=q\left(G_{x}\right)=q\left(G_{y}\right)$. Repeating the copying operation pair by pair ( $y$ to $x$, then their common neighbor $z$ to both $x, y$, etc.) we eventually obtain an extremal graph consisting of disjoint complete graphs. Second, suppose the complete graphs in $G$ have sizes $a_{1}, a_{2}, \ldots, a_{n}$. Then $$ q(G)=\sum_{i=1}^{n}\binom{a_{i}}{2} \sum_{\substack{j0$ with $\left.c_{1}+c_{2}+c_{3}=1\right)$. Let $P^{\prime}\left(a_{11}, a_{21}, 0\right), Q^{\prime}\left(a_{12}, a_{22}, 0\right)$, and $R^{\prime}\left(a_{13}, a_{23}, 0\right)$ be the projections of $P, Q$, and $R$ onto the $O x y$ plane. We see that $P^{\prime}, Q^{\prime}, R^{\prime}$ lie in the fourth, second, and third quadrants, respectively. We have the following two cases: (i) $O$ is in the exterior of $\triangle P^{\prime} Q^{\prime} R^{\prime}$. Set $S^{\prime}=O R^{\prime} \cap P^{\prime} Q^{\prime}$ and let $S$ be the point of the segment $P Q$ that projects to $S^{\prime}$. The point $S$ has its $z$ coordinate negative (because the $z$ coordinates of $P$ and $Q$ are negative). Thus any point ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-710.jpg?height=290&width=446&top_left_y=702&top_left_x=875) of the segment $S R$ sufficiently close to $S$ has all coordinates negative. (ii) $O$ is in the interior or on the boundary of $\triangle P^{\prime} Q^{\prime} R^{\prime}$. Let $T$ be the point in the plane $P Q R$ whose projection is $O$. If $T=O$, then all coordinates of $T$ are zero, and we are done. Otherwise $O$ is interior to $\triangle P^{\prime} Q^{\prime} R^{\prime}$. Suppose that the $z$ coordinate of $T$ is positive (negative). Since $x$ and $y$ coordinates of $T$ are equal to 0 , there is a point $U$ inside $P Q R$ close to $T$ with both $x$ and $y$ coordinates positive (respectively negative), and this point $U$ has all coordinates of the same sign. 2. We can rewrite (ii) as $-(f(a)-1)(f(b)-1)=f(-(a-1)(b-1)+1)-1$. So putting $g(x)=f(x+1)-1$, this equation becomes $-g(a-1) g(b-1)=$ $g(-(a-1)(b-1))$ for $a<10$, and therefore (1) reduces to $g(1) g(y z)=g(y) g(z)$ for all $y, z>0$. We have two cases: (i) $g(1)=0$. By (1) we have $g(z)=0$ for all $z>0$. Then any nondecreasing function $g: \mathbb{R} \rightarrow \mathbb{R}$ with $g(-1)=-1$ and $g(z)=0$ for $z \geq 0$ satisfies (1) and gives a solution: $f$ is nondecreasing, $f(0)=0$ and $f(x)=1$ for every $x \geq 1$ (ii) $g(1) \neq 0$. Then the function $h(x)=\frac{g(x)}{g(1)}$ is nondecreasing and satisfies $h(0)=0, h(1)=1$, and $h(x y)=h(x) h(y)$. Fix $a>0$, and let $h(a)=$ $b=a^{k}$ for some $k \in \mathbb{R}$. It follows by induction that $h\left(a^{q}\right)=h(a)^{q}=$ $\left(a^{q}\right)^{k}$ for every rational number $q$. But $h$ is nondecreasing, so $k \geq 0$, and since the set $\left\{a^{q} \mid q \in \mathbb{Q}\right\}$ is dense in $\mathbb{R}^{+}$, we conclude that $h(x)=x^{k}$ for every $x>0$. Finally, putting $g(1)=c$, we obtain $g(x)=c x^{k}$ for all $x>0$. Then $g(-x)=-x^{k}$ for all $x>0$. This $g$ obviously satisfies (1). Hence $$ f(x)=\left\{\begin{array}{ll} c(x-1)^{k}, & \text { if } x>1 ; \\ 1, & \text { if } x=1 ; \\ 1-(1-x)^{k}, & \text { if } x<1 \end{array} \quad \text { where } c>0 \text { and } k \geq 0\right. $$ 3. (a) Given any sequence $c_{n}$ (in particular, such that $C_{n}$ converges), we shall construct $a_{n}$ and $b_{n}$ such that $A_{n}$ and $B_{n}$ diverge. First, choose $n_{1}$ such that $n_{1} c_{1}>1$ and set $a_{1}=a_{2}=\cdots=a_{n_{1}}=$ $c_{1}$ : this uniquely determines $b_{2}=c_{2}, \ldots, b_{n_{1}}=c_{n_{1}}$. Next, choose $n_{2}$ such that $\left(n_{2}-n_{1}\right) c_{n_{1}+1}>1$ and set $b_{n_{1}+1}=\cdots=b_{n_{2}}=c_{n_{1}+1}$; again $a_{n_{1}+1}, \ldots, a_{n_{2}}$ is hereby determined. Then choose $n_{3}$ with $\left(n_{3}-\right.$ $\left.n_{2}\right) c_{n_{2}+1}>1$ and set $a_{n_{2}+1}=\cdots=a_{n_{3}}=c_{n_{2}+1}$, and so on. It is plain that in this way we construct decreasing sequences $a_{n}, b_{n}$ such that $\sum a_{n}$ and $\sum b_{n}$ diverge, since they contain an infinity of subsums that exceed 1 ; on the other hand, $c_{n}=\min \left(a_{n}, b_{n}\right)$ and $C_{n}$ is convergent. (b) The answer changes in this situation. Suppose to the contrary that there is such a pair of sequences $\left(a_{n}\right)$ and $\left(b_{n}\right)$. There are infinitely many indices $i$ such that $c_{i}=b_{i}$ (otherwise all but finitely many terms of the sequence $\left(c_{n}\right)$ would be equal to the terms of the sequence $\left(a_{n}\right)$, which has an unbounded sum). Thus for any $n_{0} \in \mathbb{N}$ there is $j \geq 2 n_{0}$ such that $c_{j}=b_{j}$. Then we have $$ \sum_{k=n_{0}}^{j} c_{k} \geq \sum_{k=n_{0}}^{j} c_{j}=\left(j-n_{0}\right) \frac{1}{j} \geq \frac{1}{2} $$ Hence the sequence ( $C_{n}$ ) is unbounded, a contradiction. 4. By the Cauchy-Schwarz inequality we have $$ \left(\sum_{i, j=1}^{n}(i-j)^{2}\right)\left(\sum_{i, j=1}^{n}\left(x_{i}-x_{j}\right)^{2}\right) \geq\left(\sum_{i, j=1}^{n}|i-j| \cdot\left|x_{i}-x_{j}\right|\right)^{2} . $$ On the other hand, it is easy to prove (for example by induction) that $$ \sum_{i, j=1}^{n}(i-j)^{2}=(2 n-2) \cdot 1^{2}+(2 n-4) \cdot 2^{2}+\cdots+2 \cdot(n-1)^{2}=\frac{n^{2}\left(n^{2}-1\right)}{6} $$ and that $$ \sum_{i, j=1}^{n}|i-j| \cdot\left|x_{i}-x_{j}\right|=\frac{n}{2} \sum_{i, j=1}^{n}\left|x_{i}-x_{j}\right| $$ Thus the inequality (1) becomes $$ \frac{n^{2}\left(n^{2}-1\right)}{6}\left(\sum_{i, j=1}^{n}\left(x_{i}-x_{j}\right)^{2}\right) \geq \frac{n^{2}}{4}\left(\sum_{i, j=1}^{n}\left|x_{i}-x_{j}\right|\right)^{2} $$ which is equivalent to the required one. 5. Placing $x=y=z=1$ in (i) leads to $4 f(1)=f(1)^{3}$, so by the condition $f(1)>0$ we get $f(1)=2$. Also putting $x=t s, y=\frac{t}{s}, z=\frac{s}{t}$ in (i) gives $$ f(t) f(s)=f(t s)+f(t / s) $$ In particular, for $s=1$ the last equality yields $f(t)=f(1 / t)$; hence $f(t) \geq f(1)=2$ for each $t$. It follows that there exists $g(t) \geq 1$ such that $\bar{f}(t)=g(t)+\frac{1}{g(t)}$. Now it follows by induction from (1) that $g\left(t^{n}\right)=$ $g(t)^{n}$ for every integer $n$, and therefore $g\left(t^{q}\right)=g(t)^{q}$ for every rational $q$. Consequently, if $t>1$ is fixed, we have $f\left(t^{q}\right)=a^{q}+a^{-q}$, where $a=g(t)$. But since the set of $a^{q}(q \in \mathbb{Q})$ is dense in $\mathbb{R}^{+}$and $f$ is monotone on $(0,1]$ and $[1, \infty)$, it follows that $f\left(t^{r}\right)=a^{r}+a^{-r}$ for every real $r$. Therefore, if $k$ is such that $t^{k}=a$, we have $$ f(x)=x^{k}+x^{-k} \quad \text { for every } x \in \mathbb{R} $$ 6. Set $X=\max \left\{x_{1}, \ldots, x_{n}\right\}$ and $Y=\max \left\{y_{1}, \ldots, y_{n}\right\}$. By replacing $x_{i}$ by $x_{i}^{\prime}=\frac{x_{i}}{X}, y_{i}$ by $y_{i}^{\prime}=\frac{y_{i}}{Y}$ and $z_{i}$ by $z_{i}^{\prime}=\frac{z_{i}}{\sqrt{X Y}}$, we may assume that $X=Y=1$. It is sufficient to prove that $$ M+z_{2}+\cdots+z_{2 n} \geq x_{1}+\cdots+x_{n}+y_{1}+\cdots+y_{n} $$ because this implies the result by the A-G mean inequality. To prove (1) it is enough to prove that for any $r$, the number of terms greater than $r$ on the left-hand side of (1) is at least that number on the right-hand side of (1). If $r \geq 1$, then there are no terms on the right-hand side greater than $r$. Suppose that $r<1$ and consider the sets $A=\left\{i \mid 1 \leq i \leq n, x_{i}>r\right\}$ and $B=\left\{i \mid 1 \leq i \leq n, y_{i}>r\right\}$. Set $a=|A|$ and $b=|B|$. If $x_{i}>r$ and $y_{j}>r$, then $z_{i+j} \geq \sqrt{x_{i} y_{j}}>r$; hence $$ C=\left\{k \mid 2 \leq k \leq 2 n, z_{k}>r\right\} \supseteq A+B=\{\alpha+\beta \mid \alpha \in A, \beta \in B\} $$ It is easy to verify that $|A+B| \geq|A|+|B|-1$. It follows that the number of $z_{k}$ 's greater than $r$ is $\geq a+b-1$. But in that case $M>r$, implying that at least $a+b$ elements of the left-hand side of (1) is greater than $r$, which completes the proof. 7. Consider the set $D=\{x-y \mid x, y \in A\}$. Obviously, the number of elements of the set $D$ is less than or equal to $101 \cdot 100+1$. The sets $A+t_{i}$ and $A+t_{j}$ are disjoint if and only if $t_{i}-t_{j} \notin D$. Now we shall choose inductively 100 elements $t_{1}, \ldots, t_{100}$. Let $t_{1}$ be any element of the set $S \backslash D$ (such an element exists, since the number of elements of $S$ is greater than the number of elements of $D$ ). Suppose now that we have chosen $k(k \leq 99)$ elements $t_{1}, \ldots, t_{k}$ from $D$ such that the difference of any two of the chosen elements does not belong to $D$. We can select $t_{k+1}$ to be an element of $S$ that does not belong to any of the sets $t_{1}+D, t_{2}+D, \ldots, t_{k}+D$ (this is possible to do, since each of the previous sets has at most $101 \cdot 100+1$ elements; hence their union has at most $99(101 \cdot 100+1)=999999<1000000$ elements $)$. 8. Let $S$ be the disk with the smallest radius, say $s$, and $O$ the center of that disk. Divide the plane into 7 regions: one bounded by disk $s$ and 6 regions $T_{1}, \ldots, T_{6}$ shown in the figure. Any of the disks different from $S$, say $D_{k}$, has its center in one of the seven regions. If its center is inside $S$ then $D_{k}$ contains point $O$. Hence the number of disks different from $S$ having their centers in $S$ is at most 2002. Consider a disk $D_{k}$ that intersects $S$ and whose center is in the region $T_{i}$. Let $P_{i}$ be the point such that $O P_{i}$ bisects the region $T_{i}$ and ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-713.jpg?height=453&width=503&top_left_y=799&top_left_x=828) $O P_{i}=s \sqrt{3}$. We claim that $D_{k}$ contains $P_{i}$. Divide the region $T_{i}$ by a line $l_{i}$ through $P_{i}$ perpendicular to $O P_{i}$ into two regions $U_{i}$ and $V_{i}$, where $O$ and $U_{i}$ are on the same side of $l_{i}$. Let $K$ be the center of $D_{k}$. Consider two cases: (i) $K \in U_{i}$. Since the disk with the center $P_{i}$ and radius $s$ contains $U_{i}$, we see that $K P_{i} \leq s$. Hence $D_{k}$ contains $P_{i}$. (ii) $K \in V_{i}$. Denote by $L$ the intersection point of the segment $K O$ with the circle $s$. We want to prove that $K L>K P_{i}$. It is enough to prove that $\angle K P_{i} L>\angle K L P_{i}$. However, it is obvious that $\angle L P_{i} O \leq 30^{\circ}$ and $\angle L O P_{i} \leq 30^{\circ}$, hence $\angle K L P_{i} \leq 60^{\circ}$, while $\angle N P_{i} L=90^{\circ}-\angle L P_{i} O \geq$ $60^{\circ}$. This implies that $\angle K P_{i} L \geq \angle N P_{i} L \geq 60^{\circ} \geq \angle K L P_{i}$ ( $N$ is the point on the edge of $T_{i}$ as shown in the figure). Our claim is thus proved. Now we see that the number of disks with centers in $T_{i}$ that intersect $S$ is less than or equal to 2003, and the total number of disks that intersect $S$ is not greater than $2002+6 \cdot 2003=7 \cdot 2003-1$. 9. Suppose that $k$ of the angles of an $n$-gon are right. Since the other $n-k$ angles are less than $360^{\circ}$ and the sum of the angles is $(n-2) 180^{\circ}$, we have the inequality $k \cdot 90^{\circ}+(n-k) 360^{\circ}>(n-2) 180^{\circ}$, which is equivalent to $k<\frac{2 n+4}{3}$. Since $n$ and $k$ are integers, it follows that $k \leq\left[\frac{2 n}{3}\right]+1$. If $n=5$, then $\left[\frac{2 n}{3}\right]+1=4$, but if a pentagon has four right angles, the other angle is equal to $180^{\circ}$, which is impossible. Hence for $n=5$, $k \leq 3$. It is easy to construct a pentagon with 3 right angles, e.g., as in the picture below. Now we shall show by induction that for $n \geq 6$ there is an $n$-gon with $\left[\frac{2 n}{3}\right]+1$ internal right angles. For $n=6,7,8$ examples are presented in the picture. Assume that there is a $(n-3)$ gon with $\left[\frac{2(n-3)}{3}\right]+1=\left[\frac{2 n}{3}\right]-1$ internal right angles. Then one of the internal angles, say $\angle B A C$, is not convex. Interchange the vertex $A$ with four new vertices $A_{1}, A_{2}, A_{3}, A_{4}$ as shown in the picture such that $\angle B A_{1} A_{2}=\angle A_{3} A_{4} C=90^{\circ}$. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-714.jpg?height=195&width=1024&top_left_y=781&top_left_x=292) 10. Denote by $b_{i j}$ the entries of the matrix $B$. Suppose the contrary, i.e., that there is a pair $\left(i_{0}, j_{0}\right)$ such that $a_{i_{0}, j_{0}} \neq b_{i_{0}, j_{0}}$. We may assume without loss of generality that $a_{i_{0}, j_{0}}=0$ and $b_{i_{0}, j_{0}}=1$. Since the sums of elements in the $i_{0}$ th rows of the matrices $A$ and $B$ are equal, there is some $j_{1}$ for which $a_{i_{0}, j_{1}}=1$ and $b_{i_{0}, j_{1}}=0$. Similarly, from the fact that the sums in the $j_{1}$ th columns of the matrices $A$ and $B$ are equal, we conclude that there exists $i_{1}$ such that $a_{i_{1}, j_{1}}=0$ and $b_{i_{1}, j_{1}}=1$. Continuing this procedure, we construct two sequences $i_{k}, j_{k}$ such that $a_{i_{k}, j_{k}}=0, b_{i_{k}, j_{k}}=1, a_{i_{k}, j_{k+1}}=1, b_{i_{k}, j_{k+1}}=0$. Since the set of the pairs $\left(i_{k}, j_{k}\right)$ is finite, there are two different numbers $t, s$ such that $\left(i_{t}, j_{t}\right)=\left(i_{s}, j_{s}\right)$. From the given condition we have that $x_{i_{k}}+y_{i_{k}}<0$ and $x_{i_{k+1}}+y_{i_{k+1}} \geq 0$. But $j_{t}=j_{s}$, and hence $0 \leq \sum_{k=s}^{t-1}\left(x_{i_{k}}+y_{j_{k+1}}\right)=$ $\sum_{k=s}^{t-1}\left(x_{i_{k}}+y_{j_{k}}\right)<0$, a contradiction. 11. (a) By the pigeonhole principle there are two different integers $x_{1}, x_{2}$, $x_{1}>x_{2}$, such that $\left|\left\{x_{1} \sqrt{3}\right\}-\left\{x_{2} \sqrt{3}\right\}\right|<0.001$. Set $a=x_{1}-x_{2}$. Consider the equilateral triangle with vertices $(0,0),(2 a, 0),(a, a \sqrt{3})$. The points $(0,0)$ and $(2 a, 0)$ are lattice points, and we claim that the point $(a, a \sqrt{3})$ is at distance less than 0.001 from a lattice point. Indeed, since $0.001>\left|\left\{x_{1} \sqrt{3}\right\}-\left\{x_{2} \sqrt{3}\right\}\right|=\left|a \sqrt{3}-\left(\left[x_{1} \sqrt{3}\right]-\left[x_{2} \sqrt{3}\right]\right)\right|$, we see that the distance between the points $(a, a \sqrt{3})$ and $\left(a,\left[x_{1} \sqrt{3}\right]-\right.$ $\left.\left[x_{2} \sqrt{3}\right]\right)$ is less than 0.001 , and the point $\left(a,\left[x_{1} \sqrt{3}\right]-\left[x_{2} \sqrt{3}\right]\right)$ is with integer coefficients. (b) Suppose that $P^{\prime} Q^{\prime} R^{\prime}$ is an equilateral triangle with side length $l \leq 96$ such that each of its vertices $P^{\prime}, Q^{\prime}, R^{\prime}$ lies in a disk of radius 0.001 centered at a lattice point. Denote by $P, Q, R$ the centers of these disks. Then we have $l-0.002 \leq P Q, Q R, R P \leq l+0.002$. Since $P Q R$ is not an equilateral triangle, two of its sides are different, say $P Q \neq Q R$. On the other hand, $P Q^{2}, Q R^{2}$ are integers, so we have $1 \leq\left|P Q^{2}-Q R^{2}\right|=(P Q+Q R)|P Q-Q R| \leq 0.004(P Q+Q R) \leq$ $(2 l+0.004) \cdot 0.004 \leq 2 \cdot 96.002 \cdot 0.004<1$, which is a contradiction. 12. Denote by $\overline{a_{k-1} a_{k-2} \ldots a_{0}}$ the decimal representation of a number whose digits are $a_{k-1}, \ldots, a_{0}$. We will use the following well-known fact: $$ \overline{a_{k-1} a_{k-2} \ldots a_{0}} \equiv i(\bmod 11) \Longleftrightarrow \sum_{l=0}^{k-1}(-1)^{l} a_{l} \equiv i(\bmod 11) . $$ Let $m$ be a positive integer. Define $A$ as the set of integers $n(0 \leq n<$ $10^{2 m}$ ) whose right $2 m-1$ digits can be so permuted to yield an integer divisible by 11 , and $B$ as the set of integers $n\left(0 \leq n<10^{2 m-1}\right)$ whose digits can be permuted resulting in an integer divisible by 11. Suppose that $a=\overline{a_{2 m-1} \ldots a_{0}} \in A$. Then there that satisfies $$ \sum_{l=0}^{2 m-1}(-1)^{l} b_{l} \equiv 0(\bmod 11) $$ The $2 m$-tuple $\left(b_{2 m-1}, \ldots, b_{0}\right)$ satisfies (1) if and only if the $2 m$-tuple $\left(k b_{2 m-1}+l, \ldots, k b_{0}+l\right)$ satisfies ( 1 ), where $k, l \in \mathbb{Z}, 11 \nmid k$. Since $a_{0}+1 \not \equiv 0(\bmod 11)$, we can choose $k$ from the set $\{1, \ldots, 10\}$ such that $\left(a_{0}+1\right) k \equiv 1(\bmod 11)$. Thus there is a permutation of the $2 m$-tuple $\left(\left(a_{2 m-1}+1\right) k-1, \ldots,\left(a_{1}+1\right) k-1,0\right)$ satisfying (1). Interchanging odd and even positions if necessary, we may assume that this permutation keeps the 0 at the last position. Since $\left(a_{i}+1\right) k$ is not divisible by 11 for any $i$, there is a unique $b_{i} \in\{0,1, \ldots, 9\}$ such that $b_{i} \equiv\left(a_{i}+1\right) k-1(\bmod 11)$. Hence the number $\overline{b_{2 m-1} \ldots b_{1}}$ belongs to $B$. Thus for fixed $a_{0} \in\{0,1,2, \ldots, 9\}$, to each $a \in A$ such that the last digit of $a$ is $a_{0}$ we associate a unique $b \in B$. Conversely, having $a_{0} \in$ $\{0,1,2, \ldots, 9\}$ fixed, from any number $\overline{b_{2 m-1} \ldots b_{1}} \in B$ we can reconstruct $\overline{a_{2 m-1} \ldots a_{1} a_{0}} \in A$. Hence $|A|=10|B|$, i.e., $f(2 m)=10 f(2 m-1)$. 13. Denote by $K$ and $L$ the intersections of the bisectors of $\angle A B C$ and $\angle A D C$ with the line $A C$, respectively. Since $A B: B C=A K: K C$ and $A D: D C=A L: L C$, we have to prove that $$ P Q=Q R \Leftrightarrow \frac{A B}{B C}=\frac{A D}{D C} . $$ Since the quadrilaterals $A Q D R$ and $Q P C D$ are cyclic, we see that ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-715.jpg?height=403&width=399&top_left_y=1567&top_left_x=862) $\angle R D Q=\angle B A C$ and $\angle Q D P=\angle A C B$. By the law of sines it follows that $\frac{A B}{B C}=\frac{\sin (\angle A C B)}{\sin (\angle B A C)}$ and that $Q R=A D \sin (\angle R D Q), Q P=$ $C D \sin (\angle Q D P)$. Now we have $$ \frac{A B}{B C}=\frac{\sin (\angle A C B)}{\sin (\angle B A C)}=\frac{\sin (\angle Q D P)}{\sin (\angle R D Q)}=\frac{A D \cdot Q P}{Q R \cdot C D} $$ The statement (1) follows directly. 14. Denote by $R$ the intersection point of the bisector of $\angle A Q C$ and the line $A C$. From $\triangle A C Q$ we get $$ \frac{A R}{R C}=\frac{A Q}{Q C}=\frac{\sin \angle Q C A}{\sin \angle Q A C} $$ By the sine version of Ceva's theorem we have $\frac{\sin \angle A P B}{\sin \angle B P C} \cdot \frac{\sin \angle Q A C}{\sin \angle P A Q}$. $\frac{\sin \angle Q C P}{\sin \angle Q C A}=1$, which is equivalent to $$ \frac{\sin \angle A P B}{\sin \angle B P C}=\left(\frac{\sin \angle Q C A}{\sin \angle Q A C}\right)^{2} $$ because $\angle Q C A=\angle P A Q$ and $\angle Q A C=\angle Q C P$. Denote by $S(X Y Z)$ the area of a triangle $X Y Z$. Then $$ \frac{\sin \angle A P B}{\sin \angle B P C}=\frac{A P \cdot B P \cdot \sin \angle A P B}{B P \cdot C P \cdot \sin \angle B P C}=\frac{S(\Delta A B P)}{S(\Delta B C P)}=\frac{A B}{B C}, $$ which implies that $\left(\frac{A R}{R C}\right)^{2}=\frac{A B}{B C}$. Hence $R$ does not depend on $\Gamma$. 15. From the given equality we see that $0=\left(B P^{2}+P E^{2}\right)-\left(C P^{2}+P F^{2}\right)=$ $B F^{2}-C E^{2}$, so $B F=C E=x$ for some $x$. Similarly, there are $y$ and $z$ such that $C D=A F=y$ and $B D=A E=z$. It is easy to verify that $D$, $E$, and $F$ must lie on the segments $B C, C A, A B$. Denote by $a, b, c$ the length of the segments $B C, C A, A B$. It follows that $a=z+y, b=z+x, c=x+y$, so $D, E, F$ are the points where the excircles touch the sides of $\triangle A B C$. Hence $P, D$, and $I_{A}$ are collinear and $$ \angle P I_{A} C=\angle D I_{A} C=90^{\circ}-\frac{180^{\circ}-\angle A C B}{2}=\frac{\angle A C B}{2} $$ In the same way we obtain that $\angle P I_{B} C=\frac{\angle A C B}{2}$ and $P I_{B}=P I_{A}$. Analogously, we get $P I_{C}=P I_{B}$, which implies that $P$ is the circumcenter of the triangle $I_{A} I_{B} I_{C}$. 16. Apply an inversion with center at $P$ and radius $r$; let $\widehat{X}$ denote the image of $X$. The circles $\Gamma_{1}, \Gamma_{2}, \Gamma_{3}, \Gamma_{4}$ are transformed into lines $\widehat{\Gamma_{1}}, \widehat{\Gamma_{2}}, \widehat{\Gamma_{3}}, \widehat{\Gamma}_{4}$, where $\widehat{\Gamma_{1}} \| \widehat{\Gamma_{3}}$ and $\widehat{\Gamma_{2}} \| \widehat{\Gamma_{4}}$, and therefore $\widehat{A} \widehat{B} \widehat{C} \widehat{D}$ is a parallelogram. Further, we have $A B=\frac{r^{2}}{P \widehat{A} \cdot P \widehat{B}} \widehat{A} \widehat{B}, B C=\frac{r^{2}}{P \widehat{B} \cdot P \widehat{C}} \widehat{B} \widehat{C}, C D=\frac{r^{2}}{P \widehat{C} \cdot P \widehat{D}} \widehat{C} \widehat{D}$, $D A=\frac{r^{2}}{P \widehat{D} \cdot P \widehat{A}} \widehat{D} \widehat{A}$ and $P B=\frac{r^{2}}{P \widehat{B}}, P D=\frac{r^{2}}{P \widehat{D}}$. The equality to be proven becomes $$ \frac{P \widehat{D}^{2}}{P \widehat{B}^{2}} \cdot \frac{\widehat{A} \widehat{B} \cdot \widehat{B} \widehat{C}}{\widehat{A} \cdot \widehat{D} \widehat{C}}=\frac{P \widehat{D}^{2}}{P \widehat{B}^{2}} $$ which holds because $\widehat{A} \widehat{B}=\widehat{C} \widehat{D}$ and $\widehat{B} \widehat{C}=\widehat{D} \widehat{A}$. 17. The triangles $P D E$ and $C F G$ are homothetic; hence lines $F D, G E$, and $C P$ intersect at one point. Let $Q$ be the intersection point of the line $C P$ and the circumcircle of $\triangle A B C$. The required statement will follow if we show that $Q$ lies on the lines $G E$ and $F D$. Since $\angle C F G=\angle C B A=\angle C Q A$, the quadrilateral $A Q P F$ is cyclic. Analogously, $B Q P G$ is cyclic. However, the isosceles trapezoid $B D P G$ is also cyclic; it follows that $B, Q, D, P, G$ lie on a circle. Therefore we get $$ \angle P Q F=\angle P A C, \angle P Q D=\angle P B A . $$ Since $I$ is the incenter of $\triangle A B C$, we have $\angle C A I=\frac{1}{2} \angle C A B=$ $\frac{1}{2} \angle C B A=\angle I B A$; hence $C A$ is the tangent at $A$ to the circumcircle of $\triangle A B I$. This implies that $\angle P A C=$ $\angle P B A$, and it follows from (1) that $\angle P Q F=\angle P Q D$, i.e., that $F, D, Q$ are also collinear. Similarly, $G, E, Q$ are collinear and the claim is thus proved. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-717.jpg?height=412&width=358&top_left_y=632&top_left_x=903) 18. Let $A B C D E F$ be the given hexagon. We shall use the following lemma. Lemma. If $\angle X Z Y \geq 60^{\circ}$ and if $M$ is the midpoint of $X Y$, then $M Z \leq$ $\frac{\sqrt{3}}{2} X Y$, with equality if and only if $\triangle X Y Z$ is equilateral. Proof. Let $Z^{\prime}$ be the point such that $\triangle X Y Z^{\prime}$ is equilateral. Then $Z$ is inside the circle circumscribed about $\triangle X Y Z^{\prime}$. Consequently $M Z \leq$ $M Z^{\prime}=\frac{\sqrt{3}}{2} X Y$, with equality if and only if $Z=Z^{\prime}$. Set $A D \cap B E=P, B E \cap C F=Q$, and $C F \cap A D=R$. Suppose $\angle A P B=$ $\angle D P E>60^{\circ}$, and let $K, L$ be the midpoints of the segments $A B$ and $D E$ respectively. Then by the lemma, $$ \frac{\sqrt{3}}{2}(A B+D E)=K L \leq P K+P L<\frac{\sqrt{3}}{2}(A B+D E), $$ which is impossible. Therefore $\angle A P B \leq 60^{\circ}$ and similarly $\angle B Q C \leq 60^{\circ}$, $\angle C R D \leq 60^{\circ}$. But the sum of the angles $A P B, B Q C, C R D$ is $180^{\circ}$, from which we conclude that these angles are all equal to $60^{\circ}$, and moreover that the triangles $A P B, B Q C, C R D$ are equilateral. Thus $\angle A B C=\angle A B P+$ $\angle Q B C=120^{\circ}$, and in the same way all angles of the hexagon are equal to $120^{\circ}$. 19. Let $D, E, F$ be the midpoints of $B C, C A, A B$, respectively. We construct smaller semicircles $\Gamma_{d}, \Gamma_{e}, \Gamma_{f}$ inside $\triangle A B C$ with centers $D, E, F$ and radii $d=\frac{s-a}{2}, e=\frac{s-b}{2}, f=\frac{s-c}{2}$ respectively. Since $D E=d+e, D F=d+f$, and $E F=e+f$, we deduce that $\Gamma_{d}, \Gamma_{e}$, and $\Gamma_{f}$ touch each other at the points $D_{1}, E_{1}, F_{1}$ of tangency of the incircle $\gamma$ of $\triangle D E F$ with its sides ( $D_{1} \in E F$, etc.). Consider the circle $\Gamma_{g}$ with center $O$ and radius $g$ that lies inside $\triangle D E F$ and tangents $\Gamma_{d}, \Gamma_{e}, \Gamma_{f}$. Now let $O D, O E, O F$ meet the semicircles $\Gamma_{d}, \Gamma_{e}, \Gamma_{f}$ at $D^{\prime}, E^{\prime}, F^{\prime}$ respectively. We have $O D^{\prime}=O D+$ $D D^{\prime}=g+d+\frac{a}{2}=g+\frac{s}{2}$ and similarly $O E^{\prime}=O F^{\prime}=g+\frac{s}{2}$. It follows that the circle with center $O$ and radius $g+\frac{s}{2}$ touches all three semicircles, and consequently $t=$ $g+\frac{s}{2}>\frac{s}{2}$. Now set the coordinate system such that we have the points $D_{1}(0,0), E(-e, 0), F(f, 0)$ and such that the $y$ coordinate of $D$ is positive. ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-718.jpg?height=528&width=529&top_left_y=233&top_left_x=831) Apply the inversion with center $D_{1}$ and unit radius. This inversion maps the circles $\Gamma_{e}$ and $\Gamma_{f}$ to the lines $\widehat{\Gamma_{e}}\left[x=-\frac{1}{2 e}\right]$ and $\widehat{\Gamma_{e}}\left[x=\frac{1}{2 f}\right]$ respectively, and the circle $\gamma$ goes to the line $\widehat{\gamma}\left[y=\frac{1}{r}\right]$. The images $\widehat{\Gamma_{d}}$ and $\widehat{\Gamma_{g}}$ of $\Gamma_{d}, \Gamma_{g}$ are the circles that touch the lines $\widehat{\Gamma_{e}}$ and $\widehat{\Gamma_{f}}$. Since $\widehat{\Gamma_{d}}, \widehat{\Gamma_{g}}$ are perpendicular to $\gamma$, they have radii equal to $R=\frac{1}{4 e}+\frac{1}{4 f}$ and centers at $\left(-\frac{1}{4 e}+\frac{1}{4 f}, \frac{1}{r}\right)$ and $\left(-\frac{1}{4 e}+\frac{1}{4 f}, \frac{1}{r}+2 R\right)$ respectively. Let $p$ and $P$ be the distances from $D_{1}(0,0)$ to the centers of $\Gamma_{g}$ and $\widehat{\Gamma_{g}}$ respectively. We have that $P^{2}=\left(\frac{1}{4 e}-\frac{1}{4 f}\right)^{2}+\left(\frac{1}{r}+2 R\right)^{2}$, and that the circles $\Gamma_{g}$ and $\widehat{\Gamma_{g}}$ are homothetic with center of homothety $D_{1}$; hence $p / P=g / R$. On the other hand, $\widehat{\Gamma_{g}}$ is the image of $\Gamma_{g}$ under inversion; hence the product of the tangents from $D_{1}$ to these two circles is equal to 1 . In other words, we obtain $\sqrt{p^{2}-g^{2}} \cdot \sqrt{P^{2}-R^{2}}=1$. Using the relation $p / P=g / R$ we get $g=\frac{R}{P^{2}-R^{2}}$. The inequality we have to prove is equivalent to $(4+2 \sqrt{3}) g \leq r$. This can be proved as follows: $$ \begin{aligned} r-(4+2 \sqrt{3}) g & =\frac{r\left(P^{2}-R^{2}-(4+2 \sqrt{3}) R / r\right)}{P^{2}-R^{2}} \\ & =\frac{r\left(\left(\frac{1}{r}+2 R\right)^{2}+\left(\frac{1}{4 e}-\frac{1}{4 f}\right)^{2}-R^{2}-(4+2 \sqrt{3}) \frac{R}{r}\right)}{P^{2}-R^{2}} \\ & =\frac{r}{P^{2}-R^{2}}\left(\left(R \sqrt{3}-\frac{1}{r}\right)^{2}+\left(\frac{1}{4 e}-\frac{1}{4 f}\right)^{2}\right) \geq 0 \end{aligned} $$ Remark. One can obtain a symmetric formula for $g$ : $$ \frac{1}{2 g}=\frac{1}{s-a}+\frac{1}{s-b}+\frac{1}{s-c}+\frac{2}{r} $$ 20. Let $r_{i}$ be the remainder when $x_{i}$ is divided by $m$. Since there are at most $m^{m}$ types of $m$-consecutive blocks in the sequence $\left(r_{i}\right)$, some type will repeat at least twice. Then since the entire sequence is determined by one $m$-consecutive block, the entire sequence will be periodic. The formula works both forward and backward; hence using the rule $x_{i}=$ $x_{i+m}-\sum_{j=1}^{m-1} x_{i+j}$ we can define $x_{-1}, x_{-2}, \ldots$. Thus we obtain that $$ \left(r_{-m}, \ldots, r_{-1}\right)=(0,0, \ldots, 0,1) $$ Hence there are $m-1$ consecutive terms in the sequence $\left(x_{i}\right)$ that are divisible by $m$. If there were $m$ consecutive terms in the sequence $\left(x_{i}\right)$ divisible by $m$, then by the recurrence relation all the terms of $\left(x_{i}\right)$ would be divisible by $m$, which is impossible. 21. Let $a$ be a positive integer for which $d(a)=a^{2}$. Suppose that $a$ has $n+1$ digits, $n \geq 0$. Denote by $s$ the last digit of $a$ and by $f$ the first digit of $c$. Then $a=\overline{* \ldots * s}$, where $*$ stands for a digit that is not important to us at the moment. We have $\overline{\ldots * s^{2}}=a^{2}=d=\overline{* \ldots * f}$ and $b^{2}=\overline{s * \ldots *}^{2}=$ $c=\overline{f * \ldots *}$. We cannot have $s=0$, since otherwise $c$ would have at most $2 n$ digits, while $a^{2}$ has either $2 n+1$ or $2 n+2$ digits. The following table gives all possibilities for $s$ and $f$ : | $s$ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | $f=$ last digit of $\overline{* \ldots * s}^{2}$ | 1 | 4 | 9 | 6 | 5 | 6 | 9 | 4 | 1 | | $f=$ first digit of $\overline{s * \ldots *}^{2}$ | $1,2,3$ | $4-8$ | 9,1 | 1,2 | 2,3 | 3,4 | $4,5,6$ | $6,7,8$ | 8,9 | We obtain from the table that $s \in\{1,2,3\}$ and $f=s^{2}$, and consequently $c=b^{2}$ and $d$ have exactly $2 n+1$ digits each. Put $a=10 x+s$, where $x<10^{n}$. Then $b=10^{n} s+x, c=10^{2 n} s^{2}+2 \cdot 10^{n} s x+x^{2}$, and $d=$ $2 \cdot 10^{n+1} s x+10 x^{2}+s^{2}$, so from $d=a^{2}$ it follows that $x=2 s \cdot \frac{10^{n}-1}{9}$. Thus $a=\underbrace{6 \ldots 6}_{n} 3, a=\underbrace{4 \ldots 4}_{n} 2$ or $a=\underbrace{2 \ldots 2}_{n} 1$. For $n \geq 1$ we see that $a$ cannot be $a=6 \ldots 63$ or $a=4 \ldots 42$ (otherwise $a^{2}$ would have $2 n+2$ digits). Therefore $a$ equals $1,2,3$ or $\underbrace{2 \ldots 2}_{n} 1$ for $n \geq 0$. It is easy to verify that these numbers have the required property. 22. Let $a$ and $b$ be positive integers for which $\frac{a^{2}}{2 a b^{2}-b^{3}+1}=k$ is a positive integer. Since $k>0$, it follows that $2 a b^{2} \geq b^{3}$, so $2 a \geq b$. If $2 a>b$, then from $2 a b^{2}-b^{3}+1>0$ we see that $a^{2}>b^{2}(2 a-b)+1>b^{2}$, i.e. $a>b$. Therefore, if $a \leq b$, then $a=b / 2$. We can rewrite the given equation as a quadratic equation in $a, a^{2}-$ $2 k b^{2} a+k\left(b^{3}-1\right)=0$, which has two solutions, say $a_{1}$ and $a_{2}$, one of which is in $\mathbb{N}_{0}$. From $a_{1}+a_{2}=2 k b^{2}$ and $a_{1} a_{2}=k\left(b^{3}-1\right)$ it follows that the other solution is also in $\mathbb{N}_{0}$. Suppose w.l.o.g. that $a_{1} \geq a_{2}$. Then $a_{1} \geq k b^{2}$ and $$ 0 \leq a_{2}=\frac{k\left(b^{3}-1\right)}{a_{1}} \leq \frac{k\left(b^{3}-1\right)}{k b^{2}}M$. Also, straightforward calculation implies $$ \left(b^{2 n+1}+\frac{b^{n+2}+b^{n+1}}{2}-b^{3}\right)^{2}M$ there is an integer $a_{n}$ such that $\left|a_{n}\right|3$ we get $a_{n}= \pm(3 b-5)$. If $a_{n}=3 b-5$, then substituting in (1) yields $\frac{1}{4} b^{2 n}\left(b^{4}-14 b^{3}+45 b^{2}-\right.$ $52 b+20)=0$, with the unique positive integer solution $b=10$. Also, if $a_{n}=-3 b+5$, we similarly obtain $\frac{1}{4} b^{2 n}\left(b^{4}-14 b^{3}-3 b^{2}+28 b+20\right)-$ $2 b^{n+1}\left(3 b^{2}-2 b-5\right)=0$ for each $n$, which is impossible. For $b=10$ it is easy to show that $x_{n}=\left(\frac{10^{n}+5}{3}\right)^{2}$ for all $n$. This proves the statement. Second solution. In problems of this type, computing $z_{n}=\sqrt{x_{n}}$ asymptotically usually works. From $\lim _{n \rightarrow \infty} \frac{b^{2 n}}{(b-1) x_{n}}=1$ we infer that $\lim _{n \rightarrow \infty} \frac{b^{n}}{z_{n}}=\sqrt{b-1}$. Furthermore, from $\left(b z_{n}+z_{n+1}\right)\left(b z_{n}-z_{n+1}\right)=b^{2} x_{n}-x_{n+1}=b^{n+2}+3 b^{2}-2 b-5$ we obtain $$ \lim _{n \rightarrow \infty}\left(b z_{n}-z_{n+1}\right)=\frac{b \sqrt{b-1}}{2} $$ Since the $z_{n}$ 's are integers for all $n \geq M$, we conclude that $b z_{n}-z_{n+1}=$ $\frac{b \sqrt{b-1}}{2}$ for all $n$ sufficiently large. Hence $b-1$ is a perfect square, and moreover $b$ divides $2 z_{n+1}$ for all large $n$. It follows that $b \mid 10$; hence the only possibility is $b=10$. 24. Suppose that $m=u+v+w$ where $u, v, w$ are good integers whose product is a perfect square of an odd integer. Since $u v w$ is an odd perfect square, we have that $u v w \equiv 1(\bmod 4)$. Thus either two or none of the numbers $u, v, w$ are congruent to 3 modulo 4 . In both cases $u+v+w \equiv 3(\bmod 4)$. Hence $m \equiv 3(\bmod 4)$. Now we shall prove the converse: every $m \equiv 3(\bmod 4)$ has infinitely many representations of the desired type. Let $m=4 k+3$. We shall represent $m$ in the form $$ 4 k+3=x y+y z+z x, \quad \text { for } x, y, z \text { odd. } $$ The product of the summands is an odd square. Set $x=1+2 l$ and $y=1-2 l$. In order to satisfy (1), $z$ must satisfy $z=2 l^{2}+2 k+1$. The summands $x y, y z, z x$ are distinct except for finitely many $l$, so it remains only to prove that for infinitely many integers $l,|x y|,|y z|$, and $|z x|$ are not perfect squares. First, observe that $|x y|=4 l^{2}-1$ is not a perfect square for any $l \neq 0$. Let $p, q>m$ be fixed different prime numbers. The system of congruences $1+2 l \equiv p\left(\bmod p^{2}\right)$ and $1-2 l \equiv q\left(\bmod q^{2}\right)$ has infinitely many solutions $l$ by the Chinese remainder theorem. For any such $l$, the number $z=$ $2 l^{2}+2 k+1$ is divisible by neither $p$ nor $q$, and hence $|x z|$ (respectively $|y z|)$ is divisible by $p$, but not by $p^{2}$ (respectively by $q$, but not by $q^{2}$ ). Thus $x z$ and $y z$ are also good numbers. 25. Suppose that for every prime $q$, there exists an $n$ for which $n^{p} \equiv p(\bmod$ $q$ ). Assume that $q=k p+1$. By Fermat's theorem we deduce that $p^{k} \equiv$ $n^{k p}=n^{q-1} \equiv 1(\bmod q)$, so $q \mid p^{k}-1$. It is known that any prime $q$ such that $q \left\lvert\, \frac{p^{p}-1}{p-1}\right.$ must satisfy $q \equiv 1(\bmod$ $p$ ). Indeed, from $q \mid p^{q-1}-1$ it follows that $q \mid p^{\operatorname{gcd}(p, q-1)}-1$; but $q \nmid p-1$ because $\frac{p^{p}-1}{p-1} \equiv 1(\bmod p-1)$, so $\operatorname{gcd}(p, q-1) \neq 1$. Hence $\operatorname{gcd}(p, q-1)=p$. Now suppose $q$ is any prime divisor of $\frac{p^{p}-1}{p-1}$. Then $q \mid \operatorname{gcd}\left(p^{k}-1, p^{p}-1\right)=$ $p^{\operatorname{gcd}(p, k)}-1$, which implies that $\operatorname{gcd}(p, k)>1$, so $p \mid k$. Consequently $q \equiv 1$ $\left(\bmod p^{2}\right)$. However, the number $\frac{p^{p}-1}{p-1}=p^{p-1}+\cdots+p+1$ must have at least one prime divisor that is not congruent to 1 modulo $p^{2}$. Thus we arrived at a contradiction. Remark. Taking $q \equiv 1(\bmod p)$ is natural, because for every other $q, n^{p}$ takes all possible residues modulo $q$ (including $p$ too). Indeed, if $p \nmid q-1$, then there is an $r \in \mathbb{N}$ satisfying $p r \equiv 1(\bmod q-1)$; hence for any $a$ the congruence $n^{p} \equiv a(\bmod q)$ has the solution $n \equiv a^{r}(\bmod q)$. The statement of the problem itself is a special case of the Chebotarev's theorem. 26. Define the sequence $x_{k}$ of positive reals by $a_{k}=\cosh x_{k}$ ( $\cosh$ is the hyperbolic cosine defined by $\left.\cosh t=\frac{e^{t}+e^{-t}}{2}\right)$. Since $\cosh \left(2 x_{k}\right)=2 a_{k}^{2}-1=$ $\cosh x_{k+1}$, it follows that $x_{k+1}=2 x_{k}$ and thus $x_{k}=\lambda \cdot 2^{k}$ for some $\lambda>0$. From the condition $a_{0}=2$ we obtain $\lambda=\log (2+\sqrt{3})$. Therefore $$ a_{n}=\frac{(2+\sqrt{3})^{2^{n}}+(2-\sqrt{3})^{2^{n}}}{2} $$ Let $p$ be a prime number such that $p \mid a_{n}$. We distinguish the following two cases: (i) There exists an $m \in \mathbb{Z}$ such that $m^{2} \equiv 3(\bmod p)$. Then we have $$ (2+m)^{2^{n}}+(2-m)^{2^{n}} \equiv 0(\bmod p) $$ Since $(2+m)(2-m)=4-m^{2} \equiv 1(\bmod p)$, multiplying both sides of $(1)$ by $(2+m)^{2^{n}}$ gives $(2+m)^{2^{n+1}} \equiv-1(\bmod p)$. It follows that the multiplicative order of $(2+m)$ modulo $p$ is $2^{n+2}$, or $2^{n+2} \mid p-1$, which implies that $2^{n+3} \mid(p-1)(p+1)=p^{2}-1$. (ii) $m^{2} \equiv 3(\bmod p)$ has no integer solutions. We will work in the algebraic extension $\mathbb{Z}_{p}(\sqrt{3})$ of the field $\mathbb{Z}_{p}$. In this field $\sqrt{3}$ plays the role of $m$, so as in the previous case we obtain $(2+\sqrt{3})^{2^{n+1}}=-1$; i.e., the order of $2+\sqrt{3}$ in the multiplicative group $\mathbb{Z}_{p}(\sqrt{3})^{*}$ is $2^{n+2}$. We cannot finish the proof as in the previous case: in fact, we would conclude only that $2^{n+2}$ divides the order $p^{2}-1$ of the group. However, it will be enough to find a $u \in \mathbb{Z}_{p}(\sqrt{3})$ such that $u^{2}=2+\sqrt{3}$, since then the order of $u$ is equal to $2^{n+3}$. Note that $(1+\sqrt{3})^{2}=2(2+\sqrt{3})$. Thus it is sufficient to prove that $\frac{1}{2}$ is a perfect square in $\mathbb{Z}_{p}(\sqrt{3})$. But we know that in this field $a_{n}=$ $0=2 a_{n-1}^{2}-1$, and hence $2 a_{n-1}^{2}=1$ which implies $\frac{1}{2}=a_{n-1}^{2}$. This completes the proof. 27. Let $p_{1}, p_{2}, \ldots, p_{r}$ be distinct primes, where $r=p-1$. Consider the sets $B_{i}=\left\{p_{i}, p_{i}^{p+1}, \ldots, p_{i}^{(r-1) p+1}\right\}$ and $B=\bigcup_{i=1}^{r} B_{i}$. Then $B$ has $(p-1)^{2}$ elements and satisfies (i) and (ii). Now suppose that $|A| \geq r^{2}+1$ and that $A$ satisfies (i) and (ii), and let $\left\{t_{1}, \ldots, t_{r^{2}+1}\right\}$ be distinct elements of $A$, where $t_{j}=p_{1}^{\alpha_{j_{1}}} \cdot p_{2}^{\alpha_{j_{2}}} \cdots p_{r}^{\alpha_{j_{r}}}$. We shall show that the product of some elements of $A$ is a perfect $p$ th power, i.e., that there exist $\tau_{j} \in\{0,1\}\left(1 \leq j \leq r^{2}+1\right)$, not all equal to 0 , such that $T=t_{1}^{\tau_{1}} \cdot t_{2}^{\tau_{2}} \cdots t_{r^{2}+1}^{\tau_{r^{2}+1}}$ is a $p$ th power. This is equivalent to the condition that $$ \sum_{j=1}^{r^{2}+1} \alpha_{i j} \tau_{j} \equiv 0(\bmod p) $$ holds for all $i=1, \ldots, r$. By Fermat's theorem it is sufficient to find integers $x_{1}, \ldots, x_{r^{2}+1}$, not all zero, such that the relation $$ \sum_{j=1}^{r^{2}+1} \alpha_{i j} x_{j}^{r} \equiv 0(\bmod p) $$ is satisfied for all $i \in\{1, \ldots, r\}$. Set $F_{i}=\sum_{j=1}^{r^{2}+1} \alpha_{i j} x_{j}^{r}$. We want to find $x_{1}, \ldots, x_{r}$ such that $F_{1} \equiv F_{2} \equiv \cdots \equiv F_{r} \equiv 0(\bmod p)$, which is by Fermat's theorem equivalent to $$ F\left(x_{1}, \ldots, x_{r}\right)=F_{1}^{r}+F_{2}^{r}+\cdots+F_{r}^{r} \equiv 0(\bmod p) . $$ Of course, one solution of (1) is $(0, \ldots, 0)$ : we are not satisfied with it because it generates the empty subset of $A$, but it tells us that (1) has at least one solution. We shall prove that the number of solutions of (1) is divisible by $p$, which will imply the existence of a nontrivial solution and thus complete the proof. To do this, consider the sum $\sum F\left(x_{1}, \ldots, x_{r^{2}+1}\right)^{r}$ taken over all vectors $\left(x_{1}, \ldots, x_{r^{2}+1}\right)$ in the vector space $\mathbb{Z}_{p}^{r^{2}+1}$. Our statement is equivalent to $$ \sum F\left(x_{1}, \ldots, x_{r^{2}+1}\right)^{r} \equiv 0(\bmod p) $$ Since the degree of $F^{r}$ is $r^{2}$, in each monomial in $F^{r}$ at least one of the variables is missing. Consider any of these monomials, say $b x_{i_{1}}^{a_{1}} x_{i_{2}}^{a_{2}} \cdots x_{i_{k}}^{a_{k}}$. Then the sum $\sum b x_{i_{1}}^{a_{1}} x_{i_{2}}^{a_{2}} \cdots x_{i_{k}}^{a_{k}}$, taken over the set of all vectors $\left(x_{1}, \ldots, x_{r^{2}+1}\right) \in \mathbb{Z}_{p}^{r^{2}+1}$, is equal to $$ p^{r^{2}+1-u} \cdot \sum_{\left(x_{i_{1}}, \ldots, x_{i_{k}}\right) \in \mathbb{Z}_{p}^{k}} b x_{i_{1}}^{a_{1}} x_{i_{2}}^{a_{2}} \cdots x_{i_{k}}^{a_{k}}, $$ which is divisible by $p$, so that (2) is proved. Thus the answer is $(p-1)^{2}$. ### 4.45 Solutions to the Shortlisted Problems of IMO 2004 1. By symmetry, it is enough to prove that $t_{1}+t_{2}>t_{3}$. We have $$ \left(\sum_{i=1}^{n} t_{i}\right)\left(\sum_{i=1}^{n} \frac{1}{t}_{i}\right)=n^{2}+\sum_{i0$ and $a_{n+1}=a_{n}+a_{n-1}$ or $a_{n}-a_{n-1}$. In particular, if $a_{n}\max \left\{a_{n}, a_{n-1}\right\}$. Let us remove all $a_{n}$ such that $a_{n}a_{n+1}$. We distinguish two cases: (i) If $a_{n+1}>a_{n}$, we have $b_{m}=a_{n+1}$ and $b_{m-1} \geq a_{n-1}$ (since $b_{m-1}$ is either $a_{n-1}$ or $a_{n}$ ). Then $b_{m+1}-b_{m}=a_{n+2}-a_{n+1}=a_{n}=a_{n+1}-$ $a_{n-1}=b_{m}-a_{n-1} \geq b_{m}-b_{m-1}$. (ii) If $a_{n+1}0$ can be uniquely expressed as a continued fraction of the form $a_{0}+1 /\left(a_{1}+1 /\left(a_{2}+1 /\left(\cdots+1 / a_{n}\right)\right)\right)$ (where $a_{0} \in \mathbb{N}_{0}, a_{1}, \ldots, a_{n} \in \mathbb{N}$ ). Then we write $x=\left[a_{0} ; a_{1}, a_{2}, \ldots, a_{n}\right]$. Since $n$ depends only on $x$, the function $s(x)=(-1)^{n}$ is well-defined. For $x<0$ we define $s(x)=-s(-x)$, and set $s(0)=1$. We claim that this $s(x)$ satisfies the requirements of the problem. The equality $s(x) s(y)=-1$ trivially holds if $x+y=0$. Suppose that $x y=1$. We may assume w.l.o.g. that $x>y>0$. Then $x>1$, so if $x=\left[a_{0} ; a_{1}, a_{2}, \ldots, a_{n}\right]$, then $a_{0} \geq 1$ and $y=0+1 / x=$ $\left[0 ; a_{0}, a_{1}, a_{2}, \ldots, a_{n}\right]$. It follows that $s(x)=(-1)^{n}, s(y)=(-1)^{n+1}$, and hence $s(x) s(y)=-1$. Finally, suppose that $x+y=1$. We consider two cases: (i) Let $x, y>0$. We may assume w.l.o.g. that $x>1 / 2$. Then there exist natural numbers $a_{2}, \ldots, a_{n}$ such that $x=\left[0 ; 1, a_{2}, \ldots, a_{n}\right]=$ $1 /(1+1 / t)$, where $t=\left[a_{2}, \ldots, a_{n}\right]$. Since $y=1-x=1 /(1+t)=$ $\left[0 ; 1+a_{2}, a_{3}, \ldots, a_{n}\right]$, we have $s(x)=(-1)^{n}$ and $s(y)=(-1)^{n-1}$, giving us $s(x) s(y)=-1$. (ii) Let $x>0>y$. If $a_{0}, \ldots, a_{n} \in \mathbb{N}$ are such that $-y=\left[a_{0} ; a_{1}, \ldots, a_{n}\right]$, then $x=\left[1+a_{0} ; a_{1}, \ldots, a_{n}\right]$. Thus $s(y)=-s(-y)=-(-1)^{n}$ and $s(x)=(-1)^{n}$, so again $s(x) s(y)=-1$. 4. Let $P(x)=a_{0}+a_{1} x+\cdots+a_{n} x^{n}$. For every $x \in \mathbb{R}$ the triple $(a, b, c)=$ $(6 x, 3 x,-2 x)$ satisfies the condition $a b+b c+c a=0$. Then the condition on $P$ gives us $P(3 x)+P(5 x)+P(-8 x)=2 P(7 x)$ for all $x$, implying that for all $i=0,1,2, \ldots, n$ the following equality holds: $$ \left(3^{i}+5^{i}+(-8)^{i}-2 \cdot 7^{i}\right) a_{i}=0 $$ Suppose that $a_{i} \neq 0$. Then $K(i)=3^{i}+5^{i}+(-8)^{i}-2 \cdot 7^{i}=0$. But $K(i)$ is negative for $i$ odd and positive for $i=0$ or $i \geq 6$ even. Only for $i=2$ and $i=4$ do we have $K(i)=0$. It follows that $P(x)=a_{2} x^{2}+a_{4} x^{4}$ for some real numbers $a_{2}, a_{4}$. It is easily verified that all such $P(x)$ satisfy the required condition. 5. By the general mean inequality $\left(M_{1} \leq M_{3}\right)$, the LHS of the inequality to be proved does not exceed $$ E=\frac{3}{\sqrt[3]{3}} \sqrt[3]{\frac{1}{a}+\frac{1}{b}+\frac{1}{c}+6(a+b+c)} $$ From $a b+b c+c a=1$ we obtain that $3 a b c(a+b+c)=3(a b \cdot a c+$ $a b \cdot b c+a c \cdot b c) \leq(a b+a c+b c)^{2}=1$; hence $6(a+b+c) \leq \frac{2}{a b c}$. Since $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=\frac{a b+b c+c a}{a b c}=\frac{1}{a b c}$, it follows that $$ E \leq \frac{3}{\sqrt[3]{3}} \sqrt[3]{\frac{3}{a b c}} \leq \frac{1}{a b c} $$ where the last inequality follows from the AM-GM inequality $1=a b+b c+$ $c a \geq 3 \sqrt[3]{(a b c)^{2}}$, i.e., $a b c \leq 1 /(3 \sqrt{3})$. The desired inequality now follows. Equality holds if and only if $a=b=c=1 / \sqrt{3}$. 6. Let us make the substitution $z=x+y, t=x y$. Given $z, t \in \mathbb{R}, x, y$ are real if and only if $4 t \leq z^{2}$. Define $g(x)=2(f(x)-x)$. Now the given functional equation transforms into $$ f\left(z^{2}+g(t)\right)=(f(z))^{2} \text { for all } t, z \in \mathbb{R} \text { with } z^{2} \geq 4 t $$ Let us set $c=g(0)=2 f(0)$. Substituting $t=0$ into (1) gives us $$ f\left(z^{2}+c\right)=(f(z))^{2} \text { for all } z \in \mathbb{R} $$ If $c<0$, then taking $z$ such that $z^{2}+c=0$, we obtain from (2) that $f(z)^{2}=c / 2$, which is impossible; hence $c \geq 0$. We also observe that $$ x>c \quad \text { implies } \quad f(x) \geq 0 $$ If $g$ is a constant function, we easily find that $c=0$ and therefore $f(x)=x$, which is indeed a solution. Suppose $g$ is nonconstant, and let $a, b \in \mathbb{R}$ be such that $g(a)-g(b)=d>0$. For some sufficiently large $K$ and each $u, v \geq K$ with $v^{2}-u^{2}=d$ the equality $u^{2}+g(a)=v^{2}+g(b)$ by (1) and (3) implies $f(u)=f(v)$. This further leads to $g(u)-g(v)=2(v-u)=\frac{d}{u+\sqrt{u^{2}+d}}$. Therefore every value from some suitably chosen segment $[\delta, 2 \delta]$ can be expressed as $g(u)-g(v)$, with $u$ and $v$ bounded from above by some $M$. Consider any $x, y$ with $y>x \geq 2 \sqrt{M}$ and $\deltaN$ in (2) we obtain $k^{2}=k$, so $k=0$ or $k=1$ 。 By (2) we have $f(-z)= \pm f(z)$, and thus $|f(z)| \leq 1$ for all $z \leq-N$. Hence $g(u)=2 f(u)-2 u \geq-2-2 u$ for $u \leq-N$, which implies that $g$ is unbounded. Hence for each $z$ there exists $t$ such that $z^{2}+g(t)>N$, and consequently $f(z)^{2}=f\left(z^{2}+g(t)\right)=k=k^{2}$. Therefore $f(z)= \pm k$ for each $z$. If $k=0$, then $f(x) \equiv 0$, which is clearly a solution. Assume $k=1$. Then $c=2 f(0)=2$ (because $c \geq 0$ ), which together with (3) implies $f(x)=1$ for all $x \geq 2$. Suppose that $f(t)=-1$ for some $t<2$. Then $t-g(t)=3 t+2>4 t$. If also $t-g(t) \geq 0$, then for some $z \in \mathbb{R}$ we have $z^{2}=t-g(t)>4 t$, which by (1) leads to $f(z)^{2}=f\left(z^{2}+g(t)\right)=f(t)=-1$, which is impossible. Hence $t-g(t)<0$, giving us $t<-2 / 3$. On the other hand, if $X$ is any subset of $(-\infty,-2 / 3)$, the function $f$ defined by $f(x)=-1$ for $x \in X$ and $f(x)=1$ satisfies the requirements of the problem. To sum up, the solutions are $f(x)=x, f(x)=0$ and all functions of the form $$ f(x)= \begin{cases}1, & x \notin X \\ -1, & x \in X\end{cases} $$ where $X \subset(-\infty,-2 / 3)$. 7. Let us set $c_{k}=A_{k-1} / A_{k}$ for $k=1,2, \ldots, n$, where we define $A_{0}=0$. We observe that $a_{k} / A_{k}=\left(k A_{k}-(k-1) A_{k-1}\right) / A_{k}=k-(k-1) c_{k}$. Now we can write the LHS of the inequality to be proved in terms of $c_{k}$, as follows: $$ \sqrt[n]{\frac{G_{n}}{A_{n}}}=\sqrt[n^{2}]{c_{2} c_{3}^{2} \cdots c_{n}^{n-1}} \text { and } \frac{g_{n}}{G_{n}}=\sqrt[n]{\prod_{k=1}^{n}\left(k-(k-1) c_{k}\right)} $$ By the $A M-G M$ inequality we have $$ \begin{aligned} n \sqrt[n^{2}]{1^{n(n+1) / 2} c_{2} c_{3}^{2} \ldots c_{n}^{n-1}} & \leq \frac{1}{n}\left(\frac{n(n+1)}{2}+\sum_{k=2}^{n}(k-1) c_{k}\right) \\ & =\frac{n+1}{2}+\frac{1}{n} \sum_{k=1}^{n}(k-1) c_{k} . \end{aligned} $$ Also by the AM-GM inequality, we have $$ \sqrt[n]{\prod_{k=1}^{n}\left(k-(k-1) c_{k}\right)} \leq \frac{n+1}{2}-\frac{1}{n} \sum_{k=1}^{n}(k-1) c_{k} $$ Adding (1) and (2), we obtain the desired inequality. Equality holds if and only if $a_{1}=a_{2}=\cdots=a_{n}$. 8. Let us write $n=10001$. Denote by $\mathcal{T}$ the set of ordered triples $(a, C, \mathcal{S})$, where $a$ is a student, $C$ a club, and $\mathcal{S}$ a society such that $a \in C$ and $C \in \mathcal{S}$. We shall count $|\mathcal{T}|$ in two different ways. Fix a student $a$ and a society $\mathcal{S}$. By (ii), there is a unique club $C$ such that $(a, C, \mathcal{S}) \in \mathcal{T}$. Since the ordered pair $(a, \mathcal{S})$ can be chosen in $n k$ ways, we have that $|\mathcal{T}|=n k$. Now fix a club $C$. By (iii), $C$ is in exactly $(|C|-1) / 2$ societies, so there are $|C|(|C|-1) / 2$ triples from $\mathcal{T}$ with second coordinate $C$. If $\mathcal{C}$ is the set of all clubs, we obtain $|\mathcal{T}|=\sum_{C \in \mathcal{C}} \frac{|C|(|C|-1)}{2}$. But we also conclude from (i) that $$ \sum_{C \in \mathcal{C}} \frac{|C|(|C|-1)}{2}=\frac{n(n-1)}{2} $$ Therefore $n(n-1) / 2=n k$, i.e., $k=(n-1) / 2=5000$. On the other hand, for $k=(n-1) / 2$ there is a desired configuration with only one club $C$ that contains all students and $k$ identical societies with only one element (the club $C$ ). It is easy to verify that (i)-(iii) hold. 9. Obviously we must have $2 \leq k \leq n$. We shall prove that the possible values for $k$ and $n$ are $2 \leq k \leq n \leq 3$ and $3 \leq k \leq n$. Denote all colors and circles by $1, \ldots, n$. Let $F(i, j)$ be the set of colors of the common points of circles $i$ and $j$. Suppose that $k=2i$. We now prove by induction on $k$ that a desired coloring exists for each $n \geq k \geq 3$. Let there be given $n$ circles. By the inductive hypothesis, circles $1,2, \ldots, n-1$ can be colored in $n-1$ colors, $k$ of which appear on each circle, such that color $i$ appears on circle $i$. Then we set $F(i, n)=\{i, n\}$ for $i=1, \ldots, k$ and $F(i, n)=\{n\}$ for $i>n$. We thus obtain a coloring of the $n$ circles in $n$ colors, such that $k+1$ colors (including color $i$ ) appear on each circle $i$. 10. The least number of edges of such a graph is $n$. We note that deleting edge $A B$ of a 4-cycle $A B C D$ from a connected and nonbipartite graph $G$ yields a connected and nonbipartite graph, say $H$. Indeed, the connectedness is obvious; also, if $H$ were bipartite with partition of the set of vertices into $P_{1}$ and $P_{2}$, then w.l.o.g. $A, C \in P_{1}$ and $B, D \in P_{2}$, so $G=H \cup\{A B\}$ would also be bipartite with the same partition, a contradiction. Any graph that can be obtained from the complete $n$-graph in the described way is connected and has at least one cycle (otherwise it would be bipartite); hence it must have at least $n$ edges. Now consider a complete graph with vertices $V_{1}, V_{2}, \ldots, V_{n}$. Let us remove every edge $V_{i} V_{j}$ with $3 \leq in / 2$, and 0 otherwise. This matrix satisfies the conditions from the problem and all row sums and column sums are equal to $\pm n / 2$. Hence $C \geq n / 2$. Let us show that $C=n / 2$. Assume to the contrary that there is a matrix $B=\left(b_{i j}\right)_{i, j=1}^{n}$ all of whose row sums and column sums are either greater than $n / 2$ or smaller than $-n / 2$. We may assume w.l.o.g. that at least $n / 2$ row sums are positive and, permuting rows if necessary, that the first $n / 2$ rows have positive sums. The sum of entries in the $n / 2 \times n$ submatrix $B^{\prime}$ consisting of first $n / 2$ rows is greater than $n^{2} / 4$, and since each column of $B^{\prime}$ has sum at most $n / 2$, it follows that more than $n / 2$ column sums of $B^{\prime}$, and therefore also of $B$, are positive. Again, suppose w.l.o.g. that the first $n / 2$ column sums are positive. Thus the sums $R^{+}$and $C^{+}$of entries in the first $n / 2$ rows and in the first $n / 2$ columns respectively are greater than $n^{2} / 4$. Now the sum of all entries of $B$ can be written as $$ \sum a_{i j}=R^{+}+C^{+}+\sum_{\substack{i>n / 2 \\ j>n / 2}} a_{i j}-\sum_{\substack{i \leq n / 2 \\ j \leq n / 2}} a_{i j}>\frac{n^{2}}{2}-\frac{n^{2}}{4}-\frac{n^{2}}{4}=0 $$ a contradiction. Hence $C=n / 2$, as claimed. 12. We say that a number $n \in\{1,2, \ldots, N\}$ is winning if the player who is on turn has a winning strategy, and losing otherwise. The game is of type $A$ if and only if 1 is a losing number. Let us define $n_{0}=N, n_{i+1}=\left[n_{i} / 2\right]$ for $i=0,1, \ldots$ and let $k$ be such that $n_{k}=1$. Consider the sets $A_{i}=\left\{n_{i+1}+1, \ldots, n_{i}\right\}$. We call a set $A_{i}$ all-winning if all numbers from $A_{i}$ are winning, even-winning if even numbers are winning and odd are losing, and odd-winning if odd numbers are winning and even are losing. (i) Suppose $A_{i}$ is even-winning and consider $A_{i+1}$. Multiplying any number from $A_{i+1}$ by 2 yields an even number from $A_{i}$, which is a losing number. Thus $x \in A_{i+1}$ is winning if and only if $x+1$ is losing, i.e., if and only if it is even. Hence $A_{i+1}$ is also even-winning. (ii) Suppose $A_{i}$ is odd-winning. Then each $k \in A_{i+1}$ is winning, since $2 k$ is losing. Hence $A_{i+1}$ is all-winning. (iii) Suppose $A_{i}$ is all-winning. Multiplying $x \in A_{i+1}$ by two is then a losing move, so $x$ is winning if and only if $x+1$ is losing. Since $n_{i+1}$ is losing, $A_{i+1}$ is odd-winning if $n_{i+1}$ is even and even-winning otherwise. We observe that $A_{0}$ is even-winning if $N$ is odd and odd-winning otherwise. Also, if some $A_{i}$ is even-winning, then all $A_{i+1}, A_{i+2}, \ldots$ are evenwinning and thus 1 is losing; i.e., the game is of type $A$. The game is of type $B$ if and only if the sets $A_{0}, A_{1}, \ldots$ are alternately odd-winning and allwinning with $A_{0}$ odd-winning, which is equivalent to $N=n_{0}, n_{2}, n_{4}, \ldots$ all being even. Thus $N$ is of type $B$ if and only if all digits at the odd positions in the binary representation of $N$ are zeros. Since $2004=\overline{11111010100}$ in the binary system, 2004 is of type $A$. The least $N>2004$ that is of type $B$ is $\overline{100000000000}=2^{11}=2048$. Thus the answer to part (b) is 2048. 13. Since $X_{i}, Y_{i}, i=1, \ldots, 2004$, are 4008 distinct subsets of the set $S_{n}=$ $\{1,2, \ldots, n\}$, it follows that $2^{n} \geq 4008$, i.e. $n \geq 12$. Suppose $n=12$. Let $\mathcal{X}=\left\{X_{1}, \ldots, X_{2004}\right\}, \mathcal{Y}=\left\{Y_{1}, \ldots, Y_{2004}\right\}, \mathcal{A}=$ $\mathcal{X} \cup \mathcal{Y}$. Exactly $2^{12}-4008=88$ subsets of $S_{n}$ do not occur in $\mathcal{A}$. Since each row intersects each column, we have $X_{i} \cap Y_{j} \neq \emptyset$ for all $i, j$. Suppose $\left|X_{i}\right|,\left|Y_{j}\right| \leq 3$ for some indices $i, j$. Since then $\left|X_{i} \cup Y_{j}\right| \leq 5$, any of at least $2^{7}>88$ subsets of $S_{n} \backslash\left(X_{i} \cap Y_{j}\right)$ can occur in neither $\mathcal{X}$ nor $\mathcal{Y}$, which is impossible. Hence either in $\mathcal{X}$ or in $\mathcal{Y}$ all subsets are of size at least 4. Suppose w.l.o.g. that $k=\left|X_{l}\right|=\min _{i}\left|X_{i}\right| \geq 4$. There are $$ n_{k}=\binom{12-k}{0}+\binom{12-k}{1}+\cdots+\binom{12-k}{k-1} $$ subsets of $S \backslash X_{l}$ with fewer than $k$ elements, and none of them can be either in $\mathcal{X}$ (because $\left|X_{l}\right|$ is minimal in $\mathcal{X}$ ) or in $\mathcal{Y}$. Hence we must have $n_{k} \leq 88$. Since $n_{4}=93$ and $n_{5}=99$, it follows that $k \geq 6$. But then none of the $\binom{12}{0}+\cdots+\binom{12}{5}=1586$ subsets of $S_{n}$ is in $\mathcal{X}$, hence at least $1586-88=1498$ of them are in $\mathcal{Y}$. The 1498 complements of these subsets also do not occur in $\mathcal{X}$, which adds to 3084 subsets of $S_{n}$ not occurring in $\mathcal{X}$. This is clearly a contradiction. Now we construct a golden matrix for $n=13$. Let $$ A_{1}=\left[\begin{array}{ll} 1 & 1 \\ 2 & 3 \end{array}\right] \quad \text { and } \quad A_{m}=\left[\begin{array}{ll} A_{m-1} & A_{m-1} \\ A_{m-1} & B_{m-1} \end{array}\right] \text { for } m=2,3, \ldots $$ where $B_{m-1}$ is the $2^{m-1} \times 2^{m-1}$ matrix with all entries equal to $m+2$. It can be easily proved by induction that each of the matrices $A_{m}$ is golden. Moreover, every upper-left square submatrix of $A_{m}$ of size greater than $2^{m-1}$ is also golden. Since $2^{10}<2004<2^{11}$, we thus obtain a golden matrix of size 2004 with entries in $S_{13}$. 14. Suppose that an $m \times n$ rectangle can be covered by "hooks". For any hook $H$ there is a unique hook $K$ that covers its " inside" square. Then also $H$ covers the inside square of $K$, so the set of hooks can be partitioned into pairs of type $\{H, K\}$, each of which forms one of the following two figures consisting of 12 squares: ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-730.jpg?height=252&width=979&top_left_y=972&top_left_x=306) Thus the $m \times n$ rectangle is covered by these tiles. It immediately follows that $12 \mid \mathrm{mn}$. Suppose one of $m, n$ is divisible by 4 . Let w.l.o.g. $4 \mid m$. If $3 \mid n$, one can easily cover the rectangle by $3 \times 4$ rectangles and therefore by hooks. Also, if $12 \mid m$ and $n \notin\{1,2,5\}$, then there exist $k, l \in \mathbb{N}_{0}$ such that $n=3 k+4 l$, and thus the rectangle $m \times n$ can be partitioned into $3 \times 12$ and $4 \times 12$ rectangles all of which can be covered by hooks. If $12 \mid m$ and $n=1,2$, or 5 , then it is easy to see that covering by hooks is not possible. Now suppose that $4 \nmid m$ and $4 \nmid n$. Then $m, n$ are even and the number of tiles is odd. Assume that the total number of tiles of types $A_{1}$ and $B_{1}$ is odd (otherwise the total number of tiles of types $A_{2}$ and $B_{2}$ is odd, which is analogous). If we color in black all columns whose indices are divisible by 4 , we see that each tile of type $A_{1}$ or $B_{1}$ covers three black squares, which yields an odd number in total. Hence the total number of black squares covered by the tiles of types $A_{2}$ and $B_{2}$ must be odd. This is impossible, since each such tile covers two or four black squares. 15. Denote by $V_{1}, \ldots, V_{n}$ the vertices of a graph $G$ and by $E$ the set of its edges. For each $i=1, \ldots, n$, let $A_{i}$ be the set of vertices connected to $V_{i}$ by an edge, $G_{i}$ the subgraph of $G$ whose set of vertices is $A_{i}$, and $E_{i}$ the set of edges of $G_{i}$. Also, let $v_{i}, e_{i}$, and $t_{i}=f\left(G_{i}\right)$ be the numbers of vertices, edges, and triangles in $G_{i}$ respectively. The numbers of tetrahedra and triangles one of whose vertices is $V_{i}$ are respectively equal to $t_{i}$ and $e_{i}$. Hence $$ \sum_{i=1}^{n} v_{i}=2|E|, \quad \sum_{i=1}^{n} e_{i}=3 f(G) \quad \text { and } \quad \sum_{i=1}^{n} t_{i}=4 g(G) . $$ Since $e_{i} \leq v_{i}\left(v_{i}-1\right) / 2 \leq v_{i}^{2} / 2$ and $e_{i} \leq|E|$, we obtain $e_{i}^{2} \leq v_{i}^{2}|E| / 2$, i.e., $e_{i} \leq v_{i} \sqrt{|E| / 2}$. Summing over all $i$ yields $3 f(G) \leq 2|E| \sqrt{|E| / 2}$, or equivalently $f(G)^{2} \leq 2|E|^{3} / 9$. Since this relation holds for each graph $G_{i}$, it follows that $$ t_{i}=f\left(G_{i}\right)=f\left(G_{i}\right)^{1 / 3} f\left(G_{i}\right)^{2 / 3} \leq\left(\frac{2}{9}\right)^{1 / 3} f(G)^{1 / 3} e_{i} $$ Summing the last inequality for $i=1, \ldots, n$ gives us $$ 4 g(G) \leq 3\left(\frac{2}{9}\right)^{1 / 3} f(G)^{1 / 3} \cdot f(G), \quad \text { i.e. } \quad g(G)^{3} \leq \frac{3}{32} f(G)^{4} $$ The constant $c=3 / 32$ is the best possible. Indeed, in a complete graph $C_{n}$ it holds that $g\left(K_{n}\right)^{3} / f\left(K_{n}\right)^{4}=\binom{n}{4}^{3}\binom{n}{3}^{-4} \rightarrow \frac{3}{32}$ as $n \rightarrow \infty$. Remark. Let $N_{k}$ be the number of complete $k$-subgraphs in a finite graph $G$. Continuing inductively, one can prove that $N_{k+1}^{k} \leq \frac{k!}{(k+1)^{k}} N_{k}^{k+1}$. 16. Note that $\triangle A N M \sim \triangle A B C$ and consequently $A M \neq A N$. Since $O M=$ $O N$, it follows that $O R$ is a perpendicular bisector of $M N$. Thus, $R$ is the common point of the median of $M N$ and the bisector of $\angle M A N$. Then it follows from a well-known fact that $R$ lies on the circumcircle of $\triangle A M N$. Let $K$ be the intersection of $A R$ and $B C$. We then have $\angle M R A=$ $\angle M N A=\angle A B K$ and $\angle N R A=\angle N M A=\angle A C K$, from which we conclude that $R M B K$ and $R N C K$ are cyclic. Thus $K$ is the desired intersection of the circumcircles of $\triangle B M R$ and $\triangle C N R$ and it indeed lies on $B C$. 17. Let $H$ be the reflection of $G$ about $A B(G H \| \ell)$. Let $M$ be the intersection of $A B$ and $\ell$. Since $\angle F E A=\angle F M A=90^{\circ}$, it follows that $A E M F$ is cyclic and hence $\angle D F E=\angle B A E=\angle D E F$. The last equality holds because $D E$ is tangent to $\Gamma$. It follows that $D E=$ $D F$ and hence $D F^{2}=D E^{2}=$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-731.jpg?height=396&width=459&top_left_y=1591&top_left_x=841) $D C \cdot D A$ (the power of $D$ with respect to $\Gamma$ ). It then follows that $\angle D C F=\angle D F A=\angle H G A=\angle H C A$. Thus it follows that $H$ lies on $C F$ as desired. 18. It is important to note that since $\beta<\gamma, \angle A D C=90^{\circ}-\gamma+\beta$ is acute. It is elementary that $\angle C A O=90^{\circ}-\beta$. Let $X$ and $Y$ respectively be the intersections of $F E$ and $G H$ with $A D$. We trivially get $X \in E F \perp A D$ and $\triangle A G H \cong \triangle A C B$. Consequently, $\angle G A Y=\angle O A B=90^{\circ}-\gamma=$ $90^{\circ}-\angle A G Y$. Hence, $G H \perp A D$ and thus $G H \| F E$. That $E F G H$ is a rectangle is now equivalent to $F X=G Y$ and $E X=H Y$. We have that $G Y=A G \sin \gamma=A C \sin \gamma$ and $F X=A F \sin \gamma$ (since $\angle A F X=\gamma$ ). Thus, $$ F X=G Y \Leftrightarrow C F=A F=A C \Leftrightarrow \angle A F C=60^{\circ} \Leftrightarrow \angle A D C=30^{\circ} . $$ Since $\angle A D C=180^{\circ}-\angle D C A-\angle D A C=180^{\circ}-\gamma-\left(90^{\circ}-\beta\right)$, it immediately follows that $F X=G Y \Leftrightarrow \gamma-\beta=60^{\circ}$. We similarly obtain $E X=H Y \Leftrightarrow \gamma-\beta=60^{\circ}$, proving the statement of the problem. 19. Assume first that the points $A, B, C, D$ are concyclic. Let the lines $B P$ and $D P$ meet the circumcircle of $A B C D$ again at $E$ and $F$, respectively. Then it follows from the given conditions that $\widehat{A B}=\widehat{C F}$ and $\widehat{A D}=\widehat{C E}$; hence $B F \| A C$ and $D E \| A C$. Therefore $B F E D$ and $B F A C$ are isosceles trapezoids and thus $P=B E \cap D F$ lies on the common bisector of segments $B F, E D, A C$. Hence $A P=C P$. Assume in turn that $A P=C P$. Let $P$ w.l.o.g. lie in the triangles $A C D$ and $B C D$. Let $B P$ and $D P$ meet $A C$ at $K$ and $L$, respectively. The points $A$ and $C$ are isogonal conjugates with respect to $\triangle B D P$, which implies that $\angle A P K=\angle C P L$. Since $A P=C P$, we infer that $K$ and $L$ are symmetric with respect to the perpendicular bisector $p$ of $A C$. Let $E$ be the reflection of $D$ in $p$. Then $E$ lies on the line $B P$, and the triangles $A P D$ and $C P E$ are congruent. Thus $\angle B D C=\angle A D P=\angle B E C$, which means that the points $B, C, E, D$ are concyclic. Moreover, $A, C, E, D$ are also concyclic. Hence, $A B C D$ is a cyclic quadrilateral. 20. We first establish the following lemma. Lemma. Let $A B C D$ be an isosceles trapezoid with bases $A B$ and $C D$. The diagonals $A C$ and $B D$ intersect at $S$. Let $M$ be the midpoint of $B C$, and let the bisector of the angle $B S C$ intersect $B C$ at $N$. Then $\angle A M D=\angle A N D$. Proof. It suffices to show that the points $A, D, M, N$ are concyclic. The statement is trivial for $A D \| B C$. Let us now assume that $A D$ and $B C$ meet at $X$, and let $X A=X B=a, X C=X D=b$. Since $S N$ is the bisector of $\angle C S B$, we have $$ \frac{a-X N}{X N-b}=\frac{B N}{C N}=\frac{B S}{C S}=\frac{A B}{C D}=\frac{a}{b} $$ and an easy computation yields $X N=\frac{2 a b}{a+b}$. We also have $X M=\frac{a+b}{2}$; hence $X M \cdot X N=X A \cdot X D$. Therefore $A, D, M, N$ are concyclic, as needed. Denote by $C_{i}$ the midpoint of the side $A_{i} A_{i+1}, i=1, \ldots, n-1$. By definition $C_{1}=B_{1}$ and $C_{n-1}=B_{n-1}$. Since $A_{1} A_{i} A_{i+1} A_{n}$ is an isosceles trapezoid with $A_{1} A_{i} \| A_{i+1} A_{n}$ for $i=2, \ldots, n-2$, it follows from the lemma that $\angle A_{1} B_{i} A_{n}=\angle A_{1} C_{i} A_{n}$ for all $i$. The sum in consideration thus equals $\angle A_{1} C_{1} A_{n}+\angle A_{1} C_{2} A_{n}+\cdots+$ $\angle A_{1} C_{n-1} A_{n}$. Moreover, the triangles $A_{1} C_{i} A_{n}$ and $A_{n+2-i} C_{1} A_{n+1-i}$ are congruent (a rotation about the center of the $n$-gon carries the first one to the second), and consequently $$ \angle A_{1} C_{i} A_{n}=\angle A_{n+2-i} C_{1} A_{n+1-i} $$ ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-733.jpg?height=417&width=470&top_left_y=415&top_left_x=847) for $i=2, \ldots, n-1$. Hence $\Sigma=\angle A_{1} C_{1} A_{n}+\angle A_{n} C_{1} A_{n-1}+\cdots+\angle A_{3} C_{1} A_{2}=\angle A_{1} C_{1} A_{2}=180^{\circ}$. 21. Let $A B C$ be the triangle of maximum area $S$ contained in $\mathcal{P}$ (it exists because of compactness of $\mathcal{P}$ ). Draw parallels to $B C, C A, A B$ through $A, B, C$, respectively, and denote the triangle thus obtained by $A_{1} B_{1} C_{1}$ ( $A \in B_{1} C_{1}$, etc.). Since each triangle with vertices in $\mathcal{P}$ has area at most $S$, the entire polygon $\mathcal{P}$ is contained in $A_{1} B_{1} C_{1}$. Next, draw lines of support of $\mathcal{P}$ parallel to $B C, C A, A B$ and not intersecting the triangle $A B C$. They determine a convex hexagon $U_{a} V_{a} U_{b} V_{b} U_{c} V_{c}$ containing $\mathcal{P}$, with $V_{b}, U_{c} \in B_{1} C_{1}, V_{c}, U_{a} \in C_{1} A_{1}, V_{a}, U_{b} \in A_{1} B_{1}$. Each of the line segments $U_{a} V_{a}, U_{b} V_{b}, U_{c} V_{c}$ contains points of $\mathcal{P}$. Choose such points $A_{0}, B_{0}, C_{0}$ on $U_{a} V_{a}, U_{b} V_{b}, U_{c} V_{c}$, respectively. The convex hexagon $A C_{0} B A_{0} C B_{0}$ is contained in $\mathcal{P}$, because the latter is convex. We prove that $A C_{0} B A_{0} C B_{0}$ has area at least $3 / 4$ the area of $\mathcal{P}$. Let $x, y, z$ denote the areas of triangles $U_{a} B C, U_{b} C A$, and $U_{c} A B$. Then $S_{1}=S_{A C_{0} B A_{0} C B_{0}}=S+x+y+z$. On the other hand, the triangle $A_{1} U_{a} V_{a}$ is similar to $\triangle A_{1} B C$ with similitude $\tau=(S-x) / S$, and hence its area is $\tau^{2} S=(S-x)^{2} / S$. Thus the area of quadrilateral $U_{a} V_{a} C B$ is $S-(S-x)^{2} / S=2 z-z^{2} / S$. Analogous formulas hold for quadrilaterals $U_{b} V_{b} A C$ and $U_{c} V_{c} B A$. Therefore $$ \begin{aligned} S_{\mathcal{P}} & \leq S_{U_{a} V_{a} U_{b} V_{b} U_{c} V_{c}}=S+S_{U_{a} V_{a} C B}+S_{U_{b} V_{b} A C}+S_{U_{c} V_{c} B A} \\ & =S+2(x+y+z)-\frac{x^{2}+y^{2}+z^{2}}{S} \\ & \leq S+2(x+y+z)-\frac{(x+y+z)^{2}}{3 S} . \end{aligned} $$ Now $4 S_{1}-3 S_{\mathcal{P}} \geq=S-2(x+y+z)+(x+y+z)^{2} / S=(S-x-y-z)^{2} / S \geq 0$; i.e., $S_{1} \geq 3 S_{\mathcal{P}} / 4$, as claimed. 22. The proof uses the following observation: Lemma. In a triangle $A B C$, let $K, L$ be the midpoints of the sides $A C, A B$, respectively, and let the incircle of the triangle touch $B C, C A$ at $D, E$, respectively. Then the lines $K L$ and $D E$ intersect on the bisector of the angle $A B C$. Proof. Let the bisector $\ell_{b}$ of $\angle A B C$ meet $D E$ at $T$. One can assume that $A B \neq B C$, or else $T \equiv K \in K L$. Note that the incenter $I$ of $\triangle A B C$ is between $B$ and $T$, and also $T \neq E$. From the triangles $B D T$ and $D E C$ we obtain $\angle I T D=\alpha / 2=\angle I A E$, which implies that $A, I, T, E$ are concyclic. Then $\angle A T B=\angle A E I=90^{\circ}$. Thus $L$ is the circumcenter of $\triangle A T B$ from which $\angle L T B=\angle L B T=\angle T B C \Rightarrow L T \| B C \Rightarrow T \in$ $K L$, which is what we were supposed to prove. Let the incircles of $\triangle A B X$ and $\triangle A C X$ touch $B X$ at $D$ and $F$, respectively, and let them touch $A X$ at $E$ and $G$, respectively. Clearly, $D E$ and $F G$ are parallel. If the line $P Q$ intersects $B X$ and $A X$ at $M$ and $N$, respectively, then $M D^{2}=M P \cdot M Q=M F^{2}$, i.e., $M D=M F$ and analogously $N E=N G$. It follows that $P Q$ is parallel to $D E$ and $F G$ and equidistant from them. The midpoints of $A B, A C$, and $A X$ lie on the same line $m$, parallel to $B C$. Applying the lemma to $\triangle A B X$, we conclude that $D E$ passes through the common point $U$ of $m$ and the bisector of $\angle A B X$. Analogously, $F G$ passes through the common point $V$ of $m$ and the bisector of $\angle A C X$. Therefore $P Q$ passes through the midpoint $W$ of the line segment $U V$. Since $U, V$ do not depend on $X$, neither does $W$. 23. To start with, note that point $N$ is uniquely determined by the imposed properties. Indeed, $f(X)=A X / B X$ is a monotone function on both arcs $A B$ of the circumcircle of $\triangle A B M$. Denote by $P$ and $Q$ respectively the second points of intersection of the line $E F$ with the circumcircles of $\triangle A B E$ and $\triangle A B F$. The problem is equivalent to showing that $N \in P Q$. In fact, we shall prove that $N$ coincides with the midpoint $\bar{N}$ of segment $P Q$. The cyclic quadrilaterals $A P B E$, $A Q B F$, and $A B C D$ yield $\angle A P Q=$ $180^{\circ}-\angle A P E=180^{\circ}-\angle A B E=$ $\angle A D C$ and $\angle A Q P=\angle A Q F=$ $\angle A B F=\angle A C D$. It follows that $\triangle A P Q \sim \triangle A D C$, and consequently $\triangle A \bar{N} P \sim \triangle A M D$. Analo- ![](https://cdn.mathpix.com/cropped/2024_11_18_8e985d6b9c83aa3e9d0eg-734.jpg?height=604&width=446&top_left_y=1342&top_left_x=857) gously $\triangle B \bar{N} P \sim \triangle B M C$. Therefore $A \bar{N} / A M=P Q / D C=B \bar{N} / B M$, i.e., $A \bar{N} / B \bar{N}=A M / B M$. Moreover, $\angle A \bar{N} B=\angle A \bar{N} P+\angle P \bar{N} B=$ $\angle A M D+\angle B M C=180^{\circ}-\angle A M B$, which means that point $\bar{N}$ lies on the circumcircle of $\triangle A M B$. By the uniqueness of $N$, we conclude that $\bar{N} \equiv N$, which completes the solution. 24. Setting $m=a n$ we reduce the given equation to $m / \tau(m)=a$. Let us show that for $a=p^{p-1}$ the above equation has no solutions in $\mathbb{N}$ if $p>3$ is a prime. Assume to the contrary that $m \in \mathbb{N}$ is such that $m=p^{p-1} \tau(m)$. Then $p^{p-1} \mid m$, so we may set $m=p^{\alpha} k$, where $\alpha, k \in \mathbb{N}$, $\alpha \geq p-1$, and $p \nmid k$. Let $k=p_{1}^{\alpha_{1}} \cdots p_{r}^{\alpha_{r}}$ be the decomposition of $k$ into primes. Then $\tau(k)=\left(\alpha_{1}+1\right) \cdots\left(\alpha_{r}+1\right)$ and $\tau(m)=(\alpha+1) \tau(k)$. Our equation becomes $$ p^{\alpha-p+1} k=(\alpha+1) \tau(k) . $$ We observe that $\alpha \neq p-1$ : otherwise the RHS would be divisible by $p$ and the LHS would not be so. It follows that $\alpha \geq p$, which also easily implies that $p^{\alpha-p+1} \geq \frac{p}{p+1}(\alpha+1)$. Furthermore, since $\alpha+1$ cannot be divisible by $p^{\alpha-p+1}$ for any $\alpha \geq p$, it follows that $p \mid \tau(k)$. Thus if $p \mid \tau(k)$, then at least one $\alpha_{i}+1$ is divisible by $p$ and consequently $\alpha_{i} \geq p-1$ for some $i$. Hence $k \geq \frac{p_{i}^{\alpha_{i}}}{\alpha_{i}+1} \tau(k) \geq \frac{2^{p-1}}{p} \tau(k)$. But then we have $$ p^{\alpha-p+1} k \geq \frac{p}{p+1}(\alpha+1) \cdot \frac{2^{p-1}}{p} \tau(k)>(\alpha+1) \tau(k), $$ contradicting (1). Therefore (1) has no solutions in $\mathbb{N}$. Remark. There are many other values of $a$ for which the considered equation has no solutions in $\mathbb{N}$ : for example, $a=6 p$ for a prime $p \geq 5$. 25. Let $n$ be a natural number. For each $k=1,2, \ldots, n$, the number $(k, n)$ is a divisor of $n$. Consider any divisor $d$ of $n$. If $(k, n)=n / d$, then $k=n l / d$ for some $l \in \mathbb{N}$, and $(k, n)=(l, d) n / d$, which implies that $l$ is coprime to $d$ and $l \leq d$. It follows that $(k, n)$ is equal to $n / d$ for exactly $\varphi(d)$ natural numbers $k \leq n$. Therefore $$ \psi(n)=\sum_{k=1}^{n}(k, n)=\sum_{d \mid n} \varphi(d) \frac{n}{d}=n \sum_{d \mid n} \frac{\varphi(d)}{d} $$ (a) Let $n, m$ be coprime. Then each divisor $f$ of $m n$ can be uniquely expressed as $f=d e$, where $d \mid n$ and $e \mid m$. We now have by (1) $$ \begin{aligned} \psi(m n) & =m n \sum_{f \mid m n} \frac{\varphi(f)}{f}=m n \sum_{d|n, e| m} \frac{\varphi(d e)}{d e} \\ & =m n \sum_{d|n, e| m} \frac{\varphi(d)}{d} \frac{\varphi(e)}{e}=\left(n \sum_{d \mid n} \frac{\varphi(d)}{d}\right)\left(m \sum_{e \mid m} \frac{\varphi(e)}{e}\right) \\ & =\psi(m) \psi(n) . \end{aligned} $$ (b) Let $n=p^{k}$, where $p$ is a prime and $k$ a positive integer. According to (1), $$ \frac{\psi(n)}{n}=\sum_{i=0}^{k} \frac{\varphi\left(p^{i}\right)}{p^{i}}=1+\frac{k(p-1)}{p} $$ Setting $p=2$ and $k=2(a-1)$ we obtain $\psi(n)=a n$ for $n=2^{2(a-1)}$. (c) We note that $\psi\left(p^{p}\right)=p^{p+1}$ if $p$ is a prime. Hence, if $a$ has an odd prime factor $p$ and $a_{1}=a / p$, then $x=p^{p} 2^{2 a_{1}-2}$ is a solution of $\psi(x)=a x$ different from $x=2^{2 a-2}$. Now assume that $a=2^{k}$ for some $k \in \mathbb{N}$. Suppose $x=2^{\alpha} y$ is a positive integer such that $\psi(x)=2^{k} x$. Then $2^{\alpha+k} y=\psi(x)=\psi\left(2^{\alpha}\right) \psi(y)=$ $(\alpha+2) 2^{\alpha-1} \psi(y)$, i.e., $2^{k+1} y=(\alpha+2) \psi(y)$. We notice that for each odd $y, \psi(y)$ is (by definition) the sum of an odd number of odd summands and therefore odd. It follows that $\psi(y) \mid y$. On the other hand, $\psi(y)>$ $y$ for $y>1$, so we must have $y=1$. Consequently $\alpha=2^{k+1}-2=2 a-2$, giving us the unique solution $x=2^{2 a-2}$. Thus $\psi(x)=a x$ has a unique solution if and only if $a$ is a power of 2 . 26. For $m=n=1$ we obtain that $f(1)^{2}+f(1)$ divides $\left(1^{2}+1\right)^{2}=4$, from which we find that $f(1)=1$. Next, we show that $f(p-1)=p-1$ for each prime $p$. By the hypothesis for $m=1$ and $n=p-1, f(p-1)+1$ divides $p^{2}$, so $f(p-1)$ equals either $p-1$ or $p^{2}-1$. If $f(p-1)=p^{2}-1$, then $f(1)+f(p-1)^{2}=p^{4}-2 p^{2}+2$ divides $\left(1+(p-1)^{2}\right)^{2}4$. We note that if $x \in S_{n}$, then also $n-x \in S_{n}$ and $(x, n)=1$. Thus $S_{n}$ splits into pairs $\{x, n-x\}$, where $x \in S_{n}$ and $x \leq n / 2$. In each of these pairs the product of elements gives remainder -1 upon division by $n$. Therefore $P_{n} \equiv(-1)^{m}$, where $S_{n}$ has $2 m$ elements. It remains to find the parity of $m$. Suppose first that $n>4$ is divisible by 4 . Whenever $x \in S_{n}$, the numbers $|n / 2-x|, n-x, n-|n / 2-x|$ also belong to $S_{n}$ (indeed, $n \mid(n / 2-x)^{2}-1=$ $n^{2} / 4-n x+x^{2}-1$ because $n \mid n^{2} / 4$, etc.). In this way the set $S_{n}$ splits into four-element subsets $\{x, n / 2-x, n / 2+x, n-x\}$, where $x \in S_{n}$ and $x4\right)$. Therefore $m=\left|S_{n}\right| / 2$ is even and $P_{n} \equiv 1$ $(\bmod m)$. Now let $n$ be odd. If $n \mid x^{2}-1=(x-1)(x+1)$, then there exist natural numbers $a, b$ such that $a b=n, a|x-1, b| x+1$. Obviously $a$ and $b$ are coprime. Conversely, given any odd $a, b \in \mathbb{N}$ such that $(a, b)=1$ and $a b=n$, by the Chinese remainder theorem there exists $x \in\{1,2, \ldots, n-1\}$ such that $a \mid x-1$ and $b \mid x+1$. This gives a bijection between all ordered pairs $(a, b)$ with $a b=n$ and $(a, b)=1$ and the elements of $S_{n}$. Now if $n=p_{1}^{\alpha_{1}} \cdots p_{k}^{\alpha_{k}}$ is the decomposition of $n$ into primes, the number of pairs $(a, b)$ is equal to $2^{k}$ (since for every $i$, either $p_{i}^{\alpha_{i}} \mid a$ or $p_{i}^{\alpha_{i}} \mid b$ ), and hence $m=2^{k-1}$. Thus $P_{n} \equiv-1(\bmod n)$ if $n$ is a power of an odd prime, and $P_{n} \equiv 1$ otherwise. Finally, let $n$ be even but not divisible by 4 . Then $x \in S_{n}$ if and only if $x$ or $n-x$ belongs to $S_{n / 2}$ and $x$ is odd. Since $n / 2$ is odd, for each $x \in S_{n / 2}$ either $x$ or $x+n / 2$ belongs to $S_{n}$, and by the case of $n$ odd we have $S_{n} \equiv \pm 1(\bmod n / 2)$, depending on whether or not $n / 2$ is a power of a prime. Since $S_{n}$ is odd, it follows that $P_{n} \equiv-1(\bmod n)$ if $n / 2$ is a power of a prime, and $P_{n} \equiv 1$ otherwise. Second solution. Obviously $S_{n}$ is closed under multiplication modulo $n$. This implies that $S_{n}$ with multiplication modulo $n$ is a subgroup of $\mathbb{Z}_{n}$, and therefore there exist elements $a_{1}=-1, a_{2}, \ldots, a_{k} \in S_{n}$ that generate $S_{n}$. In other words, since the $a_{i}$ are of order two, $S_{n}$ consists of products $\prod_{i \in A} a_{i}$, where $A$ runs over all subsets of $\{1,2, \ldots, k\}$. Thus $S_{n}$ has $2^{k}$ elements, and the product of these elements equals $P_{n} \equiv\left(a_{1} a_{2} \cdots a_{k}\right)^{2^{k-1}}$ $(\bmod n)$. Since $a_{i}^{2} \equiv 1(\bmod n)$, it follows that $P_{n} \equiv 1$ if $k \geq 2$, i.e., if $\left|S_{n}\right|>2$. Otherwise $P_{n} \equiv-1(\bmod n)$. We note that $\left|S_{n}\right|>2$ is equivalent to the existence of $a \in S_{n}$ with $1n$ and black otherwise, and thus obtain a graph $G$. The degree of a point $X$ will be the number of red segments with an endpoint in $X$. We distinguish three cases: (i) There is a point, say $A_{8}$, whose degree is at most 1 . We may suppose w.l.o.g. that $A_{8} A_{7}$ is red and $A_{8} A_{1}, \ldots, A_{8} A_{6}$ black. By a well-known fact, the segments joining vertices $A_{1}, A_{2}, \ldots, A_{6}$ determine either a red triangle, in which case there is nothing to prove, or a black triangle, say $A_{1} A_{2} A_{3}$. But in the latter case the four points $A_{1}, A_{2}, A_{3}, A_{8}$ do not determine any red segment, a contradiction to Lemma 2 . (ii) All points have degree 2. Then the set of red segments partitions into cycles. If one of these cycles has length 3 , then the proof is complete. If all the cycles have length at least 4 , then we have two possibilities: two 4 -cycles, say $A_{1} A_{2} A_{3} A_{4}$ and $A_{5} A_{6} A_{7} A_{8}$, or one 8-cycle, $A_{1} A_{2} \ldots A_{8}$. In both cases, the four points $A_{1}, A_{3}, A_{5}, A_{7}$ do not determine any red segment, a contradiction. (iii) There is a point of degree at least 3 , say $A_{1}$. Suppose that $A_{1} A_{2}$, $A_{1} A_{3}$, and $A_{1} A_{4}$ are red. We claim that $A_{2}, A_{3}, A_{4}$ determine at least one red segment, which will complete the solution. If not, by Lemma $1, \mu\left(A_{2} A_{3}\right), \mu\left(A_{3} A_{4}\right), \mu\left(A_{4} A_{2}\right)$ are $n, n, 0$ in some order. Assuming w.l.o.g. that $\mu\left(A_{2} A_{3}\right)=0$, denote by $S$ the area of triangle $A_{1} A_{2} A_{3}$. Now by formula (1), $2 S$ is not divisible by $p$. On the other hand, since $\mu\left(A_{1} A_{2}\right) \geq n+1$ and $\mu\left(A_{1} A_{3}\right) \geq n+1$, it follows from (2) that $2 S$ is divisible by $p$, a contradiction. ## Notation and Abbreviations ## A. 1 Notation We assume familiarity with standard elementary notation of set theory, algebra, logic, geometry (including vectors), analysis, number theory (including divisibility and congruences), and combinatorics. We use this notation liberally. We assume familiarity with the basic elements of the game of chess (the movement of pieces and the coloring of the board). The following is notation that deserves additional clarification. - $\mathcal{B}(A, B, C), A-B-C$ : indicates the relation of betweenness, i.e., that $B$ is between $A$ and $C$ (this automatically means that $A, B, C$ are different collinear points). - $A=l_{1} \cap l_{2}$ : indicates that $A$ is the intersection point of the lines $l_{1}$ and $l_{2}$. - $A B$ : line through $A$ and $B$, segment $A B$, length of segment $A B$ (depending on context). - $[A B$ : ray starting in $A$ and containing $B$. - ( $A B$ : ray starting in $A$ and containing $B$, but without the point $A$. - $(A B)$ : open interval $A B$, set of points between $A$ and $B$. - $[A B]$ : closed interval $A B$, segment $A B,(A B) \cup\{A, B\}$. - $(A B]$ : semiopen interval $A B$, closed at $B$ and open at $A,(A B) \cup\{B\}$. The same bracket notation is applied to real numbers, e.g., $[a, b)=\{x \mid$ $a \leq x0\},\{x \mid x \in X, x<0\}$, $\{a x+b \mid x \in X\},\{a x+b y \mid x \in X, y \in Y\}$ (respectively) for $X, Y \subseteq \mathbb{R}$, $a, b \in \mathbb{R}$. - $[x],\lfloor x\rfloor$ : the greatest integer smaller than or equal to $x$. - $\lceil x\rceil$ : the smallest integer greater than or equal to $x$. The following is notation simultaneously used in different concepts (depending on context). - $|A B|,|x|,|S|$ : the distance between two points $A B$, the absolute value of the number $x$, the number of elements of the set $S$ (respectively). - $(x, y),(m, n),(a, b)$ : (ordered) pair $x$ and $y$, the greatest common divisor of integers $m$ and $n$, the open interval between real numbers $a$ and $b$ (respectively). ## A. 2 Abbreviations We tried to avoid using nonstandard notations and abbreviations as much as possible. However, one nonstandard abbreviation stood out as particularly convenient: - w.l.o.g.: without loss of generality. Other abbreviations include: - RHS: right-hand side (of a given equation). - LHS: left-hand side (of a given equation). - QM, AM, GM, HM: the quadratic mean, the arithmetic mean, the geometric mean, the harmonic mean (respectively). - gcd, lcm: greatest common divisor, least common multiple (respectively). - i.e.: in other words. - e.g.: for example. ## B ## Codes of the Countries of Origin | ARG | Argentina | GRE | Greece | PHI | Philippines | | :--- | :--- | :--- | :--- | :--- | :--- | | ARM | Armenia | HKG | Hong Kong | POL | Poland | | AUS | Australia | HUN | Hungary | POR | Portugal | | AUT | Austria | ICE | Iceland | PRK | Korea, North | | BEL | Belgium | INA | Indonesia | PUR | Puerto Rico | | BLR | Belarus | IND | India | ROM | Romania | | BRA | Brazil | IRE | Ireland | RUS | Russia | | BUL | Bulgaria | IRN | Iran | SAF | South Africa | | CAN | Canada | ISR | Israel | SIN | Singapore | | CHN | China | ITA | Italy | SLO | Slovenia | | COL | Colombia | JAP | Japan | SMN | Serbia and Montenegro | | CUB | Cuba | KAZ | Kazakhstan | SPA | Spain | | CYP | Cyprus | KOR | Korea, South | SWE | Sweden | | CZE | Czech Republic | KUW | Kuwait | THA | Thailand | | CZS | Czechoslovakia | LAT | Latvia | TUN | Tunisia | | EST | Estonia | LIT | Lithuania | TUR | Turkey | | FIN | Finland | LUX | Luxembourg | TWN | Taiwan | | FRA | France | MCD | Macedonia | UKR | Ukraine | | FRG | Germany, FR | MEX | Mexico | USA | United States | | GBR | United Kingdom | MON | Mongolia | USS | Soviet Union | | GDR | Germany, DR | MOR | Morocco | UZB | Uzbekistan | | GEO | Georgia | NET | Netherlands | VIE | Vietnam | | GER | Germany | NOR | Norway | YUG | Yugoslavia | | | | NZL | New Zealand | | | ## References 1. M. Aassila, 300 Défis Mathématiques, Ellipses, 2001. 2. M. Aigner, G.M. Ziegler, Proofs from THE BOOK, Springer; 3rd edition, 2003. 3. G.L. Alexanderson, L.F. Klosinski, L.C. Larson, The William Lowell Putnam Mathematical Competition, Problems and Solutions: 1965-1984, The Mathematical Association of America, 1985. 4. T. Andreescu, D. Andrica, 360 Problems for Mathematical Contests, GIL Publishing House, Zalău, 2003. 5. T. Andreescu, D. Andrica, An Introduction to the Diophantine Equations, GIL Publishing House, 2002. 6. T. Andreescu, D. Andrica, Complex Numbers from A to ... Z, Birkhäuser, Boston, 2005. 7. T. Andreescu, B. Enescu, Mathematical Treasures, Birkhäuser, Boston, 2003. 8. T. Andreescu, Z. Feng, 102 Combinatorial Problems, Birkhäuser Boston, 2002. 9. T. Andreescu, Z. Feng, 103 Trigonometry Problems: From the Training of the USA IMO Team, Birkhäuser Boston, 2004. 10. T. Andreescu, Z. Feng, Mathematical Olympiads 1998-1999, Problems and Solutions from Around the World, The Mathematical Association of America, 2000. 11. T. Andreescu, Z. Feng, Mathematical Olympiads 1999-2000, Problems and Solutions from Around the World, The Mathematical Association of America, 2002. 12. T. Andreescu, Z. Feng, Mathematical Olympiads 2000-2001, Problems and Solutions from Around the World, The Mathematical Association of America, 2003. 13. T. Andreescu, R. Gelca, Mathematical Olympiad Challenges, Birkhäuser, Boston, 2000. 14. T. Andreescu, K. Kedlaya, Mathematical Contests 1996-1997, Olympiads Problems and Solutions from Around the World, American Mathematics Competitions, 1998. 15. T. Andreescu, K. Kedlaya, Mathematical Contests 1997-1998, Olympiads Problems and Solutions from Around the World, American Mathematics Competitions, 1999. 16. T. Andreescu, V. Cartoaje, G. Dospinescu, M. Lascu, Old and New Inequalities, GIL Publishing House, 2004. 17. M. Arsenović, V. Dragović, Functional Equations (in Serbian), Mathematical Society of Serbia, Beograd, 1999. 18. M. Ašić et al., International Mathematical Olympiads (in Serbian), Mathematical Society of Serbia, Beograd, 1986. 19. M. Ašić et al., 60 Problems for XIX IMO (in Serbian), Society of Mathematicians, Physicists, and Astronomers, Beograd, 1979. 20. A. Baker, A Concise Introduction to the Theory of Numbers, Cambridge University Press, Cambridge, 1984. 21. E.J. Barbeau, Polynomials, Springer, 2003. 22. E.J. Barbeau, M.S. Klamkin, W.O.J. Moser, Five Hundred Mathematical Challenges, The Mathematical Association of America, 1995. 23. E.J. Barbeau, Pell's Equation, Springer-Verlag, 2003. 24. M. Becheanu, International Mathematical Olympiads 1959-2000. Problems. Solutions. Results, Academic Distribution Center, Freeland, USA, 2001. 25. E.L. Berlekamp, J.H. Conway, R.K. Guy, Winning Ways for Your Mathematical Plays, AK Peters, Ltd., 2nd edition, 2001. 26. G. Berzsenyi, S.B. Maurer, The Contest Problem Book V, The Mathematical Association of America, 1997. 27. P.S. Bullen, D.S. Mitrinović , M. Vasić, Means and Their Inequalities, Springer, 1989. 28. H.S.M. Coxeter, Introduction to Geometry, John Willey \& Sons, New York, 1969 29. H.S.M. Coxeter, S.L. Greitzer, Geometry Revisited, Random House, New York, 1967. 30. I. Cuculescu, International Mathematical Olympiads for Students (in Romanian), Editura Tehnica, Bucharest, 1984. 31. A. Engel, Problem Solving Strategies, Springer, 1999. 32. A.A. Fomin, G.M. Kuznetsova, International Mathematical Olympiads (in Russian), Drofa, Moskva, 1998. 33. A.M. Gleason, R.E. Greenwood, L.M. Kelly, The William Lowell Putnam Mathematical Competition, Problems and Solutions: 1938-1964, The Mathematical Association of America, 1980. 34. R.K. Guy, Unsolved Problems in Number Theory, Springer, 3rd edition, 2004. 35. S.L. Greitzer, International Mathematical Olympiads 1959-1977, M.A.A., Washington, D. C., 1978. 36. R.L. Graham, D.E. Knuth, O. Patashnik, Concrete Mathematics, 2nd Edition, Addison-Wesley, 1989. 37. L. Hahn, Complex Numbers $\mathcal{E}^{2}$ Geometry, New York, 1960. 38. G.H. Hardy, J.E. Littlewood, G. Pólya, Inequalities, Cambridge University Press; 2nd edition, 1998. 39. G.H. Hardy, E.M. Wright, An Introduction to the Theory of Numbers, Oxford University Press; 5th edition, 1980. 40. V. Janković, Z. Kadelburg, P. Mladenović, International and Balkan Mathematical Olympiads 1984-1995 (in Serbian), Mathematical Society of Serbia, Beograd, 1996. 41. V. Janković, V. Mićić, IX $\mathcal{E}^{-1}$ XIX International Mathematical Olympiads, Mathematical Society of Serbia, Beograd, 1997. 42. R.A. Johnson, Advanced Euclidean Geometry, Dover Publications, 1960. 43. Z. Kadelburg, D. Djukić, M. Lukić, I. Matić, Inequalities (in Serbian), Mathematical Society of Serbia, Beograd, 2003. 44. N.D. Kazarinoff, Geometric Inequalities, Mathematical Association of America (MAA), 1975. 45. K.S. Kedlaya, B. Poonen, R. Vakil, The William Lowell Putnam Mathematical Competition 1985-2000 Problems, Solutions and Commentary, The Mathematical Association of America, 2002. 46. M.S. Klamkin, International Mathematical Olympiads 1979-1985 and Forty Supplementary Problems, M.A.A., Washington, D.C., 1986. 47. M.S. Klamkin, International Mathematical Olympiads 1979-1986, M.A.A., Washington, D.C., 1988. 48. A. Kupetov, A. Rubanov, Problems in Geometry, MIR, Moscow, 1975. 49. H.-H. Langmann, 30th International Mathematical Olympiad, Braunschweig 1989, Bildung und Begabung e.V., Bonn 2, 1990. 50. L.C. Larson, Problem Solving Through Problems, Springer, 1983. 51. E. Lozansky, C. Rousseau, Winning Solutions, Springer-Verlag, New York, 1996. 52. V. Mićić, Z. Kadelburg, D. Djukić, Introduction to Number Theory (in Serbian), 4th edition, Mathematical Society of Serbia, Beograd, 2004. 53. D.S. Mitrinović, J. Pečarić, A.M Fink, Classical and New Inequalities in Analysis, Springer, 1992. 54. D.S. Mitrinović, J.E. Pečarić, V. Volenec, Recent Advances in Geometric Inequalities, Kluwer Academic Publishers, 1989. 55. P. Mladenović, Combinatorics, 3rd edition, Mathematical Society of Serbia, Beograd, 2001. 56. P.S. Modenov, Problems in Geometry, MIR, Moscow, 1981. 57. P.S. Modenov, A.S. Parhomenko, Geometric Transformations, Academic Press, New York, 1965. 58. L. Moisotte, 1850 exercices de mathémathique, Bordas, Paris, 1978. 59. L.J. Mordell, Diophantine Equations, Academic Press, London and New York, 1969. 60. E.A. Morozova, I.S. Petrakov, V.A. Skvortsov, International Mathematical Olympiads (in Russian), Prosveshchenie, Moscow, 1976. 61. I. Nagell, Introduction to Number Theoury, John Wiley \& Sons, Inc., New York, Stockholm, 1951. 62. I. Niven, H.S. Zuckerman, H.L. Montgomery An Introduction to the Theory of Numbers, John Wiley and Sons, Inc., 1991. 63. C.R. Pranesachar, Shailesh A. Shirali, B.J. Venkatachala, C.S. Yogananda, Mathematical Challenges from Olympiads, Interline Publishing Pvt. Ltd., Bangalore, 1995. 64. V.V. Prasolov, Problems of Plane Geometry, Volumes 1 and 2, Nauka, Moscow, 1986. 65. I. Reiman, J. Pataki, A. Stipsitz International Mathematical Olympiad: 19591999, Anthem Press, London, 2002. 66. I.F. Sharygin, Problems in Plane Geometry, Imported Pubn, 1988. 67. W. Sierpinski, Elementary Theory of Numbers, Polski Academic Nauk, Warsaw, 1964. 68. W. Sierpinski, 250 Problems in Elementary Number Theory, American Elsevier Publishing Company, Inc., New York, PWN, Warsaw, 1970. 69. R.P. Stanley, Enumerative Combinatorics, Volumes 1 and 2, Cambridge University Press; New Ed edition, 2001. 70. D. Stevanović, M. Milošević, V. Baltić, Discrete Mathematics: Problem Book in Elementary Combinatorics and Graph Theory (in Serbian), Mathematical Society of Serbia, Beograd, 2004. 71. I. Tomescu, R.A. Melter, Problems in Combinatorics and Graph Theory, John Wiley \& Sons, 1985. 72. I. Tomescu et al., Balkan Mathematical Olympiads 1984-1994 (in Romanian), Gil, Zalău, 1996. 73. J.H. van Lint, R.M. Wilson, A Course in Combinatorics, second edition, Cambridge University Press, 2001. 74. I.M. Vinogradov, Elements of Number Theory, Dover Publications, 2003. 75. H.S. Wilf, Generatingfunctionology, Academic Press, Inc.; 2nd edition, 1994. 76. A.M. Yaglom, I.M. Yaglom, Challenging Mathematical Problems with Elementary Solutions, Dover Publications, 1987. 77. I.M. Yaglom, Geometric Transformations, Vols. I, II, III, The Mathematical Association of America (MAA), 1962, 1968, 1973. 78. P. Zeitz, The Art and Craft of Problem Solving, Wiley; International Student edition, 1999. [^0]: ${ }^{1}$ The statement so formulated is false. It would be trivially 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. [^1]: ${ }^{2}$ This problem is not elementary. The solution offered by the proposer, which is not quite clear and complete, only shows that if such a $\beta$ exists, then $\beta \geq \frac{1}{2(1-\alpha)}$. [^2]: ${ }^{3}$ The problem is unclear. Presumably $n, i, j$ and the $i$ th digit are fixed. ${ }^{4}$ The problem is unclear. The correct formulation could be the following: Given $k$ parallel lines $l_{1}, \ldots, l_{k}$ and $n_{i}$ points on the line $l_{i}, i=1,2, \ldots, k$, find the maximum possible number of triangles with vertices at these points. [^3]: ${ }^{5}$ The numbers in the problem are not necessarily in base 10. [^4]: ${ }^{6}$ The problem in this formulation is senseless. The correct formulation could be, "Find $\ldots$ such that $\sum_{m=1}^{\infty}\left(\left[\frac{n}{m}\right]-\left[\frac{n-1}{m}\right]\right)=1992 \ldots$." [^5]: ${ }^{7}$ The statement of the problem is obviously wrong, and the authors couldn't determine a suitable alteration of the formulation which would make the problem correct. We put it here only for completeness of the problem set. [^6]: ${ }^{8}$ This problem is false. However, it is true if "not outside $A B M$ " is replaced by "not outside $A B C D$ ".