Problem

Source: APMO 2012 #3

Tags: modular arithmetic, number theory, prime, Divisibility



Determine all the pairs $ (p , n )$ of a prime number $ p$ and a positive integer $ n$ for which $ \frac{ n^p + 1 }{p^n + 1} $ is an integer.