Problem

Source: IMO ShortList 1999, number theory problem 1

Tags: number theory, Divisibility, prime, IMO Shortlist, IMO, IMO 1999, Hi



Find all the pairs of positive integers $(x,p)$ such that p is a prime, $x \leq 2p$ and $x^{p-1}$ is a divisor of $ (p-1)^{x}+1$.


Attachments: