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.
Let
2n | |
F | |
n=2 |
+1
Fn
(Fn-1)/2 | |
3 |
\equiv-1\pmod{Fn}.
(Fn-1)/2 | |
3 |
Fn
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, ... .
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, ...
For integer b > 1, base b may be used if and only if only a finite number of Fermat numbers Fn satisfies that
\left( | b |
Fn |
\right)=1
\left( | b |
Fn |
\right)
In fact, Pépin's test is the same as the Euler-Jacobi test for Fermat numbers, since the Jacobi symbol
\left( | b |
Fn |
\right)
Sufficiency: assume that the congruence
(Fn-1)/2 | |
3 |
\equiv-1\pmod{Fn}
Fn-1 | |
3 |
\equiv1\pmod{Fn}
Fn
2n | |
F | |
n-1=2 |
(Fn-1)/2
Fn-1
Fn-1
Fn
Fn
Fn
Necessity: assume that
Fn
(Fn-1)/2 | ||
3 | \equiv\left( |
3{F | |
n}\right)\pmod{F |
n}
\left( | 3{F |
n}\right) |
2n | |
2 |
\equiv1\pmod3
Fn\equiv2\pmod3
\left( | Fn |
3\right)=-1 |
Fn\equiv1\pmod4
\left( | 3{F |
n}\right)=-1 |
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 | F7 | composite | Yes (1970) |
1909 | Morehead & Western | F8 | composite | Yes (1980) |
1952 | Robinson | F10 | composite | Yes (1953) |
1960 | Paxson | F13 | composite | Yes (1974) |
1961 | Selfridge & Hurwitz | F14 | composite | Yes (2010) |
1987 | Buell & Young | F20 | composite | No |
1993 | Crandall, Doenias, Norrie & Young | F22 | composite | Yes (2010) |
1999 | Mayer, Papadopoulos & Crandall | F24 | composite | No |
2n | |
2 |
+1