Re: Coding opportunity with factoring problem solution with Fermat numbers



On Mar 16, 6:37 pm, JSH <jst...@xxxxxxxxx> wrote:
Two issues have emerged that I need to address.  See below...

On Mar 15, 7:14 pm, JSH <jst...@xxxxxxxxx> wrote:

I've solved the factoring problem, which took a lot of effort.  Now
the new method that solves the factoring problem is rather easy in a
lot of ways, but also it is almost perfect for factoring Fermat
numbers, and can, if one exists, find the next Fermat prime.

That opens the door to a remarkable, earthshaking result for anyone
willing to do a little code work.

The possibility here is in finding the next Fermat prime.

Here is the factoring algorithm:

Given an odd composite D, to be factored, you factor it by taking its

It was noticed that the algorithm will not factor a perfect square.
That's a minor issue but it needs to be stated upfront.  D cannot be a
perfect square.



gcd with a function I call r_c(v), where:

r_c(v) = 2((D+1)v^2 - 2f_1*v + f_1^2)

and f_1 is a factor of D-1, so with Fermat numbers, it is always just
1 or 2 raised to some natural number power, where you find rational v,
such that v is in the following range:

(f_1 - sqrt(f_1^2 - [f_1^2 - D/2](D+1)))/(D+1) < v < (f_1 + sqrt(f_1^2
- [f_1^2 - D/2](D+1)))/(D+1)

and r_c(v) is an integer, where if that range gives an integer v, then
you're done, as you just plug that into r_c(v), and you're guaranteed
have a factorization of D, from the gcd with r_c(v).

Notice for rational range f_1 <= sqrt(D/2).

Also note that f_1 can be negative.  I've seen posters claiming
problems with the underlying algorithm where they've looped through
only positive values for f_1, and again, 1 is a potential, so also
then is f_1 = -1.

I'm going ahead and coding up a specialized implementation for
demonstration purposes as it will use long's.  But with working code
maybe I can convince a few of you that there really is an opportunity
here to get the next big factorization of a Fermat number, or even
maybe find the next Fermat prime, if it exists.

So for Patricia Shanahan, yes, finally!  I'll do better than pseudo-
code, as I'll do code.  It will be in Java, of course.


The rub is it doesn't demonstrate for n=32... which happens to just be
outside the range of long, AND also happens to be one of those "trick"
numbers your algorithm *needs* to factor in order for it to be
anything even
remotely interesting. Can you prepare a code sample that will let me
try
n=32?
.



Relevant Pages

  • Re: Ultimate check, new way to factor or not?
    ... It's commonly known as a the "factoring sieve" and Fermat showed that ... It is listed as "algorithm ... "factoring with sieves" on pp.389. ... > when it defies the mathematics. ...
    (sci.crypt)
  • Re: Coding opportunity with factoring problem solution with Fermat numbers
    ... the new method that solves the factoring problem is rather easy in a ... but also it is almost perfect for factoring Fermat ... numbers, and can, if one exists, find the next Fermat prime. ... private BigInteger BigD; ...
    (comp.theory)
  • JSH: make up your mind
    ... but also it is almost perfect for factoring Fermat ... numbers, and can, if one exists, find the next Fermat prime. ... The possibility here is in finding the next Fermat prime. ... The algorithm you give below does not match the algorithm you posted ...
    (comp.theory)
  • Coding opportunity with factoring problem solution with Fermat numbers
    ... I've solved the factoring problem, which took a lot of effort. ... numbers, and can, if one exists, find the next Fermat prime. ... The possibility here is in finding the next Fermat prime. ...
    (comp.theory)
  • Re: Surrogate factoring and the k/T ratio
    ... including the comparison with Fermat and trial ... Easy as hell to lie about mathematics. ... Readers wanting to see my examples can go to my math blog or to ... I can type up here 4095808 tries at surrogate factoring and none ...
    (sci.crypt)

Loading