editing
approved
editing
approved
<a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
<a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
1, 12, 28, 314, 98, 386, 943, 1494, 1680, 4722, 6576, 11696, 3982, 2987, 17548, 36208, 7083, 59692, 159116, 79592, 57857, 212160, 352258, 221185, 57346, 294913, 252548, 530052, 331778, 524289, 1088129, 913319, 2065786, 1541308, 1032875, 1264924, 8151894
T. D. Noe, <a href="/A000546/b000546.txt">Table of n, a(n) for n = 1..100</a>
Collatz[n_] := Length[NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]] - 1; nn = 3810; t = Table[0, {nn}]; t[[1]] = 1; rep = 1; last = 0; n = 1; While[Times @@ t == 0, n++; r = Collatz[n]; If[r == last, rep++, If[0 < rep <= nn && t[[rep]] == 0, t[[rep]] = n - rep]; last = r; rep = 1]]; t (* T. D. Noe, Jun 20 2012 *)
Collatz[n_] := Length[NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]] - 1; nn = 38; t = Table[0, {nn}]; t[[1]] = 1; rep = 1; last = 0; n = 1; While[Times @@ t == 0, n++; r = Collatz[n]; If[r == last, rep++, If[0 < rep <= nn && t[[rep]] == 0, t[[rep]] = n - rep]; last = r; rep = 1]]; t (* T. D. Noe, Jun 20 2012 *)
approved
editing
<a href="/Sindx_index/3.html#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
proposed
approved
Sequence is precise in the sense that n+1 consecutive numbers starting at a(n) do not take the same number of steps.
approved
proposed
<a href="/Sindx_3.html#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
nonn,new
nonn
<a href="http://www.research.att.com/~njas/sequences/Sindx_3.html#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
nonn,new
nonn
<a href="http://www.research.att.com/~njas/sequences/Sindx_13.html#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
nonn,new
nonn
Peter L. Stone [ PetStone@(AT)aol.com ]