3N+1

Jan 10, 2011 at 1:49am
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-[
Jan 10, 2011 at 3:36am
Please post the code you are having problems with.
Topic archived. No new replies allowed.