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.

5.6 Binary quadratic forms 239<br />

f(jB)modn for j =1, 2,...,B, then we would be in business to check each<br />

gcd and find the first that exceeds 1.<br />

Algorithm 9.6.7 provides the computation of f(x) as a polynomial in Zn[x]<br />

(that is, the coefficients are reduced modulo n) and the evaluation of each<br />

f(jB) modulo n for j =1, 2,...,B in O B ln 2 B = O n 1/4 ln 2 n arithmetic<br />

operations with integers the size of n. This latter big-O expression then stands<br />

as the complexity of the Pollard–Strassen polynomial evaluation method for<br />

factoring n.<br />

5.6 Binary quadratic forms<br />

There is a rich theory of binary quadratic forms, as developed by Lagrange,<br />

Legendre, and Gauss in the late 1700s, a theory that played, and still plays,<br />

an important role in computational number theory.<br />

5.6.1 Quadratic form fundamentals<br />

For integers a, b, c we may consider the quadratic form ax 2 + bxy + cy 2 .Itisa<br />

polynomial in the variables x, y, but often we suppress the variables, and just<br />

refer to a quadratic form as an ordered triple (a, b, c) of integers.<br />

We say that a quadratic form (a, b, c) represents an integer n if there are<br />

integers x, y with ax 2 + bxy + cy 2 = n. So attached to a quadratic form<br />

(a, b, c) is a certain subset of the integers, namely those numbers that (a, b, c)<br />

represents. We note that certain changes of variables can change the quadratic<br />

form (a, b, c) to another form (a ′ ,b ′ ,c ′ ), but keep fixed the set of numbers that<br />

are represented. In particular, suppose<br />

x = αX + βY, y = γX + δY,<br />

where α, β, γ, δ are integers. Making this substitution, we have<br />

ax 2 + bxy + cy 2 = a(αX + βY ) 2 + b(αX + βY )(γX + δY )+c(γX + δY ) 2<br />

= a ′ X 2 + b ′ XY + c ′ Y 2 , (5.1)<br />

say. Thus every number represented by the quadratic form (a ′ ,b ′ ,c ′ )isalso<br />

represented by the quadratic form (a, b, c). We may assert the converse<br />

statement if there are integers α ′ ,β ′ ,γ ′ ,δ ′ with<br />

That is, the matrices <br />

α β<br />

,<br />

γ δ<br />

X = α ′ x + β ′ y, Y = γ ′ x + δ ′ y.<br />

α ′ β ′<br />

γ ′ δ ′<br />

are inverses of each other. A square matrix with integer entries has an inverse<br />

with integer entries if and only if its determinant is ±1. We conclude that if<br />

the quadratic forms (a, b, c) and(a ′ ,b ′ ,c ′ ) are related by a change of variables<br />

as in (5.1), then they represent the same set of integers if αδ − βγ = ±1.

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

Saved successfully!

Ooh no, something went wrong!