Write a point as a binary expansion
Apart from the harmless choice of expansion at dyadic rationals, the binary shift representation of the doubling map is
Every open interval contains a binary cylinder specified by a finite initial word. Given cylinders and , choose a binary sequence beginning with the word for and place the word for after it. A suitable iterate shifts the second word to the front, proving topological transitivity.
Given any cylinder, repeat its defining word forever. The resulting point is periodic and lies in that cylinder, so periodic points are dense.
Finally, given and any neighbourhood, choose so large that changing only digits after the first stays inside that neighbourhood. Choose the later tail so that after shifts it is either or , whichever is farther from . The separation is at least , so any smaller fixed constant, for example , proves sensitivity. Hence the doubling map is chaotic in Devaney's sense.
Starting with , the continued-fraction algorithm sets
unless is already an integer. This gives
Every finite continued fraction is rational, since it is built from integers by finitely many additions and reciprocals. Conversely, if is rational in lowest terms, then
When , the next complete quotient is . Thus each step is an application of the Euclidean algorithm and replaces the denominator by a smaller nonnegative remainder. The process must terminate. This proves the termination criterion for a simple continued fraction.
For ,
and
Finally,
so the complete quotients repeat. Hence the continued fraction of the square root of three is

There are unlisted articles, also show them or only show them.