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!)
A213672 Final term in Collatz trajectory of n that did not appear in previous trajectories. 1
1, 2, 4, 0, 0, 6, 20, 0, 14, 0, 0, 12, 0, 0, 80, 0, 0, 18, 44, 0, 32, 0, 0, 24, 38, 0, 92, 0, 0, 30, 0, 0, 50, 0, 0, 36, 56, 0, 152, 0, 0, 42, 74, 0, 68, 0, 0, 48, 0, 0, 116, 0, 0, 54, 188, 0, 86, 0, 0, 60, 0, 0, 728, 0, 0, 66, 0, 0, 104, 0, 0, 72, 110, 0, 128, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This can be considered as the step down value, as beyond this point the trajectory of n reduces to a lower trajectory. When n is impure we define a(n)=0; see also A177729.
LINKS
EXAMPLE
a(7)=20 because after 20 trajectory of 7 becomes identical with trajectory of 3.
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; prev = {}; Table[c = Collatz[n]; If[Complement[c, prev] == {}, 0, i = 1; While[MemberQ[prev, c[[-i]]], i++]; prev = Union[prev, c]; c[[-i]]], {n, 100}] (* T. D. Noe, Mar 03 2013 *)
CROSSREFS
Sequence in context: A298368 A072069 A230423 * A309244 A004025 A102561
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 06:04 EDT 2024. Contains 371906 sequences. (Running on oeis4.)