please if any one knows howa to solve this problem
Write a program that asks the user for the level n that he wants and creates the Farey sequence as a linked list of fractions of level 1, then extends it to level 2, 3,...n. Below are input/output samples:
Input Level Output
1 F1 = {0⁄1, 1⁄1}
3 F1 = {0⁄1, 1⁄1}
F2 = {0⁄1, 1⁄2, 1⁄1}
F3 = {0⁄1, 1⁄3, 1⁄2, 2⁄3, 1⁄1}