A positive integer $m$ is called perfect if the sum of all its positive divisors, including $1$ and $m$, equals $2m$. Determine the positive integers $n$ for which $n^n + 1$ is a perfect number.

Let's think step by step and output the final answer within \boxed{}.
user