Problem 3
Determine all pairs (p,n), where p is a prime number and n is a positive integer, for which (n^p+1)/(p^n+1) is an integer.
Step 6 of 7: Get the reverse bound
Detailed analysis
Because p is odd, n^p≡n modulo p+1 when n²≡1. Comparing with n^p≡−1 gives p+1|n+1. Since n≤p, this divisibility forces n+1≤p+1, while p+1 divides n+1; hence n=p.