Given that in a triangle $ABC$, $AB=3$, $BC=4$ and the midpoints of the altitudes of the triangle are collinear, find all possible values of the length of $AC$.
2002 Italy TST
Day 1
Prove that for each prime number $p$ and positive integer $n$, $p^n$ divides \[\binom{p^n}{p}-p^{n-1}. \]
Find all functions $f:\mathbb{R}^+\rightarrow\mathbb{R}^+$ which satisfy the following conditions: $(\text{i})$ $f(x+f(y))=f(x)f(y)$ for all $x,y>0;$ $(\text{ii})$ there are at most finitely many $x$ with $f(x)=1$.
Day 2
A scalene triangle $ABC$ is inscribed in a circle $\Gamma$. The bisector of angle $A$ meets $BC$ at $E$. Let $M$ be the midpoint of the arc $BAC$. The line $ME$ intersects $\Gamma$ again at $D$. Show that the circumcentre of triangle $AED$ coincides with the intersection point of the tangent to $\Gamma$ at $D$ and the line $BC$.
On a soccer tournament with $n\ge 3$ teams taking part, several matches are played in such a way that among any three teams, some two play a match. $(a)$ If $n=7$, find the smallest number of matches that must be played. $(b)$ Find the smallest number of matches in terms of $n$.
Prove that for any positive integer $ m$ there exist an infinite number of pairs of integers $(x,y)$ such that $(\text{i})$ $x$ and $y$ are relatively prime; $(\text{ii})$ $x$ divides $y^2+m;$ $(\text{iii})$ $y$ divides $x^2+m.$