how to prove that a natural number n > 1 is prime if and only if n divides (n-2)! - 1? I know it is a 'iff' questions so that it need to be proved by both directions, and I tried to prove by contradiction or contrapositive but still did not figure it out.
2026-03-26 07:35:33.1774510533
how to prove that a natural number n > 1 is prime if and only if n divides (n-2)! - 1?
1.8k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Wilson's theorem states that a natural number $n $ is a prime number if and only if $$(n-1)! \equiv -1 \pmod n$$
$$(n-1)(n-2)! \equiv -1 \pmod n$$
$$(n-2)! \equiv 1 \pmod n$$