No. of known terms 102 First terms 3, 11, 37, 101 OEIS index A040017 | Conjectured no. of terms Infinite Largest known term (10-1)/9 | |
In number theory, a unique prime is a certain kind of prime number. A prime p ≠ 2, 5 is called unique if there is no other prime q such that the period length of the decimal expansion of its reciprocal, 1 / p, is equal to the period length of the reciprocal of q, 1 / q. For example, 3 is the only prime with period 1, 11 is the only prime with period 2, 37 is the only prime with period 3, 101 is the only prime with period 4, so they are unique primes. In contrast, 41 and 271 both have period 5; 7 and 13 both have period 6; 239 and 4649 both have period 7; 73 and 137 both have period 8. Therefore, none of these is a unique prime. Unique primes were first described by Samuel Yates in 1980.
Contents
The above definition is related to the decimal representation of integers. Unique primes may be defined and have been studied in any numeral base.
Period of a prime in base b
The representation of the reciprocal of a prime number (or, more generally, an integer) p in the numeral base b is periodic of period n if
where q is a positive integer smaller than
In other words, n is a period of the representation of 1/p if and only if p is a divisor of
All the periods of a periodic function are multiples of a shortest period generally called the fundamental period. In this article, we call period of p in base b the shortest period of the representation of 1/p in base b. Therefore, the period of p in base b is the smallest positive integer n such that that p is a divisor of
According to Zsigmondy's theorem, every positive integer is a period of some prime in base b except in the following cases:
As
where
If b is even (this includes the binary and the decimal cases), the prime divisors of
This is wrong if b is odd: if n = 2 and b = 4k − 1, where k is a positive integer, then
although 2 divides both n = 2 and
If b is odd, the primes of period n are exactly, if n = 1, the prime divisors of
A prime p is a unique prime in base b, if and only if, for some n, it is the unique prime divisor of
for some positive integer c .
If b is odd, this means that
for some integers c > 0 and d ≥ 0. This provides an efficient method for computing the unique primes and the primes of a given period.
Note that a prime divisor of b is coprime with
Decimal unique primes
At present, more than fifty unique primes or probable primes are known. However, there are only twenty-three unique primes below 10100. The following table gives an overview of all 23 unique primes below 10100 (sequence A040017 (sorted) and A007615 (ordered by period length) in OEIS) and their periods (sequence A051627 (ordered by corresponding primes) and A007498 (sorted) in OEIS)
The prime with period length 294 is similar to the reciprocal of 7 (0.142857142857142857...)
Just after the table, the twenty-fourth unique prime has 128 digits and period length 320. It can be written as (932032)2 + 1, where a subscript number n indicates n consecutive copies of the digit or group of digits before the subscript.
Though they are rare, based on the occurrence of repunit primes and probable primes, it is conjectured strongly that there are infinitely many unique primes. (Any repunit prime is unique.)
As of 2010 the repunit (10270343-1)/9 is the largest known probable unique prime.
In 1996 the largest proven unique prime was (101132 + 1)/10001 or, using the notation above, (99990000)141+ 1. It has 1129 digits. The record has been improved many times since then. As of 2014 the largest proven unique prime is
Binary unique primes
The first unique primes in binary (base 2) are:
3, 5, 7, 11, 13, 17, 19, 31, 41, 43, 73, 127, 151, 241, 257, 331, 337, 683, ... (sequence A144755 (sorted) and A161509 (ordered by period length) in OEIS)The period length of them are:
2, 4, 3, 10, 12, 8, 18, 5, 20, 14, 9, 7, 15, 24, 16, 30, 21, 22, ... (sequence A247071 (ordered by corresponding primes) and A161508 (sorted) in OEIS)They include Fermat primes (the period length is a power of 2), Mersenne primes (the period length is a prime) and Wagstaff primes (the period length is twice an odd prime).
Additionally, if n is a natural number which is not equal to 1 or 6, than at least one prime have period n in base 2, because of the Zsigmondy theorem. Besides, if n is congruent to 4 (mod 8) and n > 20, then at least two primes have period n in base 2, (Thus, n is not a unique period in base 2) because of the Aurifeuillean factorization, for example, 113 (=
As shown above, a prime p is a unique prime of period n in base 2 if and only if there exists a natural number c such that
The only known values of n such that
In fact, no prime with c > 1 (that is
The largest known base 2 unique prime is 274207281-1, it is also the largest known prime. With an exception of Mersenne primes, the largest known probable base 2 unique prime is
Similar to base 10, though they are rare (but more than the case to base 10), it is conjectured that there are infinitely many base 2 unique primes, because all Mersenne primes are unique in base 2, and it is conjectured they there are infinitely many Mersenne primes.
They divide none of overpseudoprimes to base 2, but every other odd prime number divide one overpseudoprime to base 2, because if and only if a composite number can be written as
There are 52 unique primes in base 2 below 264, they are:
After the table, the next 10 binary unique prime have period length 170, 234, 158, 165, 147, 129, 184, 89, 208, and 312. Besides, the bits (digits in binary) of them are 65, 73, 78, 81, 82, 84, 88, 89, 96, and 97.
Bi-unique primes
Bi-unique primes are a pairs of primes having a period length shared by no other primes. For example, in binary, the bi-unique primes with at least one prime less than 10000 are:
Although there are 1228 odd primes below 10000, only 21 of them are unique and 76 of them are bi-unique in binary.
A classic example of binary bi-unique primes are
46817226351072265620777670675006972301618979214252832875068976303839400413682313921168154465151768472420980044715745858522803980473207943564433 (143 digits)
and
527739642811233917558838216073534609312522896254707972010583175760467054896492872702786549764052643493511382273226052631979775533936351462037464
331880467187717179256707148303247 (177 digits)
they are the two prime factor of the Mersenne number 21061−1. Thus, the period length of them is 1061.
As of October 2016, the largest known probable binary bi-unique prime is
Similarly, we can define "tri-unique primes" as a triple of primes having a period length shared by no other primes. The first few tri-unique primes are:
In binary, the smallest n-unique prime are
3, 23, 53, 149, 269, 461, 619, 389, ...In binary, the period length of odd primes are: (sequence A014664 in the OEIS)
In binary, the primes with given period length are: (sequence A108974 in the OEIS)