The OEIS is supported by the many generous donors to the OEIS Foundation.

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A300507 Define the set of generalized Syracuse sequences starting with a positive odd integer 2*n+1=x(1) then if x(i) is odd and prime set x(i+1)=2*x(i)+1, if x(i) is odd not prime set x(i+1)=3*x(i)+1 and if x(i) is even then set x(i+1)=x(i)/2. a(n) is the index i when x(i) reaches 1 or 1163. 0
 4, 446, 444, 445, 448, 443, 236, 444, 441, 508, 8, 442, 511, 235, 506, 443, 514, 440, 509, 507, 233, 934, 445, 441, 512, 512, 438, 234, 937, 505, 889, 442, 515, 480, 241, 439, 239, 508, 510, 506, 892, 232, 10, 933, 503, 427, 444, 440, 461, 457, 478, 420, 509 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 COMMENTS For n<40 the sequences reach 1, for n=40 the sequence reaches 1163 for x(889) and recover 1163 for x(889+931) a cycle of 961 values. LINKS Table of n, a(n) for n=0..52. EXAMPLE For n=1 after 135 tripling(+1), 47 doubling(+1) and 263 halfing x(446)=1, so a(1)=446. PROG (PARI) f(x) = if (x % 2, if (isprime(x), 2*x+1, 3*x+1), x/2); a(n) = {x = f(2*n+1); nb = 2; while (! ((x == 1) || (x == 1163)), x = f(x); nb++); nb; } \\ Michel Marcus, Mar 07 2018 CROSSREFS Cf. A006577, A294748, A297307, A300286. Sequence in context: A034985 A262102 A104690 * A215220 A035483 A145570 Adjacent sequences: A300504 A300505 A300506 * A300508 A300509 A300510 KEYWORD nonn AUTHOR Pierre CAMI, Mar 07 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 2 13:18 EST 2023. Contains 367524 sequences. (Running on oeis4.)