In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the Farey sequence of order ''n'' is the
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
of completely reduced
fraction
A fraction (from , "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight-fifths, thre ...
s, either between 0 and 1, or without this restriction, which have
denominator
A fraction (from , "broken") represents a part of a whole or, more generally, any number of equal parts. When spoken in everyday English, a fraction describes how many parts of a certain size there are, for example, one-half, eight-fifths, thre ...
s less than or equal to ''n'', arranged in order of increasing size.
With the restricted definition, each Farey sequence starts with the value 0, denoted by the fraction , and ends with the value 1, denoted by the fraction (although some authors omit these terms).
A ''Farey sequence'' is sometimes called a Farey
''series'', which is not strictly correct, because the terms are not summed.
Examples
The Farey sequences of orders 1 to 8 are :
:''F''
1 =
:''F''
2 =
:''F''
3 =
:''F''
4 =
:''F''
5 =
:''F''
6 =
:''F''
7 =
:''F''
8 =
Farey sunburst
Plotting the numerators versus the denominators of a Farey sequence gives a shape like the one to the right, shown for
Reflecting this shape around the diagonal and main axes generates the ''Farey sunburst'', shown below. The Farey sunburst of order connects the visible integer grid points from the origin in the square of side , centered at the origin. Using
Pick's theorem, the area of the sunburst is , where is the
number of fractions in .
History
:''The history of 'Farey series' is very curious'' — Hardy & Wright (1979)
:''... once again the man whose name was given to a mathematical relation was not the original discoverer so far as the records go.'' — Beiler (1964)
[ Cited in ]
Farey sequences are named after the
British
British may refer to:
Peoples, culture, and language
* British people, nationals or natives of the United Kingdom, British Overseas Territories and Crown Dependencies.
* British national identity, the characteristics of British people and culture ...
geologist
A geologist is a scientist who studies the structure, composition, and History of Earth, history of Earth. Geologists incorporate techniques from physics, chemistry, biology, mathematics, and geography to perform research in the Field research, ...
John Farey, Sr., whose letter about these sequences was published in the ''
Philosophical Magazine
The ''Philosophical Magazine'' is one of the oldest scientific journals published in English. It was established by Alexander Tilloch in 1798;John Burnett"Tilloch, Alexander (1759–1825)" Dictionary of National Biography#Oxford Dictionary of ...
'' in 1816. Farey conjectured, without offering proof, that each new term in a Farey sequence expansion is the
mediant
In music, the mediant (''Latin'': "being in the middle") is the third scale degree () of a diatonic scale, being the note halfway between the tonic and the dominant.Benward & Saker (2003), p.32. In the movable do solfège system, the mediant no ...
of its neighbours. Farey's letter was read by
Cauchy
Baron Augustin-Louis Cauchy ( , , ; ; 21 August 1789 – 23 May 1857) was a French mathematician, engineer, and physicist. He was one of the first to rigorously state and prove the key theorems of calculus (thereby creating real a ...
, who provided a proof in his ''Exercices de mathématique'', and attributed this result to Farey. In fact, another mathematician,
Charles Haros, had published similar results in 1802 which were not known either to Farey or to Cauchy.
[ Thus it was a historical accident that linked Farey's name with these sequences. This is an example of Stigler's law of eponymy.
]
Properties
Sequence length and index of a fraction
The Farey sequence of order contains all of the members of the Farey sequences of lower orders. In particular contains all of the members of and also contains an additional fraction for each number that is less than and coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
to . Thus consists of together with the fractions and .
The middle term of a Farey sequence is always ,
for . From this, we can relate the lengths of and using Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
:
Using the fact that , we can derive an expression for the length of :
where is the summatory totient.
We also have :
and by a Möbius inversion formula
In mathematics, the classic Möbius inversion formula is a relation between pairs of arithmetic functions, each defined from the other by sums over divisors. It was introduced into number theory in 1832 by August Ferdinand Möbius.
A large genera ...
:
where is the number-theoretic Möbius function
The Möbius function \mu(n) is a multiplicative function in number theory introduced by the German mathematician August Ferdinand Möbius (also transliterated ''Moebius'') in 1832. It is ubiquitous in elementary and analytic number theory and m ...
, and is the floor function
In mathematics, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least integer greater than or eq ...
.
The asymptotic behaviour of is :
The number of Farey fractions with denominators equal to in is given by when and zero otherwise. Concerning the numerators one can define the function that returns the number of Farey fractions with numerators equal to in . This function has some interesting properties as
:,
: for any prime number ,
: for any integer ,
:
In particular, the property in the third line above implies and, further, The latter means that, for Farey sequences of even order , the number of fractions with numerators equal to is the same as the number of fractions with denominators equal to , that is .
The index of a fraction in the Farey sequence is simply the position that occupies in the sequence. This is of special relevance as it is used in an alternative formulation of the Riemann hypothesis
In mathematics, the Riemann hypothesis is the conjecture that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part . Many consider it to be the most important unsolved problem in pure ...
, see below
Below may refer to:
*Earth
*Ground (disambiguation)
*Soil
*Floor
* Bottom (disambiguation)
*Less than
*Temperatures below freezing
*Hell or underworld
People with the surname
* Ernst von Below (1863–1955), German World War I general
* Fred Belo ...
. Various useful properties follow:
The index of where and is the least common multiple
In arithmetic and number theory, the least common multiple (LCM), lowest common multiple, or smallest common multiple (SCM) of two integers ''a'' and ''b'', usually denoted by , is the smallest positive integer that is divisible by both ''a'' and ...
of the first numbers, , is given by:
A similar expression was used as an approximation of for low values of in the classical paper by F. Dress. A general expression for for any Farey fraction is given in.
Farey neighbours
Fractions which are neighbouring terms in any Farey sequence are known as a ''Farey pair'' and have the following properties.
If and are neighbours in a Farey sequence, with , then their difference is equal to . Since
this is equivalent to saying that
Thus and are neighbours in , and their difference is .
The converse is also true. If
for positive integers with and , then and will be neighbours in the Farey sequence of order .
If has neighbours and in some Farey sequence, with , then is the mediant
In music, the mediant (''Latin'': "being in the middle") is the third scale degree () of a diatonic scale, being the note halfway between the tonic and the dominant.Benward & Saker (2003), p.32. In the movable do solfège system, the mediant no ...
of and – in other words,
This follows easily from the previous property, since if
It follows that if and are neighbours in a Farey sequence then the first term that appears between them as the order of the Farey sequence is incremented is
which first appears in the Farey sequence of order .
Thus the first term to appear between and is , which appears in .
The total number of Farey neighbour pairs in is .
The ''Stern–Brocot tree
In number theory, the Stern–Brocot tree is an infinite complete binary tree in which the vertices correspond one-for-one to the positive rational numbers, whose values are ordered from the left to the right as in a binary search tree.
The ...
'' is a data structure showing how the sequence is built up from 0 and 1 , by taking successive mediants.
Equivalent-area interpretation
Every consecutive pair of Farey rationals have an equivalent area of 1. See this by interpreting consecutive rationals
as vectors in the xy-plane. The area is given by
As any added fraction in between two previous consecutive Farey sequence fractions is calculated as the mediant
In music, the mediant (''Latin'': "being in the middle") is the third scale degree () of a diatonic scale, being the note halfway between the tonic and the dominant.Benward & Saker (2003), p.32. In the movable do solfège system, the mediant no ...
(⊕), then
(since and , its area must be 1).
Farey neighbours and continued fractions
Fractions that appear as neighbours in a Farey sequence have closely related continued fraction
A continued fraction is a mathematical expression that can be written as a fraction with a denominator that is a sum that contains another simple or continued fraction. Depending on whether this iteration terminates with a simple fraction or not, ...
expansions. Every fraction has two continued fraction expansions — in one the final term is 1; in the other the final term is greater by 1. If , which first appears in Farey sequence , has the continued fraction expansions
then the nearest neighbour of in (which will be its neighbour with the larger denominator) has a continued fraction expansion