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!)
A222641 Number of iterations in Collatz (3x+1) trajectory of n to reach 1 from the highest term. 2
0, 1, 4, 2, 4, 4, 11, 3, 11, 4, 11, 4, 8, 11, 10, 4, 11, 11, 17, 7, 6, 11, 10, 10, 17, 8, 34, 11, 17, 10, 34, 5, 25, 11, 10, 11, 20, 17, 24, 8, 34, 6, 26, 11, 15, 10, 34, 11, 23, 17, 21, 11, 10, 34, 34, 19, 26, 17, 24, 10, 18, 34, 34, 6, 26, 25, 24, 14, 13, 10 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = A006577(n) - A220421(n);
EXAMPLE
Collatz trajectory of 5 is 5, 16, 8, 4, 2, 1. Hence, a(5) = 4.
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; Table[c = Collatz[n]; Length[c] - Position[c, Max[c]][[1, 1]], {n, 100}] (* T. D. Noe, Feb 27 2013 *)
CROSSREFS
Sequence in context: A019921 A204617 A061469 * A368437 A258852 A021706
KEYWORD
nonn
AUTHOR
Jayanta Basu, Feb 27 2013
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 14 21:48 EDT 2024. Contains 375929 sequences. (Running on oeis4.)