UVA13041 Fraction and Sequence

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4939 [PDF](https://uva.onlinejudge.org/external/130/p13041.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13041/4f04877f7c413f6b633fc7d2b3cc0cdf6b8437fb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13041/1a8de90e2a49a36069b0297e0408100afa224597.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13041/6f66f1b44888dad0bc2267b27e33382fecbf674a.png)