English

Polynomial-Time Evaluation of Aardal-Lenstra Denumerants via Constant Term Method

Combinatorics 2026-07-13 v1

Abstract

Aardal and Lenstra systematically studied hard knapsack problems of the form a1x1++anxn=ba_1x_1+\cdots+a_nx_n=b, where ai=piM+riNa_i=p_iM+r_iN, (M,N)(M,N) is a coprime pair of positive integers, and the integers pi,ri|p_i|, |r_i| are small relative to MM and NN. We investigate the corresponding challenging denumerant problem (i.e., counting the number of nonnegative integer solutions) and present a polynomial-time algorithm. This eliminates the computational bottlenecks caused by large values of MM, NN and bb. The proposed algorithm achieves a time complexity of O(n4Δ2lognlogΔ)O(n^4\Delta^2\log n\log\Delta), which depends solely on the parameters nn and Δ=maxi,jripjrjpi\Delta=\max_{i,j}|r_i p_j - r_j p_i|. Moreover, we consider the problem of expressing a general vector (a1,,an)(a_1,\dots,a_n) in the above form using the LLL algorithm.

Keywords

Cite

@article{arxiv.2607.11477,
  title  = {Polynomial-Time Evaluation of Aardal-Lenstra Denumerants via Constant Term Method},
  author = {Jinlong Tang and Guoce Xin and Zihao Zhang},
  journal= {arXiv preprint arXiv:2607.11477},
  year   = {2026}
}