ArticleslgStudy

science

Stanley sequence

Stanley sequence is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Stanley sequence rather than just read about it. In short: In mathematics, a Stanley sequence is an integer sequence generated by a greedy algorithm that chooses the sequence members to avoid arithmetic progressions. If S {\displaystyle S} 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 S {\displaystyle S} starts from the elements of S {\displaystyle S…

Key takeaways

  • Stanley sequence belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Stanley sequence to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Stanley sequence from memory before moving on to harder problems.

Reference excerpt

In mathematics, a Stanley sequence is an integer sequence generated by a greedy algorithm that chooses the sequence members to avoid arithmetic progressions. If S {\displaystyle S} 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 S {\displaystyle S} starts from the elements of S {\displaystyle S} , 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. 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 n {\displaystyle n} such that the n {\displaystyle n} th central binomial coefficient is 1 mod 3, and the numbers whose balanced ternary representation is the same as their ternary representation. 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 [ 0 , 1 ] {\displaystyle [0,1]} 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. 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.

Growth rate Andrew Odlyzko and Richard P. Stanley observed that the number of elements up to some threshold n {\displaystyle n} in the binary–ternary sequence, and in other Stanley sequences starting from { 0 , 3 k } {\displaystyle \{0,3^{k}\}} or { 0 , 2 ⋅ 3 k } {\displaystyle \{0,2\cdot 3^{k}\}} , grows proportionally to n log 2 ⁡ 3 ≈ n 0.631 {\displaystyle n^{\log _{2}3}\approx n^{0.631}} . For other starting sets { 0 , s } {\displaystyle \{0,s\}} the Stanley sequences that they considered appeared to grow more erratically but even more sparsely. For instance, the first irregular case is s = 4 {\displaystyle s=4} , 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 n {\displaystyle n} is O ( n log ⁡ n ) {\displaystyle O{\bigl (}{\sqrt {n\log n}}{\bigr )}} . 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. Moy proved that Stanley sequences cannot grow significantly more slowly than the conjectured bound for the sequences of slow growth. Every Stanley sequence has Ω ( n ) {\displaystyle \Omega {\bigl (}{\sqrt {n}}{\bigr )}} elements up to n {\displaystyle n} . More precisely Moy showed that, for every such sequence, every ε > 0 {\displaystyle \varepsilon >0} , and all sufficiently large n {\displaystyle n} , the number of elements is at least ( 2 − ε ) n {\displaystyle ({\sqrt {2}}-\varepsilon ){\sqrt {n}}} . Relatedly, Dai and Chen proved that the number of elements is at least 1.77 n {\displaystyle 1.77{\sqrt {n}}} for infinitely many n {\displaystyle n} . Rolnick and Venkataramana also proved that for Stanley sequences that grow as n log 2 ⁡ 3 {\displaystyle n^{\log _{2}3}} the constant factor in their growth rates can be any rational number whose denominator is a power of three.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Stanley sequence

Start with the simplest possible case. Write down what Stanley sequence claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Stanley sequence before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Stanley sequence ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Stanley sequence

In research
Stanley sequence appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Stanley sequence in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Stanley sequence is common in secondary-school and first-year university syllabi. It links to neighbouring topics Integer sequences, so understanding it makes those chapters shorter.
In everyday life
Look for Stanley sequence outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Stanley sequence in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Stanley sequence means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Stanley sequence out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Stanley sequence in simple terms?

In mathematics, a Stanley sequence is an integer sequence generated by a greedy algorithm that chooses the sequence members to avoid arithmetic progressions. If S {\displaystyle S} is a finite set of non-negative integers on which no three elements form an arithmetic progression (that is, a Salem–S…

Why does Stanley sequence matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Stanley sequence?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Stanley sequence.

Tags

  • Integer sequences

Keep exploring