Consider the set of all reduced fractions between and inclusive with denominators less than or equal to .
Here is the set when :
Write a program that, given an integer between and inclusive, prints the fractions in order of increasing magnitude.
One line with a single integer .
One fraction per line, sorted in order of magnitude.
5
0/1 1/5 1/4 1/3 2/5 1/2 3/5 2/3 3/4 4/5 1/1
USACO Training Section 2.1.