farey {elliptic} | R Documentation |
Returns the Farey sequence of order n
farey(n, print=FALSE, give.series = FALSE)
n |
Order of Farey sequence |
print |
Boolean, with TRUE meaning to print out the text
version of the Farey sequence in human-readable form. Default value
of FALSE means not to print anything. |
give.series |
Boolean, with TRUE meaning to return the
series explicitly, and default FALSE meaning to return a 3
dimensional array as detailed below. |
If give.series
takes its default value of FALSE
, return
a matrix a
of dimension c(u,2)
where u
is a
(complicated) function of n
. The rows of a
are the
Robin K. S. Hankin
An introduction to the theory of numbers (fifth edition), G. H. Hardy and E. M. Wright, Oxford University Press,1985.
farey(3)