Straight-line programs for the solutions of Pell's equation
In the authors' words
For nonsquare , we construct fixed straight-line programs for the least non-trivial solution of , using addition, truncated subtraction, multiplication, integer division, exponentiation, and remainder. A geometric-sum identity recovers from the coordinate sums of an initial segment of Pell solutions, without knowing how many solutions were summed. Weighted binary encodings make these sums accessible to arithmetic computation. Counting operations with reuse of computed values, one program uses operations, with intermediate bit lengths bounded by . Four additional operations give a -operation program with the bound . Hua's bound gives corresponding programs with and operations and replaces by in these size bounds. Once the fundamental solution is known, generating-function formulas compute the -th positive solution in further operations by extracting its coordinates as base- digits. We prove that is the least integer base for which both formulas are defined and correct for every .
Appeared: Friday, September 25. arXiv. Preprint, not yet peer-reviewed.
Authors' comment: 27 pages