English

Deterministically finding an element of large order in $\mathbb{Z}_N^*$

Data Structures and Algorithms 2026-05-12 v1 Discrete Mathematics Number Theory

Abstract

In this paper, we present an improvement for the problem of deterministically finding an element of large multiplicative order modulo some integer NN. This problem arises as a key subroutine in current deterministic factoring algorithms, such as those proposed by Harvey and Hittmeir [Mathematics of Computation, 2021]. Specifically, let D<ND<N be positive integers with \begin{equation}\label{eq:abs} D > \exp\left(\sqrt{2\log N \log \log N}\right). \end{equation} We give a deterministic algorithm that does one of the following: Returns an element aZNa \in \mathbb{Z}_N^* with ordN(a)>D\operatorname{ord}_N(a) > D; Returns a non-trivial factor of NN; Or reports that NN is prime. The running time of our algorithm is O(D1/2+o(1))O(D^{1/2 + o(1)}). Similar results were independently and concurrently obtained by Harvey and Hittmeir [arXiv:2601.11131, 2026] in work that appeared while this manuscript was in preparation. Prior to these works, the best known algorithm for finding an element with order larger than DD was given by Oznovich and Volk [SODA 2026], requiring D>N16D > N^{\frac{1}{6}}. We also present a simpler algorithm that applies for any D<ND < N and runs in O(D2.5+o(1)polylog(N))O(D^{2.5+o(1)}\operatorname{polylog}(N)).

Keywords

Cite

@article{arxiv.2605.09592,
  title  = {Deterministically finding an element of large order in $\mathbb{Z}_N^*$},
  author = {Itamar Nir},
  journal= {arXiv preprint arXiv:2605.09592},
  year   = {2026}
}