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