OFFSET
1,3
COMMENTS
Under iterations of the map A001281, the orbit of any positive integer seems to end in one of 3 possible cycles, having 1, 5, resp. 17 as smallest element. This sequence gives the number of iterations needed to reach one of these values. Another sequence that could be considered is the number of iterations needed to reach /any/ element of the final cycle.
From N. J. A. Sloane, Sep 04 2015: (Start)
The same sequence arises as follows: Start at 2n-1 and repeatedly apply the map (see A261671): subtract 1 and divide by 2 if the result is odd, otherwise multiply by 3; a(n) is the number of steps to reach one of 1, 9, or 33.
It is conjectured that the trajectory of any odd number will eventually reach 1, 9, or 33, and so enter one of the loops (1,3), (9, 27, 13, 39, 19), or (33, 99, 49, 147, 73, 219, 109, 327, 163, 81, 243, 121, 363, 181, 543, 271, 135, 67). (End)
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..10001
PROG
(PARI) A135730(n)=local(c=0); while( n>17 || n != 17 && n != 5 && n != 1, c++; if( n%2, n=3*n-1, n>>=1)); c
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
M. F. Hasler, Nov 26 2007
STATUS
approved