from mpmath import mp
mp.dps = 120
def D(n):
if not isinstance(n, int) or n < 3:
raise ValueError("n must be an integer at least 3")
k = (n - 1) // 2
if n % 2:
return mp.fprod(mp.mpf(2*j)**(k-j) * mp.pi**j /
mp.sqrt(mp.mpf(2*j+1)**(2*j+1))
for j in range(1, k+1))
return (2 * mp.pi**(mp.mpf((k+1)**2)/2) /
mp.gamma(mp.mpf(k+1)/2) *
mp.fprod(mp.mpf(2*j-1)**(k+1-j)/mp.mpf(2*j)**j
for j in range(1, k+2)))
for n in range(3, 23):
print(n, mp.nstr(D(n), 100))The proved product formulas (1) and (2) are evaluated with exact integer and rational prefactors and Sage/Arb real ball arithmetic. Each ball encloses the exact formula value and supports the 100 significant digits written here. The default computation uses 397 bits, including 64 extra working bits; the smallest measured relative accuracy across the 20 results exceeds 117 decimal digits. Every written interval contains a recomputation at 662 bits.
An independent mpmath computation at 180 working decimal digits uses Zhou's coupled determinant recursions, equations (4.1) and (4.2), starting from the one-by-one cases. Its largest relative discrepancy from the higher-precision product evaluation is below $7\times10^{-179}$. The two one-by-one and two two-by-two determinants also agree with the corresponding stored moments in Bessel moments, within the precision of those agreement-checked moments.
For every $3\leq n\leq22$, the defining moment matrix was independently integrated and its determinant evaluated at 70 and 100 working decimal digits. The largest relative discrepancies from the products were below $4\times10^{-67}$ and $2.4\times10^{-95}$, respectively. The nonzero controls $\int_0^\infty tK_0(t)\,dt=1$ and $\int_0^\infty tK_0(t)^2\,dt=1/2$ pass before the determinant checks. Bessel factors are evaluated in complex ball arithmetic at adaptively increased precision before their midpoints enter tanh-sinh quadrature. These integral checks are heuristic comparisons, not certificates of integration error; the rigorous stored-digit bounds come from the product formulas. The attached checks and numerical evidence give the quadrature cutoffs, precision records and determinant conditioning diagnostics.