Number theory MOC

Simple continued fraction

A (simple) continued fraction for a real number 𝛼 βˆˆβ„ is an expression of the form

𝛼=[π‘Ž0;π‘Ž1,π‘Ž2,…]=π‘Ž0+1π‘Ž1+1π‘Ž2+β‹―.

where π‘Žπ‘– βˆˆβ„€, More precisely, 𝛼 =limπ‘›β†’βˆžπ›Όπ‘›, where the 𝑛th convergent

𝛼𝑛=[π‘Ž0;π‘Ž1,…,π‘Žπ‘›]=π‘π‘›π‘žπ‘›

where there are defined by the recurrence relations

π‘βˆ’2=0,π‘βˆ’1=1,𝑝𝑛=π‘Žπ‘›π‘π‘›βˆ’1+π‘π‘›βˆ’2π‘žβˆ’2=1,π‘žβˆ’1=π‘Ž0,π‘žπ‘›=π‘Žπ‘›π‘žπ‘›βˆ’1+π‘žπ‘›βˆ’2


develop | en | SemBr