login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A025586 Largest value in `3x+1' trajectory of n. 40
1, 2, 16, 4, 16, 16, 52, 8, 52, 16, 52, 16, 40, 52, 160, 16, 52, 52, 88, 20, 64, 52, 160, 24, 88, 40, 9232, 52, 88, 160, 9232, 32, 100, 52, 160, 52, 112, 88, 304, 40, 9232, 64, 196, 52, 136, 160, 9232, 48, 148, 88, 232, 52, 160, 9232, 9232, 56, 196, 88, 304, 160, 184, 9232 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

a(n) = A220237(n,A006577(n)). - Reinhard Zumkeller, Jan 03 2013

A006885 and A006884 give record values and where they occur. - Reinhard Zumkeller, May 11 2013

LINKS

T. D. Noe, Table of n, a(n) for n=1..10000

Index entries for sequences related to 3x+1 (or Collatz) problem

P. Picart, Algorithme de Collatz et conjecture de Syracuse

MATHEMATICA

Collatz[a0_Integer, maxits_:1000] := NestWhileList[If[EvenQ[ # ], #/2, 3# + 1] &, a0, Unequal[ #, 1, -1, -10, -34] &, 1, maxits]; (* Collatz[n] function definition by Eric Weisstein *) Flatten[Table[Take[Sort[Collatz[n], Greater], 1], {n, 60}]] - Alonso del Arte, Nov 14 2007

PROG

(PARI) a(n)=my(r=n); while(n>2, if(n%2, n=3*n+1; if(n>r, r=n), n/=2)); r \\ Charles R Greathouse IV, Jul 19 2011

(Haskell)

a025586 = last . a220237_row

-- Reinhard Zumkeller, Jan 03 2013, Aug 29 2012

CROSSREFS

Essentially the same as A056959.

Cf. A006370.

Sequence in context: A036164 A076536 A110009 * A087251 A211367 A220314

Adjacent sequences:  A025583 A025584 A025585 * A025587 A025588 A025589

KEYWORD

nonn,nice,changed

AUTHOR

David W. Wilson

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 19 11:23 EDT 2013. Contains 225429 sequences.