10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.1 The quadratic sieve factorization method 265<br />

the power is as high as could possibly divide one of the values x 2 − n. The<br />

primes p on which these powers are based are those for which x 2 − n ≡ 0<br />

(mod p) is solvable, namely the prime p =2andtheoddprimesp≤Bfor which the Legendre symbol <br />

n<br />

p = 1. And for each such odd prime p and each<br />

relevant power of p, there are two residue classes to sieve over. Let K be the<br />

number of primes up to B that over which we sieve. Then, heuristically, K is<br />

about 1π(B).<br />

We will be assured of a linear dependency among our exponent<br />

2<br />

vectors once we have assembled K + 1 of them.<br />

If the probability of a value of x leading to a B-smooth is u−u , then the<br />

expected number of values of x to get one success is uu , and the expected<br />

number of values to get K + 1 successes is uu (K + 1). We multiply this<br />

expectation by ln ln B, the amount of work on average to deal with each value<br />

of x. So let us assume that this all works out, and take the expression<br />

T (B) =u u (K +1)lnlnB, where u =<br />

ln n<br />

2lnB .<br />

We now attempt to find B as a function of n so as to minimize T (B). Since<br />

K ≈ 1<br />

2π(B) is of order of magnitude B/ln B (see Theorem 1.1.4), we have<br />

that ln T (B) ∼ S(B), where S(B) =u ln u +lnB. Putting in what u is we<br />

have that the derivative is given by<br />

dS − ln n<br />

=<br />

dB 2B ln 2 1<br />

(ln ln n − ln ln B − ln 2 + 1) +<br />

B B .<br />

Setting this equal to zero, we find that ln B is somewhere between a constant<br />

times √ ln n and a constant times √ ln n ln ln n,sothatlnlnB∼ 1<br />

2 ln ln n.Thus<br />

we find that the critical B and other entities behave as<br />

ln B ∼ 1√<br />

√<br />

ln n ln ln n, u ∼ ln n/ ln ln n, S(B) ∼ ln n ln ln n.<br />

2<br />

We conclude that an optimal choice of the smoothness bound B is about<br />

√ <br />

exp ln n ln ln n , and that the running time with this choice of B is about<br />

1<br />

2<br />

B2 , that is, the running time for the above scheme to factor n should be about<br />

√ln <br />

exp n ln ln n .<br />

We shall abbreviate this last function of n as follows:<br />

√<br />

ln n ln ln<br />

L(n) =e<br />

n.<br />

(6.1)<br />

The above argument ignores the complexity of the linear algebra step, but<br />

it can be shown that this, too, is about B 2 ; see Section 6.1.3. Assuming the<br />

validity of all the heuristic leaps made, we have described a deterministic<br />

algorithm for factoring an odd composite n that is not a power. The running<br />

time is L(n) 1+o(1) . This function of n is subexponential; that is, it is of the<br />

form n o(1) , and as such, it is a smaller-growing function of n than any of the<br />

complexity estimates for the factoring algorithms described in Chapter 5.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!