Re: Simple integer factorization algorithm



On Nov 28, 3:13 pm, JSH <jst...@xxxxxxxxx> wrote:
I've found that you can solve directly for f_1 and f_2 when f_1*f_2 =
T, where T is a composite to be factored.

With all positive integers:

f_1 = ak mod p and f_2 = a^{-1}(1 + a^2)k mod p

and 'a' is related to k mod p by

a^2 = (T)(k^2)^{-1} - 1 mod p

where p is what I call a helper prime.

Notice that because f_1 = ak mod p, ak must be greater than p, if f_1
is less than p, if k is coprime to T.

Note that a^{-1} mod p is the modular inverse mod p, as is (k^2)^{-1}
mod p.

To get the direct solution you pick p a prime where p>sqrt(T) and pick
for k a positive integer near p, coprime to p, <deleted>

It has been pointed out to me that the equation show that

nT - k^2 = f_1^2 mod p

so picking k directly is equivalent to guessing at the quadratic
residue mod p of one of the factors.

I should have noticed that before but didn't until a poster pointed it
out.


James Harris
.



Relevant Pages

  • k is coprime to m, 1 <= k <= m/r
    ... where phiis number of positive integers <= n and coprime to m? ... I am guessing there are some interesting questions related to this ... somehow. ...
    (sci.math)
  • Re: Fermats Last theorem short proof
    ... As a generalization to one of my posts in this ... Given, two distinct, coprime non zero integers ... If, are two positive integers, where ...
    (sci.math)
  • Re: Four Properties of the Euler Phi Function
    ... > Prove that the Euler phi function is multiplicative: ... It's multiplicative only for coprime integers. ... restricted to the multiplicative groups is an isomorphism. ... > For any positive integers m and n ...
    (sci.math)
  • Re: Four Properties of the Euler Phi Function
    ... The following properties of the Euler 'phi' function are troubling me: ... Now the number of positive integers not greater than t and coprime with t ...
    (sci.math)
  • Re: eulers phi-function and divisibility by primes
    ... from Euler it is known, that, with a prime p, and a ... Is a case knwon (or is it known that it is ... where, are coprime positive integers, and is odd positive integer greater than one ...
    (sci.math)