mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2019-06-06, 18:42   #1
neomacdev
 
Apr 2019

1616 Posts
Default Can this help filter out k-values when trial factoring?

Hi,

I was writing out the expressions for Mersenne numbers with 2 factors, or 3 factors, etc...

2^p - 1 = (2*k1*p+1)*(2*k2*p+1)
2^p - 1 = (2*k1*p+1)*(2*k2*p+1)*(2*k3*p+1)
...

And thinking about different ways the expressions can be re-written.

2^p - 1 = 2^2*(k1*k2)*p^2 + 2*(k1 + k2)*p + 1
2^p - 1 = 2^3*(k1*k2*k3)*p^3 + 2^2*(k1*k2 + k1*k3 + k2*k3)*p^2 + 2^1*(k1 + k2 + k3)*p + 1
...

In thinking about this in combination with Fermat's Little theorem I realized that:

mod( ((2^(p-1)-1) / p ), p ) = mod( (sum of k-values for all prime factors of M(p) ), p )

Which I double-checked for numerous composite Mersenne numbers and it appears to always hold. (At least for the dozen or so fully-factored Mersenne numbers that I checked by hand.) For example:

mod( ((2^66-1)/67), (67) ) = mod( (1445580+5685360129), (67) ) = 10

Likewise it appears this holds for the sum of k-values that generate prime factors along with composite co-factors. For example, let p=113 then the k-values for the first 3 prime factors are 15+103+292 and the k-value for the remaining composite co-factor (product of last two prime factors) is 8820457042988551707.

mod( ((2^112-1)/113), (113) ) = mod( (15+103+292+8820457042988551707), (113) ) = 83

I'm wondering if this has been used to help filter out potential k-values from being tested as potential factors. Or if perhaps the same k-values this would eliminate is already equivalent to some other filter on the k-values. I haven't had time to dig deeply into this idea yet, just thought I'd post and see what comments were generated.
neomacdev is offline   Reply With Quote
Old 2019-06-06, 19:50   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

100110001110012 Posts
Default

Try it on 332194969. How does it workout?
Uncwilly is online now   Reply With Quote
Old 2019-06-06, 21:14   #3
neomacdev
 
Apr 2019

2×11 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
Try it on 332194969. How does it workout?
I'm not sure if you're being serious or not. As I said above, I haven't really thought in depth about how to use the fact, but I can quickly verify it for this exponent.

According to the info at https://www.mersenne.ca/exponent/332194969 the first factor of 2^332194969-1 is 84169568075407, generated by a k-value of 126687.

mod( (2^332194968-1)/332194969, 332194969) = 169375608
WolframAlpha result

The k-value of the composite co-factor for the rest of 2^p-1 (besides the first prime factor) would be (((2^332194969-1)/(84169568075407))-1)/(2*332194969) which has over 100 million digits so I'll omit it or it'd be a long post. :-)

But I can compute the mod of the sum of the first k-value with the k-value for this composite co-factor, and verify it equals the value above. And it does.

mod( (126687 + (((2^332194969-1)/(84169568075407))-1)/(2*332194969)) , 332194969) = 169375608.
WolframAlpha result

Last fiddled with by neomacdev on 2019-06-06 at 21:24 Reason: Added wolfram alpha links
neomacdev is offline   Reply With Quote
Old 2019-06-06, 21:31   #4
neomacdev
 
Apr 2019

268 Posts
Default

Quote:
Originally Posted by neomacdev View Post
I realized that:

mod( ((2^(p-1)-1) / p ), p ) = mod( (sum of k-values for all prime factors of M(p) ), p )
I'd love to know if this is a "known fact" -- as in it exists in published literature anywhere. If anyone has seen anything written about this, please let me know and if you are able to provide a citation/reference/link that'd be great. Thank you.
neomacdev is offline   Reply With Quote
Old 2019-06-06, 22:29   #5
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

5·19·103 Posts
Default

Quote:
Originally Posted by neomacdev View Post
The k-value of the composite co-factor for the rest of 2^p-1 (besides the first prime factor) would be (((2^332194969-1)/(84169568075407))-1)/(2*332194969) which has over 100 million digits so I'll omit it or it'd be a long post. :-)
Knowing the k for for that is of what real value? How does it help us find factors or prove primality?
How do you know that the cofactor is composite?
Uncwilly is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trial Factoring on AMD/ATI GPU's? Stargate38 GPU Computing 9 2018-08-31 07:58
What is Trial Factoring? Unregistered Information & Answers 5 2012-08-02 03:47
How much Trial Factoring to do? odin Software 4 2010-08-08 20:23
over trial factoring JFB Software 23 2004-08-22 05:37
About trial factoring gbvalor Math 4 2003-05-22 02:04

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


Fri Jul 16 23:26:14 UTC 2021 up 49 days, 21:13, 1 user, load averages: 1.07, 1.41, 1.56

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.