Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Another Base a Factorization Method

  1. Oct 30, 2006 #1
    This method utilizes discrete binary operations, in particular notice that.

    (I1) [tex]Div(x+y+z,a)=Div(x,a)+Div(y,a)+Div(z,a)+\{0,1,2\}[/tex]

    This means that for one of the elements of the included set {0,1,2} the equation is true. This notation is quite useful for carrying out long calculations using integer division as will be apparent in a moment.

    Also note that

    (I2) [tex]Div(xy,a) \leq yDiv(x,a) \leq xDiv(y,a) if y>x[/tex]

    Now we first start with a type of quadratic template for a natural number N, that is

    (1) [tex]N=XY \rightarrow az+t =(ax+s)(ay+r)[/tex]

    Notice we do not require N and a coprime. This leads immediately to

    (2) [tex]z = axy+ sy+rx + Div(rs,a)[/tex]

    This is because [itex]t=Mod(rs,a)[/itex] was removed after expanding the product XY.

    Equation 2 can be further dealt with by noting that

    (3) [tex]Mod(z,a) = Mod(sy+rx+Div(rs,a),a)[/tex]

    (4) [tex]Div(z,a) = xy + Div(sy+rx+Div(rs,a)) = xy + Div(sy)+Div(rx)+Div(Div(rs,a),a) + \{0,1,2\}[/tex]

    Equation four can be categorized depeending on the relationships of s to y and r to x. Notice that [itex]Div(Div(rs,a))<Div(a-2,a) = 0[/itex] therefore this term is obliterated. If we restrict x and y to be less than a then [itex] Div(sy,a)<a-2[/itex]. So by dividing (4) by a again we obtain

    (5) [tex]Div(Div(z,a),a) = Div(xy+Div(sy)+Div(rx)+\{0,1,2\},a)[/tex]
    [tex]= Div(xy,a)+Div(Div(sy,a))+Div(Div(rx,a))+Div(\{0,1,2\},a)+\{0,1,2,3\}[/tex]

    Or in the sixth step

    (6) [tex]Div(Div(z,a),a) = Div(xy,a) + \{0,1,2,3\}[/tex]

    Ah the beauty of the seventh step!

    (7) [tex]Div(xy,a) = Div(Div(z,a),a)-\{0,1,2,3\}[/tex]

    After this we recognize that in short order we know a key ingredient if you will of xy since the division algorithm shows us that

    (8) [tex]xy = Div(xy,a)+Mod(xy,a)[/tex]

    But of course we know that Mod(xy,a) is greater than zero and less than a, this is not as impressive as we wish it to be. if N and a are coprime we reduce the residues to be searched to the reduced residue system modulo a. But perhaps by taking the modulus of Equation four we can obtain a better estimate.

    (9) [tex]Mod(Div(z,a),a) = Mod(xy,a) + Mod(Div(sy+rx+Div(rs,a)),a)[/tex]
    [tex]= Mod(xy,a) + Mod(Div(sy),a)+Mod(Div(rx),a)+Mod(\{0,1,2\},a)[/tex]

    The modulus of the set {0,1,2} is clearly equal to itself. The modulos of the terms containg sy and rx will be harder to come by. In fact right now I do not see a way past the terms of the form [itex]Mod(Div(sy,a))[/tex].
    Last edited: Oct 30, 2006
  2. jcsd
  3. Oct 30, 2006 #2
    In fact right now I do not see a way past the terms of the form [itex]Mod(Div(sy,a))[/tex]

    But what if we study the relationship

    (12) [tex]Mod(Div(sy,a)+Div(rx,a),a)=Div(Mod(sy,a),a)+(Div(Mod(rx,a),a)[/tex]

    How are these two expressions different? Suppose we have

    (13) [tex]Div(sy,a) \leq sDiv(y,a)[/tex]

    Where we have restricted y to be less than a. Then

    (14) [tex]Mod(Div(sy,a),a) \leq Mod(sDiv(y,a),a)[/tex]
    [tex]= Mod(s,a)Mod(Div(y,a),a)=Mod(s,a)*0[/tex]

    There are alot of equations in this derivation so we will have to work some simple examples just to get a better feel for the whole thing but if this is right we can pick up from (9) above and right

    (15) [tex]Mod(Div(z,a),a) -\{0,1,2\} = Mod(xy,a)[/tex]

    We have extraceted xy from the equation (2) above and arrived at a set of five systems of two independent equations in four unknowns. Namely the systems


    (S1:1)[tex] xy = Div(Div,z),a) +Mod(Div(z,a),a)-\{0,1,2,3,4,5\}[/tex]
    (S1:2)[tex] z = axy+sy+rx+Div(rs,a)[/tex]

    This would appear daunting still because r and s are unknown residues of a. However if we pick a so that the reduced residue system has special properties some of the apparent difficulty vanishes. Suppose a is prime, then every element less than a is in the reduced residue system which is an abelian group under multiplication modulo a. Is this useful?

    If we can find x and y from the five equations (S1:1) we can rewrite (S1:2) as (S1:2:E1) the E means evolved from,

    (S1:2:E1) [tex]N = az+t = a^2xy+asy+arx + rs[/tex]

    And then

    (S1:2:E1:E1) or more simply (S1:2:1:1) is

    (S1:2:1:1) [tex]r = \frac{az-a^2xy - asy}{ax+s}[/tex]

    If as I have discussed in other threads the (r,s,Div(rs,a)) triples are esay to find and the r.r.s. modulo a is relatively small in size N falls open like a roasted pistachio.

    Much of the arithmetic here is predicated on the notion that x and y are small. I want to take some time to look at this using base 6 which has a very nice r.r.s. and the using the larger polynomials discussed in other threads. Because what appears to be happening here is the interplay of two processes that have ot be iterated. There is a top-side iteration represented by xy and a bottom-side iteration represented by rs and the residue system modulo a. Finding the best combination of techniques to minimize the interval of iteration from top and bottom may be worth looking into.

    I see little benefit to considering cases where N and a are not coprime, although the calculation above was carried out under that premise. The reason is that if N and a are not coprime, then some zero divisor of a divides N, we can factor a to find one divisor of N. This is useless for RSA type numbers composed of only two very larger prime factors.
    Last edited: Oct 30, 2006
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?