Sylvester Sequence Calculator

Term

Sylvester term s(n)43
Previous term s(n - 1)7
Product of all earlier terms42
PrimalityPrime
How this was calculated
  1. The Sylvester sequence starts at 2 and grows by the rule s(n + 1) = s(n) x (s(n) - 1) + 1; it comes from the greedy Egyptian fraction expansion of 1.
  2. Building up: 2, 3, 7, 43, so s(3) = 43.
  3. Each term is one more than the product of all earlier terms: the product of the first 3 terms is 42, and 42 + 1 = 43.
  4. Because the terms grow doubly exponentially, the reciprocals 1/2 + 1/3 + 1/7 + ... telescope toward 1, which is exactly the Egyptian fraction connection; s(3) itself is prime.

The Sylvester sequence calculator generates terms of the sequence that begins 2, 3, 7, 43, 1,807, 3,263,443, where each term is one more than the product of all the terms before it. Enter how many terms you need and the calculator returns them in order, along with the intermediate products it used to build each one. You can also check individual values: s(3) = 43, s(4) = 1,807 = 13 x 139, and s(5) = 3,263,443, which is prime. Because the terms grow extremely fast, the calculator is most useful for the first several terms and for confirming the arithmetic behind any one of them.

This page uses the defining rule of the sequence — each term is one more than the product of all previous terms — because that rule is what makes the sequence what it is. The same construction produces the greedy Egyptian fraction expansion of 1, and the reciprocals sum telescopically: 1/2 + 1/3 + 1/7 + 1/43 = 1 - 1/1,806. That identity is why the greedy method is the accepted standard for this kind of calculation rather than an approximation or a shortcut. To make the result easy to verify, the page shows the formula, step-by-step workings, worked examples and sources, so you can follow each term from the product to the final value and check it against the sequence yourself.

Worked examples

s(3) = 43

(3)

Sylvester term s(n)43
Previous term s(n - 1)7
Product of all earlier terms42
PrimalityPrime

s(4) = 1,807

(4)

Sylvester term s(n)1,807
Previous term s(n - 1)43
Product of all earlier terms1,806
PrimalityComposite: 13 x 139

s(5) = 3,263,443

(5)

Sylvester term s(n)3,263,443
Previous term s(n - 1)1,807
Product of all earlier terms3,263,442
PrimalityPrime

What is the Sylvester sequence?

The Sylvester sequence is an infinite list of whole numbers built by a simple rule: each term is one more than the product of all the terms before it. Written as a recurrence, s(n + 1) = s(n)(s(n) - 1) + 1. This looks different from the product rule at first glance, but it is the same idea in disguise. Since s(n) - 1 equals the product of all terms before s(n), multiplying by s(n) adds that term to the product, and adding 1 finishes the job. So the recurrence and the product-plus-one form always agree. A sylvester sequence calculator applies either form to generate terms, which is handy because the numbers grow extremely fast.

Starting from 2, the sequence begins 2, 3, 7, 43, 1,807, 3,263,443. You can check each step by hand: 2 x 1 + 1 = 3; 3 x 2 + 1 = 7; 7 x 6 + 1 = 43; 43 x 42 + 1 = 1,807. The product form gives the same results: 2 x 3 x 7 + 1 = 43, and 2 x 3 x 7 x 43 + 1 = 1,807. By the time you reach s(5), the term is 3,263,443, which is prime. Not every term is prime, though. The term s(4) = 1,807 factors as 13 x 139, so primality is not a rule of the sequence.

The sequence is also tied to fractions. Its reciprocals sum telescopically: 1/2 + 1/3 + 1/7 + 1/43 = 1 - 1/1,806. The pattern continues, with each new term shrinking the gap to 1. Because of this, the sequence gives the greedy Egyptian fraction expansion of 1, meaning 1 is written as a sum of unit fractions where each denominator is chosen as small as possible at each step. The Sylvester sequence supplies exactly those denominators.

A few practical notes help when you use the sequence. The terms are defined for whole-number indices, and the growth is roughly doubling in digit length with each step, so even modest indices produce very large values. The recurrence s(n + 1) = s(n)(s(n) - 1) + 1 needs only the previous term, while the product-plus-one form needs the full list, so the recurrence is usually the faster route. Both are exact, with no rounding involved, because every operation is multiplication and addition of integers.

  • First terms: 2, 3, 7, 43, 1,807, 3,263,443
  • Recurrence: s(n + 1) = s(n)(s(n) - 1) + 1
  • Product form: each term is one more than the product of all previous terms
  • s(4) = 1,807 = 13 x 139, so not every term is prime
  • s(5) = 3,263,443, which is prime
  • Reciprocal check: 1/2 + 1/3 + 1/7 + 1/43 = 1 - 1/1,806
  • The sequence gives the greedy Egyptian fraction expansion of 1
Each term is one more than the product of every term before it, so the numbers grow explosively: by the sixth term you are already at 3,263,443.

The Egyptian fraction connection

The Sylvester sequence starts 2, 3, 7, 43, 1,807, 3,263,443, and each term is one more than the product of all the terms before it. That rule is what connects the sequence to Egyptian fractions — sums of unit fractions, each with 1 on top. A sylvester sequence calculator makes the pattern easy to check: add the reciprocals of the early terms and watch the total climb toward 1 without ever passing it.

The telescoping is the heart of it. Take the first four terms and add their reciprocals: 1/2 + 1/3 + 1/7 + 1/43 = 1 - 1/1,806. The leftover, 1/1,806, is exactly the gap the next term closes. Because each new term is one more than the product of everything before it, its reciprocal splits the remaining gap into a smaller piece and a new remainder. The sum keeps stepping closer to 1, and the size of the shortfall shrinks with every term you add.

This is why the sequence gives the greedy Egyptian fraction expansion of 1. The greedy method takes the largest unit fraction that still fits under the target, subtracts it, and repeats on what is left. Applied to 1, that method produces exactly 1/2, then 1/3, then 1/7, then 1/43, and onward through the Sylvester terms. The sequence and the greedy expansion are two views of the same process.

The individual terms grow very fast, which is what keeps the expansion working. s(3) = 43 and s(4) = 1,807 = 13 x 139. The next term, s(5) = 3,263,443, is prime. So the denominators move from a small prime product to a large prime, and the unit fractions involved become tiny almost immediately. Even a handful of terms gets you extremely close to 1, while the exact remainder stays just out of reach — the sum approaches 1 but never equals it with any finite number of terms.

TermValueNote
s(3)43One more than the product of all previous terms
s(4)1,807= 13 x 139
s(5)3,263,443Prime
Check the telescope yourself: 1/2 + 1/3 + 1/7 + 1/43 = 1 - 1/1,806. The missing 1/1,806 is the room the next Sylvester term is built to fill.

Worked terms

To see how a Sylvester sequence calculator builds the sequence, start from the rule that each term is one more than the product of all the terms before it. The sequence begins 2, 3, 7, 43, 1,807, 3,263,443. Working forward one term at a time shows how quickly the numbers grow and where the surprises appear.

The term s(3) = 43 comes from multiplying everything earlier and adding one. The earlier terms are 2, 3 and 7, and 2 × 3 × 7 = 42, so s(3) = 42 + 1 = 43. The next term follows the same pattern: multiply 2, 3, 7 and 43, then add one. That product is 1,806, so s(4) = 1,806 + 1 = 1,807. From there, s(5) is one more than the product of 2, 3, 7, 43 and 1,807, which gives 3,263,443.

The interesting part is not just the size of these terms but their divisibility. The term 1,807 is composite: it equals 13 × 139. Yet its neighbors in the sequence, 43 and 3,263,443, are both prime. So the run reads prime, composite, prime across s(3), s(4) and s(5) — a reminder that a rule for generating terms says nothing about whether each term will be prime.

The same terms also connect to fractions. The reciprocals sum telescopically: 1/2 + 1/3 + 1/7 + 1/43 = 1 − 1/1,806. In general, the sequence gives the greedy Egyptian fraction expansion of 1, meaning each term is the smallest unit fraction that keeps the running total from exceeding 1. A sylvester sequence calculator can generate the terms and check these relationships for you, but the worked terms above show the arithmetic behind them: multiply all earlier terms, add one, and watch the values climb from 43 to 1,807 to 3,263,443.

  • s(3) = 43, since 2 × 3 × 7 = 42 and 42 + 1 = 43.
  • s(4) = 1,807, since 2 × 3 × 7 × 43 = 1,806 and 1,806 + 1 = 1,807.
  • 1,807 = 13 × 139, so s(4) is composite, while its neighbors 43 and 3,263,443 are prime.
  • s(5) = 3,263,443, one more than the product of all earlier terms.
Prime, composite, prime: 43 is prime, 1,807 = 13 × 139, and 3,263,443 is prime.

How fast does it grow?

The Sylvester sequence grows at a rate that is hard to picture, because it is doubly exponential. Each term is one more than the product of every term before it, which means each new term is roughly the square of the one before. Squaring already produces runaway growth; squaring repeatedly produces growth that outpaces almost anything else you are likely to meet in a calculator. This is why a sylvester sequence calculator is useful for the first few terms and for checking your arithmetic, but cannot display the later ones in full.

The early terms hide how quickly things escalate. The sequence starts 2, 3, 7, 43, 1,807, 3,263,443. Going from 43 to 1,807 looks modest, and 1,807 factors as 13 x 139, so it still feels like an ordinary number. Then s(5) = 3,263,443, which is prime. That jump already multiplies by more than 1,800, and the next step multiplies by a number of roughly that size again. By the time you reach the seventh or eighth term, the count of digits is in the dozens and then the hundreds.

The reason is built into the definition. Since each term is one more than the product of all previous terms, and the product of all previous terms is itself close to the last term, every new term is close to the square of its predecessor. Doubling the number of digits at each step adds up fast: a term with 10 digits is followed by one with about 20, then about 40, then about 80. This is doubly exponential growth, and it is why only a handful of terms are ever practical to write down. Even a computer storing the full digits runs out of room surprisingly soon.

There is a neat consequence on the other side of the ledger. The reciprocals of the terms sum telescopically: 1/2 + 1/3 + 1/7 + 1/43 = 1 - 1/1,806. Each added reciprocal closes more of the remaining gap to 1, and the gap shrinks to the reciprocal of the next term. In fact, the sequence gives the greedy Egyptian fraction expansion of 1: at each stage you take the largest unit fraction that still fits under the remaining amount. The terms explode in size precisely so that their reciprocals can keep creeping toward 1.

So the honest answer to how fast it grows is: faster than you can write. The first several terms are easy to list, the next few are manageable with a calculator, and beyond that you are working with digit counts rather than digits. That is the practical lesson of the sequence, and it is why the interesting questions about it concern its structure, its factorization and its reciprocal sum rather than the full decimal expansion of its later terms.

Each term is roughly the square of the one before, so the number of digits doubles at every step. That is doubly exponential growth, and it is why only a few terms of the Sylvester sequence can ever be written out in full.

FAQs

What are the first Sylvester numbers?

The first Sylvester numbers are 2, 3, 7, 43, 1,807 and 3,263,443. Each term is one more than the product of all the terms before it. So after 2, 3 and 7, the next term is 2 x 3 x 7 + 1 = 43, and the pattern continues to 1,807 and then 3,263,443.

How is each term calculated?

To get each term, multiply all the previous terms together and add 1. The sequence can also be written as s(n + 1) = s(n) x (s(n) - 1) + 1, which gives the same result using only the current term instead of the full product. Both rules produce the same numbers: 2, 3, 7, 43, 1,807 and so on.

Is 1,807 prime?

No. The fourth Sylvester number, s(4), equals 1,807, and 1,807 = 13 x 139. So it is composite, not prime. This is a useful reminder that the sequence does not consist only of primes, even though the early terms 2, 3, 7 and 43 are all prime.

Why is the sequence named in Egyptian fractions?

The reciprocals of the Sylvester numbers give the greedy Egyptian fraction expansion of 1. In a greedy expansion, each unit fraction added is the largest one that still fits without pushing the total past 1. The Sylvester sequence produces exactly that chain of unit fractions, which is why the sequence is tied to Egyptian fractions.

Do the reciprocals really sum to 1?

In the limit, yes. The reciprocals approach a total of 1 but never quite reach it in any finite partial sum. After the term 43, the partial sum is exactly 1 - 1/1,806, and the gap keeps shrinking doubly exponentially as more terms are added. So the infinite sum equals 1.

Is every Sylvester term prime?

No. The term 1,807 is composite, since 1,807 = 13 x 139. Many Sylvester terms are prime, but not all of them. When a term is composite, its factors are always large, which is one reason the sequence is studied and why later terms grow so quickly.

Sources

Related calculators

Fibonacci Calculator
The nth Fibonacci number, computed exactly with arbitrary-precision arithmetic — plus the next term, the sum of the first n terms, and how close the ratio has come to the golden ratio.
Collatz Conjecture Calculator
Run the Collatz (3n + 1) sequence for any starting number: total stopping time, peak value and the hailstone sequence itself.
Recaman Sequence Calculator
Generate Recaman's sequence term a(n) by the subtract-if-possible rule, with the neighbouring terms and the largest value so far.