ArticleslgStudy

science

Pépin's test

Pépin's test is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Pépin's test rather than just read about it. In short: In mathematics, Pépin's test is a primality test, which can be used to determine whether a Fermat number is prime. It is a variant of Proth's test.

Key takeaways

  • Pépin's test belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Pépin's test to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Pépin's test from memory before moving on to harder problems.

Reference excerpt

In mathematics, Pépin's test is a primality test, which can be used to determine whether a Fermat number is prime. It is a variant of Proth's test. The test is named after a French mathematician, Théophile Pépin.

Description of the test Let F n = 2 2 n + 1 {\displaystyle F_{n}=2^{2^{n}}+1} be the nth Fermat number. Pépin's test states that for n > 0,

F n {\displaystyle F_{n}} is prime if and only if 3 ( F n − 1 ) / 2 ≡ − 1 ( mod F n ) . {\displaystyle 3^{(F_{n}-1)/2}\equiv -1{\pmod {F_{n}}}.}

The expression 3 ( F n − 1 ) / 2 {\displaystyle 3^{(F_{n}-1)/2}} can be evaluated modulo F n {\displaystyle F_{n}} by repeated squaring. This makes the test a fast polynomial-time algorithm. However, Fermat numbers grow so rapidly that only a handful of Fermat numbers can be tested in a reasonable amount of time and space. Other bases may be used in place of 3. These bases are:

3, 5, 6, 7, 10, 12, 14, 20, 24, 27, 28, 39, 40, 41, 45, 48, 51, 54, 56, 63, 65, 75, 78, 80, 82, 85, 90, 91, 96, 102, 105, 108, 112, 119, 125, 126, 130, 147, 150, 156, 160, ... (sequence A129802 in the OEIS). The primes in the above sequence are called Elite primes, they are:

3, 5, 7, 41, 15361, 23041, 26881, 61441, 87041, 163841, 544001, 604801, 6684673, 14172161, 159318017, 446960641, 1151139841, 3208642561, 38126223361, 108905103361, 171727482881, 318093312001, 443069456129, 912680550401, ... (sequence A102742 in the OEIS) For integer b > 1, base b may be used if and only if only a finite number of Fermat numbers Fn satisfies that ( b F n ) = 1 {\displaystyle \left({\frac {b}{F_{n}}}\right)=1} , where ( b F n ) {\displaystyle \left({\frac {b}{F_{n}}}\right)} is the Jacobi symbol. In fact, Pépin's test is the same as the Euler-Jacobi test for Fermat numbers, since the Jacobi symbol ( b F n ) {\displaystyle \left({\frac {b}{F_{n}}}\right)} is −1, i.e. there are no Fermat numbers which are Euler-Jacobi pseudoprimes to these bases listed above.

Proof of correctness Sufficiency: assume that the congruence

3 ( F n − 1 ) / 2 ≡ − 1 ( mod F n ) {\displaystyle 3^{(F_{n}-1)/2}\equiv -1{\pmod {F_{n}}}}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Pépin's test

Start with the simplest possible case. Write down what Pépin's test claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Pépin's test before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Pépin's test ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Pépin's test

In research
Pépin's test appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Pépin's test in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Pépin's test is common in secondary-school and first-year university syllabi. It links to neighbouring topics Primality tests, so understanding it makes those chapters shorter.
In everyday life
Look for Pépin's test outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Pépin's test” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Pépin's test in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Pépin's test means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Pépin's test out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Pépin's test in simple terms?

In mathematics, Pépin's test is a primality test, which can be used to determine whether a Fermat number is prime. It is a variant of Proth's test.

Why does Pépin's test matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Pépin's test?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Pépin's test.

Tags

  • Primality tests

Keep exploring