学海网 文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > Smooth numbers and the quadratic sieve

Smooth numbers and the quadratic sieve

When faced with a large number n to factor, what do you do first? You might say “Look at the last digit, ” with the idea of cheaply pulling out possible factors of 2 and 5. Sure, and more generally, you can test for divisibility cheaply by all of the ver

SMOOTHNUMBERSANDTHEQUADRATICSIEVE

CarlPomerance

Whenfacedwithalargenumberntofactor,whatdoyoudo rst?Youmightsay“Lookatthelastdigit,”withtheideaofcheaplypullingoutpossiblefactorsof2and5.Sure,andmoregenerally,youcantestfordivisibilitycheaplybyalloftheverysmallprimes.Soitmayaswellbeassumedthatthenumbernhasnosmallprimefactors,saybelowlogn.Sinceitisalsocheaptotestforprobableprimeness,saythroughthestrongprobableprimetest,andthenactuallyproveprimalityasin[4]inthecasethatyoubecomeconvincednisprime,italsomayaswellbeassumedthatthenumberniscomposite.

Trialdivisionisafactoringmethod(andintheextreme,aprimalitytest)thatinvolvessequentiallytryingnfordivisibilitybytheconsecutiveprimes.Thismethodwasinvokedabovefortheremovalofthesmallprimefactorsofn.Theonlythingstoppingusfromcontinuingbeyondthesomewhatarbitrarycuto oflognistheenormoustimethatwouldbespentifthesmallestprimefactorofnisfairlylarge.Forexample,ifnwereamodulusbeingusedintheRSAcryptosystem,thenascurrentprotocolsdictate,nwouldbetheproductoftwoprimesofthesameorderofmagnitude.Inthiscase,factoringnbytrialdivisionwouldtakeroughlyn1/2steps.Thisalreadyisanenormouscalculationifnhasthirtydecimaldigits,andfornumbersonlyslightlylonger,thecalculationisnotpossibleatthistimebythehumanraceandalloftheircomputers.

Di erenceofsquares

Wehavelongknownhoweverthattrialdivisionisnottheonlygameintownforfactoring.Takethenumber8051forexample.Thisnumberiscompositeandnotdivisiblebyanyprimeuptoitslogarithm.Onecanseeinstantly(ifonelooks)thatitis8100 49,thatis,

8051=902 72.

Thus,wecanusealgebratofactor8051asadi erenceofsquares.Itis(90 7)×(90+7),or83×97.Everyoddcompositecanbefactoredasadi erenceofsquares(aneasyexercise),sowhydon’tweusethismethodinsteadoftrialdivision?

Letustryagainonthenumbern=1649.Again,1649iscomposite,butnotdivisiblebyanyprimeuptoitslogarithm.Whatworkedwith8051wastotakethe rstsquareabove8051,namely902,andthennoticethat902 8051=49,where49isrecognizedasasquare.Itwouldseemingeneralthatonecouldwalkthroughthesequencex2 nwithx= n1/2 , n1/2 +1,...,lookingforsquares.Withn=1649wehave

412 n=32,

422 n=115,

432 n=200,

...

withnosquaresinimmediatesight.

1(1)

第1页

TOP相关主题

  • subdivide and smooth
  • marks and numbers
  • numbers and omens
  • numbers and figures
  • wrench and numbers
  • numbers and oddities
  • numbers and animals
  • sieve

我要评论

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
新浪认证  诚信网站  绿色网站  可信网站   非经营性网站备案
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.xuehai.net All Rights Reserved.  email
返回顶部