10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

448 Chapter 9 FAST ALGORITHMS FOR LARGE-INTEGER ARITHMETIC<br />

is divisible by R, with<br />

y/R ≡ xR −1 (mod N). (9.6)<br />

Furthermore, if 0 ≤ x> c denote “right-shift by c bits.” Then the left-hand side<br />

of equation (9.6) can be cast as<br />

y/R =(x + N ∗ ((x ∗ N ′ )&(R − 1))) >> s, (9.7)<br />

in which the two required multiplies are explicit.<br />

So now, for 0 ≤ x

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

Saved successfully!

Ooh no, something went wrong!