mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Number Theory Discussion Group (https://www.mersenneforum.org/forumdisplay.php?f=132)
-   -   Find Mersenne Primes twice as fast? (https://www.mersenneforum.org/showthread.php?t=21309)

a1call 2016-09-08 04:02

[QUOTE=CRGreathouse;441889]Yes, well done sm88.

My example of 4^n - 64 was constructed to take advantage of this property in a way that guarantees that I get the divisibility promised: since it's 0 at n = 3 , any prime not dividing 4 will loop back through that modular 0. :smile:[/QUOTE]

Corrections are welcome:

4^n-64= 64(4^(n-3)-1)
Dropping multiple of power of 2:
>>4^m-1= 2^(2q)-1
The function has 1/2 the number of infinite instances of 2^n-1, which is still infinite.
Is that enough to guarantee divisibility by all primes?
Yes, I think so since 2^(2q)-1 will always be divisible by 2^q-1.

The 2 functions are equivalent in this regard.

CRGreathouse 2016-09-08 07:11

You could just as easily take 15^n - 1 or 6^n - 36.

science_man_88 2016-09-08 11:45

[QUOTE=CRGreathouse;441904]You could just as easily take 15^n - 1 or 6^n - 36.[/QUOTE]

where the latter always divides by 5. and for non zero n, 2 and 3. for all even n values it also divides by 7.


All times are UTC. The time now is 23:23.

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