mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-11-21, 15:47   #34
enzocreti
 
Mar 2018

21216 Posts
Default pg(k) divisible by 5555

Can a pg(k) be divisible by 5555?
enzocreti is offline   Reply With Quote
Old 2018-11-21, 15:58   #35
enzocreti
 
Mar 2018

53010 Posts
Default and by 1111?

an can exist a pg(k) divisible by 1111?
enzocreti is offline   Reply With Quote
Old 2018-11-21, 16:05   #36
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by enzocreti View Post
an can exist a pg(k) divisible by 1111?
if not, then the former question is also no.
science_man_88 is offline   Reply With Quote
Old 2018-11-21, 16:13   #37
enzocreti
 
Mar 2018

2×5×53 Posts
Default remainders

Quote:
Originally Posted by science_man_88 View Post
if not, then the former question is also no.

1111=11*101


so probably the analysis of the remainders rules out that
enzocreti is offline   Reply With Quote
Old 2018-11-21, 18:05   #38
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by enzocreti View Post
1111=11*101


so probably the analysis of the remainders rules out that
if you could do the math, why'd you ask ...
science_man_88 is offline   Reply With Quote
Old 2018-11-21, 19:36   #39
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

10010001000112 Posts
Default

Quote:
Originally Posted by enzocreti View Post
Can a pg(k) be divisible by 5555?
Work out criteria for divisibility by 5, 11, and 101, and you'll be able to answer this yourself.

Last fiddled with by Dr Sardonicus on 2018-11-21 at 19:39
Dr Sardonicus is offline   Reply With Quote
Old 2018-11-22, 07:58   #40
enzocreti
 
Mar 2018

2·5·53 Posts
Default 1321, 3191, 3541

Quote:
Originally Posted by Dr Sardonicus View Post
Work out criteria for divisibility by 5, 11, and 101, and you'll be able to answer this yourself.


A mathexchange user found that no pg(k) is divisible by either 1321 or 3191 or 3541. 1321, 3191 and 3541 are all emirps. And the reverse of 1321, 3191, 3541 that is 1231, 1913, 1453 are all primes of the form x^2+23y^2

Last fiddled with by enzocreti on 2018-11-22 at 08:16
enzocreti is offline   Reply With Quote
Old 2018-11-22, 09:46   #41
enzocreti
 
Mar 2018

53010 Posts
Default continues...

A033217 see the OEIS sequence
enzocreti is offline   Reply With Quote
Old 2018-11-22, 10:11   #42
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

961110 Posts
Default

That may be coincidental. Again, there is nothing special about these numbers.

Also, there are no other "non-divisors" in sight (I tested all primes to 10k, they all divide some pg(x), this test takes just few minutes, what i implemented is a very efficient way to test, you can tel me why, and what I have done in the code; you can directly copy/paste this to a pari/gp window.

Code:
pg(d=1321)=
{
    a=1;
    b=1;
    m=21;
    t=10;
    z=10;
    n=1;
    while((r=(a*m+t)%d)!=0,
        a=((a<<1)+1)%d;
        b=(b<<1)+1;
        if(b>z,
            z=10*z;
            m=(10*m-9)%d;
            t=(10*t)%d
        );
        n++;
        printf("...%d...   %c",n,13)
        /* ; write("ff.out",d," : ",n,", ",r) */
    );
    n
}

p=3;
 while(1,print([p=nextprime(p+1),pg(p)]))

Last fiddled with by LaurV on 2018-11-22 at 10:18
LaurV is offline   Reply With Quote
Old 2018-11-22, 11:43   #43
enzocreti
 
Mar 2018

2·5·53 Posts
Default What does the code do

Quote:
Originally Posted by LaurV View Post
That may be coincidental. Again, there is nothing special about these numbers.

Also, there are no other "non-divisors" in sight (I tested all primes to 10k, they all divide some pg(x), this test takes just few minutes, what i implemented is a very efficient way to test, you can tel me why, and what I have done in the code; you can directly copy/paste this to a pari/gp window.

Code:
pg(d=1321)=
{
    a=1;
    b=1;
    m=21;
    t=10;
    z=10;
    n=1;
    while((r=(a*m+t)%d)!=0,
        a=((a<<1)+1)%d;
        b=(b<<1)+1;
        if(b>z,
            z=10*z;
            m=(10*m-9)%d;
            t=(10*t)%d
        );
        n++;
        printf("...%d...   %c",n,13)
        /* ; write("ff.out",d," : ",n,", ",r) */
    );
    n
}

p=3;
 while(1,print([p=nextprime(p+1),pg(p)]))
What does the code do? How does it work?
enzocreti is offline   Reply With Quote
Old 2018-11-22, 12:09   #44
enzocreti
 
Mar 2018

10000100102 Posts
Default Mersenne number 131071

the mersenne number 131071 does not divide any pg(k)
enzocreti is offline   Reply With Quote
Reply



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
Search primes of form 2*n^n ± 1 JeppeSN And now for something completely different 27 2018-04-12 14:20
Primes of the form n+-phi(n) carpetpool carpetpool 3 2017-01-26 01:29
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

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


Sat Jul 17 04:43:21 UTC 2021 up 50 days, 2:30, 1 user, load averages: 2.15, 2.19, 2.19

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.