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.

Chapter 5<br />

EXPONENTIAL FACTORING ALGORITHMS<br />

For almost all of the multicentury history of factoring, the only algorithms<br />

available were exponential, namely, the running time was, in the worst case,<br />

a fixed positive power of the number being factored. But in the early 1970s,<br />

subexponential factoring algorithms began to come “on line.” These methods,<br />

discussed in the next chapter, have their running time to factor n bounded<br />

by an expression of the form n o(1) . One might wonder, then, why the current<br />

chapter exists in this book. We have several reasons for including it.<br />

(1) An exponential factoring algorithm is often the algorithm of choice for<br />

small inputs. In particular, in some subexponential methods, smallish<br />

auxiliary numbers are factored in a subroutine, and such a subroutine<br />

might invoke an exponential factoring method.<br />

(2) In some cases, an exponential algorithm is a direct ancestor of a<br />

subexponential algorithm. For example, the subexponential elliptic curve<br />

method grew out of the exponential p − 1 method. One might think of the<br />

exponential algorithms as possible raw material for future developments,<br />

much as various wild strains of agricultural cash crops are valued for their<br />

possible future contributions to the plant gene pool.<br />

(3) It is still the case that the fastest, rigorously analyzed, deterministic<br />

factoring algorithm is exponential.<br />

(4) Some factoring algorithms, both exponential and subexponential, are<br />

the basis for analogous algorithms for discrete logarithm computations.<br />

For some groups the only discrete logarithm algorithms we have are<br />

exponential.<br />

(5) Many of the exponential algorithms are pure delights.<br />

We hope then that the reader is convinced that this chapter is worth it!<br />

5.1 Squares<br />

An old strategy to factor a number is to express it as the difference of two<br />

nonconsecutive squares. Let us now expand on this theme.<br />

5.1.1 Fermat method<br />

If one can write n in the form a 2 − b 2 ,wherea, b are nonnegative integers,<br />

then one can immediately factor n as (a + b)(a − b). If a − b>1, then the

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

Saved successfully!

Ooh no, something went wrong!