lieven le bruyn's blog
Farey codes
Modular subgroups
John Farey (1766-1826) was a geologist of sorts. Eyles, quoted on the math-biographies site described his geological work as
“As a geologist Farey is entitled to respect for the work which he carried out himself, although it has scarcely been noticed in the standard histories of geology.”
That we still remember his name after 200 years is due to a short letter he wrote in 1816 to the editor of the Philosophical Magazine
“On a curious Property of vulgar Fractions.
By Mr. J. Farey, Sen. To Mr. Tilloch
Sir. – On examining lately, some very curious and elaborate Tables of “Complete decimal Quotients,” calculated by Henry Goodwyn, Esq. of Blackheath, of which he has printed a copious specimen, for private circulation among curious and practical calculators, preparatory to the printing of the whole of these useful Tables, if sufficient encouragement, either public or individual, should appear to warrant such a step: I was fortunate while so doing, to deduce from them the following general property; viz.
If all the possible vulgar fractions of different values, whose greatest denominator (when in their lowest terms) does not exceed any given number, be arranged in the order of their values, or quotients; then if both the numerator and the denominator of any fraction therein, be added to the numerator and the denominator, respectively, of the fraction next but one to it (on either side), the sums will give the fraction next to it; although, perhaps, not in its lowest terms.
For example, if 5 be the greatest denominator given; then are all the possible fractions, when arranged, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, and 4/5; taking 1/3, as the given fraction, we have (1+1)/(5+3) = 2/8 = 1/4 the next smaller fraction than 1/3; or (1+1)/(3+2) = 2/5, the next larger fraction to 1/3. Again, if 99 be the largest denominator, then, in a part of the arranged Table, we should have 15/52, 28/97, 13/45, 24/83, 11/38, &c.; and if the third of these fractions be given, we have (15+13)/(52+45) = 28/97 the second: or (13+11)/(45+38) = 24/83 the fourth of them: and so in all the other cases.
I am not acquainted, whether this curious property of vulgar fractions has been before pointed out?; or whether it may admit of any easy or general demonstration?; which are points on which I should be glad to learn the sentiments of some of your mathematical readers; and am
Sir, Your obedient humble servant,
J. Farey. Howland-street.”
So, if we interpolate “childish addition of fractions”
and start with the numbers
and
we get the binary Farey-tree above. For a fixed natural number n, if we stop the interpolation whenever the denominator of the fraction would become larger than n and order the obtained fractions (smaller or equal to one) we get the Farey sequence F(n). For example, if n=3 we start with the sequence
. The next step we get
and the next step gives

and as all the denomnators of childish addition on two consecutive fractions will be larger than 3, the above sequence is F(3). A remarkable feature of the series F(n) is that if
and
are consecutive terms in F(n), then

and so these two fractions are the endpoints of an even geodesic in the Dedekind tessellation.
A generalized Farey series is an ordered collection of fractions
such that
and
are integers and some
. Moreover, writing
we have that

A Farey code is a generalized Farey sequence consisting of all the vertices of a special polygon that lie in
together with side-pairing information. If two consecutive terms are such that the complete geodesic between
and
consists of two sides of the polygon which are paired we denote this fact by
. If they are the endpoints of two odd sides of the polygon which are paired we denote this by
. Finally, if they are the endpoints of a free side which is paired to another free side determined by
and
we denote this fact by marking both edges
and
with the same number.
For example, for the M(12) special polygon on the left (bounded by the thick black geodesics), the only vertices in
are
. The two vertical lines are free sides and are paired, whereas all other sides of the polygon are odd. Therefore the Farey-code for this Mathieu polygon is
![\xymatrix{\infty \ar@{-}[r]_{1} & 0 \ar@{-}[r]_{\bullet} & \frac{1}{3} \ar@{-}[r]_{\bullet} & \frac{1}{2} \ar@{-}[r]_{\bullet} & 1 \ar@{-}[r]_{1} & \infty} \xymatrix{\infty \ar@{-}[r]_{1} & 0 \ar@{-}[r]_{\bullet} & \frac{1}{3} \ar@{-}[r]_{\bullet} & \frac{1}{2} \ar@{-}[r]_{\bullet} & 1 \ar@{-}[r]_{1} & \infty}](/latexrender/pictures/6af1ed91fa882ca98e87c144bd54fd81.gif)
Conversely, to a Farey-code we can associate a special polygon by first taking the hyperbolic convex hull of all the terms in the sequence (the region bounded by the vertical lines and the bottom red circles in the picture on the left) and adding to it for each odd interval
the triangle just outside the convex hull consisting of two odd edges in the Dedekind tessellation (then we obtain the region bounded by the black geodesics). Again, the side-pairing of the obained special polygon can be obtained from that of the Farey-code.
This correspondence gives a natural one-to-one correspondence special polygons <---> Farey-codes . Later we will see how the Farey-code determines the group structure of the corresponding finite index subgroup of the modular group
.
Reference
Ravi S. Kulkarni, “An arithmetic-geometric method in the study of the subgroups of the modular group”, Amer. J. Math 113 (1991) 1053-1133
Dedekind, groups, hyperbolic, Mathieu, modular| Print article | This entry was posted by lievenlb on July 1, 2007 at 11:44 am, and is filed under general, modular. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |












about 1 year ago
Hello, We are students of Mathematics. And working on tessellation of Hecke groups and Picard group. Please we will be grateful if you provide us source code of above tessellation or tessellation you have done. Regards Saima
about 1 year ago
I’m afraid i did it with trial-and-error as i dont know the basics of metapost. Im sure anyone with minimal knowledge of metapost can do an infinitely better job…
For what it’s worth : the latex/metafont source file is here and the pdf-output is here.