Exercise · ZW-WILSON-S-THEOREM-006 · ★★☆ Intermediate

If \(n>1\) satisfies \((n-1)!\equiv -1 \pmod{n}\), what can you conclude about \(n\)?

Choose one option.

Show answer
  • A. \(n\) is prime

Explanation

The converse also holds: if \(n>1\) satisfies the congruence, \(n\) is prime, because a composite \(n\) has a proper divisor that appears among the factors of \((n-1)!\).

Study Elementary number theory in ZWMath →

Review the concept: Wilson's theorem

For a prime number \(p\), \((p-1)!\) leaves remainder \(-1\) when divided by \(p\).

\[(p-1)!\equiv -1 \pmod{p}\]

More practice problems: wilson's theorem

← ZW-WILSON-S-THEOREM-005 ZW-WILSON-S-THEOREM-007 →