OFFSET
1,2
COMMENTS
The sequence appears to return to 1 again and again forever when the minimal possible new record of just (previous record + 1) is reached at the latest possible value of 2X. Through 129 there are only 2 entries, a(17) and a(21), that are a minimal new record but aren't 2X.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..147 (from Eric Rosendaal's 3x+1 Delay Records, terms 1..129 from David Rabahy)
Eric Roosendaal, 3x+1 Delay Records
MATHEMATICA
(* This script is not suitable to compute a large number of terms. *)
terms = 40; steps[x0_] := steps[x0] = Block[{x = x0, nos = 0}, While[x != 1, If[Mod[x, 2] == 0, x = x/2, x = 3*x + 1]; nos++]; nos]; b[1] = 1; b[n_] := b[n] = Block[{x = b[n - 1] + 1}, record = steps[x - 1]; While[steps[x] <= record, x++]; x];
A006877 = Table[Print[b[n]]; b[n], {n, 1, terms+1}];
Differences[A006878] (* Jean-François Alcover, Jun 15 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David Rabahy, Jun 13 2017
STATUS
approved