OFFSET
1,1
COMMENTS
A companion to A232711 (which conjecturally lists the numbers whose trajectory reaches 1), and A267970 (which conjecturally lists the numbers whose trajectory diverges).
This is conjectural in that there is no proof that the list is complete as far as it goes. Some of the terms in A267970 could belong to A232711 or this sequence if the trajectory is extended far enough. - N. J. A. Sloane, Jan 23 2016
It appears that the trajectories of all terms in this sequence reach one of two length 10 loops, one containing 13 and the other 17. This has been checked for terms up to 10^4 assuming trajectories with more than 10000 odd terms are infinite and also up to 10^6 assuming trajectories with more than 1000 odd terms are infinite. - Gary Detlefs, Jan 25 2022
LINKS
Dmitry Kamenetsky, Table of n, a(n) for n = 1..2051
MAPLE
f:= proc(m, b, n) if n mod 2 = 1 then return m*n+1 else return n/2 fi end proc
F:= proc(m, b, n, i) option remember; if i=1 then return f(m, b, n) else return f(m, b, F(m, b, n, i-1)) fi end proc
for x from 1 to 1000 do for y from 1 to 1000 do if F(5, 1, x, y)= 86 or F(5, 1, x, y)=26 then print(x): x=x+1; y:=y+1 fi od od
# use print(x, y) to give the number of iterations needed to reach the cycle point
# Gary Detlefs, Jan 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jan 19 2016
EXTENSIONS
Entry revised by N. J. A. Sloane, Jan 23 2016
a(16)-a(55) added by Gary Detlefs, Jan 25 2022
STATUS
approved