Papers
Topics
Authors
Recent
Search
2000 character limit reached

Straight-line programs for the solutions of Pell's equation

Published 23 Sep 2026 in math.NT | (2609.28649v1)

Abstract: For nonsquare d≥2d\ge 2, we construct fixed straight-line programs for the least non-trivial solution (X1,Y1)(X_1,Y_1) of x<sup>2−dy<sup>2=1x<sup>2-dy<sup>2=1, using addition, truncated subtraction, multiplication, integer division, exponentiation, and remainder. A geometric-sum identity recovers (X1,Y1)(X_1,Y_1) 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 $94$ operations, with intermediate bit lengths bounded by 2<sup>2<sup>2<sup>O(d)2<sup>{2<sup>{2<sup>{O(d)}}}. Four additional operations give a $98$-operation program with the bound 2<sup>2<sup>O(d)2<sup>{2<sup>{O(d)}}. Hua's bound gives corresponding programs with $103$ and $107$ operations and replaces O(d)O(d) by O(dlog⁡d)O(\sqrt d\log d) in these size bounds. Once the fundamental solution is known, generating-function formulas compute the nn-th positive solution in $21$ further operations by extracting its coordinates as base-bb digits. We prove that 2X1(X1+1)−12X_1(X_1+1)-1 is the least integer base for which both formulas are defined and correct for every n≥1n\ge1.

Authors (2)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.