I am currently working through Contemporary Abstract Algebra 10th edition by Gallian. I have come across a problem that looks like Wilson's Theorem from number theory.
The problem: If $n$ is a positive integer greater than $1$ and $(n-1)! \equiv 1 \mod n$ then $n$ is prime.
I don't have a problem with the proof but I am trying to connect this to the converse of Wilson's Theorem, since the theorem states that for any prime $p$, we have $(p-1)! \equiv -1 \mod p$. It is mainly the sign that is confusing me.