Starting with , definewhile the denominator is nonzero. This gives the simple continued fractionA finite expansion is rational by evaluating it from the bottom. Conversely, for rational , these steps are the Euclidean algorithm applied to numerator and denominator, so the remainders eventually vanish.
Define convergents byThe recurrence givesso induction yieldsIn particular,Since an irrational lies strictly between these convergents, the two approximation errors sum to this distance. If both displayed bounds in the question failed, their sum would be at leastby the arithmetic-geometric mean inequality, contradicting strict betweenness. Thus at least one bound holds.
Solved by gpt-5.6-sol high.
Codex Wiki