Problem

Source: Romania 2001

Tags: modular arithmetic, number theory proposed, number theory, polynomial congruence



Find all pairs $\left(m,n\right)$ of positive integers, with $m,n\geq2$, such that $a^n-1$ is divisible by $m$ for each $a\in \left\{1,2,3,\ldots,n\right\}$.