Home> urticator.net Search About This Site > Domains Glue Stories Computers Driving Games Humor Law > Math Numbers Science > Continued Fractions Game Theory (Section) Group Theory Probability Miscellaneous
The Markov Equation Equivalence The Markov Constant The Pattern Group Elements and Matrices The Random Thoughts Symmetries Chains and Denominators The Discriminant Properties of Rotations Reflection Symmetry A Nice Correspondence |
Approximation QualityWhile I was working on another essay, I learned a bunch about continued fractions. Or maybe re-learned? But some parts were definitely new to me. In any case, afterward I realized that it would be easy to write up a nice summary, and here it is.What were my sources? The basic framework came from this old favorite, which has a chapter about continued fractions.
[Hua] Introduction to Number Theory I reviewed the following two Wikipedia articles to make sure I hadn't missed any major points.
[CF] Continued fraction In the process, I found some fun minor points that I wanted to add; I'll be sure to give credit to the appropriate article when the time comes. There are also a few other articles that are relevant, but I'll just link to them directly. I also added a few missing pieces that must be so obvious to people who think seriously about these things that they never even bother to mention them. Naturally I'll be sure to give myself credit when the time comes. Now let's get started! The first thing we need to do is set up some better notation than in the essay Continued Fractions. Given a number x, we can run the first algorithm to obtain the continued fraction expansion, as before, …
[a0, a1, a2, a3, … ] … and then we can run the second algorithm to obtain the convergents pn/qn.
Last time, I used that YXZ schema to explain how to fill in the table, but now we can just write down the actual definitions.
pn+1 = an+1pn + pn−1 One point I haven't mentioned yet is that the convergents alternate—the even-numbered ones approach x from below while the odd-numbered ones approach x from above. Even the initial values follow the same pattern, more or less: p−2/q−2 is zero, which is below x in the normal case when x is positive, and of course p−1/q−1 is infinite. We still don't consider those values to be convergents, though. For some reason, the theory of continued fractions is full of inequalities that are almost strict. For example, we have qn+1 > qn, with equality when n = 0 and a1 = 1. The other caveat that I'm generally not even going to mention is that the subscripts have to be in range. In the example, that means n ≥ 0, and also n+1 ≤ nmax if the expansion terminates (i.e., if x is rational). Next, let's derive a result that's fundamental not because it's strong but because it's the theme on which we'll construct many variations. The starting point is an identity that's easy to prove using induction and the definitions of pn+1 and qn+1. It holds all the way down to n = −2.
pn+1qn − pnqn+1 = (−1)n If you like, you can think of the identity in terms of 2×2 matrices. The left-hand side is a determinant (negated), and determinants stay the same when you add a multiple of one column to another and change sign when you swap columns. Dividing by qnqn+1 gives us an equation about convergents.
pn+1/qn+1 − pn/qn = (−1)n/qnqn+1 Taking the absolute value and using the fact that qn+1 > qn gives us a simpler equation (with equality when n = 0 and a1 = 1).
|pn+1/qn+1 − pn/qn| < 1/qn2 Then, because the convergents alternate, we know that x has to lie in between (with equality when n+1 = nmax).
|x − pn/qn| < 1/qn2 As it happens, the two caveats can't both apply at the same time, so the inequality is always strict. However, there's another complication. Since n+1 no longer appears as a subscript, it looks like the equation ought to apply when n = nmax, even though the derivation didn't cover that case. Fortunately, we can cover it now by observing that the left-hand side is zero. And that's the result! When x is irrational, it tells us that there are an infinite number of fractions p/q such that |x − p/q| < 1/q2. It's closely related to Dirichlet's approximation theorem. A fraction like that is an unusually good approximation to x, but I shouldn't put it that way because I already used the phrase “good approximation” to mean something else near the end of the essay Continued Fractions. We'll have better words available soon. Can we increase the exponent and find an infinite number of fractions such that |x − p/q| < 1/q2+ε? Almost surely not. In any unit interval, there are q fractions with denominator q, and each covers an interval of size 2/q2+ε, so the total covered size is 2/q1+ε. Call that set of intervals Aq, and define Bq to be the union of all Ai with i ≥ q. The set C of numbers that have an infinite number of suitable approximations is a subset of every Bq, and in fact is exactly the intersection of all of them. But, when ε > 0, the sum over q of 2/q1+ε converges, so that as q becomes large, the size of Bq becomes arbitrarily small. Therefore, C has measure zero. That was an exam problem in the measure theory class I took in college! That result is related to Roth's theorem.
Roth's theorem states that every irrational algebraic number α has approximation exponent equal to 2. In those terms, C is the set of numbers with approximation exponent at least 2+ε, plus the rationals because I didn't bother to exclude them. Now let's return from the infinite and think about individual numbers again. Since we can't increase the exponent, let's add a multiplier, the approximation quality Q, that tells how good an approximation the fraction p/q is to the number x.
|x − p/q| = 1/Qq2 We can easily rearrange that to get the definition of Q.
Q = 1/q2|x − p/q| The name “approximation quality” is one of my contributions. The concept is definitely present in the other sources, but there's no name, and names are important. Here are three nice little results about approximation quality.
That last result has the same kind of corollary as the fundamental result: when x is irrational, there are an infinite number of fractions p/q with Q > R. Hold that thought, we'll come back to it in a minute. We're going to see a lot more of R, so let me mention a couple of things. First, here and in On Rectangular Tilings R means the square root of 5, but in the essay Continued Fractions it means the square root of 3. Sorry about that! Second, why am I giving you a decimal expansion in an essay about continued fractions? Surely what you really want to know is that R is approximately 161/72.
|
See AlsoDiscriminant, The Recurrence Relation, The @ May (2022) September (2022) July (2023) January (2024) |