OFFSET
1,2
COMMENTS
It is conjectured that the sequence will always end in one of three loops: 1, 2,1,1, ...; 5 14 7 20 10 5...; or 17 50 25 74 37 110 55 164 82 41 122 61 182 91 272 136 68 34 17...
PROG
(PARI) xnm3(n) = { print1(1" "2" "1" "); for(x=2, n, x1=x; print1(x1" "); while(x1>1, if(x1%2==0, x1/=2, x1 = 3*p-1); print1(x1" "); if(x1==5 || x1==17, break); ) ) }
CROSSREFS
KEYWORD
easy,nonn,tabf
AUTHOR
Cino Hilliard, Apr 16 2003
STATUS
approved