| 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
an array a of dimension c(2,2,u) where u is a
(complicated) function of n. The slices a[,,i], viewed
as matrices, have determinant 1.
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)