Continued fractions are an alternative and fascinating way of representing numbers. A rational number gives a finite continued fraction; an irrational one gives an infinite one. When the continued fraction is periodic, its value is found by solving a second-degree equation: this is where the topic connects to the rest of the chapter.