UVA694 The Collatz Sequence

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=635 [PDF](https://uva.onlinejudge.org/external/6/p694.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA694/992931b51c36b94170d98214ea12f58d2b778ad8.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA694/2e2deae9064adce96095051f3fde2f90aaeb940f.png)