OFFSET
1,3
COMMENTS
The 3x-1 variation of Collatz conjecture would imply that this sequence is well defined. In turn, if this sequence is well-defined, then A109732 represents a permutation of the odd positive integers.
LINKS
Kevin Ryde, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Max Alekseyev)
Kevin Ryde, C Code
PROG
(PARI) { A261870(n) = my(S, k); S=[n]; k=0; while( S[1]!=1, k++; S=vecsort( concat(apply(x->3*x-1, S), apply(x->x\2, select(x->x%2==0, S) )), , 8); ); k } /* Max Alekseyev, Sep 03 2015 */
(C) /* See links. */
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Sep 03 2015
STATUS
approved