mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2018-08-29, 22:29   #12
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3×457 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
In the range [0,2^L) the number of bits of integers follow a normal distribution with L/2 mean and with c*sqrt(L) variance. So most of the numbers has number of bits in [L/2-c1*sqrt(L),L/2+c1*sqrt(L)] interval, if we suppose that the same is true for k*m then with large probability we can gain a reduction by sqrt(L) bits. (reaching with small say k<1024 in most of the cases).
I see. In my experiments I saw different empiric behavior: the number of "pops" (1-bits) in the small multiples of m has surprisingly little variation and sticks close to the middle.

For example, working with a number that has 1456417 bits and 727931 pops initially, trying all the multiples k*m with k up to 1M, the lowest number number of pops I saw was 725213.

Quote:
m=7 is the first counter-example, because there is no x for that 2^x+1==0 mod 7.
Yes, thanks! My error was to believe that 2^k mod m spans all the values [1, m), and thus reaches 1. That's not true, as smaller cycles exist. In the case of 7,
2*6 % 7 = 5
2*5 % 7 = 3
2*3 % 7 = 6
So a small loop that does not reach 1.
preda is offline   Reply With Quote
Old 2018-08-29, 22:36   #13
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

55B16 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Thanks for pointing out these references! The existence of "sturdy numbers" seems to indicate that the behavior of "pops" under multiplication departs from a simple random model of 0/1 bits with equal & independent probability.
preda is offline   Reply With Quote
Old 2018-08-30, 06:10   #14
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

31·173 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
In the range [0,2^L) the number of bits of integers follow a normal distribution with L/2 mean and with c*sqrt(L) variance. So most of the numbers has number of bits in [L/2-c1*sqrt(L),L/2+c1*sqrt(L)] interval, if we suppose that the same is true for k*m then with large probability we can gain a reduction by sqrt(L) bits. (reaching with small say k<1024 in most of the cases).

m=7 is the first counter-example, because there is no x for that 2^x+1==0 mod 7.
I assume you mean all integers in the range. Subsets apparently may behave differently. The set of known Mersenne exponents for example. At low values of L the average is noticeably above 0.5 because almost all of them are odd, and a few are 100% one bits. As I recall, it's already determined that within mersenne.org's range, we won't have another with 100% one bits.
Attached Thumbnails
Click image for larger version

Name:	one bit fractions.png
Views:	150
Size:	14.4 KB
ID:	19013  
kriesel is online now   Reply With Quote
Old 2018-08-30, 14:22   #15
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

4,861 Posts
Default

Quote:
Originally Posted by kriesel View Post
The set of known Mersenne exponents for example. At low values of L the average is noticeably above 0.5 because almost all of them are odd, and a few are 100% one bits. As I recall, it's already determined that within mersenne.org's range, we won't have another with 100% one bits.
Can you give an example of a number of mersenne form 2^n-1 that isn't 100% 'one' bits? I'm having a hard time understanding what you're saying, as I don't think that's possible.
VBCurtis is offline   Reply With Quote
Old 2018-08-30, 18:29   #16
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Can you give an example of a number of mersenne form 2^n-1 that isn't 100% 'one' bits? I'm having a hard time understanding what you're saying, as I don't think that's possible.
keyword exponent, still false there's 4 .
science_man_88 is offline   Reply With Quote
Old 2018-08-31, 00:13   #17
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

25338 Posts
Default

I have an idea for building low-pops multiples of a number "m".

Let's consider a "base" formed of elements of the form:
B(k) = 2^k + 1.

These elements have the property of having many factors and just 2 pops (of which one pop is always on the fixed position 0).

Factorize m. Starting with the largest factor, select a base element B(k) that covers that factor. Continue with the next largest factor of m that is not covered in the base elements already selected.

If all the factors of m can be covered with N bases B(k), we have a multiple with 2^N pops. Now, whether 2^N is "low" or not depends on how much success we have in covering all the factors of m with a small number N of bases.

There are some factors, e.g. 7, that are not covered by any B(k). i.e. there is no multiple of 7 of the form 2^k + 1. Maybe such bad factors could be separately multiplied-in at the end.

Last fiddled with by preda on 2018-08-31 at 00:44 Reason: attempt to fix nb. of bits error
preda is offline   Reply With Quote
Old 2018-08-31, 02:22   #18
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3×457 Posts
Default

Quote:
Originally Posted by preda View Post
I have an idea for building low-pops multiples of a number "m".
Sorry for the noise, it seems that idea is not useful, please ignore.
preda is offline   Reply With Quote
Old 2018-08-31, 08:14   #19
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

31·173 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Can you give an example of a number of mersenne form 2^n-1 that isn't 100% 'one' bits? I'm having a hard time understanding what you're saying, as I don't think that's possible.
No, pretty much by definition, unless n=0 which is 0%. (2^0-1=1-1=0) But I was writing (in http://www.mersenneforum.org/showpos...9&postcount=14) about the bit fraction in the cases of exponent n, actually prime exponent p, expressed in binary, for which 2^p-1 is also prime (not the bit fraction in the binary expression for 2^p-1, for which the ones bit fraction is always 100% in binary). The chart I showed was for the 50 known mersenne primes' exponents: 2, 3, ...77232917. https://www.mersenne.org/primes/
A simple small example: 2^2-1=3; in binary, 10^10 -1 = 100-1 = 11. The one bit fraction (reverting to decimal) of the exponent p=2 is 1/2.
Chart of 50 cases at http://www.mersenneforum.org/attachm...3&d=1535608786
Note, I'm open to suggestions of how my posts could be made clearer.

Last fiddled with by kriesel on 2018-08-31 at 08:35
kriesel is online now   Reply With Quote
Old 2018-08-31, 09:34   #20
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by kriesel View Post
No, pretty much by definition, unless n=0 which is 0%. (2^0-1=1-1=0) But I was writing (in http://www.mersenneforum.org/showpos...9&postcount=14) about the bit fraction in the cases of exponent n, actually prime exponent p, expressed in binary, for which 2^p-1 is also prime (not the bit fraction in the binary expression for 2^p-1, for which the ones bit fraction is always 100% in binary). The chart I showed was for the 50 known mersenne primes' exponents: 2, 3, ...77232917. https://www.mersenne.org/primes/
A simple small example: 2^2-1=3; in binary, 10^10 -1 = 100-1 = 11. The one bit fraction (reverting to decimal) of the exponent p=2 is 1/2.
Chart of 50 cases at http://www.mersenneforum.org/attachm...3&d=1535608786
Note, I'm open to suggestions of how my posts could be made clearer.
10^10-1=9999999999 not 11
science_man_88 is offline   Reply With Quote
Old 2018-08-31, 11:14   #21
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

31·173 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
10^10-1=9999999999 not 11
I guess I don't get your sense of humor. I wrote
Code:
2^2-1=3; in binary, 10^10 -1 = 100-1 = 11.
In words, two squared minus one is four minus one is three; expressed twice. First is base 4 or above; second is everything in base two.
kriesel is online now   Reply With Quote
Old 2018-08-31, 11:54   #22
GP2
 
GP2's Avatar
 
Sep 2003

A1916 Posts
Default

Quote:
Originally Posted by kriesel View Post
No, pretty much by definition, unless n=0 which is 0%. (2^0-1=1-1=0) But I was writing (in http://www.mersenneforum.org/showpos...9&postcount=14) about the bit fraction in the cases of exponent n, actually prime exponent p, expressed in binary, for which 2^p-1 is also prime (not the bit fraction in the binary expression for 2^p-1, for which the ones bit fraction is always 100% in binary). The chart I showed was for the 50 known mersenne primes' exponents: 2, 3, ...77232917. https://www.mersenne.org/primes/
A simple small example: 2^2-1=3; in binary, 10^10 -1 = 100-1 = 11. The one bit fraction (reverting to decimal) of the exponent p=2 is 1/2.
Chart of 50 cases at http://www.mersenneforum.org/attachm...3&d=1535608786
Note, I'm open to suggestions of how my posts could be made clearer.
You are talking about Mersenne primes for which the exponent is itself a Mersenne prime.

http://www.doublemersennes.org

23−1 (where 3 = 22−1)
27−1 (where 7 = 23−1)
231−1 (where 31 = 25−1)
2127−1 (where 127 = 27−1)
GP2 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using multiple PCs numbercruncher Information & Answers 18 2014-04-17 00:17
64 bits versus 32 bits Windows S485122 Software 2 2006-10-31 19:14
35-35.2 to 62 bits, cont from 61 bits Khemikal796 Lone Mersenne Hunters 12 2005-12-01 21:35
Testing same number on multiple machines dotnet_dev Software 17 2003-06-16 14:30
Multiple systems/multiple CPUs. Best configuration? BillW Software 1 2003-01-21 20:11

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


Fri Jul 16 18:43:20 UTC 2021 up 49 days, 16:30, 1 user, load averages: 5.33, 5.35, 4.75

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.