Open computational mathematics. AI-audited, not peer-reviewed. All code and data open for independent verification.

by cahlen complete

Hardware

1x NVIDIA RTX 5090 (32 GB VRAM) Intel Core Ultra 9 285K 188 GB DDR5 RAM
real-analysisdiophantine-approximationcontinued-fractionsirrationality-measure rtx-5090 cuda-kernelquad-double-arithmetickahan-summation

Key Results

Problem
Convergence of the Flint Hills series to 10 billion terms with quad-double precision
S 10e10
30.3.1×10¹³
Max N
10¹⁰
Runtime Seconds
1.9
Convergent Spike Terms
19
Spike Contribution
27.6.6×10¹²
Bulk Contribution
2.6.6×10¹⁴
Spike Percentage
91.2,336
Previous Frontier
N ~ 10⁵
Frontier Extension
100,000x
Last 3 Spike Ratios
0.34, 0.4, 0.63
Spike Trend
shrinking
Irrationality Measure Evidence
consistent with mu(pi) ≤ 5/2

Flint Hills Series: Partial Sums to 101010^{10} with Spike Decomposition

Abstract

We computed the Flint Hills partial sum S1010=k=110101k3sin2k=30.31454612S_{10^{10}} = \sum_{k=1}^{10^{10}} \frac{1}{k^3 \sin^2 k} = 30.31454612 in 1.9 seconds on a single RTX 5090 GPU. This extends the computational frontier approximately 100,000x beyond published results (previously N105N \sim 10^5). The computation decomposes the sum into 19 convergent spike terms (computed in quad-double precision, ~62 decimal digits) and a smooth bulk (computed with Kahan-compensated double precision). Spikes account for 91.2% of the total sum. The last three convergent spikes (at k=16,17,18k = 16, 17, 18) all shrink, with successive ratios 0.34, 0.40, 0.63 — empirical evidence consistent with the irrationality measure μ(π)5/2\mu(\pi) \leq 5/2, which by the Lopez Zapata near-complete criterion would imply convergence of the series.

Background

The Flint Hills Series

The Flint Hills series is defined as:

n=11n3sin2n\sum_{n=1}^{\infty} \frac{1}{n^3 \sin^2 n}

Whether this series converges is an open problem, first posed by Pickover (2002). The difficulty lies in the Diophantine approximation properties of π\pi: when nn is close to a multiple of π\pi, sinn\sin n is small and the term 1/(n3sin2n)1/(n^3 \sin^2 n) can be enormous. Convergence depends on the irrationality measure μ(π)\mu(\pi) — specifically, convergence holds if μ(π)<5/2\mu(\pi) < 5/2 (since the exponent in the denominator is 3).

Connection to Irrationality Measure

The best rational approximations to π\pi come from its continued fraction convergents pk/qkp_k/q_k. Near these convergents, sin(pk)pkqkπ|\sin(p_k)| \approx |p_k - q_k \pi|, so the spike terms dominate the sum. If μ(π)5/2\mu(\pi) \leq 5/2, then the approximation pkqkπqk5/2+ε|p_k - q_k \pi| \gg q_k^{-5/2+\varepsilon} holds for all large kk, which forces the spike contributions to decay.

Lopez Zapata Criterion

Lopez Zapata established a near-complete criterion connecting spike decay to convergence:

  • Direction 1: If μ(π)5/2\mu(\pi) \leq 5/2, then the spike terms decay and the series converges. This direction is conditional on Open Problem 5.6 (a Duffin-Schaeffer type estimate for the specific Diophantine structure). It is not yet unconditional.
  • Direction 2: If μ(π)>5/2\mu(\pi) > 5/2, then infinitely many spikes grow without bound, and the series diverges.

This is a near-complete criterion, not a proof. The conditional direction (convergence given μ(π)5/2\mu(\pi) \leq 5/2) requires resolving Open Problem 5.6. Our computation provides empirical evidence for the hypothesis that spikes decay — consistent with μ(π)5/2\mu(\pi) \leq 5/2 — but does not prove convergence.

Method

Spike Decomposition

We separate the sum into two parts:

SN=k:pkN1pk3sin2pkspike terms+n=1n{pk}N1n3sin2nbulkS_N = \underbrace{\sum_{\substack{k : p_k \leq N}} \frac{1}{p_k^3 \sin^2 p_k}}_{\text{spike terms}} + \underbrace{\sum_{\substack{n=1 \\ n \notin \{p_k\}}}^{N} \frac{1}{n^3 \sin^2 n}}_{\text{bulk}}

where pkp_k are the numerators of the convergents of π\pi.

Spike Terms: Quad-Double Precision

The 19 convergent numerators pkp_k with pk1010p_k \leq 10^{10} are precomputed from the continued fraction of π\pi. For each, we evaluate sin(pk)\sin(p_k) in quad-double precision (~62 decimal digits) using custom inline arithmetic in the CUDA kernel. This is essential because sin(pk)|\sin(p_k)| can be as small as 101010^{-10}, and double precision would lose all significant digits in the argument reduction step.

Bulk Terms: Kahan Summation + Custom Argument Reduction

The remaining 1010\sim 10^{10} terms are computed in double precision on the GPU. We use:

  1. Custom argument reduction — range-reduced sin\sin evaluation avoiding catastrophic cancellation for large arguments
  2. Kahan compensated summation — maintains a running error compensation term, giving effectively double the precision for the accumulated sum

Single-Kernel Design

The entire computation runs in a single CUDA kernel launch. Each GPU thread processes a contiguous block of integers, accumulates locally with Kahan summation, and the results are reduced across the grid. Spike terms are handled separately on the host with the quad-double library.

Results

Summary

QuantityValue
S1010S_{10^{10}}30.3145461230.31454612
Runtime1.9 seconds
HardwareRTX 5090 (single GPU, 32 GB)
Convergent spike terms19
Spike contribution27.657027.6570 (91.2%)
Bulk contribution2.65752.6575 (8.8%)
Previous frontierN105N \sim 10^5
Extension factor100,000×\sim 100{,}000\times

Partial Sums at Powers of 10

NNSNS_NBulkSpikeSpike %
10610^630.314546120956342.6575081027.6570380391.23
10710^730.314546120956342.6575081027.6570380391.23
10810^830.314546120956342.6575081027.6570380391.23
10910^930.314546122618912.6575081027.6570380391.23
101010^{10}30.314546122963172.6575081027.6570380391.23

The sum is remarkably stable. From 10610^6 to 101010^{10}, the value changes only in the 11th significant digit, because no new large spikes appear beyond p18=6,167,950,454p_{18} = 6{,}167{,}950{,}454.

Spike Catalog

All 19 convergent spike terms with pk1010p_k \leq 10^{10}:

kkpkp_kqkq_ksin(pk)\|\sin(p_k)\|Term magnitudelog10\log_{10}
0311.41×1011.41 \times 10^{-1}1.861.860.270.27
12278.85×1038.85 \times 10^{-3}1.201.200.080.08
23331068.82×1038.82 \times 10^{-3}3.48×1043.48 \times 10^{-4}3.46-3.46
33551133.01×1053.01 \times 10^{-5}24.6024.601.391.39
4103993331021.91×1051.91 \times 10^{-5}2.43×1062.43 \times 10^{-6}5.61-5.61
5104348332151.10×1051.10 \times 10^{-5}7.25×1067.25 \times 10^{-6}5.14-5.14
6208341663178.11×1068.11 \times 10^{-6}1.68×1061.68 \times 10^{-6}5.77-5.77
7312689995322.90×1062.90 \times 10^{-6}3.89×1063.89 \times 10^{-6}5.41-5.41
88337192653812.31×1062.31 \times 10^{-6}3.23×1073.23 \times 10^{-7}6.49-6.49
911464083649135.88×1075.88 \times 10^{-7}1.92×1061.92 \times 10^{-6}5.72-5.72
10427294313601205.50×1075.50 \times 10^{-7}4.24×1084.24 \times 10^{-8}7.37-7.37
11541935117250333.82×1083.82 \times 10^{-8}4.31×1064.31 \times 10^{-6}5.37-5.37
1280143857255105821.48×1081.48 \times 10^{-8}8.90×1098.90 \times 10^{-9}8.05-8.05
13165707065527461978.65×1098.65 \times 10^{-9}2.93×1092.93 \times 10^{-9}8.53-8.53
14245850922782567796.12×1096.12 \times 10^{-9}1.80×1091.80 \times 10^{-9}8.75-8.75
154115579871310029762.54×1092.54 \times 10^{-9}2.23×1092.23 \times 10^{-9}8.65-8.65
1610689668963402627311.04×1091.04 \times 10^{-9}7.50×10107.50 \times 10^{-10}9.12-9.12
1725494917798115284384.47×10104.47 \times 10^{-10}3.01×10103.01 \times 10^{-10}9.52-9.52
18616795045419633196071.50×10101.50 \times 10^{-10}1.90×10101.90 \times 10^{-10}9.72-9.72

The dominant spike is k=3k = 3 (p3=355p_3 = 355, the famous approximation 355/113π355/113 \approx \pi), contributing 24.60 to the total sum — over 81% of the entire series by itself.

Spike Growth Rate Analysis

The critical question for convergence is whether spike terms grow or shrink. We compute the ratio Δk/Δk1\Delta_k / \Delta_{k-1} for consecutive spike magnitudes:

kkpkp_kΔk\Delta_kRatioTrend
12801438578.90×1098.90 \times 10^{-9}2.07×1032.07 \times 10^{-3}SHRINK
131657070652.93×1092.93 \times 10^{-9}0.3300.330SHRINK
142458509221.80×1091.80 \times 10^{-9}0.6130.613SHRINK
154115579872.23×1092.23 \times 10^{-9}1.2401.240GROW
1610689668967.50×10107.50 \times 10^{-10}0.337SHRINK
1725494917793.01×10103.01 \times 10^{-10}0.402SHRINK
1861679504541.90×10101.90 \times 10^{-10}0.631SHRINK

The last three convergent spikes (k=16,17,18k = 16, 17, 18) all shrink, with ratios 0.34, 0.40, 0.63. This is the key empirical observation: after a brief uptick at k=15k = 15 (ratio 1.24), the spikes resume decaying and the decay is sustained across three consecutive terms.

This pattern is consistent with μ(π)5/2\mu(\pi) \leq 5/2, which by the Lopez Zapata near-complete criterion (conditional on Open Problem 5.6) would imply convergence. However, 19 convergent terms is a small sample — the irrationality measure is an asymptotic property, and the true behavior at larger kk could differ.

Significance

What This Establishes

  1. 100,000x beyond published frontier. Previous computational work reached N105N \sim 10^5. We extend to N=1010N = 10^{10}, enabled by GPU parallelism and the spike decomposition strategy.

  2. Spike dominance quantified. Spikes from the 19 convergent numerators account for 91.2% of the total sum. The bulk of 101010^{10} terms contributes less than 9%.

  3. Spike decay trend. The last three convergent spikes shrink with ratios 0.34, 0.40, 0.63 — no evidence of the explosive growth that would signal μ(π)>5/2\mu(\pi) > 5/2.

  4. Practical convergence. The partial sum stabilizes to 8 digits by N=106N = 10^6 and barely moves through N=1010N = 10^{10}, suggesting the series converges to approximately 30.314530.3145.

What This Does Not Establish

  • Convergence is not proved. The irrationality measure μ(π)\mu(\pi) is unknown (best proven bound: μ(π)7.103\mu(\pi) \leq 7.103, Salikhov 2008). Our data is consistent with μ(π)5/2\mu(\pi) \leq 5/2 but does not prove it.
  • Lopez Zapata’s criterion is near-complete, not complete. Even if μ(π)5/2\mu(\pi) \leq 5/2, the implication to convergence requires Open Problem 5.6 (a Duffin-Schaeffer type estimate). This remains open.
  • 19 spikes is a finite sample. The continued fraction of π\pi could produce an exceptionally good approximation at some larger kk that creates a massive spike. Nothing in our data rules this out — it merely shows no evidence of it.

Reproducibility

git clone https://github.com/cahlen/idontknow
cd idontknow

# Compile the Flint Hills kernel (requires CUDA 13.0+, RTX 5090 or similar)
nvcc -O3 -arch=sm_100a -o flint_hills scripts/experiments/flint-hills-series/flint_hills.cu -lm

# Run to N = 10^10
./flint_hills 10000000000

# Results written to scripts/experiments/flint-hills-series/results/

Raw Data


References

  • Pickover, C.A. (2002). The Mathematics of Oz. Cambridge University Press.
  • Salikhov, V.Kh. (2008). “On the irrationality measure of π.” Russian Mathematical Surveys, 63(3), pp. 570–572.
  • Baillie, R. (2008). “Summing a curious, slowly convergent series.” American Mathematical Monthly, 115(6), pp. 525–540.

Computed 2026-03-29 on NVIDIA RTX 5090 (32 GB). Code: flint_hills.cu.

This work was produced through human–AI collaboration (Cahlen Humphreys + Claude). Not independently peer-reviewed. All code and data open for verification at github.com/cahlen/idontknow.

Recent Updates

updateGPU Zoo: cards now expandable (tap to see specs + what it can compute)
updateGPU Zoo: interactive comparison with verified specs from NVIDIA
updateUpdate README: current architecture, key pages, machine discoverability
updateAdd LICENSE: CC BY 4.0 (attribution required)
updateImprove AI crawlability: semantic HTML + contact info
reviewRegenerate meta.json + certifications.json (now auto-generated)
updateAdd /meta.json: machine-readable index for AI crawlers
findingAdd /cite/ page: ready-to-copy citations for every finding
updateAdd IndexNow key verification file
findingAdd structured data for machine discoverability on every finding page