ROSECODE 488
Index of a Farey sequence
Let denote the -th term in the Farey sequence of order . For example, the Farey sequence of order 5 is {0/1, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1/1}, and the 7th term is 3/5, so . You are also given , .
Find . The answer should be represented as an irreducible fraction.
Thanks to czp for the idea.
Find
Thanks to czp for the idea.