A continued fraction writes a number as a nested tower of fractions. It looks
baroque, but it is the single best way to approximate a real number by simple fractions — and it
falls straight out of the
Every continued fraction is a stack of "integer part plus a reciprocal":
For a rational number this terminates and the partial quotients
Truncating a continued fraction gives its convergents — and these are, in a precise
sense, the best possible rational approximations for their size of denominator. The
convergents of
The famous
Irrational numbers give infinite continued fractions — and for quadratic
irrationals like
This periodicity is not a curiosity — it is the engine that solves