English

On the Complexity of the Skolem Problem at Low Orders

Computational Complexity 2025-10-27 v2 Logic in Computer Science

Abstract

The Skolem Problem asks to determine whether a given linear recurrence sequence (LRS) unn=0\langle u_n \rangle_{n=0}^\infty over the integers has a zero term, that is, whether there exists nn such that un=0u_n = 0. Decidability of the problem is open in general, with the most notable positive result being a decision procedure for LRS of order at most 4. In this paper we consider a bounded version of the Skolem Problem, in which the input consists of an LRS unn=0\langle u_n \rangle_{n=0}^\infty and a bound NNN \in \mathbb N (with all integers written in binary), and the task is to determine whether there exists n{0,,N}n\in\{0,\ldots,N\} such that un=0u_n=0. We give a randomised algorithm for this problem that, for all dNd\in \mathbb N, runs in polynomial time on the class of LRS of order at most dd. As a corollary we show that the (unrestricted) Skolem Problem for LRS of order at most 4 lies in coRP\mathsf{coRP}, improving the best previous upper bound of NPRP\mathsf{NP}^{\mathsf{RP}}. The running time of our algorithm is exponential in the order of the LRS -- a dependence that appears necessary in view of the NP\mathsf{NP}-hardness of the Bounded Skolem Problem. However, even for LRS of a fixed order, the problem involves detecting zeros within an exponentially large range. For this, our algorithm relies on results from pp-adic analysis to isolate polynomially many candidate zeros and then test in randomised polynomial time whether each candidate is an actual zero by reduction to arithmetic-circuit identity testing.

Keywords

Cite

@article{arxiv.2507.11234,
  title  = {On the Complexity of the Skolem Problem at Low Orders},
  author = {Piotr Bacik and Joël Ouaknine and James Worrell},
  journal= {arXiv preprint arXiv:2507.11234},
  year   = {2025}
}

Comments

15 pages