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.

240 Chapter 5 EXPONENTIAL FACTORING ALGORITHMS<br />

Allowing both +1 and −1 for the determinant does not give much more<br />

leeway than restricting to just +1. (For example, one can go from (a, b, c)<br />

to (a, −b, c) and to (c, b, a) via changes of variables with determinants −1,<br />

but these are easily recognized, and may be tacked on to a more complicated<br />

change of variables with determinant +1, so there is little loss of generality<br />

in just considering +1.) We shall say that two quadratic forms are equivalent<br />

if there is a change of variables as in (5.1) with determinant +1. Such a<br />

change of variables is called unimodular, and so two quadratic forms are called<br />

equivalent if you can go from one to the other by a unimodular change of<br />

variables.<br />

Equivalence of quadratic forms is an “equivalence relation.” That is, each<br />

form (a, b, c) is equivalent to itself; if (a, b, c) is equivalent to (a ′ ,b ′ ,c ′ ), then<br />

the reverse is true, and two forms equivalent to the same form are equivalent<br />

to each other. We leave the proofs of these simple facts as Exercise 5.10.<br />

There remains the computational problem of deciding whether two given<br />

quadratic forms are equivalent. The discriminant of a form (a, b, c) isthe<br />

integer b 2 − 4ac. Equivalent forms have the same discriminant (see Exercise<br />

5.12), so it is sometimes easy to see when two quadratic forms are not<br />

equivalent, namely this is so when their discriminants are unequal. However,<br />

the converse is not true. Witness the two forms x 2 +xy+4y 2 and 2x 2 +xy+2y 2 .<br />

They both have discriminant −15, but the first can have the value 1 (when<br />

x = 1 and y = 0), while the second cannot. So the two forms are not<br />

equivalent.<br />

If it is the case that in each equivalence class of binary quadratic forms<br />

there is one distinguished form, and if it is the case that it is easy to find<br />

this distinguished form, then it will be easy to tell whether two given forms<br />

are equivalent. Namely, find the distinguished forms equivalent to each, and<br />

if these distinguished forms are the same form, then the two given forms are<br />

equivalent, and conversely.<br />

This is particularly easy to do in the case of binary quadratic forms of<br />

negative discriminant. In fact, the whole theory of binary quadratic forms<br />

bifurcates on the issue of the sign of the discriminant. Forms of positive<br />

discriminant can represent both positive and negative values, but this is not<br />

the case for forms of negative discriminant. (Forms with discriminant zero are<br />

trivial objects—studying them is essentially studying the sequence of squares.)<br />

The theory of binary quadratic forms of positive discriminant is somewhat<br />

more difficult than the corresponding theory of negative-discriminant forms.<br />

There are interesting factorization algorithms connected with the positivediscriminant<br />

case, and also with the negative-discriminant case. In the<br />

interests of brevity, we shall mainly consider the easier case of negative<br />

discriminants, and refer the reader to [Cohen 2000] for a description of<br />

algorithms involving quadratic forms of positive discriminant.<br />

We make a further restriction. Since a binary quadratic form of negative<br />

discriminant does not represent both positive and negative numbers, we shall<br />

restrict attention to those forms that never represent negative numbers. If<br />

(a, b, c) is such a form, then (−a, −b, −c) never represents positive numbers,

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

Saved successfully!

Ooh no, something went wrong!