2+\frac{1}{p} \text { and } q
1$; in the remaining vertex $A_{1}$, there will be $n-1$ coins different from $M$ (since the total number of coins remains the same all the time), while the coin $M$ ends up in some - as yet unknown - vertex. If we can show that this vertex is $A_{1}$, then we are finished. However, this happens if and only if the number $n$ of vertices is such that the sum $S$ gives the same remainder upon division by $n$ in the initial and in the final position. And we have found all such $n$ in the fist part of the solution. Answer. The coins can be moved into such position if and only if $n$ gives remainder either 1 or 5 upon division by six. 6. Two distinct points $O$ and $T$ are given in the plane $\omega$. Find the locus of vertices of all triangles lying in $\omega$ whose centroid is $T$ and whose circumcenter is $O$. Solution. Consider a point $A$ in the plane $\omega$. In order that $A$ be a vertex of a triangle as required, $A$ must be different from $T$ and $O$. We first describe how to construct a triangle $A B C$ if its vertex $A$, its centroid $T$ and its circumcenter $O$ are given (for three mutually distinct points $A, O, T$ ). Then we check for which points $A$ it is impossible to construct such triangle. Denote by $A^{\prime}$ the midpoint of the side $B C$. The point $A^{\prime}$ is the image of $A$ in the homothety with center $T$ and coefficient $-\frac{1}{2}$. If $A^{\prime} \neq O$, the points $B$ and $C$ lie on the perpendicular $p$ through $A^{\prime}$ to the line $O A^{\prime}$, and at the same time on the circumcircle $k$ with center $O$ and radius $|O A|$ (Fig.3).  Fig. 3 For a given $A$, it is always possible to construct its image $A^{\prime}$ in the homothety as above. Assume first that $A^{\prime} \neq O$. In order to obtain two different points $B$ and $C$, the line $p$ must be a secant of the circle $k$. This happens if and only if $\left|O A^{\prime}\right|<|O A|$. Denote by $O^{\prime}$ the image of $O$ in the homothety with center $T$ and coefficient -2 . Then $\left|O^{\prime} A\right|=2\left|O A^{\prime}\right|$, so the above condition can be expressed as $\left|O^{\prime} A\right|<2|O A|$. The point $A$ must therefore lie in the exterior of the Apollonian circle $m(S ;|S T|)$, where $S$ is the point symmetric to $T$ with respect to $O$ (Fig. 4).  Fig. 4 Thus if $A^{\prime} \neq O$, or $A \neq O^{\prime}$, the construction yields three points $A, B, C$. These will be vertices of a triangle as required, provided they are not collinear. They are collinear if and only if the line $B C$ coincides with the line $A T$, i.e. if and only if the line $O A^{\prime}$ is perpendicular to $A T$. The point $A^{\prime}$ thus must not lie on the Thaletian circle over diameter $O T$, i.e. (upon applying the homothety with center $T$ and coefficient -2) the point $A$ must not lie on the Thaletian circle with diameter $O^{\prime} T$ (Fig. 5).  Fig. 5 In the case when the point $A$ coincides with $O^{\prime}$, i.e. $A^{\prime}=O$, we can take instead of the perpendicular $p$ any line (different from $A T$ ) passing through $O$ (Fig. 6). In this way we obtain infinitely many different triangles $A B C$ with right angles at the vertex $A$ which satisfy the conditions of the problem.  Fig. 6  Fig. 7 Conclusion. The sought locus is the exterior of the circle $m$, except for the points lying on the Thaletian circle with diameter $O^{\prime} T$, but including the point $O^{\prime}$ (Fig. 7).  ## I N V E S T I C E D O R O Z V O J E V Z D Ě L Á V Á N Í Zhotoveno v rámci projektu „Zkvalitnění přípravy matematických talentů základních a středních škol Olomouckého kraje“, registrační číslo CZ.1.07/1.2.12/01.0027. Tento projekt je spolufinancován Evropským sociálním fondem a státním rozpočtem České republiky. [^0]: 1 If $k$ and $l$ are relatively prime and $k \mid l m$, then $k \mid m$.