Problem

Source:

Tags: IMO Shortlist, number theory, primes, IMO Shortlist 2014, Hi, N5



Find all triples $(p, x, y)$ consisting of a prime number $p$ and two positive integers $x$ and $y$ such that $x^{p -1} + y$ and $x + y^ {p -1}$ are both powers of $p$. Proposed by Belgium