Problems
Fractions
Fractions
For a given positive integer n print in ascending order all the proper irreducible fractions with denominators not exceeding n.
Input
The first line contains the number of test cases t (t ≤ 10). Each of the following t lines contains one integer n (1 < n ≤ 2000).
Output
For each test case print in ascending order all the proper irreducible fractions. Neighboring fractions should be separated by a comma and one space.
Input example #1
3 2 5 3
Output example #1
1/2 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5 1/3, 1/2, 2/3