This site is supported by donations to The OEIS Foundation.
Continued fractions
From OeisWiki
The unqualified term continued fraction implies simple continued fraction (also called regular continued fraction).
Contents 
Simple continued fractions
Finite simple continued fractions
A finite simple continued fraction is an expression of the form
a0 
ak 
1 ≤ k ≤ n 
n 
K 
Finite simple continued fractions obviously represent rational numbers, and every rational number can be represented in precisely one way as a finite simple continued fraction.
Infinite simple continued fractions
A infinite simple continued fraction is an expression of the form
a0 
ak 
k ≥ 1 
1 
K 
A compact representation is
A compact notation is
A sequence representation is
Every infinite simple continued fraction represent an irrational number, and every irrational number can be represented in precisely one way as an infinite simple continued fraction.
Eventually periodic infinite simple continued fractions
Every eventually periodic infinite simple continued fraction represent an irrational quadratic number (root of an irreducible quadratic polynomial with integer coefficients), and every irrational quadratic number can be represented in precisely one way as an eventually periodic infinite simple continued fraction, i.e.
m 
k > 0 
an = an +k 
n ≥ m 
All nonquadratic irrational numbers have nonperiodic infinite simple continued fractions.
Simple continued fractions convergents
An infinite simple continued fraction representation for an irrational number is mainly useful because its initial segments provide excellent rational approximations to the number. These rational numbers are called the convergents of the continued fraction. Evennumbered convergents are smaller than the original number, while oddnumbered ones are bigger.
The first few convergents (numbered from0 
or equivalently
with
 i.e.
 i.e.
giving
with
 i.e.
 i.e.
where
These recurrence relations (a special case of generalized continued fractions convergents) are due to John Wallis.
Continued fraction  Closed form  Decimal expansion  Anumber  



CF: Conv. nums:
Conv. dens:
Base 10:  


CF:
Conv. nums: Conv. dens: Base 10:  


CF:
Conv. nums: Conv. dens: Base 10:  


CF:
Conv. nums: Conv. dens: Base 10:  

BesselI[1, 2]/BesselI[0, 2] 

CF: Conv. nums: Conv. dens: Base 10:  

BesselI[0, 2]/BesselI[1, 2] 

CF: Conv. nums: Conv. dens: Base 10:  


CF: Conv. nums: Conv. dens: Base 10: 
Generalized continued fractions
Generalized continued fractions are also called general continued fractions.
Finite generalized continued fractions
A finite generalized continued fraction is an expression of the form
a 0 
bk 
1 ≤ k ≤ n 
ak 
1 ≤ k ≤ n 
n 
K 
Finite generalized continued fractions obviously represent rational numbers, although rational numbers can be represented in many (finitely many?) ways as a finite generalized continued fraction.
Infinite generalized continued fractions
A infinite generalized continued fraction is an expression of the form
a0 
bk 
k ≥ 1 
ak 
k ≥ 1 
K 
A compact representation is
A compact notation could be
A sequence representation could be
Every infinite generalized continued fraction represent an irrational number, although irrational numbers can be represented in many (infinitely many?) ways as an infinite generalized continued fraction.
??? Eventually periodic infinite generalized continued fractions ???
The numbers having at least one eventually periodic infinite generalized continued fraction representation are... ?????
where
m 
k > 0 

n ≥ m 
The numbers with only nonperiodic infinite generalized continued fraction representations are ?????. (Are there such numbers...?)
Generalized continued fractions convergents
The first few convergents (numbered from 0) are
or equivalently
with
 i.e.
 i.e.
giving
with
 i.e.
 i.e.
where
These recurrence relations are due to John Wallis.
Continued fraction  Closed form  Decimal expansion  Anumber  



CF:
Conv. nums: Conv. dens: Base 10:  


CF: Conv. nums: Conv. dens: Base 10:  


CF: Conv. nums: Conv. dens: Base 10:  


CF: Conv. nums: Conv. dens: Base 10:  


CF: Conv. nums: Conv. dens: Base 10: 
Gauss' Kettenbruch notation
Karl Friedrich Gauss evoked the more familiar product operatorΠ 
K 
See also
 Continued fractions (nested fractions)
 Continued radicals (nested radicals)
 Table of convergents constants
External links
 Marek Wolf, Continued fractions constructed from prime numbers, 2010.
 A Continued Fraction Calculator version 4Oct10, © 20032010 Dr Ron Knott, updated: 4 October 2010.