Zaremba Density Phase Transition: A={1,2,3} May Suffice
The Finding
For a digit set , define the Zaremba density at as the fraction of integers for which there exists a coprime with all continued fraction partial quotients in .
Zaremba (1972) conjectured that gives density 1 (i.e., every integer is covered). Our GPU computations show a strong transition in Zaremba density, but the audit conclusion is that it is not controlled by Hausdorff dimension alone:
| Digit set | Density at | Uncovered | Above ? | |
|---|---|---|---|---|
| 72.06% | 279,384,673 | 0.5313 | Barely | |
| 99.99% | 75,547 | 0.6240 | Yes | |
| 98.78% at | 1.22B (non-monotone: 97.3→97.1→98.8) | 0.5596 | Yes | |
| 99.9999997% | 27 | 0.7057 | Yes | |
| 99.9999936% | 64 | 0.6692 | Yes | |
| ~100% | ~2 | 0.7889 | Yes | |
| 95.89% at | 411M | 0.7340 | Yes | |
| 100% | 0 | 0.8368 | Yes |
For , exactly 27 integers in are uncovered — all :
Zero new exceptions between and . Computationally within this range, the exception set appears finite — but finiteness has not been proven analytically, and additional exceptions could in principle appear beyond . Subject to this caveat, the data strongly suggests achieves 99.9999997% density with exactly 27 exceptions (all ) within the tested range.
Why This Matters
A Strengthened Zaremba Conjecture
Zaremba originally conjectured . Bourgain-Kontorovich (2014) proved density 1 for (non-effectively). Our data suggests the truth may be much stronger: within the completed verification to , appears to suffice with exactly 27 exceptions, all . If this holds at all scales, it would be a dramatic strengthening — the bound on partial quotients drops from 5 to 3, and the exception set is finite. The repository does not currently contain a completed RESULTS block for , so this page should not cite stability for that set.
Hausdorff Dimension and Transitivity
The Bourgain-Kontorovich framework requires two conditions for full Zaremba density:
- Large Hausdorff dimension (): ensures enough representations exist.
- Transitivity of the semigroup on : ensures no congruence obstructions block coverage.
Hausdorff dimension alone is not sufficient. Our own data demonstrates this:
| Digit set | Density | Contains 1? | Why not full? | |
|---|---|---|---|---|
| 0.531 | 72% | Yes | barely above — representations grow too slowly | |
| 0.5596 | 97.3% | No | Dimension above 1/2 is not sufficient by itself | |
| 0.706 | 99.9999997% | Yes | AND transitive — 27 exceptions to , none growing |
The zbMATH review of Bourgain-Kontorovich (2014) notes that Hensley conjectured alone implies full density, but Hensley’s conjecture is false — sets with congruence obstructions (typically those lacking digit 1) can fail to achieve full density even with well above .
The real mechanism appears to involve digit 1 and congruence mixing. The matrix (corresponding to digit 1) is empirically powerful in both density and Hausdorff dimension computations. Transitivity of the full semigroup is computationally verified for primes up to 17,389 in our transitivity finding, but the all-prime algebraic proof remains provisional. Digit 1 alone does not guarantee transitivity; the full argument requires analyzing the joint action of all generators.
Our density sweep of all 1,023 subsets of confirms this dramatically: of 366 subsets with density, 361 contain digit 1. Only 5 achieve near-full density without digit 1, and those require .
The correct heuristic: plus transitivity are necessary conditions for full density, but may not be sufficient on their own — BK (2014) also requires spectral gap conditions (property ). The precise sufficient conditions for full density remain an open question.
Connection to Representation Counting
From our earlier Zaremba work, the representation count . For : , so grows as . For : , so — barely growing. The transition from (full density) to bounded (sub-full density) happens near .
Method
We use the inverse CF construction (from our Zaremba v4 kernel): enumerate ALL continued fractions with , compute each denominator via the convergent recurrence, and mark it in a bitset. After enumeration, any unmarked integer is uncovered.
This is rather than per denominator — fundamentally faster for dense digit sets.
Update: GPU Results to (2026-03-31)
The exception set for appears stable. Zero new exceptions between and :
| Digit set | Range | Density | Uncovered | GPU time |
|---|---|---|---|---|
| 99.9999997% | 27 (same 27 as at and ) | 12 hours | ||
| 99.9999994% | 64 (stable — same 64 as ) | 3 hrs | ||
| 72.06% | 279M | 28 sec | ||
| 99.9992% | 80,431 | 5 min | ||
| 97.29% | 27M | 11 sec |
The 27 exceptions for are exactly:
All . No new exceptions in 999,993,766 additional integers tested. This is strong computational evidence that the exception set is finite and complete.
| Computation | Status |
|---|---|
| , | Complete: 27 uncovered, all |
| , | Running (2026-04-01) |
| , | Running (2026-04-01) |
Update: Complete Density Landscape (2026-04-01)
We computed the Zaremba density for all 1,023 nonempty subsets of at .
Digit 1 Dominance in Density
Of the 366 subsets achieving density, 361 contain digit 1. Only 5 do not — and those require :
| Digit set (no digit 1) | | Density | Uncovered | |-------------------------|-------|---------|-----------| | | 9 | 99.999% | 14 | | | 8 | 99.997% | 34 | | | 8 | 99.996% | 39 | | | 8 | 99.995% | 48 | | | 8 | 99.994% | 60 |
With digit 1, only 3 digits suffice: gives 99.997% density with just 27 exceptions. Without digit 1, you need 8 or 9 digits for comparable density. This mirrors the Hausdorff digit 1 dominance — digit 1 is disproportionately powerful in both dimension and density.
Minimum Cardinality for Full Density
| Cardinality | Best density | Example |
|---|---|---|
| 1 | 0.003% | |
| 2 | 57.98% | |
| 3 | 99.997% | |
| 4 | ~100% | (2 exceptions) |
| 5 | 100% | (0 exceptions) |
The jump from 2 to 3 elements is the phase transition: 57.98% → 99.997%.
Best 3-Element Subsets
| Digit set | Density | Uncovered |
|---|---|---|
| 99.997% | 27 | |
| 99.994% | 64 | |
| 99.9999963% at | 374 (was 373 at — appears stable) | |
| 99.9999817% at | 1,834 (was 1,720 at ) | |
| 99.828% | 1,720 | |
| 99.461% | 5,388 | |
| 99.433% | 5,667 | |
| 24.613% | 753,868 |
Note (no digit 1) has only 24.6% density — the same cardinality as at 99.997%. Digit 1 accounts for a 75 percentage point difference.
Dataset: density_all_subsets_n10_1e6.csv on Hugging Face (1,023 rows, CC BY 4.0). Generation script and SHA-256 checksum available in the GitHub repository.
Update: 10^11 Stable Candidate Exception Sets (2026-04-23 Audit)
Overnight 8xB200 GPU batches pushed several {1,2,k} computations to . The completed logs in this repository certify stability for and ; some other 10^11 logs are partial and must not be cited as completed runs.
Stable Candidate Exception Sets (within completed ranges)
| Digit set | Exceptions | Max exception | Verified to | Status |
|---|---|---|---|---|
| 27 | 6,234 | Stable candidate; 10^11 repo log is partial | ||
| 64 | 51,270 | Stable candidate; 10^11 repo log is partial | ||
| 374 | ? | Stable candidate; 10^11 repo log is partial | ||
| 1,834 | ? | Stable candidate | ||
| 7,178 | ? | Stable candidate |
The {1,2,7} exception count is exactly 7,178 at both and — zero new exceptions across 90 billion additional integers tested. This is strong computational evidence for stability, not an analytic proof that the exception set is finite.
Open (Growing) Exception Sets at
| Digit set | Exceptions at | Exceptions at | Growth | Status |
|---|---|---|---|---|
| ? | 23,590 | — | Open | |
| ? | 77,109 | — | Open | |
| ? | 228,514 | — | Open | |
| 80,431 | 80,945 | +514 | Slowly growing |
The {1,3,5} exception set is growing but decelerating: +4,884 from to , then only +514 from to . It may eventually close but has not yet.
Pattern: Stable vs Growing Threshold
The data suggests a sharp threshold around :
- for : exception counts appear stable where completed logs exist
- for : exception counts are still growing at
This aligns loosely with Hausdorff dimension: while , suggesting the stable/growing transition may occur well above the bare threshold.
Reproduce
git clone https://github.com/cahlen/idontknow
cd idontknow
# CPU version (slow)
gcc -O3 -o zaremba_density scripts/experiments/zaremba-density/zaremba_density.c -lm
./zaremba_density 1000000 1,2,3
# GPU version (fast — requires CUDA)
nvcc -O3 -arch=sm_100a -o zaremba_density_gpu scripts/experiments/zaremba-density/zaremba_density_gpu.cu -lm
./zaremba_density_gpu 1000000000 1,2,3
References
- Zaremba, S.K. (1972). “La méthode des ‘bons treillis’ pour le calcul des intégrales multiples.” Applications of Number Theory to Numerical Analysis, pp. 39–119.
- Bourgain, J. and Kontorovich, A. (2014). “On Zaremba’s conjecture.” Annals of Mathematics, 180(1), pp. 137–196.
- Hensley, D. (1992). “Continued fraction Cantor sets, Hausdorff dimension, and functional analysis.” J. Number Theory, 40(3), pp. 336–358.
- Jenkinson, O. and Pollicott, M. (2001). “Computing the dimension of dynamically defined sets: and bounded continued fraction digits.” Ergodic Theory Dynam. Systems, 21(5), pp. 1429–1445.
Computed 2026-03-31 on Intel Xeon Platinum 8570 (DGX B200 cluster). 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.
Open Question: Does A={1,2} Have Full Density?
A={1,2} has Hausdorff dimension delta = 0.531, barely above the critical threshold 1/2. The Bourgain-Kontorovich framework predicts full density when delta > 1/2, but the exponent 2*delta - 1 = 0.062 is extremely small.
| Range | Density | Growth |
|---|---|---|
| 57.98% | — | |
| 72.06% | +4.7%/decade | |
| 76.55% | +4.5%/decade |
Update (2026-04-01): GPU computation to confirms the density is growing at ~4.5% per decade. At this rate, reaching 99% would require . The Bourgain-Kontorovich framework predicts full density ( plus transitivity), but the exponent is tiny, making convergence extremely slow. This is the slowest-converging digit set we’ve measured — a stress test for the theoretical prediction.