# Correspondence between Rational Numbers and Simple Finite Continued Fractions

Jump to navigation
Jump to search

It has been suggested that this page or section be merged into Rational Numbers and Simple Finite Continued Fractions are Equivalent.In particular: this has the more precise (or complete) statement, merge target has the better titleTo discuss this page in more detail, feel free to use the talk page.When this work has been completed, you may remove this instance of `{{Mergeto}}` from the code. |

This page has been identified as a candidate for refactoring of basic complexity.In particular: multiple resultsUntil this has been finished, please leave
`{{Refactor}}` in the code.
Because of the underlying complexity of the work needed, it is recommended that you do not embark on a refactoring task until you have become familiar with the structural nature of pages of $\mathsf{Pr} \infty \mathsf{fWiki}$.To discuss this page in more detail, feel free to use the talk page.When this work has been completed, you may remove this instance of `{{Refactor}}` from the code. |

This article needs to be tidied.Please fix formatting and $\LaTeX$ errors and inconsistencies. It may also need to be brought up to our standard house style.To discuss this page in more detail, feel free to use the talk page.When this work has been completed, you may remove this instance of `{{Tidy}}` from the code. |

## Theorem

Let $\Q$ be the set of rational numbers.

Let $S$ be the set of all simple finite continued fractions in $\Q$, whose last partial denominators is not $1$.

The mappings:

- $\Q \to S$ that sends an rational number to its continued fraction expansion
- $S \to \Q$ that sends a simple finite continued fractions to its value

### Even length

Let $S_0$ be the set of all simple finite continued fractions in $\Q$ of even length.

The mappings:

- $\Q \to S$ that sends an rational number to:
- its continued fraction expansion $\sqbrk {a_0, \ldots, a_n}$ if $n$ is even
- $\sqbrk {a_0, \ldots, a_n - 1, 1}$ if $n$ is odd

- $S \to \Q$ that sends a simple finite continued fractions to its value

### Odd length

Let $S_1$ be the set of all simple finite continued fractions in $\Q$ of odd length.

The mappings:

- $\Q \to S$ that sends an rational number to:
- its continued fraction expansion $\sqbrk {a_0, \ldots, a_n}$ if $n$ is odd
- $\sqbrk {a_0, \ldots, a_n - 1, 1}$ if $n$ is even

- $S \to \Q$ that sends a simple finite continued fractions to its value

## Proof

Note that indeed Simple Finite Continued Fraction has Rational Value.

The result follows from:

- Value of Continued Fraction Expansion of Rational Number equals Number Itself
- Continued Fraction Expansion of Value of Simple Finite Continued Fraction equals Expansion Itself

$\blacksquare$