Factor base
In computational number theory, a factor base is a small set of prime numbers commonly used as a mathematical tool in algorithms involving extensive sieving for potential factors of a given integer.
In computational number theory, a factor base is a small set of prime numbers commonly used as a mathematical tool in algorithms involving extensive sieving for potential factors of a given integer. ==Usage in factoring algorithms== A factor base is a relatively small set of distinct prime numbers P, sometimes together with −1. Suppose we want to factorize an integer n. We generate, in some way, a large number of integer pairs (x, y) for which x \neq \pm y , x^2 \equiv y^2 \pmod{n} , and x^2 \pmod{n} \text{ and }y^2 \pmod{n} can be completely factorized over the chosen factor base—that is, all their prime factors are in P. In practice, several integers x are found such that x^2 \pmod{n} has all of its prime factors in the pre-chosen factor base. We represent each x^2 \pmod{n} expression as a vector of a matrix with integer entries being the exponents of factors in the factor base. Linear combinations of the rows corresponds to multiplication of these expressions. A linear dependence relation mod 2 among the rows leads to a desired congruence x^2 \equiv y^2 \pmod{n} . This essentially reformulates the problem into a system of linear equations, which can be solved using numerous methods such as Gaussian elimination; in practice advanced methods like the block Lanczos algorithm are used, that take advantage of certain properties of the system. This congruence may generate the trivial \textstyle n = 1 \cdot n ; in this case we try to find another suitable congruence. If repeated attempts to factor fail we can try again using a different factor base. ==Algorithms== Factor bases are used in, for example, Dixon's factorization, the quadratic sieve, and the number field sieve. The difference between these algorithms is essentially the methods used to generate (x, y) candidates. Factor bases are also used in the Index calculus algorithm for computing discrete logarithms. ==References==
References
- Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. 133, ISBN 0-387-96576-9 Wikipedia revision 1308306520, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1308306520
Cite this reference
MLA "Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. 133, ISBN 0-387-96576-9 Wikipedia revision 1308306520, retrieved 2026-11-18." Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. 133, ISBN 0-387-96576-9 Wikipedia revision 1308306520, retrieved 2026-11-18." Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. (2026). Koblitz, Neal (1987), A Course in Number Theory and Cryptography , Springer-Verlag, p. 133, ISBN 0-387-96576-9 Wikipedia revision 1308306520, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- Trappe, Wade; Washington, Lawrence C. (2006), Introduction to Cryptography with Coding Theory (2nd ed.), Prentice-Hall, p. 185, ISBN 978-0-13-186239-5 Wikipedia revision 1308306520, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1308306520
Cite this reference
MLA "Trappe, Wade; Washington, Lawrence C. (2006), Introduction to Cryptography with Coding Theory (2nd ed.), Prentice-Hall, p. 185, ISBN 978-0-13-186239-5 Wikipedia revision 1308306520, retrieved 2026-11-18." Trappe, Wade; Washington, Lawrence C. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Trappe, Wade; Washington, Lawrence C. (2006), Introduction to Cryptography with Coding Theory (2nd ed.), Prentice-Hall, p. 185, ISBN 978-0-13-186239-5 Wikipedia revision 1308306520, retrieved 2026-11-18." Trappe, Wade; Washington, Lawrence C. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Trappe, Wade; Washington, Lawrence C. (2026). Trappe, Wade; Washington, Lawrence C. (2006), Introduction to Cryptography with Coding Theory (2nd ed.), Prentice-Hall, p. 185, ISBN 978-0-13-186239-5 Wikipedia revision 1308306520, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- Stinson, Douglas R. (1995), Cryptography / Theory and Practice , CRC Press, p. 171, ISBN 0-8493-8521-0 Wikipedia revision 1308306520, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1308306520
Cite this reference
MLA "Stinson, Douglas R. (1995), Cryptography / Theory and Practice , CRC Press, p. 171, ISBN 0-8493-8521-0 Wikipedia revision 1308306520, retrieved 2026-11-18." Stinson, Douglas R. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Stinson, Douglas R. (1995), Cryptography / Theory and Practice , CRC Press, p. 171, ISBN 0-8493-8521-0 Wikipedia revision 1308306520, retrieved 2026-11-18." Stinson, Douglas R. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Stinson, Douglas R. (2026). Stinson, Douglas R. (1995), Cryptography / Theory and Practice , CRC Press, p. 171, ISBN 0-8493-8521-0 Wikipedia revision 1308306520, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
Cite this article
MLA
"Factor base." encyclopegia.org, 2025, https://encyclopegia.org/wiki/factor-base. Accessed 24 November 2026.
Chicago
"Factor base." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/factor-base.
APA
encyclopegia.org. (2025). Factor base. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/factor-base
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON