Sylvester Sequence Calculator

a(n) = a(0)·a(1)·...·a(n-1) + 1

CalculatorsFreeNo Signup
4.6(531 reviews)
All Tools

Loading tool...

About Sylvester Sequence Calculator

A Sylvester sequence calculator generating a(n) where each term equals the product of all previous terms plus 1. Grows doubly exponentially. Connected to Egyptian fractions via the greedy algorithm. Shows exact values and growth analysis. Client-side.

Sylvester Sequence Calculator Features

  • Sequence
  • Growth rate
  • Product formula
  • Egyptian fraction
  • Coprimality
Sylvester sequence: a(0)=2, a(n) = a(0)·a(1)·...·a(n-1) + 1. Equivalently: a(n) = a(n-1)² − a(n-1) + 1. First terms: 2, 3, 7, 43, 1807, 3263443... Grows like 2^(2^n). All terms pairwise coprime — Euclid's proof of infinite primes!

How to Use

Enter n:

  • a(n): The n-th term
  • Product: Running product
  • Growth: Doubly exponential

Euclid's Proof

Since a(n) = product of all previous + 1, a(n) shares no prime factor with any previous term. Each term introduces at least one new prime, proving infinitely many primes exist.

Egyptian Fraction

1 = 1/2 + 1/3 + 1/7 + 1/43 + 1/1807 + ... (reciprocals of Sylvester terms). This is the greedy Egyptian fraction of 1. The sum converges to exactly 1 in the limit.

Step-by-Step Instructions

  1. 1Enter n.
  2. 2View a(n).
  3. 3See product.
  4. 4Check growth.
  5. 5Explore Egyptian fraction.

Sylvester Sequence Calculator — Frequently Asked Questions

How fast does the sequence grow?+

Doubly exponentially: a(n) ≈ E^(2^n) where E≈1.264 is Vardi's constant. a(0)=2, a(5)=3263443, a(6)≈10^13, a(7)≈10^26. By term 12, the numbers have trillions of digits.

Why are terms pairwise coprime?+

If prime p divides both a(i) and a(j) (i<j), then p | a(0)·...·a(j-1) (since a(i) is a factor), so p | (a(j) − a(0)·...·a(j-1)) = 1. Contradiction! This is Euclid's proof of infinite primes.

What is the connection to Egyptian fractions?+

1/a(0) + 1/a(1) + ... = 1/2 + 1/3 + 1/7 + 1/43 + 1/1807 + ... The partial sum after n terms equals 1 − 1/(a(0)·...·a(n-1)). This converges to 1, giving an infinite Egyptian fraction representation.

Share this tool: