Problem

Source: USA TST 2003

Tags: modular arithmetic, number theory, Order



Find all ordered triples of primes $(p, q, r)$ such that \[ p \mid q^r + 1, \quad q \mid r^p + 1, \quad r \mid p^q + 1. \] Reid Barton