For a positive integer , the Farey sequence is the increasing list of reduced fractions in with denominators at most , including and . For example,Each denominator contributes exactly new interior fractions, because the allowable numerators are precisely those coprime to . Therefore the number of terms is , using the summatory totient function.
For two distinct fractions in the list, their difference is , since the integer is positive. This arithmetic separation, rather than arbitrary real spacing, makes Farey fractions useful in rational approximation. The Stern-Brocot tree organizes the same positive reduced fractions by mediant insertion instead of a denominator cutoff.
A Farey sequence, denoted as \( F_n \), is a sequence of completely reduced fractions between 0 and 1 that have denominators less than or equal to a given positive integer \( n \). The Farey sequence is arranged in increasing order. Each fraction in the sequence is expressed in simplest form, meaning that the numerator and denominator are coprime (they have no common factors other than 1).
New to topics? Read the docs here!