MCP
arXivarXiv
Preprint
Published: June 12, 2020
math.NT
v2

Algorithms to Uniformly Generate Random Factored Smooth Integers

Abstract
Let x≥y>0x\ge y>0 be integers. A positive integer is yy-smooth if all its prime divisors are at most yy. Let I^¨(x,y)Ψ(x,y) count the number of yy-smooth integers up to xx. We present several algorithms that will generate an integer n≤xn\le x at random, with known prime factorization, such that nn is yy-smooth. We begin by describing algorithms to compute I^¨(x,y)Ψ(x,y) exactly and to enumerate yy-smooth integers up to xx in lexicographic order by prime divisor. Both of these are based on Buchstab's identity, and were likely known before. Then we present an algorithm that accepts as input a parameter rr, 0≤r<10\le r<1, and returns the integer nn that is at position ⌊rI^¨(x,y)⌋\lfloor rΨ(x,y)\rfloor in the lexicographic ordering of all yy-smooth integers up to xx. Here position 0 is the first position. Thus, nn is generated uniformly so long as rr is chosen uniformly. This algorithm has a running time of O(I^¨(x,y)log⁡log⁡y)O(Ψ(x,y)\log\log y) arithmetic operations. We then explore the tradeoff between speed and rigor. By relaxing the uniformity of the output and allowing for multiple heuristics in our runtime analysis, we improve the running time to O((log⁡x)3log⁡log⁡x) O\left( \frac{ (\log x)^3 }{\log\log x} \right) arithmetic operations. We conclude with a sample run by generating a 1000010000-smooth integer ≤10100\le 10^{100}.
0
AI overview
Reviews
Citation graph
Structured
This paper does not have an AI preview yet
Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first