This site is supported by donations to The OEIS Foundation.
Pseudoprimes
A pseudoprime is a composite number that has certain properties in common with prime numbers.
To find out if a given number is a prime number, one can test it for properties that all prime numbers share. One property of a prime number is that it is only divisible by one and itself. This is a defining property: it holds for all primes and no other numbers.
However, other properties hold for all primes and also some other numbers. For instance, every prime number greater than 3 has the form or (with n an integer), but there are also composite numbers of this form: 25, 35, 49, 55, 65, 77, 85, 91, … (see A038509). So, we can say that 25, 35, 49, 55, 65, 77, 85, 91, … are pseudoprimes with respect to the property of being of the form or . There exist better properties, which lead to special pseudoprimes, as outlined below.
A theorem by Sierpinski states that if n is a pseudoprime (odd or even), then 2^n-1 is a pseudoprime, meaning they are infinite.
Hierarchy of pseudoprimes
Hierarchy of Pseudoprimes | ||||
---|---|---|---|---|
| ||||
Fermat pseudoprimes | ||||
|
A great part of the different sort of pseudoprimes is family. So is a strong pseudoprime an Euler pseudoprime and also a Fermat pseudoprime. On the other hand is every Fermat pseudoprime a special case of pseudoprime of the form divides (Lucas sequences#Lucas sequences and the prime numbers.
Here is the hierarchy from the most generally form of pseudoprime to the most especially form of pseudoprime:
- Pseudoprimes of the form divides and the form divides ===
- Lucas pseudoprimes ( divides , where is a Fibonacci number) is a form of pseudoprimes which matches the form divides .
- Likewise are Fibonacci pseudoprimes ( divides , where is a Lucas number) is a form of pseudoprimes which matches the form divides
- It is a bit confusing, that the Lucas pseudoprimes calculated with Fibonacci numbers, and the Fibonacci pseudoprimes calculated with Lucas numbers.
- Fermat pseudoprimes () are the special case of pseudoprimes of the form divides , where and , so that divides .
There are some sorts of pseudoprimes, which are Fermat pseudoprimes. The two best-known forms are:
- Carmichael numbers, which is Fermat pseudoprime for every integer and
- Euler pseudoprimes