FareySequence

FareySequence[n]
generates the Farey sequence of order n.

FareySequence[n,k]
gives the k^(th) element of the Farey sequence of order n.

DetailsDetails

  • The Farey sequence of order n is the sorted sequence of completely reduced fractions between 0 and 1 with denominators not exceeding n.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Generate the Farey sequence of order 5:

In[1]:=
Click for copyable input
Out[1]=

Find the 17^(th) element of the Farey sequence of order 24:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2014
(10.0)
| Updated in 2016
(10.4)
Translate this page: