An integer sequence is said to be 3-free if no three elements form an
arithmetic progression. Following the greedy algorithm, the Stanley sequence
S(a0,a1,…,ak) is defined to be the 3-free sequence {an} having
initial terms a0,a1,…,ak and with each subsequent term an>an−1
chosen minimally such that the 3-free condition is not violated. Odlyzko and
Stanley conjectured that Stanley sequences divide into two classes based on
asymptotic growth patterns, with one class of highly structured sequences
satisfying an≈Θ(nlog23) and another class of seemingly
chaotic sequences obeying an=Θ(n2/logn). We propose a rigorous
definition of regularity in Stanley sequences based on local structure rather
than asymptotic behavior and show that our definition implies the corresponding
asymptotic property proposed by Odlyzko and Stanley. We then construct many
classes of regular Stanley sequences, which include as special cases all such
sequences previously identified. We show how two regular sequences may be
combined into another regular sequence, and how parts of a Stanley sequence may
be translated while preserving regularity. Finally, we demonstrate that certain
Stanley sequences possess proper subsets that are also Stanley sequences, a
situation that appears previously to have been assumed impossible.Comment: 25 page