Docsity

Quadratic Sieve Algorithm for Factoring Large Numbers, Lecture notes of History

Partial preview of the text

Download Quadratic Sieve Algorithm for Factoring Large Numbers and more Lecture notes History in PDF only on Docsity!

Quadratic Sieve

Factoring

November 13, 2019

Factor 8051. Looks Hard.

Factor 8051. Looks Hard. OH- note that

8051 = 90^2 − 72 = (90 + 7)(90 − 7) = 97 × 83

Key Wrote 8051 as diff of two squares.

Factor 8051. Looks Hard. OH- note that

8051 = 90^2 − 72 = (90 + 7)(90 − 7) = 97 × 83

Key Wrote 8051 as diff of two squares. General If N = x^2 − y 2 then get N = (x − y )(x + y ).

Factor 8051. Looks Hard. OH- note that

8051 = 90^2 − 72 = (90 + 7)(90 − 7) = 97 × 83

Key Wrote 8051 as diff of two squares. General If N = x^2 − y 2 then get N = (x − y )(x + y ). But Lucky: we happen to spot two squares that worked. History Carl Pomerance was on the Math Team in High School and this was a problem he was given. He didn’t to solve it in time, but it inspired him to invent the Quadratic Sieve Factoring Algorithm

812 − 162 = 6305 = 5 × 1261

Does this help?

812 − 162 = 6305 = 5 × 1261

Does this help? (81 − 16) × (81 + 16) = 5 × 1261

65 × 97 = 5 × 1261

(Could divide both sides by 5, please ignore that.)

812 − 162 = 6305 = 5 × 1261

Does this help? (81 − 16) × (81 + 16) = 5 × 1261

65 × 97 = 5 × 1261

(Could divide both sides by 5, please ignore that.) 65 divides 5 × 1261, so 65 might share a factor with 1261. Take GCD: GCD(65, 1261) = 13. So 13 divides 1261.

812 − 162 = 6305 = 5 × 1261

Does this help? (81 − 16) × (81 + 16) = 5 × 1261

65 × 97 = 5 × 1261

(Could divide both sides by 5, please ignore that.) 65 divides 5 × 1261, so 65 might share a factor with 1261. Take GCD: GCD(65, 1261) = 13. So 13 divides 1261. General If (x^2 − y 2 ) = kN then I (^) GCD(x − y , N) might be a nontrivial factor I (^) GCD(x + y , N) might be a nontrivial factor.

Want x^2 − y 2 = kN x^2 − y 2 ≡ 0 (mod N) x^2 ≡ y 2 (mod N).

Want x^2 ≡ y 2 (mod 1649). Start at

Want x^2 ≡ y 2 (mod 1649). Start at

412 ≡ 32 = 2^5 (mod 1649) 422 ≡ 115 = 5 × 23 (mod 1649)

Want x^2 ≡ y 2 (mod 1649). Start at

412 ≡ 32 = 2^5 (mod 1649) 422 ≡ 115 = 5 × 23 (mod 1649) 432 ≡ 200 = 2^3 × 52 (mod 1649)

Want x^2 ≡ y 2 (mod 1649). Start at

412 ≡ 32 = 2^5 (mod 1649) 422 ≡ 115 = 5 × 23 (mod 1649) 432 ≡ 200 = 2^3 × 52 (mod 1649) Does any of this help?

412 × 432 ≡ 25 × 23 × 52 = 2^8 × 52 = (2^4 × 5)^2 = 80^2

Want x^2 ≡ y 2 (mod 1649). Start at

412 ≡ 32 = 2^5 (mod 1649) 422 ≡ 115 = 5 × 23 (mod 1649) 432 ≡ 200 = 2^3 × 52 (mod 1649) Does any of this help?

412 × 432 ≡ 25 × 23 × 52 = 2^8 × 52 = (2^4 × 5)^2 = 80^2

(41 × 43)^2 − 802 ≡ 0 (mod 1649)