Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-28
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

The complete quotients of D satisfy the Pn,Qn recurrence

Statement

Let D be a positive integer that is not a square, let α0:=D, and let an,αn be the continued-fraction digits and complete quotients of D. Then there are unique integer pairs (Pn,Qn) with P0=0,Q0=1, such that for every n≥0, αn=D+PnQn,Qn>0,Qn∣D−Pn2. Moreover, if an=⌊αn⌋, then Pn+1=anQn−Pn,Qn+1=D−Pn+12Qn,αn+1=D+Pn+1Qn+1.

Facts & Assumptions

Given: A positive nonsquare integer D, the real number α0=D, and its complete quotients αn.

[F1]

For each complete quotient αn, the continued-fraction algorithm chooses the unique integer an with an≤αn<an+1, and if αn≠an then αn+1=1/(αn−an) (Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1givenbasealgebra

At n=0 one has α0=D=D+01, so the claimed form holds with P0=0 and Q0=1, and certainly Q0>0 and Q0∣D−P02=D.

1.2F1ihalgebra

Assume αn=D+PnQn,Qn>0,Qn∣D−Pn2. Let an be the integer from [F1], and set Pn+1:=anQn−Pn. Since αn−an>0, one has D−Pn+1=D+Pn−anQn>0, so D−Pn+12>0. Also Pn+1≡−Pn(modQn), hence Pn+12≡Pn2(modQn) and therefore Qn∣D−Pn+12. Thus Qn+1:=D−Pn+12Qn is a positive integer. Rationalizing the denominator now gives αn+1=1αn−an=QnD−Pn+1=D+Pn+1Qn+1.

2.1step 1.1step 1.2discharge-inductionalgebra∎

If also D+PQ=D+P′Q′ with Q,Q′>0, then cross-multiplication gives (Q′−Q)D=QP′−Q′P. If Q′≠Q, this would make D rational, impossible because D is a positive nonsquare integer. Hence Q′=Q, and then P′=P. So the normalized pair (Pn,Qn) is unique at each stage. Steps 1.1 and 1.2 therefore prove the statement for all n≥0.

Depends on

Used by

Dependency tree · two levels

6 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources