ArticleslgStudy

mathematics

Sylvester's sequence

Sylvester's sequence is a mathematics 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 Sylvester's sequence rather than just read about it. In short: In number theory, Sylvester's sequence is an integer sequence in which each term is the product of the previous terms, plus one. Its first few terms are 2, 3, 7, 43, 1807, 3263443, 10650056950807, 113423713055421844361000443 (sequence A000058 in the OEIS).

Sylvester's sequence — main illustration
Sylvester's sequence — illustration

Key takeaways

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

Reference excerpt

In number theory, Sylvester's sequence is an integer sequence in which each term is the product of the previous terms, plus one. Its first few terms are

2, 3, 7, 43, 1807, 3263443, 10650056950807, 113423713055421844361000443 (sequence A000058 in the OEIS). Sylvester's sequence is named after James Joseph Sylvester, who first investigated it in 1880. Its values grow doubly exponentially, and the sum of its reciprocals forms a series of unit fractions that converges to 1 more rapidly than any other series of unit fractions. The recurrence by which it is defined allows the numbers in the sequence to be factored more easily than other numbers of the same magnitude, but, due to the rapid growth of the sequence, complete prime factorizations are known only for a few of its terms. Values derived from this sequence have also been used to construct finite Egyptian fraction representations of 1, Sasakian Einstein manifolds, and hard instances for online algorithms.

Formal definitions Formally, Sylvester's sequence can be defined by the formula

sn=1+∏i=0n−1si. The product of the empty set is 1, so this formula gives s0 = 2, without need of a separate base case. Alternatively, one may define the sequence by the recurrence

si=si−1(si−1−1)+1, with the base case s0 = 2. It is straightforward to show by induction that this is equivalent to the other definition.

Closed form formula and asymptotics The Sylvester numbers grow doubly exponentially as a function of n. Specifically, it can be shown that

sn=⌊E2n+1+12⌋, for a number E that is approximately 1.26408473530530... (sequence A076393 in the OEIS). This formula has the effect of the following algorithm:

s0 is the nearest integer to E 2; s1 is the nearest integer to E 4; s2 is the nearest integer to E 8; for sn, take E 2, square it n more times, and take the nearest integer. This would only be a practical algorithm if we had a better way of calculating E to the requisite number of places than calculating sn and taking its repeated square root. The double-exponential growth of the Sylvester sequence is unsurprising if one compares it to the sequence of Fermat numbers Fn ; the Fermat numbers are usually defined by a doubly exponential formula, 22n+1, but they can also be defined by a product formula very similar to that defining Sylvester's sequence:

Fn=2+∏i=0n−1Fi.

Connection with Egyptian fractions The unit fractions formed by the reciprocals of the values in Sylvester's sequence generate an infinite series:

∑i=0∞1si=12+13+17+143+11807+⋯. The partial sums of this series have a simple form,

∑i=0j−11si=1−1sj−1=sj−2sj−1, which is already in lowest terms. This may be proved by induction, or more directly by noting that the recursion implies that

1si−1−1si+1−1=1si, so the sum telescopes

∑i=0j−11si=∑i=0j−1(1si−1−1si+1−1)=1s0−1−1sj−1=1−1sj−1. Since this sequence of partial sums (sj − 2)/(sj − 1) converges to one, the overall series forms an infinite Egyptian fraction representation of the number one:

1=12+13+17+143+11807+⋯. One can find finite Egyptian fraction representations of one, of any length, by truncating this series and subtracting one from the last denominator:

1=12+13+16,1=12+13+17+142,1=12+13+17+143+11806,…. The sum of the first k terms of the infinite series provides the closest possible underestimate of 1 by any k-term Egyptian fraction. For example, the first four terms add to 1805/1806, and therefore any Egyptian fraction for a number in the open interval (1805/1806, 1) requires at least five terms. It is possible to interpret the Sylvester sequence as the result of a greedy algorithm for Egyptian fractions, that at each step chooses the smallest possible denominator that makes the partial sum of the series be less than one.

Uniqueness of quickly growing series with rational sums As Sylvester himself observed, Sylvester's sequence seems to be unique in having such quickly growing values, while simultaneously having a series of reciprocals that converges to a rational number. This sequence provides an example showing that double-exponential growth is not enough to cause an integer sequence to be an irrationality sequence. To make this more precise, it follows from results of Badea (1993) that, if a sequence of integers an grows quickly enough that

an≥an−12−an−1+1, and if the series

A=∑1ai converges to a rational number A, then, for all n after some point, this sequence must be defined by the same recurrence

an=an−12−an−1+1 that can be used to define Sylvester's sequence. Erdős & Graham (1980) conjectured that, in results of this type, the inequality bounding the growth of the sequence could be replaced by a weaker condition,

limn→∞anan−12=1. Badea (1995) surveys progress related to this conjecture; see also Brown (1979).

Divisibility and factorizations If i < j, it follows from the definition that sj ≡ 1 (mod si ). Therefore, every two numbers in Sylvester's sequence are relatively prime. The sequence can be used to prove that there are infinitely many prime numbers, as any prime can divide at most one number in the sequence. More strongly, no prime factor of a number in the sequence can be congruent to 5 modulo 6, and the sequence can be used to prove that there are infinitely many primes congruent to 7 modulo 12. No term can be a perfect power.

Much remains unknown about the factorization of the numbers in Sylvester's sequence. For instance, it is not known if all numbers in the sequence are squarefree, although all the known terms are. As Vardi (1991) describes, it is easy to determine which Sylvester number (if any) a given prime p divides: simply compute the recurrence defining the numbers modulo p until finding either a number that is congruent to zero (mod p) or finding a repeated modulus. Using this technique he found that 1166 out of the first three million primes are divisors of Sylvester numbers, and that none of these primes has a square that divides a Sylvester number. The set of primes that can occur as factors of Sylvester numbers is of density zero in the set of all primes: indeed, the number of such primes less than x is O(π(x)/log⁡log⁡log⁡x). The following table shows known factorizations of these numbers (except s0 ... s3, which are all prime):

As is customary, Pn and Cn denote prime numbers and unfactored composite numbers n digits long.

… excerpt ends here. Continue reading the full article.

Illustrations

Sylvester's sequence: Graphical demonstration of the convergence of the sum 1/2 + 1/3 + 1/7 + 1/43 + ... to 1. Each row of k squares of side length 1/k has total area 1/k, and all the squares together exactly cover a larger square with area 1. Squares with side lengths 1/1807 or smaller are too small to see in the figure and are not shown.
Graphical demonstration of the convergence of the sum 1/2 + 1/3 + 1/7 + 1/43 + ... to 1. Each row of k squares of side length 1/k has total area 1/k, and all the squares together exactly cover a larger square with area 1. Squares with side lengths 1/1807 or smaller are too small to see in the figure and are not shown.

Worked examples

Example 1 — a first encounter with Sylvester's sequence

Start with the simplest possible case. Write down what Sylvester's sequence claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Sylvester's 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 Sylvester's 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 Sylvester's sequence

In research
Sylvester's sequence appears in mathematics 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 Sylvester's 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
Sylvester's sequence is common in secondary-school and first-year university syllabi. It links to neighbouring topics Egyptian fractions, Integer sequences, Number theory, so understanding it makes those chapters shorter.
In everyday life
Look for Sylvester's 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Sylvester's sequence” →

How to study Sylvester's sequence in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Sylvester's 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 Sylvester's sequence out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Sylvester's sequence in simple terms?

In number theory, Sylvester's sequence is an integer sequence in which each term is the product of the previous terms, plus one. Its first few terms are 2, 3, 7, 43, 1807, 3263443, 10650056950807, 113423713055421844361000443 (sequence A000058 in the OEIS).

Why does Sylvester's sequence matter?

Because it connects several mathematics 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 Sylvester's 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 Sylvester's sequence.

Tags

  • Egyptian fractions
  • Integer sequences
  • Number theory
  • Recurrence relations
  • Series (mathematics)

Keep exploring