mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > enzocreti

Reply
 
Thread Tools
Old 2018-11-19, 13:40   #1
enzocreti
 
Mar 2018

2×5×53 Posts
Default Prime 11116667

The prime number 11116667 is congruent to 2*1667 (mod 1111) and congruent to 1111 (mod(2*1667)^2).
Are there other examples of this type of prime, primes p congruent to 2*s (mod 1111) and congruent to 1111 mod(4s^2)? where s is a prime.
enzocreti is offline   Reply With Quote
Old 2018-11-19, 15:30   #2
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

122316 Posts
Default

Quote:
Originally Posted by enzocreti View Post
The prime number 11116667 is congruent to 2*1667 (mod 1111) and congruent to 1111 (mod(2*1667)^2).
Are there other examples of this type of prime, primes p congruent to 2*s (mod 1111) and congruent to 1111 mod(4s^2)? where s is a prime.
Aw, fer cyin' out loud! Never heard of the Chinese Remainder Theorem?

If s is not 11 or 101, the answer is "yes." For a given prime s, your conditions are

p == 2*s (mod 1111) and p == 1111 (mod 4*s^2)

or alternatively

p == 2*s (mod 11), p == 2*s (mod 101), and p == 1111 (mod 4*s^2)

If s is not 11 or 101, the moduli 11, 101 and 4*s^2 are pairwise relatively prime, so the simultaneous congruences are solvable. Also, the solutions are relatively prime to all three moduli, so the solutions form an arithmetic progression

k*4*11*101*s^2 + r, with

gcd(r, 4*11*101*s^2) = 1.

This AP contains infinitely many primes.

I had Pari-GP barf out just the cases for s < 2000 (s not 11 or 101), for which the first term of the AP (the positive term less than 4*11*101*s^2) is prime.

s p
5 101111
7 172219
31 1723223
53 3180899
71 19721503
89 29467231
97 2372179
109 20103763
163 45274687
197 48589979
199 93301067
331 84582203
349 224114951
359 75783139
463 5145967
647 142328171
659 1193405299
743 876654923
787 29730823
809 2248797827
839 408275291
853 1923799307
1093 1032177847
1123 3970035203
1231 2497316039
1381 3280318031
1489 8354113039
1511 5187252023
1667 11116667
1747 12720774623
1783 4972096307
1811 8422324639
1867 6567039187
1931 16257399071
Dr Sardonicus is offline   Reply With Quote
Old 2018-11-19, 16:57   #3
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

By my calculations about a third of all primes should be of this type, though convergence up to this fraction will be slow. Up to ten million I find 144238/664579 = 21.7...%.

Inefficient code:
Code:
is(p)=forprime(s=2,7, if((p-1111)%(4*s^2)===0,return(s))); if(p<1787,return(0)); forprime(s=13,sqrtint((p-1111)\4), if((p-1111)%(4*s^2)===0, return(s))); 0

Last fiddled with by CRGreathouse on 2018-11-19 at 17:00
CRGreathouse is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! dabaichi News 571 2020-10-26 11:02
How does one prove that a mersenne prime found with CUDALucas is really prime? ICWiener Software 38 2018-06-09 13:59
disk died, prime work lost forever? where to put prime? on SSD or HDD? emily PrimeNet 3 2013-03-01 05:49
How do I determine the xth-highest prime on prime pages? jasong Data 7 2005-09-13 20:41
The 40th known Mersenne prime, 220996011-1 is not PRIME! illman-q Miscellaneous Math 33 2004-09-19 05:02

All times are UTC. The time now is 04:26.


Sat Jul 17 04:26:14 UTC 2021 up 50 days, 2:13, 1 user, load averages: 2.14, 2.36, 2.35

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.