UVA996 Find the Sequence

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=937 [PDF](https://uva.onlinejudge.org/external/9/p996.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA996/2a544a8a9feaff223d8782039396e7ed30740818.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA996/4ead106985eca74eae5ddc251ce992e9b9c92fc3.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA996/e147d8db0affed7772365381e18e8b9902d51a9a.png)