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 263<br />

Note that 41 · 43 = 1763 ≡ 114 (mod 1649) and that 114 ≡ ±80 (mod 1649),<br />

so we are in business. Indeed, gcd(114 − 80, 1649) = 17, and we discover that<br />

1649 = 17 · 97.<br />

Can this idea be tooled up for big numbers? Say we look at the numbers<br />

x 2 mod n for x running through integers starting at ⌈ √ n⌉. We wish to find a<br />

nonempty subset of them with product a square. An obvious problem comes<br />

to mind: How does one search for such a subset?<br />

Let us make some reductions in the problem to begin to address the issue<br />

of searching. First, note that if some x 2 mod n has a large prime factor to the<br />

first power, then if we are to involve this particular residue in our subset with<br />

square product, there will have to be another x ′2 mod n that has the same<br />

large prime factor. For example, in our limited experience above with 1649,<br />

the second residue is 115 which has the relatively large prime factor 23 (large<br />

compared with the prime factors of the other two residues), and indeed we<br />

threw this congruence away and did not use it in our product. So, what if we<br />

do this systematically and throw away any x 2 mod n that has a prime factor<br />

exceeding B, say? That is, suppose we keep only the B-smooth numbers, (see<br />

Definition 1.4.8)? A relevant question is the following:<br />

How many positive B-smooth numbers are necessary before we are sure<br />

that the product of a nonempty subset of them is a square?<br />

A moment’s reflection leads one to realize that this question is really in the<br />

arena of linear algebra! Let us associate an “exponent vector” to a B-smooth<br />

number m = p ei<br />

i ,wherep1,p2,...,pπ(B) are the primes up to B and each<br />

exponent ei ≥ 0. The exponent vector is<br />

v(m) =(e1,e2,...,e π(B)).<br />

If m1,m2,...,mk are all B-smooth, then k i=1 mi is a square if and only if<br />

k i=1 v(mi) has all even coordinates.<br />

This last thought suggests we reduce the exponent vectors modulo 2 and<br />

think of them in the vector space F π(B)<br />

2 . The field of scalars of this vector<br />

space is F2 which has only the two elements 0, 1. Thus a linear combination<br />

of different vectors in this vector space is precisely the same thing as a subset<br />

sum; the subset corresponds to those vectors in the linear combination that<br />

have the coefficient 1. So the search for a nonempty subset of integers with<br />

product being a square is reduced to a search for a linear dependency in a set<br />

of vectors.<br />

There are two great advantages of this point of view. First, we immediately<br />

have the theorem from linear algebra that a set of vectors is linearly dependent<br />

if there are more of them than the dimension of the vector space. So we have<br />

an answer: The creation of a product as a square requires at most π(B)+1<br />

positive B-smooth numbers. Second, the subject of linear algebra also comes<br />

equipped with efficient algorithms such as matrix reduction. So the issue of<br />

finding a linear dependency in a set of vectors comes down to row-reduction<br />

of the matrix formed with these vectors.

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

Saved successfully!

Ooh no, something went wrong!