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!)
A220140 Length of the Collatz iteration (3x+1) starting at A220139(n). 3

%I #6 Jan 02 2013 22:05:12

%S 1,2,8,13,12,99,154,153,77,98,97,264,210,235,234,114,113,218,159,158,

%T 157,350,393,392,329,328,327,311,310,309,308,307,270,455,454,435,434,

%U 632,607,606,605,604,603,602,591,573,572,644,643,779,723,717,716,813

%N Length of the Collatz iteration (3x+1) starting at A220139(n).

%H T. D. Noe, <a href="/A220140/b220140.txt">Table of n, a(n) for n = 1..10000</a>

%t Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; c = {1}; t = {}; Do[AppendTo[t, Length[c]]; c = Collatz[Max[c] + 1], {100}]; t

%K nonn

%O 1,2

%A _T. D. Noe_, Jan 02 2013

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 March 29 04:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)