11TH MIDDLE EUROPEAN MATHEMATICAL OLYMPIAD VILNIUS 2017 LITHUANIA ## Contest problems with solutions Jury \& Problem Selection Committee | Countries | Selected problems | | | | | :---: | :--- | :--- | :--- | :--- | | | Algebra | Combinatorics | Geometry | Number theory | | Austria | T-2 | T-3 | | T-8 | | Croatia | | | T-5 | | | Czech Republic | | I-2 | | | | Germany | | | | I-4 | | Poland | T-1 | T-4 | | T-7 | | Slovakia | I-1 | | I-3, T-6 | | ## Contents Individual Competition ..... 4 I - 1 ..... 4 I - 2 ..... 6 I - 3 ..... 7 I - 4 ..... 8 Team Competition ..... 10 T - 1 ..... 10 T - 2 ..... 12 T - 3 ..... 14 T - 4 ..... 19 T - 5 ..... 21 T - 6 ..... 22 T-7 ..... 24 T - 8 ..... 25 ## Individual Competition ## I - 1 Determine all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ satisfying $$ f\left(x^{2}+f(x) f(y)\right)=x f(x+y) $$ for all real numbers $x$ and $y$. Answer: $f(x) \equiv 0$, or $f(x) \equiv x$, or $f(x) \equiv-x$. Solution. Put $x:=0$. Then $f(f(0) f(y))=0$, so there is at least one real number $a$ such that $f(a)=0$. Let $z$ be an arbitrary real number, let's put $x:=a, y:=z-a$. Then we get $f\left(a^{2}\right)=a \cdot f(z)$. If $a \neq 0$, we'll get that $f$ is constant, i. e. $f(x) \equiv c$. The equation (1) is then equivalent to $c=c x$ for all $x$, which gives us $c=0$. The function $f(x) \equiv 0$ is really a solution. So we've proved that $f(x)=0$ if and only if $x=0$. Therefore after putting $y:=-x$ we get $$ x^{2}+f(x) f(-x)=0 $$ Now let's put $y:=0$, which gives us $$ f\left(x^{2}\right)=x f(x) $$ From (3) for $x:=-x$ we get $f\left(x^{2}\right)=-x f(-x)$, so $x(f(x)+f(-x))=0$, which for $x \neq 0$ means $f(x)=-f(-x)$ and for $x=0$ it holds too, so $f$ is an odd function. By putting $f(-x)=-f(x)$ to (2) we get $x^{2}=f(x)^{2}$, which means that for every $x$ is $f(x)=x$ or $f(x)=-x$. We'll prove that $f(x) \equiv x$ or $f(x) \equiv-x$. Assume there are $a, b$ such that $f(a)=a$ and $f(b)=-b$. Let's put $x:=a, y:=b$ to (1). Then we have $$ f\left(a^{2}-a b\right)=a \cdot f(a+b) $$ This relation together with $f(x)=x$ or $f(x)=-x$ means that $$ e_{1}\left(a^{2}-a b\right)=e_{2}\left(a^{2}+a b\right) $$ where $e_{1}, e_{2} \in\{1,-1\}$. After checking options (if we WLOG suppose $e_{1}=1$, there'll be only two) we'll find out it must hold $a=0$ or $b=0$. If $a=0$, then for all $x \neq 0$ we have $f(x)=-x$, which is true even for $x=0$, so $f(x) \equiv-x$, in that case. Analogously, if $b=0$, then $f(x) \equiv x$. These two solutions really satisfy (1). The equation has 3 solutions: $f(x) \equiv 0, f(x) \equiv x, f(x) \equiv-x$. Alternative solution 1. Suppose, $f$ is injective; that is, $f\left(y_{0}\right)=f\left(y_{1}\right)$ implies $y_{0}=y_{1}$. Plugging $x=1$ gives $$ f(1+f(1) f(y))=f(1+y) . $$ From injectivity, this gives $1+f(1) f(y)=1+y$. We see that $f(1)=c \neq 0$, and $f(y)=c^{-1} y$. For $y=1$ this gives $c^{2}=1$. Thus, $f(y)=y$ or $f(y)=-y$, and both are the solutions. Assume, $f$ is not injective, and $f\left(y_{0}\right)=f\left(y_{1}\right)$ for a certain pair $y_{0} \neq y_{1}$. Plugging $y \mapsto y_{0}$, and $y \mapsto y_{1}$, and comparing, gives $$ x f\left(x+y_{0}\right)=x f\left(x+y_{1}\right) . $$ Thus, if $x \neq 0$, then $f\left(x+y_{0}\right)=f\left(x+y_{1}\right)$. This is also valid for $x=0$. So, for $P=y_{0}-y_{1} \neq 0$, we get $$ f(x+P)=f(x) . $$ Put in the initial equation $x=0$. We see that $f(f(y) f(0))=0$. Let $a$ be such that $f(a)=0$, which does exist. Put $x=a, y=z-a$. This gives $f\left(a^{2}\right)=a f(z)$. If $a \neq 0$, we get that $f(x)=c$, and only $c=0$ does satisfy this. So, if $f$ is not identically $0, a$ can be only 0 . But this now contradicts to $f(P)=f(0)=0$. Alternative solution 2. Obviously, the functions $f(x)=0$ and $f(x)= \pm x$ are solutions. Let us prove that there are no more solutions. Let $f$ be any other solution. Denote $f(0)=c$. Taking $x=0$ we get $f(c f(y))=0$ for all $y$. Hence $f(a)=0$ for $a=c f(1)$ and therefore $0=f(c f(a))=f(0)=c$. Now take $y=0$; then $f\left(x^{2}\right)=x f(x)$ for all $x$ and therefore $x f(x)=-x f(-x)$, i.e. $f(-x)=-f(x)$ for all $x \neq 0$. Hence $f$ is an odd function. Next prove that 0 is the only point, where $f(x)=0$. Let $f(c)=0$ for $c \neq 0$. Then $f\left(c^{2}\right)=c f(y)$ for all $y$, i.e. $f(y)=c_{1}$ for all $y$. Obviously, such $f$ is not a solution; we got a contradiction. Now take $y=-x$; then $f\left(x^{2}-f^{2}(x)\right)=0$ and therefore $x^{2}=f^{2}(x)$ for all $x$. Suppose $f(1) f(y)=-y$ for some $y \neq 0$; then $$ f(1-y)=f(1+y) $$ which yields $1-y= \pm(1+y)$, a contradiction. ## I - 2 Let $n \geqslant 3$ be an integer. A labelling of the $n$ vertices, the $n$ sides and the interior of a regular $n$-gon by $2 n+1$ distinct integers is called memorable if the following conditions hold: 1. Each side has a label that is the arithmetic mean of the labels of its endpoints. 2. The interior of the $n$-gon has a label that is the arithmetic mean of the labels of all the vertices. Determine all integers $n \geqslant 3$ for which there exists a memorable labelling of a regular $n$-gon consisting of $2 n+1$ consecutive integers. Solution. We prove that the desired $n$ 's are precisely those divisible by 4 . Fix $n$ and assume such labelling exists. Without loss of generality, the labels form a set $\{0,1, \ldots, 2 n\}$. A maximum can't be obtained by averaging, so number $2 n$ labels a vertex. In order for the side labels to be integers, the vertex labels have to have the same parity, hence all of them are even. Since the label of the interior is the average of the vertex as well as edge labels, we see that the interior label is the average of all labels. Thus the interior label is equal to $n$. There are $n+1$ even labels and $n$ of them label vertices. Denote by $e$ the one that doesn't. We have $$ n=\frac{0+2+\cdots+2 n-e}{n}=\frac{n(n+1)-e}{n} $$ which gives $n=e$, i.e. $n$ has to be even. In that case, the vertex labels form a set $V=$ $\{0,2, \ldots, n-2, n+2, \ldots, 2 n\}$ and hence the side labels form a set $S=\{1,3, \ldots, 2 n-1\}$. Now assume $n=4 k+2$ for some integer $k \geqslant 1$. Then $V$ contains $n / 2+1$ numbers divisible by four, hence two such labels are used on neighbouring vertices which contradicts the fact that all edges get odd label. Therefore, $n$ is divisible by 4. Finally, for any $n=4 k$ we construct a satisfying labelling: Label the vertices by numbers $$ 0,2,4, \ldots, 4 k-2, \quad 4 k+4,4 k+2, \quad 4 k+8,4 k+6, \ldots, \quad 8 k, 8 k-2 $$ in this order. Then all the even labels but $n=4 k$ are used for vertices, $n$ itself is used for the interior, and the side labels are $1,3, \ldots, 4 k-3,4 k+1,4 k+3, \ldots, 8 k-1,4 k-1$ in this order. Remark. Another construction of a satisfying labelling: Label the vertices by numbers $$ 0,2, \ldots, 2 k-2, \quad 6 k, 6 k-2, \ldots, 4 k+2, \quad 8 k, 8 k-2, \ldots, 6 k+2, \quad 2 k, 2 k+2, \ldots, 4 k-2 $$ in this order. ## I - 3 Let $A B C D E$ be a convex pentagon. Let $P$ be the intersection of the lines $C E$ and $B D$. Assume that $\angle P A D=\angle A C B$ and $\angle C A P=\angle E D A$. Prove that the circumcentres of the triangles $A B C$ and $A D E$ are collinear with $P$. Solution. Simple angle chasing gives us: $$ \begin{gathered} \angle B C D+\angle E D C=\angle A C B+\angle A C D+\angle E D A+\angle A D C= \\ =\angle P A D+\angle A C D+\angle C A P+\angle A D C=180^{\circ}, \end{gathered} $$ so $B C \| D E$. Therefore there exists a homothety $H$ centered in $P$ that maps $B C$ to $D E$. Let $A^{\prime}$ be the image of $A$ under this homothety. Then simply $\angle A^{\prime} E D=\angle A C B=\angle A^{\prime} A D$, so quadrilateral $A^{\prime} D E A$ is cyclic. This means that the circumcircle of triangle $A E D$ is the same as the circumcircle of triangle $D A^{\prime} E$. But triangle $A B C$ maps to the triangle $A^{\prime} D E$, so their circumcenters are collinear with the center of homethety $P$, which concludes the proof. ## I - 4 Determine the smallest possible value of $$ \left|2^{m}-181^{n}\right|, $$ where $m$ and $n$ are positive integers. Answer: $\left|2^{15}-181^{2}\right|=7$. Solution. Calculating $$ 181^{2}=32,761 $$ one should get the idea that this may be close to $$ 2^{15}=32,768 $$ so taking the difference of both we arrive at the minimum possible value 7 . As we can clearly see that the difference must be positive and odd, we only need to eliminate the possibilities 1,3 and 5 for the given difference. First consider the difference modulo 15 since this will lead to a short period of basis 2 and an even shorter one of basis 181 . Since $2^{m} \equiv 1,2,4,8$ modulo 15 and $181^{n} \equiv 1$ modulo 15 we get that $$ 2^{m}-181^{n} \equiv 0,1,3,7 \text { modulo } 15 $$ thus leaving us with possible residues $0,1,3,7,8,12,14$ for the absolute of the difference. Therefore we can eliminate the minimum 5 for the difference, leaving us with 1 and 3 as possible values less than 7 . We can easily see that indeed $m \geqslant 4$ is clearly required for the difference to be anywhere near 7 or less. So now let us consider the following equations: $$ \begin{aligned} 2^{m}-181^{n}=-1 & \Rightarrow 2^{m} \equiv 181^{n}-1 \equiv 0 \text { modulo } 3, \text { which is impossible; } \\ 2^{m}-181^{n}=1 & \Rightarrow 2^{m} \equiv 181^{n}+1 \equiv 2 \text { modulo } 4, \text { which is impossible for } m \geqslant 2 ; \\ 2^{m}-181^{n}=-3 & \Rightarrow 2^{m} \equiv 181^{n}-3 \equiv 2 \text { modulo } 4, \text { which is still impossible. } \end{aligned} $$ Therefore one last equation needs to be considered: $$ 2^{m}-181^{n}=3 \Leftrightarrow 2^{m}=181^{n}+3 . $$ By looking at the period of the values obtained modulo 15 we can see that $m \equiv 2$ modulo 4 is required, so $m=4 k+2$. But then we can look at the equation modulo 13 and see that: $$ \begin{aligned} 2^{m}-181^{n}=3 & \Leftrightarrow 2^{m}=181^{n}+3 \\ & \Rightarrow 2^{4 k+2} \equiv(-1)^{n}+3 \quad \text { modulo } 13 \\ & \Leftrightarrow 4 \cdot 16^{k} \equiv(-1)^{n}+3 \quad \text { modulo 13 } \\ & \Leftrightarrow 4 \cdot 3^{k} \equiv(-1)^{n}+3 \quad \text { modulo 13 } \end{aligned} $$ We can clearly see that $(-1)^{n}+3 \equiv 2,4$ modulo 13 and $4 \cdot 3^{k} \equiv 12,10,4$ modulo 13 periodically. So the only possible solution would be if $(-1)^{n}+3 \equiv 4$ but that requires $n$ to be even, thus $n=2 q$ and hence $$ \left|2^{m}-181^{n}\right|=\left|2^{4 k+2}-181^{2 q}\right|=\left|\left(2^{2 k+1}-181^{q}\right) \cdot\left(2^{2 k+1}+181^{q}\right)\right| \geqslant 183 $$ so this will not lead to any solution less than 7 , which proves 7 to be the minimum possible value. ## Team Competition ## T - 1 Determine all pairs of polynomials $(P, Q)$ with real coefficients satisfying $$ P(x+Q(y))=Q(x+P(y)) $$ for all real numbers $x$ and $y$. Answer: Either $P \equiv Q$ or $P(x)=x+a$ and $Q(x)=x+b$ for some real numbers $a, b$. Solution. If either $P$ or $Q$ is constant then clearly $P \equiv Q$. Suppose neither of $P, Q$ is constant. Write $P(x)=a x^{n}+b x^{n-1}+R(x)$ and $Q(x)=c x^{m}+d x^{m-1}+S(x)$ with $n, m \geqslant 1, a \neq 0 \neq c$, $\operatorname{deg} R0$ or $j<0$, we argue anlogously. If $j=0$, then $i \neq 0$ for a non-central lamp, therefore the maximum is $|i|$ and wie have again the values $|i-1|,|i|,|i|$, $|i+1|$ to check which contain and odd number of values $\equiv 0,1 \bmod 4$. Therefore, we have found an arrangement with exactly one lamp with an even number of neighbours that are on as desired. ![](https://cdn.mathpix.com/cropped/2024_12_27_a672ddca8fd5bbe40e05g-15.jpg?height=563&width=1674&top_left_y=1312&top_left_x=194) The images show the discussed optimal arrangement for $n=77$. Lamps that are on are yellow, lamps that are off are blue. The first image shows all lamps, the second image shows the lamps with $i+j$ even and the third image shows the lamps with $i+k$ odd. Alternative solution. We color the board as a chess board in such a way that the four corners are white. An active lamp on a black field has no influence on the number of active neighbours of any lamp on a black field, and vice versa an active lamp on a white field has no influence on the number of active neighbours of a lamp on a white field. Therefore, we can optimize the number of lamps with an even number of active neighbours separately for lamps on black and white fields. For the black fields, it is easy to find an arrangement in which all black fields have exactly one active neighbour, by turning on the following lamps: In the 1st, 5 th, 9 th, 13 th, $\ldots$ row the 1st, 5th, 9th, 13th, ... lamp (so all lamps with $x \equiv y \equiv 1 \bmod 4$, assuming that the corner has coordinates $(1,1)$ ), and in the 3rd, 7th, 11th, ... row the 3rd, 7th, 11th, ... lamp (so all lamps with $x \equiv y \equiv 3 \bmod 4)$. An example for $n=77$ with the same color coding as in the previous solution: ![](https://cdn.mathpix.com/cropped/2024_12_27_a672ddca8fd5bbe40e05g-16.jpg?height=715&width=721&top_left_y=956&top_left_x=673) For white fields, we first show that at least one white field has to have an even number of active neighbours. To do so, we colour all white fields in the 1st, 3 rd, 5th, ... row and in the 1st, 3rd, 5th, ... column red. Each black field is neighbour to exactly two red fields, and red fields have only black neighbours. If $x$ lamps on black fields are active, then all red fields together have exactly $2 x$ active neighbours. Since the number of red fields is odd, at least one of them has to have an even number of active neighbours. All that is left to do is finding an arrangement in which all white fields except for one have an odd number of active neighbours. To do so, we separate the board into four "triangles" roughly as follows: ![](https://cdn.mathpix.com/cropped/2024_12_27_a672ddca8fd5bbe40e05g-17.jpg?height=709&width=706&top_left_y=197&top_left_x=681) In the upper triangle we turn on the following lamps: In the 1st, 3rd, 5th, ... row always the lamp on the second field from the left, and then every 4th lamp, like this: ![](https://cdn.mathpix.com/cropped/2024_12_27_a672ddca8fd5bbe40e05g-17.jpg?height=681&width=686&top_left_y=1093&top_left_x=688) For filling the other triangles, we rotate the same pattern by $90^{\circ}$. Each lamp is only neighboured to fields from the own triangle, and each field within the triangle has exactly one active neighbour. Only the field in the middle of the board is left. An example for $n=77$ : ![](https://cdn.mathpix.com/cropped/2024_12_27_a672ddca8fd5bbe40e05g-18.jpg?height=686&width=686&top_left_y=271&top_left_x=685) Altogether, the pattern looks like this: ![](https://cdn.mathpix.com/cropped/2024_12_27_a672ddca8fd5bbe40e05g-18.jpg?height=689&width=690&top_left_y=1055&top_left_x=683) ## T - 4 Let $n \geqslant 3$ be an integer. A sequence $P_{1}, P_{2}, \ldots, P_{n}$ of distinct points in the plane is called good if no three of them are collinear, the polyline $P_{1} P_{2} \ldots P_{n}$ is non-self-intersecting and the triangle $P_{i} P_{i+1} P_{i+2}$ is oriented counterclockwise for every $i=1,2, \ldots, n-2$. For every integer $n \geqslant 3$ determine the greatest possible integer $k$ with the following property: there exist $n$ distinct points $A_{1}, A_{2}, \ldots, A_{n}$ in the plane for which there are $k$ distinct permutations $\sigma:\{1,2, \ldots, n\} \rightarrow\{1,2, \ldots, n\}$ such that $A_{\sigma(1)}, A_{\sigma(2)}, \ldots, A_{\sigma(n)}$ is good. (A polyline $P_{1} P_{2} \ldots P_{n}$ consists of the segments $P_{1} P_{2}, P_{2} P_{3}, \ldots, P_{n-1} P_{n}$.) Answer: $n^{2}-4 n+6$. Solution. Fix $n$ points on a plane, no three of which are collinear. Let $\mathcal{P}$ be their convex hull. Let the vertices of $\mathcal{P}$ be $A_{1}, A_{2}, \ldots, A_{m}$ (lying in this order on the boundary of $\mathcal{P}$ counterclockwise). We denote $A_{m+1}=A_{1}$. Also, let $\mathcal{I}$ be the set of our fixed points other than $A_{1}, \ldots, A_{m}$, i.e. the points lying in the interior of $\mathcal{P}$. Lemma. Every good polyline contains all but one side of $\mathcal{P}$. Proof. The key observation is that if a segment $A_{i} A_{i+1}$ is not a part of our polyline, then the point $A_{i+1}$ appears in the polyline before $A_{i}$. This is clear if $A_{i}$ is the last vertex of the polyline. Otherwise there is a segment $A_{i} X$ in the polyline, where $X \neq A_{i+1}$. Observe that all segments appearing after $A_{i} X$ are located in the halfplane determined by the line $A_{i} X$ which does not contain the point $A_{i+1}$. This is because the polyline always turns left, has no self-intersections, and $A_{i}$ is a vertex of $\mathcal{P}$. This implies that the point $A_{i+1}$ must appear in the polyline before $A_{i}$. It is clear that at least one side of $\mathcal{P}$ does not appear in the polyline. Suppose now that $A_{i_{1}} A_{i_{1}+1}, A_{i_{2}} A_{i_{2}+1}, \ldots, A_{i_{j}} A_{i_{j}+1}$ are all segments on the boundary of $\mathcal{P}$ that do not appear in the polyline (where $1 \leqslant i_{1}A C$ and circumcircle $\Gamma$. Let $M$ be the midpoint of the shorter arc $B C$ of $\Gamma$, and let $D$ be the intersection of the rays $A C$ and $B M$. Let $E \neq C$ be the intersection of the internal bisector of the angle $A C B$ and the circumcircle of the triangle $B D C$. Let us assume that $E$ is inside the triangle $A B C$ and there is an intersection $N$ of the line $D E$ and the circle $\Gamma$ such that $E$ is the midpoint of the segment $D N$. Show that $N$ is the midpoint of the segment $I_{B} I_{C}$, where $I_{B}$ and $I_{C}$ are the excentres of $A B C$ opposite to $B$ and $C$, respectively. Solution. Consider the following implications: Let us denote by $P$ the other point of intersection of internal bisector from $C$ and the circle $\Gamma$. $B D C E$ is cyclic $$ \begin{aligned} & \Longrightarrow \angle B D C=\angle B E P \\ & \Longrightarrow \triangle B E P \sim \triangle B D A \\ & (\angle B P E=\angle B P C=\angle B A C=\angle B A D) \\ & \Longrightarrow \frac{B E}{B P}=\frac{B D}{B A} \\ & \Longrightarrow \frac{B E}{B D}=\frac{B P}{B A} \\ & \Longrightarrow \triangle B D E \sim \triangle B A P \\ & \left(\angle D B E=\angle A B P=\frac{1}{2} \angle A C B\right) \\ & \Longrightarrow E B=E D \\ & \text { ( } \triangle B A P \text { is isosceles) } \\ & \Longrightarrow \angle M B N=\angle D B N=90^{\circ} \\ & \Longrightarrow M \text { and } N \text { are diametrically opposite on } \Gamma \\ & \Longrightarrow N B=N C \text {. } \end{aligned} $$ The quadrilateral $I_{B} I_{C} B C$ is cyclic, as $I_{B} B \perp I_{C} B$ and $I_{C} C \perp I_{B} C$. Let $I_{A}$ be the excentre of $\triangle A B C$ opposite to $A$. Now consider the nine point circle of $\triangle I_{A} I_{B} I_{C}$. We can clearly see that this circle is $\Gamma$, as $\triangle A B C$ is the orthic triangle of $\triangle I_{A} I_{B} I_{C}$. So $\Gamma$ passes through the midpoint of $I_{B} I_{C}$ and this midpoint is also equidistant from $B$ and $C$, so $N$ must be the described midpoint. ## T - 6 Let $A B C$ be an acute-angled triangle with $A B \neq A C$, circumcentre $O$ and circumcircle $\Gamma$. Let the tangents to $\Gamma$ through $B$ and $C$ meet each other at $D$, and let the line $A O$ intersect $B C$ at $E$. Denote the midpoint of $B C$ by $M$ and let $A M$ meet $\Gamma$ again at $N \neq A$. Finally, let $F \neq A$ be a point on $\Gamma$ such that $A, M, E$ and $F$ are concyclic. Prove that $F N$ bisects the segment $M D$. Solution. We may suppose $A B0$ then $$ x_{0}+\cdots+x_{i-1}=x_{0}+\cdots+x_{i-1}+x_{i} $$ which is a contradiction. On the other hand $$ x_{0}+x_{1}+\cdots+x_{n-1}=0+1+2+\cdots+n-1=n \cdot \frac{n-1}{2} . $$ This means that if $n$ is odd then $x_{0}+x_{1}+\cdots+x_{n-1} \equiv 0(\bmod n)$. This gives a contradiction if $n>1$, because $x_{0}=0$. If $n$ is even then we put $x_{i}=i$ if $i$ is even and $x_{i}=n-i$ if $i$ is odd. Then $$ x_{0}+x_{1}+\cdots+x_{2 m}=0+(n-1)+2+(n-3)+\cdots+2 m \equiv m \quad(\bmod n) $$ and $$ x_{0}+x_{1}+\cdots+x_{2 m+1}=x_{0}+x_{1}+\cdots+x_{2 m}+(n-2 m-1) \equiv n-m-1 \quad(\bmod n) . $$ Thus the numbers $x_{0}+x_{1}+\cdots+x_{i}, i=0,1, \ldots, n-1$, are pairwise distinct modulo $n$. ## T - 8 For an integer $n \geqslant 3$ we define the sequence $\alpha_{1}, \alpha_{2}, \ldots, \alpha_{k}$ as the sequence of exponents in the prime factor decomposition of $n!=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \ldots p_{k}^{\alpha_{k}}$, where $p_{1}\frac{n}{3}-\frac{2}{3}+\frac{n}{9}-\frac{8}{9}=\frac{4 n-14}{9} \\ & \alpha_{4}>\frac{n-6}{7} \\ & \alpha_{3}<\frac{n}{5}+\frac{n}{25}+\cdots=\frac{n}{4} . \end{aligned} $$ In the geometric sequence, we have $\alpha_{2} \alpha_{4}=\alpha_{3}^{2}$. Since all terms in the above inequalities are positive, we get: $$ \left(\frac{4 n-14}{9}\right)\left(\frac{n-6}{7}\right)<\alpha_{2} \alpha_{4}=\left(\alpha_{3}\right)^{2}<\frac{n^{2}}{16} . $$ After simplification, we get: $n^{2}-608 n+1344 \leqslant 0$. This is certainly false for $n \geqslant 608$ and it remains to check the small cases. For two primes $p$ and $q$ with $p3$. We will now give a list of appropriate primes $p$ and $q$ such that the intervals $[q, 2 p-1]$ cover most of our interval. | $p$ | 3 | 5 | 7 | 11 | 17 | 29 | 47 | 83 | 157 | 311 | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | $q$ | 5 | 7 | 11 | 13 | 19 | 31 | 53 | 89 | 163 | 313 | | $2 p-1$ | 5 | 9 | 13 | 21 | 33 | 57 | 93 | 165 | 313 | 621 | It remains to check $n=3,4,6,10$ which give the sequences of exponents $(1,1),(3,1),(4,2,1)$ and $(8,4,2,1)$, respectively, which clearly work. Alternative solution. Let $p_{i}$ be the $i$ th prime number, that is $p_{1}=2, p_{2}=3, p_{3}=5$, etc. We check the small cases up to $n=11$ and find the solutions 3 !, 4!, 6 ! and 10 !. From now on, let $n>11$. Claim. The smallest and last exponent $\alpha_{k}$ in the prime factor decomposition of $n!$ is always 1 . Proof. By Bertrand's postulate, we know $p_{k+1}<2 p_{k}$. Therefore, for all $n \in\left[p_{k}, p_{k+1}-1\right]$, the largest prime number that occurs in $n!$ is $p_{k}$ and it occurs exactly once. Therefore, $\alpha_{1}=f^{m}$ for some $f \in \mathbb{N}$ and $m+1$ is the number of primes in the prime factor decomposition of $n$ !. Case 1: $f=2$. The exponent of 2 in the prime factor decomposition of $\left(2^{m}\right)!$ is $2^{m-1}+2^{m-2}+\cdots+1=2^{m}-1$. Therefore, $\alpha_{1}=2^{m}$ holds exactly for $n=2^{m}+2$ and $2^{m}+3$, and since $n>11$, we have $m \geqslant 4$. Let $\pi(x)$ be the number of primes $\leqslant x$. We check easily that $\pi(16)=6$. Bertrand's postulate implies $\pi(2 x) \geqslant \pi(x)+1$, therefore, $$ \pi(n) \geqslant \pi\left(2^{m}\right) \geqslant \pi\left(2^{m-1}\right)+1 \geqslant \ldots \geqslant \pi\left(2^{4}\right)+m-4=6+m-4=m+2 $$ which is not compatible with the fact that there are $m+1$ primes in the prime factor decomposition of $n!$. Case 2: $f>2$. Since the exponent of 2 is now even bigger than $2^{m}, n$ must be bigger than $2^{m}+3$, so as before, the number of primes in the prime factor decomposition of $n$ ! must be bigger than $m+1$ which is again a contradiction. We have seen, that the solutions $3,4,6,10$ are indeed all the solutions.