Hello, I have to find out if number $n^{k} + 1$, where $n \geq 2 \wedge k \in N$, is composite. After several google queries I got stuck. I tried to transform the problem into Fermat prime test, but the problem got only more difficult: does exist such a for which this formula is false: $(a)^{n^{k}} \equiv 1 \pmod{n^{k} + 1}$.
I would be very grateful for any advice with this exercise (just a little push towards the right way would be very nice).

