Stanley sequence

From HandWiki

In mathematics, a Stanley sequence is an integer sequence generated by a greedy algorithm that chooses the sequence members to avoid arithmetic progressions. If [math]\displaystyle{ S }[/math] is a finite set of non-negative integers on which no three elements form an arithmetic progression (that is, a Salem–Spencer set), then the Stanley sequence generated from [math]\displaystyle{ S }[/math] starts from the elements of [math]\displaystyle{ S }[/math], in sorted order, and then repeatedly chooses each successive element of the sequence to be a number that is larger than the already-chosen numbers and does not form any three-term arithmetic progression with them. These sequences are named after Richard P. Stanley.

Binary–ternary sequence

The Stanley sequence starting from the empty set consists of those numbers whose ternary representations have only the digits 0 and 1.[1] That is, when written in ternary, they look like binary numbers. These numbers are

0, 1, 3, 4, 9, 10, 12, 13, 27, 28, 30, 31, 36, 37, 39, 40, ... (sequence A005836 in the OEIS)

By their construction as a Stanley sequence, this sequence is the lexicographically first arithmetic-progression-free sequence. Its elements are the sums of distinct powers of three, the numbers [math]\displaystyle{ n }[/math] such that the [math]\displaystyle{ n }[/math]th central binomial coefficient is 1 mod 3, and the numbers whose balanced ternary representation is the same as their ternary representation.[2]

The construction of this sequence from the ternary numbers is analogous to the construction of the Moser–de Bruijn sequence, the sequence of numbers whose base-4 representations have only the digits 0 and 1, and the construction of the Cantor set as the subset of real numbers in the interval [math]\displaystyle{ [0,1] }[/math] whose ternary representations use only the digits 0 and 2. More generally, they are a 2-regular sequence, one of a class of integer sequences defined by a linear recurrence relation with multiplier 2.[3]

This sequence includes three powers of two: 1, 4, and 256 = 35 + 32 + 3 + 1. Paul Erdős conjectured that these are the only powers of two that it contains.[4]

Growth rate

Andrew Odlyzko and Richard P. Stanley observed that the number of elements up to some threshold [math]\displaystyle{ n }[/math] in the binary–ternary sequence, and in other Stanley sequences starting from [math]\displaystyle{ \{0,3^k\} }[/math] or [math]\displaystyle{ \{0,2\cdot 3^k\} }[/math], grows proportionally to [math]\displaystyle{ n^{\log_2 3}\approx n^{0.631} }[/math]. For other starting sets [math]\displaystyle{ \{0,s\} }[/math] the Stanley sequences that they considered appeared to grow more erratically but even more sparsely.[1] For instance, the first irregular case is [math]\displaystyle{ s=4 }[/math], which generates the sequence

0, 4, 5, 7, 11, 12, 16, 23, 26, 31, 33, 37, 38, 44, 49, 56, 73, 78, 80, 85, 95, 99, ... (sequence A005487 in the OEIS)

Odlyzko and Stanley conjectured that in such cases the number of elements up to any threshold [math]\displaystyle{ n }[/math] is [math]\displaystyle{ O\bigl(\sqrt{n\log n}\bigr) }[/math]. That is, there is a dichotomy in the growth rate of Stanley sequences between the ones with similar growth to the binary–ternary sequence and others with a much smaller growth rate; according to this conjecture, there should be no Stanley sequences with intermediate growth.[1][5]

Moy proved that Stanley sequences cannot grow significantly more slowly than the conjectured bound for the sequences of slow growth. Every Stanley sequence has [math]\displaystyle{ \Omega\bigl(\sqrt{n}\bigr) }[/math] elements up to [math]\displaystyle{ n }[/math]. More precisely Moy showed that, for every such sequence, every [math]\displaystyle{ \varepsilon\gt 0 }[/math], and all sufficiently large [math]\displaystyle{ n }[/math], the number of elements is at least [math]\displaystyle{ (\sqrt 2 - \varepsilon)\sqrt n }[/math].[6] Later authors improved the constant factor in this bound,[7] and proved that for Stanley sequences that grow as [math]\displaystyle{ n^{\log_2 3} }[/math] the constant factor in their growth rates can be any rational number whose denominator is a power of three.[8]

History

A variation of the binary–ternary sequence (with one added to each element) was considered in 1936 by Paul Erdős and Pál Turán, who observed that it has no three-term arithmetic progression and conjectured (incorrectly) that it was the densest possible sequence with no arithmetic progression.[9]

In unpublished work with Andrew Odlyzko in 1978, Richard P. Stanley experimented with the greedy algorithm to generate progression-free sequences. The sequences they studied were exactly the Stanley sequences for the initial sets [math]\displaystyle{ \{0,s\} }[/math].[1]

Stanley sequences were named, and generalized to other starting sets than [math]\displaystyle{ \{0,s\} }[/math], in a paper published in 1999 by Erdős (posthumously) with four other authors.[5]

References

  1. 1.0 1.1 1.2 1.3 OdlSta-78, January 1978, https://www.dtc.umn.edu/~odlyzko/unpublished/greedy.sequence.pdf 
  2. Sloane, N. J. A., ed. "Sequence A005836". OEIS Foundation. https://oeis.org/A005836. 
  3. Allouche, Jean-Paul (1992), "The ring of [math]\displaystyle{ k }[/math]-regular sequences", Theoretical Computer Science 98 (2): 163–197, doi:10.1016/0304-3975(92)90001-V . See Example 26, p. 192.
  4. Gupta, Hansraj (1978), "Powers of 2 and sums of distinct powers of 3", Univerzitet u Beogradu Publikacije Elektrotehničkog Fakulteta, Serija Matematika i Fizika (602–633): 151–158 (1979) 
  5. 5.0 5.1 "Greedy algorithm, arithmetic progressions, subset sums and divisibility", Discrete Mathematics 200 (1–3): 119–135, 1999, doi:10.1016/S0012-365X(98)00385-9 
  6. Moy, Richard A. (2011), "On the growth of the counting function of Stanley sequences", Discrete Mathematics 311 (7): 560–562, doi:10.1016/j.disc.2010.12.019 
  7. Dai, Li-Xia; Chen, Yong-Gao (2013), "On the counting function of Stanley sequences", Publicationes Mathematicae Debrecen 82 (1): 91–95, doi:10.5486/PMD.2013.5286 
  8. Rolnick, David; Venkataramana, Praveen S. (2015), "On the growth of Stanley sequences", Discrete Mathematics 338 (11): 1928–1937, doi:10.1016/j.disc.2015.04.006 
  9. "On some sequences of integers", Journal of the London Mathematical Society 11 (4): 261–264, 1936, doi:10.1112/jlms/s1-11.4.261, https://users.renyi.hu/~p_erdos/1936-05.pdf 

Further reading

  • Moy, Richard A. (2017), Stanley sequences with odd character 
  • Moy, Richard A.; Rolnick, David (2016), "Novel structures in Stanley sequences", Discrete Mathematics 339 (2): 689–698, doi:10.1016/j.disc.2015.10.017 
  • Rolnick, David (2017), "On the classification of Stanley sequences", European Journal of Combinatorics 59: 51–70, doi:10.1016/j.ejc.2016.06.004 
  • Sawhney, Mehtaab (2017), Character Values of Stanley Sequences