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.

188 Chapter 4 PRIMALITY PROVING<br />

if so, xai + ybi will be one of the numbers c computed in Step [Loop] of<br />

Algorithm 4.2.11, because of (4.20). Thus, Step [Loop] will successfully retrieve<br />

the numbers x, y.<br />

We have xa0 + yb0 = xa0 ≥ 0andxat + ybt = ybt ≤ 0, so there is some<br />

even index i with<br />

xai + ybi ≥ 0, xai+2 + ybi+2 ≤ 0.<br />

If one of these quantities is less than s in absolute value, we are done, so<br />

assume that the first quantity is ≥ s and the second is ≤−s. Thenfrom<br />

(4.17), (4.18), (4.19),<br />

xai ≥ xai + ybi ≥ s = bi+1ai − ai+1bi ≥ bi+1ai,<br />

from which we conclude that x ≥ bi+1. Wealsohave<br />

ybi+2 ≤ xai+2 + ybi+2 ≤−s = bi+2ai+1 − ai+2bi+1 ai+1. Therefore,<br />

xai+1 + ybi+1 > 2ai+1bi+1,<br />

and from (x − bi+1)(y − ai+1) > 0, we have<br />

xai+1 + ybi+1 ≤ xy + ai+1bi+1

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

Saved successfully!

Ooh no, something went wrong!