- farey-sequence nprocedure
- n
- integer
Returns a list of the numbers in the nth Farey sequence; n must be positive.
The nth Farey sequence is the sequence of all completely reduced rational numbers from 0 to 1 which denominators are less than or equal to n.
> (farey-sequence 1) (0 1) > (farey-sequence 2) (0 1/2 1) > (farey-sequence 3) (0 1/3 1/2 2/3 1)
Wikipedia: Farey Sequence