arXiv:2611.04730math.NTNov 2026

Manuscript Offprint

arXiv:2611.04730

Finding Integer Roots of Polynomials in Nearly Optimal Time

Yansong Feng, Itamar Nir

Abstract

Let f∈Z[x]f \in \mathbb{Z}[x] be a polynomial of degree nn with integer coefficients of absolute value less than 2b2^b. Using Pan's approximate factorization theorem, we give a deterministic algorithm that finds all distinct integer roots of ff in O~(nb)\tilde{O}(nb) bit operations. This matches the bit size of the input up to logarithmic factors and does not require ff to be square-free. Since we were unable to verify parts of the running time analysis of Pan's theorem, we also give a self-contained deterministic algorithm with running time O~(nb+min⁡(n,b)3b2)\tilde{O}(nb + \min(n, b)^3b^2), which is O~(nb)\tilde{O}(nb) whenever b≤n1/4b \leq n^{1/4}. This answers a question of Harvey and Hittmeir (2022), who asked whether integer roots can be found deterministically in quasilinear time, conditionally on Pan's theorem, and unconditionally for b≤n1/4b \leq n^{1/4}. The fastest previous deterministic algorithm, due to Nir, takes O~(n3/2b)\tilde{O}(n^{3/2}b) bit operations and works only for square-free polynomials.

Instead of pp-adic lifting, we combine approximate complex root finding with exact polynomial evaluation. We first approximate the complex roots of the polynomial formed by the top min⁡(n,b)+1\min(n, b) + 1 coefficients of ff. Every integer root rr of ff with ∣r∣≥2|r| \geq 2 lies within distance 2 of some complex root of this truncated polynomial. Rounding the real parts of the approximate roots therefore gives a list of O(min⁡(n,b))O(\min(n, b)) candidate integers that is guaranteed to contain all integer roots of ff. Although a single candidate can have up to bb bits, a bound via the Mahler measure shows that the bit lengths of all candidates sum to O(b)O(b). This allows us to test all candidates by exact multipoint evaluation in O~(nb)\tilde{O}(nb) bit operations.

Contents

1 Introduction2
1.1 Overview of the algorithm2
1.2 Related work3
2 Bounds on roots of polynomials5
3 The algorithm7
3.1 Algorithmic tools7
3.2 Proof of Theorem 1.1(b)8
A An elementary candidate search12
Acknowledgments13
AI methodology13

*Academy of Mathematics and Systems Science, Chinese Academy of Sciences. Email: fengyansong@amss.ac.cn. †Tel Aviv University. Email: nirgottlieb@mail.tau.ac.il. This research was funded by the European Union (ERC, EACTP, 101142020). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.