# Erdős–Borwein constant

The Erdős–Borwein constant is the sum of the reciprocals of the Mersenne numbers. It is named after Paul Erdős and Peter Borwein.

By definition it is:

$E=\sum _{n=1}^{\infty }{\frac {1}{2^{n}-1}}\approx 1.606695152415291763\dots$ ## Equivalent forms

It can be proven that the following forms all sum to the same constant:

$E=\sum _{n=1}^{\infty }{\frac {1}{2^{n^{2}}}}{\frac {2^{n}+1}{2^{n}-1}}$ $E=\sum _{m=1}^{\infty }\sum _{n=1}^{\infty }{\frac {1}{2^{mn}}}$ $E=1+\sum _{n=1}^{\infty }{\frac {1}{2^{n}(2^{n}-1)}}$ $E=\sum _{n=1}^{\infty }{\frac {\sigma _{0}(n)}{2^{n}}}$ where σ0(n) = d(n) is the divisor function, a multiplicative function that equals the number of positive divisors of the number n. To prove the equivalence of these sums, note that they all take the form of Lambert series and can thus be resummed as such.

## Irrationality

Erdős in 1948 showed that the constant E is an irrational number. Later, Borwein provided an alternative proof.

Despite its irrationality, the binary representation of the Erdős–Borwein constant may be calculated efficiently.

## Applications

The Erdős–Borwein constant comes up in the average case analysis of the heapsort algorithm, where it controls the constant factor in the running time for converting an unsorted array of items into a heap.