This site is supported by donations to The OEIS Foundation.

Continued fractions

From OeisWiki
(Redirected from Continued fraction)
Jump to: navigation, search


This article needs more work.

Please help by expanding it!


The unqualified term continued fraction implies simple continued fraction (also called regular continued fraction).

Simple continued fractions

Finite simple continued fractions

A finite simple continued fraction is an expression of the form

where
a0
is the integer part of the continued fraction, the partial quotients
ak , 1   ≤   k   ≤   n
, are positive integers, and
n
is a positive integer. (See Gauss’ Kettenbruch notation for the continued fraction operator
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

where
a0
is the integer part of the continued fraction and the partial denominators
ak , k   ≥   1
, are positive integers, all the partial numerators being 1. (See Gauss’ Kettenbruch notation for the continued fraction operator
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.

and, for some integer
m
and some integer
k > 0
, we have
an = an  + k
for all
n   ≥   m
.

All non-quadratic irrational numbers have non-periodic 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. Even-numbered convergents are smaller than the original number, while odd-numbered ones are bigger.

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 (a special case of generalized continued fractions convergents) are due to John Wallis.

Table of nice simple continued fractions
Continued fraction Closed form Decimal expansion A-number


{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...}

Phi
Golden ratio

1.618033988749894848204586834...

CF:
A000012

Conv. nums:
pn =
A000045
 (n + 2), n   ≥   0
Conv. dens:
qn =
A000045
 (n + 1), n   ≥   0

Base 10:
A001622


{0, 1, 1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 8, 1, 1, 10, 1, 1, 12, 1, 1, 14, ...}

1/(e-1)

0.5819767068693264243850020051... CF:
a (n) =
A005131
 (n + 1), n   ≥   0

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A073333


{1, 1, 1, 5, 1, 1, 9, 1, 1, 13, 1, 1, 17, 1, 1, 21, 1, 1, 25, 1, 1, 29, ...}

1/(sqrt(e)-1)

1.54149408253679828413110344447... CF:
a (n) =
A058281
 (n + 1), n   ≥   0

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A113011


{0, 2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, ...}

tanh(1/2) = (e-1)/(e+1)

0.46211715726000975850231848364... CF:
a (n) =
A016825
 (n  −  1), n   ≥   1

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A160327


{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...}

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

0.697774657964007982006790592...

CF:
A001477

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A052119


{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...}

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

1.433127426722311758317183455...

CF:
A000027

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A060997


{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, ...}

?

2.3130367364335829063839516...

CF:
A000040

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A064442

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

where
a0
is the integer part of the continued fraction, the
bk , 1   ≤   k   ≤   n,
are the partial numerators, the
ak , 1   ≤   k   ≤   n,
are the partial denominators, and
n
is a positive integer. (See Gauss’ Kettenbruch notation for the continued fraction operator
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

where
a0
is the integer part of the continued fraction, the
bk , k   ≥   1,
are the partial numerators, the
ak , k   ≥   1,
are the partial denominators. (See Gauss’ Kettenbruch notation for the continued fraction operator
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

and, for some integer
m
and some integer
k > 0
, we have
bn
an
=
bn +k
an +k
for all
n   ≥   m
.

The numbers with only non-periodic 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.

Table of nice generalized continued fractions
Continued fraction Closed form Decimal expansion A-number


{1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, ...}

sqrt(2/(pi*e))/erfc(1/sqrt(2))

1.525135276160981209089090536... CF:
a (n) =
A057979
 (n + 2), n   ≥   0

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A111129


{0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, ...}

1/(e-1)

0.5819767068693264243850020051...

CF:
A110654

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A073333


{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ...}

1/(sqrt(e)-1)

1.54149408253679828413110344447...

CF:
A000027

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A113011


{1, 1, 3, 4, 5, 9, 7, 16, 9, 25, 11, 36, 13, 49, 15, 64, 17, 81, ...}

4/pi

1.27323954473516268615107010698...

CF:
A079097

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A088538


{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, ...}

Herkommer number

2.5360270816893383923069490821...

CF:
A000040

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A085825

Gauss’ Kettenbruch notation

Karl Friedrich Gauss evoked the more familiar product operator
Π
when he devised his notation for the continued fraction (Kettenbruch in german) operator
Here the
K
stands for Kettenbruch, the German word for “continued fraction.” This is probably the most compact and convenient way to express continued fractions; however, it is not widely used by English typesetters.

See also

External links