Take any number...

  1. Take any number
  2. if it is even, halve it;
  3. if it is odd, multiply it by 3 and add 1 and then halve it.
  4. repeat these operations until you reach the number 1.

For example, starting with the number 5:
5 is odd; 5 x 3 = 15; add 1 : 16
16 ÷ 2 = 8 (step 1)
8 is even; halve it : 4 (step 2)
4 is even; halve it : 2 (step 3)
2 is even; halve it: 1, and stop. (step 4)

Taking it for granted that we will always reach the number 1 in the end, is there a connection between the number of steps required to reach the number 1 and the number we started with?

Here, if S(n) stands for the number of steps when we start with n, S(5) = 4.

So far all I've come up with is a pattern for the powers of two : S(2n) = n
e.g. 16 = 24, so S(16)=4.
We can ignore the even numbers, by the way, as s(k x 2n) = s(k) + n

Table 1: Some results k<145)Table 2: Numbers matched by number of links
nS(n)nS(n)nS(n)nS(n)nS(n)
3535106719991813120
54371569111011813320
711392371651035613528
913416973731052613758
1110432075111076413928
137451277161097214112
1512476679241114514366
1794917811611310145
19145117837011523147
21653985811715149
23115571872111923151
25165722892112161153
27705922915912331157
29136114931312569159
31676368956712731161
33186519977512977163
s(k)ks(k)ks(k)k
3-311235991
453260
533361121
6213462
7133563
8853664107
917, 533712765
1011, 35, 113386647, 143
117, 23, 69, 75396731, 95
1215, 45, 141406863
139, 29, 93416941, 125
1419, 61427027, 83
1537, 117437155, 65
1625, 77, 814472109
1749, 51451117373
1833, 99, 1014674
1965, 67477597
2043, 131, 1334876
2187, 894977129
2257, 595078
2339, 115, 1195179
245280
255381
261055482
275583
28135, 1395610384
295785
305813786

That's as far as we've got to date, the results for k=99 to k=143 copied from a post by Dan in the Dozensonline Forum (Feb25)