Does anyone knows about 3N+1??
if anyone knows could please help me understand this:
Sample Input
1 10
100 200
201 210
900 1000
Sample Output
1 10 20
100 200 125
201 210 89
900 1000 174
now i just like to know how it became 20 in 1 10
and in 125 in 100 200...X-[
Please post the code you are having problems with.