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.

264 Chapter 6 SUBEXPONENTIAL FACTORING ALGORITHMS<br />

So we seem to have solved the “obvious problem” stated above for ramping<br />

up the 1649 example to larger numbers. We have a way of systematically<br />

handling our residues x2 mod n, atheoremtotelluswhenwehaveenoughof<br />

them, and an algorithm to find a subset of them with product being a square.<br />

We have not, however, specified how the smoothness bound B is to be<br />

chosen, and actually, the above discussion really does not suggest that this<br />

scheme will be any faster than the method of Fermat.<br />

If we choose B small, we have the advantage that we do not need many<br />

B-smooth residues to find a subset product that is a square. But if B is too<br />

small, the property of being B-smooth is so special that we may not find any<br />

B-smooth numbers. So we need to balance the two forces operating on the<br />

smoothness bound B: The bound should be small enough that we do not need<br />

too many B-smooth numbers to be successful, yet B should be large enough<br />

that the B-smooth numbers are arriving with sufficient frequency.<br />

To try to solve this problem, we should compute what the frequency of<br />

B-smooth numbers will be as a function of B and n. Perhaps we can try to<br />

use (1.44), and assume that the “probability” that x2 mod n is B-smooth is<br />

about u−u ,whereu =lnn/ ln B.<br />

There are two thoughts about this approach. First, (1.44) applies only to<br />

a total population of all numbers up to a certain bound, not a special subset.<br />

Are we so sure that members of our subset are just as likely to be smooth as<br />

is a typical number? Second, what exactly is the size of the numbers in our<br />

subset? In the above paragraph we just used the bound n when we formed<br />

the number u.<br />

We shall overlook the first of these difficulties, since we are designing a<br />

heuristic factorization method. If the method works, our “conjecture” that our<br />

special numbers are just like typical numbers, as far as smoothness goes, gains<br />

some validity. The second of the difficulties, after a little thought, actually can<br />

be resolved in our favor. That is, we are wrong about the size of the residues<br />

x2 mod n, they are actually smaller than n, much smaller.<br />

Recall that we have suggested starting with x = ⌈ √ n⌉ and running up<br />

from that point. But until we get to √ 2n , the residue x2 mod n is given<br />

bythesimpleformulax2−n. Andif √ n0is<br />

small, then x2 − n is of order of magnitude n1/2+ɛ . Thus, we should revise<br />

our heuristic estimate on the likelihood of x leading to a B-smooth number<br />

to u−u with u now about 1<br />

2 ln n/ ln B.<br />

There is one further consideration before we try to use the u−u estimate<br />

to pick out an optimal B and estimate the number of x’s needed. That is, how<br />

long do we need to spend with a particular number x to see whether x2 − n<br />

is B-smooth? One might first think that the answer is about π(B), since trial<br />

division with the primes up to B is certainly an obvious way to see whether<br />

a number is B-smooth. But in fact, there is a much better way to do this, a<br />

way that makes a big difference. We can use the sieving methods of Section<br />

3.2.5 and Section 3.2.6 so that the average number of arithmetic operations<br />

spent per value of x is only about ln ln B, a very small bound indeed. These<br />

sieving methods require us to sieve by primes and powers of primes where

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

Saved successfully!

Ooh no, something went wrong!