# Smooth number

__: Integer having only small prime factors__

**Short description**In number theory, an ** n-smooth** (or

**)**

*n*-friable**number**is an integer whose prime factors are all less than or equal to

*n*.

^{[1]}

^{[2]}For example, a 7-smooth number is a number whose every prime factor is at most 7, so 49 = 7

^{2}and 15750 = 2 × 3

^{2}× 5

^{3}× 7 are both 7-smooth, while 11 and 702 = 2 × 3

^{3}× 13 are not 7-smooth. The term seems to have been coined by Leonard Adleman.

^{[3]}Smooth numbers are especially important in cryptography, which relies on factorization of integers. The 2-smooth numbers are just the powers of 2, while 5-smooth numbers are known as regular numbers.

## Definition

A positive integer is called `B`-**smooth** if none of its prime factors are greater than `B`. For example, 1,620 has prime factorization 2^{2} × 3^{4} × 5; therefore 1,620 is 5-smooth because none of its prime factors are greater than 5. This definition includes numbers that lack some of the smaller prime factors; for example, both 10 and 12 are 5-smooth, even though they miss out the prime factors 3 and 5, respectively. All 5-smooth numbers are of the form 2^{a} × 3^{b} × 5^{c}, where *a*, *b* and *c* are non-negative integers.

The 3-smooth numbers have also been called "harmonic numbers", although that name has other more widely used meanings.^{[4]}
5-smooth numbers are also called **regular numbers** or Hamming numbers;^{[5]} 7-smooth numbers are also called **humble numbers**,^{[6]} and sometimes called *highly composite*,^{[7]} although this conflicts with another meaning of highly composite numbers.

Here, note that `B` itself is not required to appear among the factors of a `B`-smooth number. If the largest prime factor of a number is `p` then the number is `B`-smooth for any `B` ≥ `p`. In many scenarios `B` is prime, but composite numbers are permitted as well. A number is `B`-smooth if and only if it is `p`-smooth, where `p` is the largest prime less than or equal to `B`.

## Applications

An important practical application of smooth numbers is the fast Fourier transform (FFT) algorithms (such as the Cooley–Tukey FFT algorithm), which operates by recursively breaking down a problem of a given size *n* into problems the size of its factors. By using *B*-smooth numbers, one ensures that the base cases of this recursion are small primes, for which efficient algorithms exist. (Large prime sizes require less-efficient algorithms such as Bluestein's FFT algorithm.)

5-smooth or regular numbers play a special role in Babylonian mathematics.^{[8]} They are also important in music theory (see Limit (music)),^{[9]} and the problem of generating these numbers efficiently has been used as a test problem for functional programming.^{[10]}

Smooth numbers have a number of applications to cryptography.^{[11]} While most applications center around cryptanalysis (e.g. the fastest known integer factorization algorithms, for example: General number field sieve algorithm), the VSH hash function is another example of a constructive use of smoothness to obtain a provably secure design.

## Distribution

Let [math]\displaystyle{ \Psi(x,y) }[/math] denote the number of *y*-smooth integers less than or equal to *x* (the de Bruijn function).

If the smoothness bound *B* is fixed and small, there is a good estimate for [math]\displaystyle{ \Psi(x,B) }[/math]:

- [math]\displaystyle{ \Psi(x,B) \sim \frac{1}{\pi(B)!} \prod_{p\le B}\frac{\log x}{\log p}. }[/math]

where [math]\displaystyle{ \pi(B) }[/math] denotes the number of primes less than or equal to [math]\displaystyle{ B }[/math].

Otherwise, define the parameter *u* as *u* = log *x* / log *y*: that is, *x* = *y*^{u}. Then,

- [math]\displaystyle{ \Psi(x,y) = x\cdot \rho(u) + O\left(\frac{x}{\log y}\right) }[/math]

where [math]\displaystyle{ \rho(u) }[/math] is the Dickman function.

The average size of the smooth part of a number of given size is known as [math]\displaystyle{ \zeta(u) }[/math], and it is known to decay much more slowly than [math]\displaystyle{ \rho(u) }[/math].^{[12]}

For any *k*, almost all natural numbers will not be *k*-smooth.

## Powersmooth numbers

Further, *m* is called *B*-**powersmooth** (or *B*-**ultrafriable**) if all prime *powers* [math]\displaystyle{ p^{\nu} }[/math] dividing *m* satisfy:

- [math]\displaystyle{ p^{\nu} \leq B.\, }[/math]

For example, 720 (2^{4} × 3^{2} × 5^{1}) is 5-smooth but not 5-powersmooth (because there are several prime powers greater than 5, *e.g.* [math]\displaystyle{ 3^2 = 9 \nleq 5 }[/math] and [math]\displaystyle{ 2^4 = 16 \nleq 5 }[/math]). It is 16-powersmooth since its greatest prime factor power is 2^{4} = 16. The number is also 17-powersmooth, 18-powersmooth, etc.

*B*-smooth and *B*-powersmooth numbers have applications in number theory, such as in Pollard's *p* − 1 algorithm and ECM. Such applications are often said to work with "smooth numbers," with no *B* specified; this means the numbers involved must be *B*-powersmooth, for some unspecified small number *B. A*s *B* increases, the performance of the algorithm or method in question degrades rapidly. For example, the Pohlig–Hellman algorithm for computing discrete logarithms has a running time of O(*B*^{1/2})—for groups of *B*-smooth order.

## Smooth over a set *A*

Moreover, *m* is said to be smooth over a set *A* if there exists a factorization of *m* where the factors are powers of elements in *A*. For example, since 12 = 4 × 3, 12 is smooth over the sets *A*_{1} = {4, 3}, *A*_{2} = {2, 3}, and [math]\displaystyle{ \mathbb{Z} }[/math], however it would not be smooth over the set *A*_{3} = {3, 5}, as 12 contains the factor 4 = 2^{2}, which is not in *A*_{3}.

Note the set *A* does not have to be a set of prime factors, but it is typically a proper subset of the primes as seen in the factor base of Dixon's factorization method and the quadratic sieve. Likewise, it is what the general number field sieve uses to build its notion of smoothness, under the homomorphism [math]\displaystyle{ \phi:\mathbb{Z}[\theta]\to\mathbb{Z}/n\mathbb{Z} }[/math].^{[13]}

## See also

## Notes and references

- ↑ "P-Smooth Numbers or P-friable Number" (in en-US). 2018-02-12. https://www.geeksforgeeks.org/p-smooth-numbers-p-friable-number/.
- ↑ Weisstein, Eric W.. "Smooth Number" (in en). http://mathworld.wolfram.com/SmoothNumber.html.
- ↑ Hellman, M. E.; Reyneri, J. M. (1983).
*Fast computation of discrete logarithms in*GF*(q)*. 3–13. doi:10.1007/978-1-4757-0602-4_1. ISBN 978-1-4757-0604-8. - ↑ Sloane, N. J. A., ed. "Sequence A003586 (3-smooth numbers)". OEIS Foundation. https://oeis.org/A003586.
- ↑ "Python: Get the Hamming numbers upto a given numbers also check whether a given number is an Hamming number" (in en). https://www.w3resource.com/python-exercises/challenges/1/python-challenges-1-exercise-25.php.
- ↑ "Problem H: Humble Numbers". https://www.eecs.qmul.ac.uk/~pbo/ACM/archive/00001.html.
- ↑ Sloane, N. J. A., ed. "Sequence A002473 (7-smooth numbers)". OEIS Foundation. https://oeis.org/A002473.
- ↑ Aaboe, Asger (1965), "Some Seleucid mathematical tables (extended reciprocals and squares of regular numbers)",
*Journal of Cuneiform Studies***19**(3): 79–86, doi:10.2307/1359089. - ↑ Longuet-Higgins, H. C. (1962), "Letter to a musical friend",
*Music Review*(August): 244–248. - ↑
*Hamming's exercise in SASL*, 1981, Report EWD792. Originally a privately circulated handwritten note, http://www.cs.utexas.edu/users/EWD/ewd07xx/EWD792.PDF. - ↑ Naccache, David; Shparlinski, Igor (17 October 2008).
*Divisibility, Smoothness and Cryptographic Applications*. http://eprint.iacr.org/2008/437.pdf. Retrieved 26 July 2017.f - ↑ Tanaka, Keisuke; Suga, Yuji (20 August 2015) (in en).
*Advances in Information and Computer Security: 10th International Workshop on Security, IWSEC 2015, Nara, Japan, August 26-28, 2015, Proceedings*. Springer. pp. 49–51. ISBN 9783319224251. https://books.google.com/books?id=BatnCgAAQBAJ&q=average+smooth+part+integer&pg=PA49. - ↑ Briggs, Matthew E. (17 April 1998). "An Introduction to the General Number Field Sieve". Blacksburg, Virginia: Virginia Polytechnic Institute and State University. https://www.math.vt.edu/people/brown/doc/briggs_gnfs_thesis.pdf.

## Bibliography

- G. Tenenbaum,
*Introduction to analytic and probabilistic number theory*, (AMS, 2015) ISBN 978-0821898543 - A. Granville,
*Smooth numbers: Computational number theory and beyond*, Proc. of MSRI workshop, 2008

## External links

The On-Line Encyclopedia of Integer Sequences (OEIS)
lists *B*-smooth numbers for small *B*s:

- 2-smooth numbers: A000079 (2
^{i}) - 3-smooth numbers: A003586 (2
^{i}3^{j}) - 5-smooth numbers: A051037 (2
^{i}3^{j}5^{k}) - 7-smooth numbers: A002473 (2
^{i}3^{j}5^{k}7^{l}) - 11-smooth numbers: A051038 (etc...)
- 13-smooth numbers: A080197
- 17-smooth numbers: A080681
- 19-smooth numbers: A080682
- 23-smooth numbers: A080683

Original source: https://en.wikipedia.org/wiki/Smooth number.
Read more |