Paper record

W2077098038

On the Computational Complexity of Determining the Solvability or Unsolvability of the Equation X 2 - DY 2 = -1

Jeffrey C. Lagarias

Year
1980
Venue
Transactions of the American Mathematical Society
References
37
Cited by
67

Details and counts from OpenAlex.

Abstract

The problem of characterizing those DD for which the Diophantine equation X2−DY2=−1X^2 - DY^2 = - 1 is solvable has been studied for two hundred years. This paper considers this problem from the viewpoint of determining the computational complexity of recognizing such DD. For a given DD, one can decide the solvability or unsolvability of X2−DY2=−1X^2 - DY^2 = - 1 using the ordinary continued fraction expansion of \sqrtD\sqrtD, but for certain DD this requires more than 13\sqrtD(log⁡D)−1\frac{1}{3} \sqrtD (\log D)^{-1} computational operations. This paper presents a new algorithm for answering this question and proves that this algorithm always runs to completion in O(D1/4+ϵ)O(D^{1/4+\epsilon}) bit operations. If the input to this algorithm includes a complete prime factorization of DD and a quadratic nonresidue nin_i for each prime pip_i dividing DD, then this algorithm is guaranteed to run to completion in O((log⁡D)5(log⁡log⁡D)(log⁡log⁡log⁡D))O((\log D)^5(\log \log D)(\log \log \log D)) bit operations. This algorithm is based on an algorithm that finds a basis of forms for the 2-Sylow subgroup of the class group of binary quadratic forms of determinant DD.