U369342 3n+1猜想 v1.0
题目背景
+ 原题:[UVA100](https://www.luogu.com.cn/problem/UVA100)。
+ [题解传送门](https://www.luogu.com.cn/blog/726044/u369342-di-ti-xie)
+ 如果在座的各位大佬有好的题解,可以写在自己的博客里并私信把链接发给[我](https://www.luogu.com.cn/user/726044),我会加入题面中,让大家都可以看到。
题目描述
假设 $n$ 是一个正整数:
$$
\begin{cases}
n\gets 3n+1\ \text{,}\ n\ \text{is odd;}\\
n\gets \cfrac{n}{2}\ \text{,}\ \text{otherwise.}
\end{cases}
$$
给定一个 $n$,经过若干次变化后,都会变成 $1$。现在想求一个数经过几次变化后会变成 $1$。
输入格式
一个正整数,$n$。
输出格式
一个正整数,表示 $n$ 经过几次变化后会变成 $1$。
说明/提示
对于所有数据,$2 \le n \le 2^{60}$。