Re: Simple answer, surrogate factoring

jstevh_at_msn.com
Date: 03/04/05


Date: 4 Mar 2005 14:49:14 -0800

Tim Peters wrote:
> [JSH]
> [...]
> > where f_1 f_2 = Tj^2, and you iterate through all possible integer
f_1
> > and f_2, and take the gcd of Ax with M.
> >
> > If Ax has M as a factor, then you calculate that ratio of z to x.
> >
> > The numerator is just
> >
> > (+/-(f_1 - f_2) + 2j^2 +/- (f_1 + f_2))
>
> I couldn't follow the derivation, so will just ask: the redundant
pair of
> outermost parentheses here is surprising, so is this really what you
meant
> to type?
>
> > while the denominator is
> >
> > 2M^2 - 2(+/-(f_1 - f_2) + 2j^2

Sorry, should be

 2M^2 - 2(+/-(f_1 - f_2) + 2j^2)

>
> This one is missing a right parenthesis; don't know whether
>
> 2M^2 - 2(+/-(f_1 - f_2)) + 2j^2
>
> or
>
> 2M^2 - 2(+/-(f_1 - f_2) + 2j^2)
>
> was intended.
>
> > and you divide out any factors in common between them, and then
take
> > the gcd of the denominator with M, and for at least one case for
any
> > non-zero j coprime to M, you will have a prime factor of M.
> >
> > The basic algorithm is now perfect.
>
> I tried all plausible (to me) ways of fleshing out an implementation
from
> this, and they all failed to factor some 3-digit composites.
>

Well, the proof is actually not hard, and it is perfect, so that means
in this case I can say definitely that you made some mistake.

First off, you *will* get a factor of M, which has to be divided off,
and maybe you can get more than one factor of M, but in any event, you
have to divide off all factors of M, first.

What's left over will have a single prime factor of M for at least one
case, as the mathematical proof is in this time.

If you do it right, it will work.

James Harris



Relevant Pages

  • Re: Simple answer, surrogate factoring
    ... > outermost parentheses here is surprising, so is this really what you ... >> while the denominator is ... have to divide off all factors of M, ... as the mathematical proof is in this time. ...
    (sci.crypt)
  • Re: Dividing complex numbers
    ... You divide two complex numbers by taking the conjugate of the ... denominator and multiplying the dividend and denominator by it. ...
    (sci.math)
  • Re: Simplest Possible Analog Divider
    ... then exponentiate to divide two signals. ... range is a lever were the denominator is the distance the fulcrum is ... uP with 2-channel ADC, divide firmware, dac. ... plates increases with the denominator signal. ...
    (sci.electronics.basics)
  • Re: Simplest Possible Analog Divider
    ... then exponentiate to divide two signals. ... range is a lever were the denominator is the distance the fulcrum is ... uP with 2-channel ADC, divide firmware, dac. ... plates increases with the denominator signal. ...
    (sci.electronics.basics)
  • Re: Dividing complex numbers
    ... You divide two complex numbers by taking the conjugate of the ... denominator and multiplying the dividend and denominator by it. ... Division is multiplication by the multiplicative inverse. ... if c is a nonzero complex number, ...
    (sci.math)