Continued fraction factorization explained

In number theory, the continued fraction factorization method (CFRAC) is an integer factorization algorithm. It is a general-purpose algorithm, meaning that it is suitable for factoring any integer n, not depending on special form or properties. It was described by D. H. Lehmer and R. E. Powers in 1931,[1] and developed as a computer algorithm by Michael A. Morrison and John Brillhart in 1975.[2]

The continued fraction method is based on Dixon's factorization method. It uses convergents in the regular continued fraction expansion of

\sqrt{kn},   

k\inZ+
.Since this is a quadratic irrational, the continued fraction must be periodic (unless n is square, in which case the factorization is obvious).

It has a time complexity of

O\left(e\sqrt{2log

}\right)=L_n\left[1/2,\sqrt{2}\right], in the O and L notations.[3]

Further reading

Notes and References

  1. Lehmer. D.H.. Powers, R.E.. On Factoring Large Numbers. Bulletin of the American Mathematical Society. 37. 1931. 10. 770–776. 10.1090/S0002-9904-1931-05271-X. free.
  2. Morrison. Michael A.. Brillhart, John. A Method of Factoring and the Factorization of F7. Mathematics of Computation. 29. 129. 183–205. January 1975. 10.2307/2005475. 2005475. American Mathematical Society.
  3. News: Pomerance. Carl. Carl Pomerance. A Tale of Two Sieves. December 1996. Notices of the AMS. 1473–1485. 43. 12.