![]() |
|
|
#1 |
|
"Jeppe"
Jan 2016
Denmark
23·3·7 Posts |
\(2n^n\pm 1\) may be prime. I just noticed two sequences in OEIS:
which list all \(n\) such that \(2n^n+1\), respectively \(2n^n-1\), is prime. The search limit given in OEIS is \(n=35000\) and \(n=4000\), respectively. Has anyone who reads this searched these forms before, and to what limit? Maybe a new prime can be found (incredible optimist)? And clearly it will be a provable prime (as a neighbor to a number whose full factorization is trivial). /JeppeSN |
|
|
|
|
|
#2 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#3 |
|
"Dylan"
Mar 2017
3×193 Posts |
I did a small n range of 2*n^n-1 (ie n = 4000 to n = 5000) to get a gauge of the speed of a PRP test of this form and to see how many tests would have to be run. Using the following command line
Code:
pfgw64 -f -lresidues.txt 2ktothekminus1.pfgw |
|
|
|
|
|
#4 |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
I believe that my old MultiSieve sieved numbers of this form, k*b^b+/-1.
|
|
|
|
|
|
#5 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
For easy elimination, it comes down to when (p+1)/2 or (p-1)/2 can be residue a power can take on mod prime p.
Last fiddled with by science_man_88 on 2018-04-04 at 22:15 |
|
|
|
|
|
#6 |
|
Feb 2017
Nowhere
10010001000112 Posts |
For odd primes p, the behavior of nn (mod p) is kind of interesting. We have
(n+p)n+p == nn+p == nn+1 (mod p), so that (n+k*p)n+k*p == nn+k*p == nn+k (mod p), so that (n+(p-1)*p)n+(p-1)*p == nn+(p-1)*p == nn+p-1, so that (n+(p-1)*p)n+(p-1)*p == nn (mod p) for every positive integer n. That is, nn (mod p) is periodic, and (p-1)*p is a period. For any k, 0 < k < p, there will be solutions to nn - 1 == 0 (mod p) with n == k (mod p). If k (mod p) has even multiplicative order, there will be solutions to nn + 1 == 0 (mod p) with n == k (mod p). |
|
|
|
|
|
#7 | |
|
Feb 2017
Nowhere
4,643 Posts |
Quote:
(r + k*p)r+k*p (mod p) are r1+k (mod p). These residues form a group. So the question of whether 2*nn == 1 (mod p) for some n == r (mod p) is, whether 2 (mod p) is in the group generated by r (mod p). Since the multiplicative group of nonzero residues (mod p) is cyclic, the question becomes whether the multiplicative order of 2 (mod p) divides the multiplicative order of r (mod p). Similarly, the question of whether 2*nn == -1 (mod p) for some n == r (mod p) becomes whether the multiplicative order of -2 (mod p) divides the multiplicative order of r (mod p). |
|
|
|
|
|
|
#8 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
How 'bout this one?
2*82992^82992+1 is prime. |
|
|
|
|
|
#9 | |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
Quote:
|
|
|
|
|
|
|
#10 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
947710 Posts |
I am not sure how frequent this use for this code branch would be.
The depth was around 29.3 bits after a day or two sieving (on 1 core up to n<=250k) so I am sure that it did save some time; factors for these are general, so I now checked a default PFGW sieving would have been ~26 bits (~83,000 candidates times 0-4 minutes = ...quite a bit of time saved). |
|
|
|
|
|
#11 | |
|
"Jeppe"
Jan 2016
Denmark
23×3×7 Posts |
Quote:
Are you continuing the search? And did you consider the minus form as well? /JeppeSN |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Primes of the form (b+-1)*b^n+-1 and b^n+-(b+-1) | sweety439 | sweety439 | 162 | 2020-05-15 18:33 |
| Primes of the form n+-phi(n) | carpetpool | carpetpool | 3 | 2017-01-26 01:29 |
| Infinitely many primes of a form? | PawnProver44 | Homework Help | 1 | 2016-03-15 22:39 |
| Primes of the form a^(2^n)+b^(2^n) | YuL | Math | 21 | 2012-10-23 11:06 |
| Primes of the form 2.3^n+1 | Dougy | Math | 8 | 2009-09-03 02:44 |