A positive integer is called $B$-smooth if none of its prime factors are greater than $B$.
What is a good algorithm to find the $B$-smooth integer $m$ near $n$ $(m \ge n)$?
Obvious choices:
- Factorials $\ge n$
- Smooth perfect powers $\ge n$: Choose a small prime basis consisting primes $\le B$ and compute the product of their powers greater than $n$
My criteria for good is that $m$ should be $B$-smooth, the number of divisors of $m$ should be relatively small. It doesn't necessarily have to have the absolute least number of divisors. It needs to be near $n$ (not necessarily the nearest).
Context: I am doing a powerset of divisors of $m$ computation after choosing $m$ and would like to keep $B$ small and at the same time not have an unmanageably large exponential blowup of the divisors.
and
Eric Bach and Jonathan Sorenson. An Algorithm to Generate Random Factored Smooth Integers. ANTS XIV poster session. Arxiv.org url (accessed Nov 8, 2022): https://arxiv.org/abs/2006.07445
The running time is $O\bigg({{(\log x)^3} \over {\log \log x}}\bigg)$.