Sylvester’s sequence: four numbers, infinitely many fractions

The four-number puzzle hides a sum that approaches 1, an exact remainder and a proof that primes never run out.

Section: Number theory Updated:
AI assistant

Articles /sylvester-sequence-four-number-puzzle
Sylvester’s sequence: four numbers, infinitely many fractions

10 min

The four-number puzzle

Find four distinct natural numbers greater than 1. Remove any one, multiply the three left and add 1. The result must be divisible by the number you removed, whichever one it is.

Illustration for the Number theory section
Section: Number theory
Reveal the answer

The numbers are 2, 3, 7, 43. Start with the last row: 43 is exactly 2·3·7 + 1.

2  →  3·7·43 + 1 = 904 = 2·452
3  →  2·7·43 + 1 = 603 = 3·201
7  →  2·3·43 + 1 = 259 = 7·37
43  →  2·3·7 + 1 = 43

Sylvester’s rule

Start at 2. Each new term is one more than the product of all previous terms. To get the next term without recomputing the product, multiply the current term by one less than itself, then add 1.

a₁ = 2
aₙ₊₁ = 1 + a₁a₂⋯aₙ = aₙ² − aₙ + 1
2, 3, 7, 43, 1807, 3263443, …

Why the puzzle works with any number of terms

Fix a term in an initial segment. The product before it is one less than that term. Every later term leaves remainder 1 when divided by it. Thus the product of all the others is −1 modulo the chosen term, and the +1 makes it divisible. For the first term the empty product is 1, which is 2 − 1.

Coprime does not mean prime

Every later term leaves remainder 1 modulo an earlier one, so any two are coprime. They are not all prime: 1807 = 13·139. But each term is greater than 1, so it contributes a prime factor not found in an earlier term. This proves there are infinitely many primes.

Reciprocals and the exact remainder

After 1/2 + 1/3 the remainder is 1/6. The largest unit fraction strictly smaller than it is 1/7; the next remainder is 1/42. In general, from a remainder 1/m choose 1/(m+1), leaving 1/[m(m+1)]. The remainder’s denominator is exactly the product of the terms used. Every finite sum is below 1, but the infinite sum equals 1.

1/m − 1/(m+1) = 1/[m(m+1)]
1 − (1/2 + 1/3 + 1/7 + 1/43) = 1/1806
1 − Σ(1/aⱼ), j = 1,…,n  =  1/(a₁a₂⋯aₙ)  =  1/(aₙ₊₁−1)

Growth by near-squaring

The remainder denominator grows from m to m(m+1), between m² and 2m² for m ≥ 2. Its logarithm grows on the scale of 2ⁿ: this is doubly exponential growth, and the digit count tends to double. A stronger result requires a separate proof: for a fixed number of unit fractions, these reciprocals give the closest sum to 1 from below.

K. Soundararajan, Approximating 1 from below using n Egyptian fractions

Is there another quadruple?

Order the numbers a < b < c < d and write P for their product. They are pairwise coprime: if two shared a divisor g > 1, removing one would leave a product divisible by g, so adding 1 would prevent divisibility by the removed number. Now P/a + P/b + P/c + P/d + 1 is divisible by each number: modulo that number, only the quotient that excludes it and the final 1 remain. Thus P divides the sum.

Dividing by P gives a positive integer below 2, bounded above by 1/2 + 1/3 + 1/4 + 1/5 + 1/120. It must equal 1. If a ≥ 3, the smallest possible denominators 3, 4, 5, 6 (and P ≥ 360) already give less than 1. Thus a = 2. The others are odd; if b ≥ 5, the lower bounds 5, 7, 9 (and P ≥ 630) again give less than 1, so b = 3.

1/a + 1/b + 1/c + 1/d + 1/P = 1
1/c + 1/d + 1/(6cd) = 1/6
6d + 6c + 1 = cd
d(c−6) = 6c+1

Substitute 2 and 3. This gives d = (6c+1)/(c−6); positivity requires c ≥ 7. Since d > c, we cannot have c ≥ 13: at 13, c(c−6) already exceeds 6c+1, and the gap increases. Only 7 and 11 in the range 7 to 12 are coprime to 6. For 11 we get d = 67/5, not an integer; for 7 we get 43. The quadruple is unique up to order.

Try it

Add 1807 to the list and remove 7. Without multiplying everything, find the remainder modulo 7 before adding 1.

Reveal the answer

The remainder is 6: 2·3 = 6 and both 43 and 1807 leave remainder 1.