Problem

Source: Iran Third Round 1997, E3, P7

Tags: modular arithmetic, number theory proposed, number theory



Find all pairs $(p,q)$ of prime numbers such that \[m^{3pq} \equiv m \pmod{3pq} \qquad \forall m \in \mathbb Z.\]