import numberdb.sage as numberdb
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.real_arb import RealBallField
def erdos_borwein():
R = RealBallField(512)
N = 400
total = sum((R(1)/(ZZ(2)**n-1) for n in range(1, N+1)), R(0))
tail = QQ(2)/(ZZ(2)**(N+1)-1)
return total + R(0).union(R(tail))
erdos_borwein() # rigorous enclosure of the parameter-free constant
The attached generator sums $1/(2^n-1)$ through $N$ with Arb ball arithmetic and exact integer powers. For $q=1/2$, the positive remainder is bounded by $q^{N+1}/((1-q)(1-q^{N+1}))=2/(2^{N+1}-1)$. This follows by bounding $1-q^n$ below by $1-q^{N+1}$ for $n>N$ and summing a geometric series. A ball enclosing $[0,\mathrm{tail}]$ is added to the finite-sum enclosure, including rounding.
The generator uses 429 bits and 399 terms, with remainder at most $10^{-120}$. It retains 399 relative accuracy bits. The stored value has 100 significant decimal digits; the last digit has uncertainty of one unit.
An independent exact-rational divisor sieve and integer Horner evaluation of $\sum_{m=1}^{M}d(m)2^{-m}$ were checked against the stored decimal interval. Using $d(m)\leq m$, the positive remainder is at most $(M+2)/2^M$. At $M=441$, this independent bracket has width at most $10^{-130}$ and is contained in the stored interval. The attached executable checks include known divisor coefficients, a finite polynomial sum, a geometric-tail identity and a published-prefix control. They reject a deliberately shifted value, omission of the first term and an excessively wide interval.