Content deleted Content added
m →Basic method: Small fix for the complexity argument. |
Removed material unsourced for over a year, that uses variables not in the article. |
||
Line 139:
But the [[Recursion (computer science)|recursion]] is stopped when few ''a''-values remain; that is, when ({{Not a typo|aend-astart}})/{{Not a typo|astep}} is small. Also, because ''a'''s step-size is constant, one can compute successive b2's with additions.
==Multiplier improvement==
Line 146 ⟶ 144:
Fermat's method works best when there is a factor near the square-root of ''N''.
If the approximate ratio of two factors (<math>d/c</math>) is known, then the [[rational number]] <math>v/u</math> can be picked near that value
Generally, if the ratio is not known, various <math>u/v</math> values can be tried, and try to factor each resulting ''Nuv''. R. Lehman devised a systematic way to do this, so that Fermat's plus trial division can factor N in <math>O(N^{1/3})</math> time.<ref>{{cite journal |author=Lehman, R. Sherman|title=Factoring Large Integers |journal=[[Mathematics of Computation]] |year=1974 |volume=28 |issue=126 |pages=637–646 |url=https://www.ams.org/journals/mcom/1974-28-126/S0025-5718-1974-0340163-2/S0025-5718-1974-0340163-2.pdf |doi=10.2307/2005940|doi-access=free }}</ref>
|