The Exercise
Let be a real number and a rational number in lowest terms, with . The theorem says that if , then is one of the rational numbers obtained by truncating, at some step, the expansion of into integer parts described below. The bound is the one in Legendre’s theorem.
Continued Fractions
The continued fraction of a real number is the sequence of integers obtained by taking integer parts and inverting remainders: starting from , (1) and the sequence ends at when is an integer.
The th convergent of is the rational number obtained by stopping the expansion at , (2)
The Claim
Theorem 1. There are a real number , with continued fraction , and a rational number in lowest terms such that (3)✦
This is the negation of the book’s theorem, with its bound exactly as the book writes it.
What Is Checked
The claim is stated over the real numbers, the rational numbers with their denominators in lowest terms, and the continued fraction (1) of a real number with its convergents (2). What the library proves about these constructions is the existence of the counterexample (3).