OFFSET
1,2
COMMENTS
Numbers n such that A258772(n) > 0.
EXAMPLE
For n = 5, the trajectory is T(5) = [5, 16, 8, 4, 2, 1]. Since the fourth term in this sequence is 4, 5 has a fixed point. So 5 is a member of this sequence.
For n = 6, the trajectory is T(6) = [6, 3, 10, 5, 16, 8, 4, 2, 1]. Here, there is no fixed point and so, 6 is not a member of this sequence.
PROG
(PARI) Tvect(n)=v=[n]; while(n!=1, if(n%2, k=3*n+1; v=concat(v, k); n=k); if(!(n%2), k=n/2; v=concat(v, k); n=k)); v
m=1; while(m<10^3, d=Tvect(m); c=0; for(i=1, #d, if(d[i]==i, print1(m, ", "); break)); m++)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jun 11 2015
STATUS
approved