Math 2.0

statement theorem

Pépin's test

Statement

Let nn be a positive integer and let Fn=22n+1F_n = 2^{2^n} + 1 be the Fermat number. Then FnF_n is prime if and only if 3(Fn−1)/2≡−1(modFn).3^{(F_n - 1)/2} \equiv -1 \pmod{F_n}.

Remarks

For example, F1=5F_1 = 5 and 32=9≡−1(mod5)3^2 = 9 \equiv -1 \pmod 5. The power can be computed by 2n−12^n - 1 squarings with modular exponentiation. The "only if" part follows from Euler's criterion and quadratic reciprocity, since 33 is a nonresidue modulo FnF_n.

History

The test is named after Théophile Pépin.

Explanations

L1 human

Pépin's test decides whether a Fermat number is prime with one large modular power. The Fermat numbers grow so fast that the test is practical only for small nn.

What this node needs for W2
  • edge about out: the concepts that the statement is about (0 of 1)
  • edge proves in: at least one proof node (0 of 1)
  • edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
  • explanation L2 (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 4 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. Fermat number definition
  3. Congruence modulo n definition
  4. Pépin's test statement

Sources

  1. Web https://en.wikipedia.org/wiki/P%C3%A9pin%27s_test, Description of the test