![]() |
|
|
#1 |
|
Mar 2021
Home
3816 Posts |
Let
Let the sequence The Pari GP code to check the conjecture : Code:
forprime(p=3,10501,s=Mod(12,(2^p+1)/3);for(x=3,p,s=6*s^2+18*s+12);if(s==0,print([p]))) forprime(p=3,11213,s=Mod(12,(2^p-1));for(x=3,p,s=6*s^2+18*s+12);if(s==0,print([p]))) |
|
|
|
|
|
#2 | |
|
Mar 2021
Home
5610 Posts |
Quote:
For Mersenne Numbers Mp : PARI GP code : Code:
forprime(p=5,11213,s=Mod(12,(2^p-1));for(x=4,p,s=6*s^2+18*s+12);if(s==(2^p-3),print1(","p)))
5,7,13,17,19,31,61,89,107,127,521,607,1279,2203,2281,3217,4253,4423,9689,9941,11213
or PARI GP code : Code:
forprime(p=5,10691,s=Mod(12,(2^p+1)/3);for(x=4,p,s=6*s^2+18*s+12);if((s==((2^p+1)/3-1)&&p%3==2)||(s==((2^p+1)/3-2)&&p%3==1),print1(","p)))
5,7,11,13,17,19,23,31,43,61,79,101,127,167,191,199,313,347,701,1709,2617,3539,5807,10501,10691
Last fiddled with by kijinSeija on 2023-05-01 at 23:03 Reason: add : |
|
|
|
|
|
|
#3 | |
|
Jul 2022
2×47 Posts |
Quote:
\(S_{i}=\frac{3^{(2^{i+2}-1)}-3}{2}\) then \(S_{p-2}=\frac{3^{2^p-1}-3}{2}\) for Mersenne numbers \(S_{p-2}=\frac{3^{2^p-1}-3}{2}=\frac{27^{\frac{2^p+1}{3}}-27}{18}\) for Wagstaff numbers Applying Fermat's little theorem, we have \(S_{p-2}\equiv 0\pmod{2^p-1}\) for Mersenne prime numbers \(S_{p-2}\equiv 0\pmod{\frac{2^p+1}{3}}\)for Wagstaff prime numbers but also in this case we have equivalently for p>3 for Mersenne prime numbers \(3^{2^p-2}=(3^{2^{p-1}-1})^2\equiv 1\pmod{2^p-1}\) then for Euler's criterion \(3^{2^{p-1}-1}\equiv -1\pmod{2^p-1}\) and \(S_{p-3}=\frac{3^{2^{p-1}-1}-3}{2}\equiv -2\pmod{2^p-1}\) analogous reasoning can be done for Wagstaff numbers. Last fiddled with by User140242 on 2023-05-12 at 14:22 |
|
|
|
|
|
|
#4 | |
|
Feb 2004
France
13·73 Posts |
Quote:
Now, the test by kijinSeija also works for Fermat numbers, with a little change : last (also: I prefer starting at 0, and the code has been optimized (only 2 multiplications)) Let the sequence And we have: With the PARI/gp code: Code:
for(i=0,5,
q=2^i;
F=2^q+1;
s=Mod(0,F);
for(i=1,q,
s=6*(s*(s+3)+2);
if(i==q-1,s1=s);
print(" ",i," ",lift(s))
);
if(s==s1,print(i," P"),print(i," C"))
)
|
|
|
|
|
|
|
#5 | |
|
Jul 2022
2·47 Posts |
Quote:
Provided that from Fermat's little theorem we can obtain that for any integer a then if p is a prime number you have \(a^p\equiv a\pmod p\) but the reverse is false. If \(S_{0}=0\) then \(S_i=\frac{3^{2^{i+1}-1}-3}{2}\) the sequence can also be written \(S_{i+1}=6\cdot(S_i+1)\cdot(S_i+2)\) with \(S_{0}=0\). then if \(F_n=2^{2^n}+1\) is a prime number \(S_{2^n}-S_{2^n-1}=\frac{3^{2^{2^n+1}-1}-3}{2}-\frac{3^{2^{2^n}-1}-3}{2}=\frac{3^{2^{2^n+1}}-3^{2^{2^n}}}{6}=3^{2^{2^n}}\cdot \frac {3^{2^{2^n}}-1}{6}=3^{2^{2^n}}\cdot \frac {3^{2^{2^n}+1}-3}{18}\equiv 0\pmod{2^{2^n}+1}\) |
|
|
|
|
|
|
#6 | |
|
Jul 2022
2·47 Posts |
Quote:
\(S_i=\frac{3^{2^i}-1}{2}\) equivalent to \(S_{i+1}=2\cdot S_i \cdot(S_i+1)\) with \(S_0=1\) Then if \(F_n=2^{2^n}+1\) is a prime number \(S_{2^n}\equiv 0\pmod{F_n}\) |
|
|
|
|
|
|
#7 | |
|
Mar 2021
Home
23·7 Posts |
Quote:
This is really interesting ![]() I'm not a mathematician but I understand the main part I guess even if I should check some definition
Last fiddled with by kijinSeija on 2023-05-14 at 20:35 Reason: Add "I" |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New test for Mersenne prime | allasc | Math | 34 | 2022-09-11 13:03 |
| Status of Wagstaff testing? and testing Mersenne primes for Wagstaff-ness | GP2 | Wagstaff PRP Search | 414 | 2020-12-27 08:11 |
| New Mersenne Software For Test Mersenne Prime Numbers On Android | thorken | Software | 66 | 2019-01-13 21:08 |
| Statistical odds for prime in Wagstaff vs Mersenne | diep | Math | 27 | 2010-01-13 20:18 |
| another mersenne prime test | jocelynl | Math | 8 | 2006-10-20 19:36 |