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 4 of 7: Extract a congruence
Detailed analysis
Both numerator expressions in the divisibility condition are even, so n is odd. Since an odd exponent makes x to that exponent plus 1 divisible by x+1, p+1 divides both numerators. Therefore the p-th power of n is congruent to −1 modulo p+1, and the 2p-th power is congruent to 1.