05.01.2015 Views

Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University

Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University

Course notes (chap. 1 Number Theory, chap. 2 ... - McGill University

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.

Definition 1.7 (SQROOT) The square root modulo n problem can be<br />

stated as follows: <br />

given a composite integer n and a ∈ QR n , find a square root of a mod n. <br />

(Maple msqrt) <br />

Theorem 1.8 SQROOT is polynomialy equivalent to FACTORING. <br />

Proof idea: the previous construction showed that if we know the<br />

factorization of n, then we can extract square roots modulo each prime<br />

factor of n and then recombine using the Chinese Remainder Theorem. <br />

If we can extract square roots modulo n, then we can split n in two factors<br />

n = uv by repeating the following algorithm: <br />

• Pick a random integer a and extract the square root of a 2 mod n, say a′.<br />

• If a′ ≡ ±a (mod n) then try again,<br />

• Return(u,v) <br />

else set u = gcd(a+a′, n) and v = gcd(a−a′, n). <br />

(The probability of the second case is at least 1 / 2 .)

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

Saved successfully!

Ooh no, something went wrong!