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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A295163 Max odd N reached by Collatz sequence "record setters". 3

%I #21 Feb 05 2018 17:05:06

%S 1,5,17,53,3077,83501,425645,2270045,2717873,9038141,35452673,

%T 197759717,523608245,827370449,5734125917,46548912269,117539270981,

%U 207572633873,286185056525,439600764977,804164538869,1599998981789,20114203639877,102098975067917

%N Max odd N reached by Collatz sequence "record setters".

%C Sequence A025587 gives the starting numbers which "break the record", in the Collatz problem, for the ratio of the highest (even) number reached to the starting number. This sequence gives the corresponding highest odd number reached. That is, a(n) = highest odd number reached in Collatz problem starting from A025587(n) = (highest even number reached, minus 1) divided by 3. It is therefore monotonic increasing by definition, and also a(n)/A025587(n) is monotonic increasing by definition.

%H Howard A. Landman, <a href="/A295163/b295163.txt">Table of n, a(n) for n = 0..31</a>

%H <a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>

%o (Python 3)

%o # Print numbers with higher ratio of max Collatz descendant to self

%o # than that of any previous number.

%o # First column is OEIS sequence A025587 (the starting numbers).

%o # Second column is this sequence (their max odd descendants).

%o # Third column is OEIS sequence A061523 (before truncation).

%o i = 1

%o max_ratio = 1.0

%o while(True):

%o n = i

%o max_n = n

%o while n >= i: # Done as soon as we dip below starting point

%o n = 3*n + 1

%o max_n = max(n, max_n)

%o while (n&1) == 0:

%o n = n >> 1

%o ratio = float(max_n) / i

%o if ratio > max_ratio:

%o max_ratio = ratio

%o print(i, (max_n - 1)/3, max_ratio)

%o i += 2

%o # _Howard A. Landman_, Nov 15 2017

%Y Cf. A025587 for starting numbers and A061523 for (truncated, even) blowup factors.

%K nonn

%O 0,2

%A _Howard A. Landman_, Nov 14 2017

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 14:32 EDT 2024. Contains 371960 sequences. (Running on oeis4.)