#include<iostream>
using namespace std;
int main(){
long long n, nb;
cin>>n;
while(n>1){
nb=n;
if(n%2==0){
n=n/2;
cout<<nb<<"/2="<<n<<endl;
}else{
n=n*3+1;
cout<<nb<<"*3+1="<<n<<endl;
}
}
cout<<"End";
return 0;
}
角谷猜想
最新推荐文章于 2024-11-13 19:36:04 发布