Math 2.0

statement proposition

Converse of Wilson's theorem

Statement

Let nn be an integer with n>1n > 1. If (n−1)!≡−1(modn)(n - 1)! \equiv -1 \pmod n, then nn is a prime number.

Remarks

With Wilson's theorem, this gives: an integer n>1n > 1 is prime if and only if (n−1)!≡−1(modn)(n - 1)! \equiv -1 \pmod n. The proof: if n=abn = a b with 1<a<n1 < a < n, then aa divides (n−1)!(n - 1)!. A congruence (n−1)!≡−1(modn)(n - 1)! \equiv -1 \pmod n would give a∣1a \mid 1, which is false. In fact (n−1)!≡0(modn)(n - 1)! \equiv 0 \pmod n for each composite n>4n > 4, and 3!≡2(mod4)3! \equiv 2 \pmod 4. This primality test is not practical, because (n−1)!(n - 1)! needs about nn multiplications.

Explanations

L1 human

For a composite number nn, a factor of nn appears in the product 1⋅2⋯(n−1)1 \cdot 2 \cdots (n - 1). So the product cannot leave the remainder n−1n - 1. For example, 5!=120≡0(mod6)5! = 120 \equiv 0 \pmod 6.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 5 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Divisibility definition
  2. Congruence modulo n definition
  3. Prime number definition
  4. Wilson's theorem statement
  5. Converse of Wilson's theorem statement

Sources

  1. Web https://en.wikipedia.org/wiki/Wilson%27s_theorem, Composite modulus