Proof that the continued fraction of a real number is finite exactly when the number is rational
Builds on Continued fraction expansion of a real numberFloor functionMathematical induction
Proof
We use the notation , of the continued fraction expansion of : , , and when .
- Suppose the expansion is finite. Then the process stops at some , so is an integer.
- For , the process did not stop at , so . Solving gives .
- If is rational, then so is , since is an integer.
- By step 1 and step 3, applied for in turn, each is rational. In particular is rational.
- Conversely, let with integers and , . We show that the process stops.
- Claim: if the process has not stopped before step , then with integers and , and .
- For , take and .
- Suppose the claim holds for , and the process does not stop at , so . Since is the floor of , we have .
- Put , an integer. Then , so by step 8.
- Then . Put and . We get . This proves the claim by induction on .
- If the process had not stopped before step , the claim would give , which is impossible. So the process stops at some , and the expansion of is finite.
- So the expansion of is finite if and only if is rational.
Idea
For a fraction , each step of the algorithm replaces the denominator by a smaller positive integer, exactly as in the Euclidean algorithm. A decreasing sequence of positive integers must stop. Conversely, a finite expansion can be folded back from its last term, and each step keeps the number rational.
Reading path
To understand this page from the ground up, read these 42 pages in order. The foundations come first. The path takes the proofs Proof of the approximation property of the supremum, Proof that the reals form an ordered field, with the Cauchy sequence construction, Proof that the reals are Archimedean from the completeness axiom.
- Construction of the reals from Cauchy sequences concept
- Continued fraction definition
- Element definition
- Integers object
- Mathematical induction concept
- Ordered field definition
- Proposition concept
- Rational numbers object
- Real numbers object
- Set bounded above definition
- Simple continued fraction definition
- Set definition
- Ring of integers statement
- Archimedean ordered field definition
- Implication definition
- Predicate definition
- The reals form a field statement
- Supremum definition
- Continued fraction expansion of a real number definition
- Ordered pair definition
- The rationals form a field statement
- Universal quantifier definition
- Completeness axiom statement
- Cartesian product definition
- Subset definition
- The rationals form an ordered field statement
- Binary relation definition
- Order on the reals definition
- Antisymmetric relation definition
- Reflexive relation definition
- Transitive relation definition
- Preorder definition
- Partial order definition
- Total order definition
- Proof that the reals form an ordered field, with the Cauchy sequence construction proof
- The reals form an ordered field statement
- Proof of the approximation property of the supremum proof
- Approximation property of the supremum statement
- Proof that the reals are Archimedean from the completeness axiom proof
- The reals are Archimedean statement
- Floor function definition
- Proof that the continued fraction of a real number is finite exactly when the number is rational proof
Where this leads
5 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Simple_continued_fraction, Finite continued fractions
About this page
| Tag | 7EDZQY5MV9 |
|---|---|
| URI | m2://7EDZQY5MV9 |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A55 |
| Proves | The continued fraction of a rational number terminates |
| Uses | Continued fraction expansion of a real number, Floor function, Mathematical induction |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.