On the Continued Fraction Expansion of Almost All Real Numbers
Abstract
By a classical result of Gauss and Kuzmin, the continued fraction expansion of a ``random'' real number contains each digit a∈N with asymptotic frequency 2(1+1/(a(a+2))). We generalize this result in two directions: First, for certain sets A⊂N, we establish simple explicit formulas for the frequency with which the continued fraction expansion of a random real number contains a digit from the set A. For example, we show that digits of the form p-1, where p is prime, appear with frequency 2(π2/6). Second, we obtain a simple formula for the frequency with which a string of k consecutive digits a appears in the continued fraction expansion of a random real number. In particular, when a=1, this frequency is given by |2(1+(-1)k/Fk+2)|, where Fn is the nth Fibonacci number. Finally, we compare the frequencies predicted by these results with actual frequencies found among the first 300 million continued fraction digits of π, and we provide strong statistical evidence that the continued fraction expansion of π behaves like that of a random real number.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.