Inmathematics,Pépin's test is aprimality test, which can be used to determine whether aFermat number isprime. It is a variant ofProth's test. The test is named after a French mathematician,Théophile Pépin.
Let be thenth Fermat number. Pépin's test states that forn > 0,
The expression can be evaluated modulo byrepeated squaring. This makes the test a fastpolynomial-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:
The primes in the above sequence are calledElite primes, they are:
For integerb > 1, baseb may be used if and only if only a finite number of Fermat numbersFn satisfies that, where is theJacobi symbol.
In fact, Pépin's test is the same as theEuler-Jacobi test for Fermat numbers, since the Jacobi symbol is −1, i.e. there are no Fermat numbers which are Euler-Jacobi pseudoprimes to these bases listed above.
Sufficiency: assume that the congruence
holds. Then, thus themultiplicative order of 3 modulo divides, which is a power of two. On the other hand, the order does not divide, and therefore it must be equal to. In particular, there are at least numbers below coprime to, and this can happen only if is prime.
Necessity: assume that is prime. ByEuler's criterion,
where is theLegendre symbol. By repeated squaring, we find that, thus, and.As, we conclude from thelaw of quadratic reciprocity.
Because of the sparsity of the Fermat numbers, the Pépin test has only been run eight times (on Fermat numbers whose primality statuses were not already known).[1][2][3]Mayer, Papadopoulos and Crandall speculate that in fact, because of the size of the still undetermined Fermat numbers, it will take considerable advances in technology before any more Pépin tests can be run in a reasonable amount of time.[4]
Year | Provers | Fermat number | Pépin test result | Factor found later? |
---|---|---|---|---|
1905 | Morehead &Western | composite | Yes (1970) | |
1909 | Morehead & Western | composite | Yes (1980) | |
1952 | Robinson | composite | Yes (1953) | |
1960 | Paxson | composite | Yes (1974) | |
1961 | Selfridge & Hurwitz | composite | Yes (2010) | |
1987 | Buell &Young | composite | No | |
1993 | Crandall, Doenias, Norrie & Young | composite | Yes (2010) | |
1999 | Mayer, Papadopoulos & Crandall | composite | No |