This site is supported by donations to The OEIS Foundation.

Continued fractions

From OeisWiki
(Redirected from Partial quotients)
Jump to navigationJump to 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

[edit]

Finite simple continued fractions

[edit]

A finite simple continued fraction is an expression of the form

c=a0+Knk=11ak:=a0+1a1+1a2+1an1+1an,

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

[edit]

A infinite simple continued fraction is an expression of the form

c=a0+Kk=11ak:=a0+1a1+1a2+1a3+1a4+1,

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

c=a0+1/(a1+1/(a2+1/(a3+1/(a4+1/(a5+1/(a6+))))))

A compact notation is

c=[a0;a1,a2,a3,a4,a5,a6,]

A sequence representation is

{a0,a1,a2,a3,a4,a5,a6,}

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

[edit]

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.

c=[a0;a1,a2,a3,a4,a5,a6,]

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

[edit]

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

c0=p0q0=a01, c1=p1q1=a1a0+1a1, c2=p2q2=a2(a1a0+1)+a0a2a1+1, c3=p3q3=a3(a2(a1a0+1)+a0)+(a1a0+1)a3(a2a1+1)+a1, 

or equivalently

c0=p0q0=a0p1+p2a0q1+q2=a01, c1=p1q1=a1p0+p1a1q0+q1, c2=p2q2=a2p1+p0a2q1+q0, c3=p3q3=a3p2+p1a3q2+q1, 

with

p2=0,q2=1, i.e. c2=p2q2=01=0
p1=1,q1=0, i.e. c1=p1q1=10=

giving

pn=anpn1+pn2
qn=anqn1+qn2

with

p2=0,q2=1, i.e. c2=p2q2=01=0
p1=1,q1=0, i.e. c1=p1q1=10=

where

cn=pnqn,n2.
limncn=cifflimnk=0nak

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+Kk=111=1+11+11+11+1


{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+52

1.618033988749894848204586834...

CF:
A000012

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

Base 10:
A001622

0+Kk=111+(2k31)0(kmod3)=0+11+11+12+11+11+14+11+1


{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)

1e1=n=1en

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

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A073333

1+Kk=111+4k30(kmod3)=1+11+11+15+11+11+19+11+1


{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)

1e1

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

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A113011

0+Kk=112(2k1)=0+12+16+110+114+118+122+126+1


{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)

tanh(12)=e1e+1

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

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A160327

0+Kk=11k=0+11+12+13+14+15+16+17+1


{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]

I1(2)I0(2)

0.697774657964007982006790592...

CF:
A001477

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A052119

1+Kk=11k+1=1+12+13+14+15+16+17+18+1


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

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

I0(2)I1(2)

1.433127426722311758317183455...

CF:
A000027

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A060997

p1+Kk=11pk+1=2+13+15+17+111+113+117+119+1


{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

[edit]

Generalized continued fractions are also called general continued fractions.

Finite generalized continued fractions

[edit]

A finite generalized continued fraction is an expression of the form

c=a0+Knk=1bkak:=a0+b1a1+b2a2+b3an1+bnan,

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

[edit]

A infinite generalized continued fraction is an expression of the form

c=a0+Kk=1bkak:=a0+b1a1+b2a2+b3a3+b4a4+b5,

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

c=a0+b1/(a1+b2/(a2+b3/(a3+b4/(a4+b5/(a5+b6/(a6+))))))

A compact notation could be

c=[a0;b1/a1,b2/a2,b3/a3,b4/a4,b5/a5,b6/a6,]

A sequence representation could be

{a0,b1,a1,b2,a2,b3,a3,b4,a4,b5,a5,b6,a6,}

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 ???

[edit]

The numbers having at least one eventually periodic infinite generalized continued fraction representation are... ?????

where

c=[a0;b1/a1,b2/a2,b3/a3,b4/a4,b5/a5,b6/a6,]

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

[edit]

The first few convergents (numbered from 0) are

c0=p0q0=a01, c1=p1q1=a1a0+b1a1, c2=p2q2=a2(a1a0+b1)+b2a0a2a1+b2, c3=p3q3=a3(a2(a1a0+b1)+b2a0)+b3(a1a0+b1)a3(a2a1+b2)+b3a1, 

or equivalently

c0=p0q0=a0p1+b0p2a0q1+b0q2=a01,c1=p1q1=a1p0+b1p1a1q0+b1q1,c2=p2q2=a2p1+b2p0a2q1+b2q0,c3=p3q3=a3p2+b3p1a3q2+b3q1,

with

b01
p2,q21, i.e. c2p2q2=01=0
p1,q10, i.e. c1p1q1=10=

giving

pn=anpn1+bnpn2
qn=anqn1+bnqn2

with

b01
p2,q21, i.e. c2p2q2=01=0
p1,q10, i.e. c1p1q1=10=

where

cn=pnqn,n2.
c=limncn

These recurrence relations are due to John Wallis.

Table of nice generalized continued fractions
Continued fraction Closed form Decimal expansion A-number
1+Kk=1k1=1+11+21+31+4


{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))

2πe1erfc(12)

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

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A111129

0+Kk=1kk=0+11+22+33+4


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

1/(e-1)

1e1=n=1en

0.5819767068693264243850020051...

CF:
A110654

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A073333

1+Kk=12k2k+1=1+23+45+67+8


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

1/(sqrt(e)-1)

1e1

1.54149408253679828413110344447...

CF:
A000027

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A113011

1+Kk=1k22k+1=1+13+45+97+16


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

4/pi

4π

1.27323954473516268615107010698...

CF:
A079097

Conv. nums:
A??????

Conv. dens:
A??????

Base 10:
A088538

p1+Kk=1p2kp2k+1=2+35+711+1317+19


{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

[edit]

Karl Friedrich Gauss evoked the more familiar product operator

Π

when he devised his notation for the continued fraction (Kettenbruch in german) operator

x=a0+Kk=1bkak:=a0+b1a1+b2a2+b3a3+b4a4+b5.

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

[edit]
[edit]