mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2013-10-01, 17:26   #12
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2×47×101 Posts
Default

Don't worry, Ben, you are not alone.
A significant portion of the people who run GIMPS in high hopes to get the EFF's money one day don't get the EFF's joke. ;-)
Batalov is offline   Reply With Quote
Old 2013-10-01, 17:28   #13
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

22·3·293 Posts
Default

The internet is a poor medium for deadpan.
bsquared is offline   Reply With Quote
Old 2013-10-01, 18:25   #14
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by philmoore View Post
Certainly - can you get it done within three years?
R.D. Silverman is offline   Reply With Quote
Old 2013-10-01, 19:39   #15
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

22·3·293 Posts
Default

As a possible point of interest, here is a thread from several years ago discussing P-1 testing of F31 and extrapolations to F33.
bsquared is offline   Reply With Quote
Old 2013-10-01, 20:39   #16
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3×373 Posts
Default

The good news is that the estimated time to do a Pepin test on F33 is down from several millenia over a decade ago to maybe only a century and a half on current hardware! Keep those improvements coming...
philmoore is offline   Reply With Quote
Old 2013-10-01, 21:02   #17
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

10110111111102 Posts
Default

Quote:
Originally Posted by philmoore View Post
The good news is that the estimated time to do a Pepin test on F33 is down from several millenia over a decade ago to maybe only a century and a half on current hardware! Keep those improvements coming...
On how many cores?
henryzz is offline   Reply With Quote
Old 2013-10-01, 21:31   #18
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3×373 Posts
Default

Quote:
Originally Posted by henryzz View Post
On how many cores?
I was thinking of some sort of GPU implementation. My estimate is crude - I was just extrapolating from the reported fact that one of newer Titans could LL a 100 million digit candidate in about 2.5 months.
philmoore is offline   Reply With Quote
Old 2013-10-01, 22:10   #19
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3·373 Posts
Default

Quote:
Originally Posted by ATH View Post
I'm at work so can't read the whole thing, but this seems to be the paper by Lehmer:

http://www.ams.org/journals/mcom/197...-0342458-5.pdf
Thanks for the link - I had read about the Delay Line Sieve from Hugh Williams' book, but hadn't actually read this paper. Looking it over reminded me that one can also use the quadratic form x2 + 2*y2 as well when looking for factors of Fermat numbers. Primes congruent to 1 or 3 mod 8 have such representations.
philmoore is offline   Reply With Quote
Old 2013-10-01, 23:01   #20
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Talking

Quote:
Originally Posted by bsquared View Post
The internet is a poor medium for deadpan.
You're talking about Mr. P-1, right? I laughed.
CRGreathouse is offline   Reply With Quote
Old 2013-10-02, 00:06   #21
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

976710 Posts
Default

Quote:
Originally Posted by bsquared View Post
The internet is a poor medium for deadpan.
You seem to handle it well.

Last fiddled with by chalsall on 2013-10-02 at 00:22
chalsall is offline   Reply With Quote
Old 2013-10-02, 00:39   #22
c10ck3r
 
c10ck3r's Avatar
 
Aug 2010
Kansas

547 Posts
Default

Quote:
Originally Posted by philmoore View Post
So here's a factoring method I've been kicking around in my head for awhile, trying to figure out some way of making it more efficient. It appears to have complexity on the order of n1/4 so my estimates of the probability of it actually working on F12 are on the order of a googol to one, but it still is kind of neat, and might be well suited to efficient implementation on some sort of graphics card.

Euler observed that if one had two different representations of an integer as a sum of two squares, such as N = a2 + b2 = c2 + d2, that you could recover nontrivial factors of N by taking the GCD of N with a*c +/- b*d. In general, an odd integer N only has such representations when all factors congruent to 3 mod 4 occur only to even powers, and even then, it is difficult to find one such representation, let alone two. But Fermat numbers > F0 have all factors congruent to 1 mod 4, and one such representation already exists by their definition. So for example, F5 = (216)2 + 12, but if you know that it is also 622642 + 204492, this information is sufficient to find the factors. We can search by some sort of variation of Fermat's method: Check to see if F5 - n2 is a perfect square for all n starting with 65536 and decreasing n by 1 each time. Most candidates can be eliminated as perfect squares by modular considerations. For example, any perfect square must be congruent to 0 or 1 mod 3. Also congruent to 0, 1, or 4 mod 5, and congruent to 0, 1, 2, or 4 mod 7. Each prime number will eliminate about half of the remaining candidates, on average, so sieving will result in a very small remaining number of candidates that must be tested by seeing if they are equal to their integer square roots squared. This sieving process can be table driven, and offers the possibility of searching a large number of candidates very quickly. Unfortunately, the search space is still huge, and the region searched efficiently, corresponding to n being fairly close to 65536, will still be a miniscule fraction of the entire search space for larger Fermat numbers.

So we enhance the search as follows: Consider the set of all primes congruent to 1 mod 4, and include 2 as well. Now multiply F5 by various distinct products of these primes and look for representations as sums of squares. So we can work with 2*F5, or 5*F5, eventually getting to 10*F5 = 2*5*F5. The integer square-root of 10*F5 is 207243, so we take this as our initial value of n and decrease by 1. This time, we don't have to search too far to discover that 10*F5 - 2072412 is a perfect square, so that 10*F5 = 2072412 + 9172. Several representations of 10*F5 will already be known because of the known representations of 5 = 22 + 12, 2 = 12 + 12, and F5 = 655362 + 12, but it will be observed that we have added a previously unknown representation which will be sufficient to crack F5 into its new factors.

So what is the advantage of using these multipliers? For one thing, if N is a product of k distinct non-repeated prime factors, N will have 2k-1 representations as a sum of squares, so many factors in N gives us more solutions to potentially find. F12 has 6 known prime factors and 1 known composite factor, so F12 has 64 known representations of the form a2 + b2 (where we assume a > b > 0), but given that the composite factor is known not to be a prime power, F12 must have at least 128 such representations. Any discovery of one more representation beyond the 64 known ones will give further information about the factors of F12. We can increase the number of representations enormously by multiplying F12 by a product of a large number of primes congruent to 1 mod 4, but unfortunately, each additional factor also increases the size of the search space. But there are many multipliers that can be used to search, and one might try these multipliers in some sort of systematic manner.

I'll have more to say later, but hopefully this at least describes the germ of the idea. It would be interesting to hear any comments.
So, toying with this idea further...how hard would it be to make a script to do a false sieve for this? I imagine (no experience with programming beyond BASIC) that one could create a script to find all factors of numbers of the form F(X)-(sqrt(F(X)-1)-n) below, say, 1M, then either a) write the n value to postsieve.txt if all factors are to an even power, then increase the n value by 1 and continue or b) increase the n values by one and continue without writing.

@RDS- please, don't bother lecturing me about the fact that this is not a feasible effort. If you care to explain how high the n value would be expected to reach before success as a function of X or F(X), however, feel free, I would enjoy seeing how that would be approximated.


Caution: F(X) is assumed to be the Xth Fermat number.
c10ck3r is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird freezing error, desperate for a solution. jasong Lounge 5 2016-11-18 00:43
September 2016 Batalov Puzzles 8 2016-10-04 14:10
YAFU Poly Select Deadline amphoria YAFU 22 2016-09-17 09:47
Official Ernst (ewmayer) / Richard (cheesehead) feud thread cheesehead Soap Box 50 2014-06-30 01:06
Appeal for machines dave_dm GMP-ECM 0 2005-06-29 02:23

All times are UTC. The time now is 10:57.


Mon Aug 2 10:57:51 UTC 2021 up 10 days, 5:26, 0 users, load averages: 1.31, 1.56, 1.55

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.