This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A223700 #5 Apr 04 2013 16:18:32 %S A223700 1,2,4,8,16,32,64,20,40,80,160,52,96,208,68,136,280,88,184,56,112,232, %T A223700 72,148,304,100,196,400,808,260,520,1048,13120,4372,9232,472,916,1888, %U A223700 628,1264,2536,4912,1672,3256,39364,2248,740,1480,2968,5992,1972,3844 %N A223700 The maximum value of the Collatz (3x+1) iteration beginning at A223699(n). %H A223700 T. D. Noe, <a href="/A223700/b223700.txt">Table of n, a(n) for n = 1..800</a> %e A223700 The Collatz iteration of 15 is {15, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4, 2, 1}. The maximum is 160, which occurs at position 11, counting from the right. Hence, a(11) = 160 because no number smaller than 15 has its maximum value at the 11 position. %t A223700 Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; t= Table[c = Reverse[Collatz[n]]; Position[c, Max[c]][[1, 1]], {n, 10000}]; t3 = {}; n = 0; While[n++; p = Position[t, n, 1, 1]; p != {}, c = Collatz[p[[1,1]]]; AppendTo[t3, Max[c]]]; t3 %Y A223700 Cf. A070165 (Collatz iteration of n), A223699. %K A223700 nonn %O A223700 1,2 %A A223700 _T. D. Noe_, Mar 26 2013