login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A213538 Maximum deviation from n in Collatz trajectory of n. 1
0, 1, 13, 3, 11, 10, 45, 7, 43, 9, 41, 11, 27, 38, 145, 15, 35, 34, 69, 19, 43, 30, 137, 23, 63, 25, 9205, 27, 59, 130, 9201, 31, 67, 33, 125, 35, 75, 50, 265, 39, 9191, 41, 153, 43, 91, 114, 9185, 47, 99, 49, 181, 51, 107, 9178, 9177, 55, 139, 57, 245, 100, 123 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

Assuming Collatz trajectory ends with 1 and also a(1)=0.

LINKS

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

EXAMPLE

a(3)=13 because the number furthest to 3 in Collatz trajectory of 3 is 16.

MATHEMATICA

Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; Join[{0}, Table[Max[Rest[Abs[Collatz[n] - n]]], {n, 2, 100}]] (* T. D. Noe, Mar 04 2013 *)

CROSSREFS

Cf. A070165.

Sequence in context: A010221 A113172 A128154 * A264971 A107806 A138965

Adjacent sequences:  A213535 A213536 A213537 * A213539 A213540 A213541

KEYWORD

nonn

AUTHOR

Jayanta Basu, Mar 03 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 28 09:32 EDT 2021. Contains 347714 sequences. (Running on oeis4.)