The {1,k} Density Hierarchy
The Finding
For each , we computed the Zaremba density of the pair at and . The density drops exponentially with :
| Density at | Density at | Above ? | ||
|---|---|---|---|---|
| 2 | 76.5487% | 80.7543% | 0.531 | Yes |
| 3 | 11.0568% | 9.1109% | 0.454 | No |
| 4 | 1.6096% | 1.0735% | 0.397 | No |
| 5 | 0.4398% | 0.2564% | 0.349 | No |
| 6 | 0.1721% | 0.0912% | 0.309 | No |
| 7 | 0.0840% | 0.0414% | 0.275 | No |
| 8 | 0.0475% | 0.0221% | 0.246 | No |
| 9 | 0.0297% | 0.0132% | 0.221 | No |
| 10 | 0.0201% | 0.0085% | 0.199 | No |
Why This Matters
{1,2} is the only pair whose density grows
The 10^11 data reveals something you cannot see at a single scale: density increases from 76.5% to 80.8% as grows from to , while every other pair’s density decreases. The set drops from 11.1% to 9.1%. The set drops from 0.020% to 0.0085%.
This is the Hausdorff dimension threshold at work. The dimension of the underlying Cantor set controls the long-term behavior: when (equivalently ), the set of representable denominators is theoretically predicted to be dense enough that its density converges toward 100%. When , the set is too thin and density is predicted to converge to 0%.
Only has . Every other pair has . So the 10^11 data is the first scale where we see the density trajectories clearly diverging — one pair headed toward full coverage, the rest headed toward nothing.
The critical jump is at
At , the density ratio . This is the largest consecutive ratio in the hierarchy, and it has widened from 6.9 at — confirming that is diverging upward while is converging to zero. Based on the Hausdorff dimension threshold, the ratio is expected to continue growing since has (density predicted ) while has (density predicted ). The large jump reflects both crossing the Hausdorff dimension threshold and the Gauss measure weight dropping by a factor of from to .
Gauss measure predicts the hierarchy
The Gauss measure assigns weight proportional to to digit in a typical continued fraction. For small :
| Gauss weight | Relative to | |
|---|---|---|
| 1 | 0.415 | 1.00 |
| 2 | 0.170 | 0.41 |
| 3 | 0.093 | 0.22 |
| 4 | 0.059 | 0.14 |
| 5 | 0.041 | 0.10 |
Digit 1 appears 41.5% of the time in a typical CF. Digit 2 appears 17%. Digit 3 appears 9.3%. The exponential decay in our density hierarchy directly reflects this concentration: pairs with rarer digits produce exponentially fewer CF representations, leading to exponentially lower density.
Power-law fit
The densities fit approximately:
Log-log regression over all 9 pairs ( through ) at gives:
The 95% confidence interval on the exponent is (OLS on 9 points, critical value 2.365). N-sensitivity: the same regression at gives exponent (95% CI , ). The exponent steepens by per decade of , because density grows () while all other pairs decay, stretching the log-log slope. The CIs at the two scales do not overlap, confirming that the power law is not scale-invariant — it is an effective fit at each , not a universal exponent.
The exponent is steeper than the naive from the Gauss measure weight alone. The discrepancy reflects the nonlinear dependence of Hausdorff dimension on the digit set: as grows, drops below , causing the density to decay as an additional power of . The product of these effects gives the steeper effective exponent.
Without Digit 1: The {2,k} and {3,k} Hierarchies
Removing digit 1 collapses density by orders of magnitude. We now have data at and select pairs at :
| at | at | Digit 1 multiplier | Growth from | |
|---|---|---|---|---|
| 3 | 9.1093% | 0.02148% | 424x | 1.74x (was 243x) |
| 4 | 1.0735% | 0.00431% | 249x | 1.64x (was 152x) |
| 5 | 0.2564% | 0.00162% | 158x | 1.48x (was 107x) |
Digit 1 amplifies density by 158—424x at , and the amplification is growing with scale: the multiplier increased by 1.5—1.7x from to . All and densities were computed using the same kernel and algorithm described in the Reproduce section below; the identical bitset enumeration applies with or instead of . This growth is explained by the Hausdorff dimension gap: pairs have higher dimension than pairs, so their density decays more slowly, making the ratio diverge.
Dropping further: {3,k} pairs at
| Pair | Density at | Ratio to | Ratio to |
|---|---|---|---|
| 0.000474% | is 9.1x larger | is 2,264x larger | |
| 0.000202% | is 8.0x larger | is 1,269x larger |
Each step down in the smallest digit costs roughly an order of magnitude. Without digit 1, no pair achieves even 0.01% density at . Without digits 1 or 2, density drops below 0.001%. This is the strongest quantitative evidence for the digit 1 dominance phenomenon.
Stable Candidate Exception Sets
Several triples have computationally observed exception sets that appear stable — no new exceptions appear when extending the search range by a factor of 10 where completed logs exist. This is observational stability, not a proof of finiteness. No branch-and-bound or analytic argument rules out further exceptions beyond our search range. The search is exhaustive within the stated range (every integer is checked via the bitset).
| Digit set | Exceptions | Exhaustive to | Stability window | Status |
|---|---|---|---|---|
| 27 | : no growth | paused (kernel fix) | ||
| 64 | : no growth | paused (kernel fix) | ||
| 374 | : limited growth then stable | Stable candidate; 10^11 repo log is partial | ||
| 1,834 | : no growth | Stable candidate | ||
| 7,178 | : no growth | Stable candidate |
The largest exception for is (full list of all 64 values available in results/gpu_A124_1e10.log).
The sequence 27, 64, 374, 1,834, 7,178 grows rapidly with . We cannot rigorously prove these sets are finite — additional exceptions could in principle appear beyond our search range. However, the stability across a full decade of extension is strong computational evidence.
Update (2026-04-23 audit): at gives exactly 7,178 exceptions — unchanged from . This is evidence for stability, not proof of a finite exception set. Meanwhile has 23,590 at (growing), suggesting a possible stable/growing threshold near .
Open Exception Sets at
| Digit set | Exceptions | Growth from | Status |
|---|---|---|---|
| 23,590 | growing | Open | |
| 77,109 | growing | Open | |
| 228,514 | growing | Open | |
| 80,945 | +514 from 80,431 | Slowly growing |
Reproduce
nvcc -O3 -arch=sm_100a -o zaremba_density_gpu scripts/experiments/zaremba-density/zaremba_density_gpu.cu -lm
for k in 2 3 4 5 6 7 8 9 10; do
./zaremba_density_gpu 100000000000 1,$k
done
Algorithm. The kernel enumerates all continued fractions with by DFS over the CF tree. Each node corresponds to a convergent ; children are formed via for each , pruning when . Reachable denominators are marked in a global bitset (one bit per integer: 1.25 GB for , 12.5 GB for ). FLOP counts are not reported because the DFS tree depth varies per prefix (typical max depth 40–180); wall-clock timing per pair is the meaningful performance metric. The CPU generates prefixes to depth 4—12 (depending on and ), then launches one GPU thread per prefix for the remaining DFS. Bit-marking uses atomicOr for thread safety. After GPU completion, the CPU counts marked bits.
Timing per pair (NVIDIA B200, CUDA 12.8, nvcc -O3 -arch=sm_100a):
| Pair | GPU enum (s) | Total (s) | Prefixes |
|---|---|---|---|
| {1,2} | 79.8 | 88.4 | 4096 |
| {1,3} | 9.3 | 18.0 | 4096 |
| {1,4} | 2.4 | 11.1 | 4096 |
| {1,5} | 1.8 | 10.4 | 4096 |
| {1,6} | 1.9 | 10.6 | 4096 |
| {1,7} | 1.7 | 10.3 | 4095 |
| {1,8} | 1.6 | 10.3 | 4083 |
| {1,9} | 1.5 | 10.3 | 4083 |
| {1,10} | 1.4 | 10.1 | 4017 |
The large tree for (Hausdorff dimension 0.531) takes 88 s; all other pairs complete in 10—18 s. Full output logs are in scripts/experiments/zaremba-density/results/.
Computed 2026-04-01, updated 2026-04-06 with 10^11 data including {2,k} and {3,k} pairs. NVIDIA B200. Human-AI collaboration (Cahlen Humphreys + Claude). Not peer-reviewed.