login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Largest number in the sequence for the Collatz problem (excluding the original number) when started at n.
2

%I #23 Apr 12 2016 11:50:22

%S 1,16,2,16,16,52,4,52,16,52,16,40,52,160,8,52,52,88,16,64,52,160,16,

%T 88,40,9232,52,88,160,9232,16,100,52,160,52,112,88,304,20,9232,64,196,

%U 52,136,160,9232,24,148,88,232,40,160,9232,9232,52,196,88,304,160

%N Largest number in the sequence for the Collatz problem (excluding the original number) when started at n.

%H Robert Price, <a href="/A270570/b270570.txt">Table of n, a(n) for n = 2..10000</a>

%e For n = 7, the sequence is: 7, 22, 11, 34, 17, *52*, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. The highest value in the list (starred) is 52.

%t Table[k = n; maxk = 0; While[k ≠ 1, If[EvenQ[k], k = k/2, k = 3*k + 1]; maxk = Max[maxk, k]]; maxk, {n, 2, 100}] (* _Robert Price_, Apr 11 2016 *)

%K nonn

%O 2,2

%A _Douglas Boffey_, Mar 19 2016