(49g 50g) Farey Sequence
|
04-21-2020, 04:18 PM
(This post was last modified: 04-21-2020 04:19 PM by John Keith.)
Post: #1
|
|||
|
|||
(49g 50g) Farey Sequence
This program creates the Farey sequence of order n. It is based on the Python program in the linked Wikipedia page with some optimizations. The program requires the ListExt Library, and must be run in exact mode.
The program returns a list of two lists, the numerators and denominators of the sequence. These are row n of A006842 and A006843 respectively. To get the sequence as a list of ratios, execute EVAL /. Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)