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 continued-fraction algorithm terminates exactly on rational numbers
Statement
For a real number , the continued-fraction algorithm terminates if and only if is rational. When is rational, the continued-fraction digits are exactly the successive quotient digits of the Euclidean algorithm.
Facts & Assumptions
Given: A real number and its continued-fraction algorithm.
If with , then there are unique integers with (Division with remainder in : for and there are unique with and ).
A terminating continued-fraction expansion is a finite regular continued fraction, and every finite regular continued fraction equals its last convergent (The continued-fraction algorithm for real numbers, Convergents are given by the standard recurrences and tail formula).
Every complete quotient after the first is greater than (Complete quotients in the continued-fraction algorithm).
Proof
If is an integer, the algorithm stops immediately. Otherwise write with integers and . Applying [F1] to. [given, F1, algebra] and gives so Thus the next numerator is the previous denominator.
Conversely, if the algorithm terminates, then by [F2] the original number is a finite regular continued fraction and hence rational.
Let , and suppose. [F1, F3, induction, algebra] is not an integer. Since , fact [F3] gives , so . Applying [F1] gives Any common divisor of and also divides , so . Hence this is already the reduced form and therefore .
When is a nonintegral rational, step 1.1 gives So step 1.3 applies successively to as long as they remain nonintegral. Their positive integer numerators then form a strictly decreasing sequence, which cannot continue forever. Therefore some complete quotient is an integer, and the algorithm terminates.
The equations in steps 1.1 and 1.3 are exactly the Euclidean divisions of the successive numerator-denominator pairs, so the continued-fraction digits are. [step 1.1, step 1.3, F1] the Euclidean quotient digits.
Depends on
- Complete quotients in the continued-fraction algorithm
- The continued-fraction algorithm for real numbers
- Division with remainder in $\mathbb{Z}$: for $a \in \mathbb{Z}$ and $b > 0$ there are unique $q, r \in \mathbb{Z}$ with $a = qb + r$ and $0 \le r < b$
- Convergents are given by the standard recurrences and tail formula
Used by
Dependency tree · two levels
26 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
- Peter Hackman, Elementary Number Theory (standard reference, not scraped)
- William Stein, Elementary Number Theory: Primes, Congruences, and Secrets (standard reference, not scraped)