Question 3
Find all pairs of positive integers $m, n \ge 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.
\frac{a^m+a-1}{a^n+a^2-1}
$$ is itself an integer.
IMO · International Mathematical Olympiad 2002 — Official contest