Farey Sequence
Details
The Farey sequence of order n is the sequence of all reduced fractions within the range [0, 1], where each denominator is at most n.
Print the Farey sequence of order 50 in ascending order. The sequence
begins 0/1
, 1/50
, 1/49
, ...
0 bytes, 0 chars
Restore solutionCompiled from
AT&T syntax to x86-64 Linux. Use
syscalls to write output.
Arturo is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
Fennel is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
Uiua is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
ctrl + enter or