Zaremba Density: Exception Sets and Phase Transitions
What This Experiment Does
For a digit set and range , count how many integers have a coprime with all continued fraction partial quotients of lying in . The density is the fraction of that are representable; the exception set is the set of that are not.
The CUDA kernel enumerates all continued fractions with by DFS over the convergent tree. Each node corresponds to a convergent ; children are formed via for each , pruning when . Reachable denominators are marked in a global bitset via atomicOr. The CPU generates prefixes to a dynamically chosen depth, then launches one GPU thread per prefix for the remaining DFS.
Key Results
{1,k} Pair Hierarchy at 10^11
| Density | Hausdorff dim | |
|---|---|---|
| 2 | 80.754% | 0.531 |
| 3 | 9.109% | 0.454 |
| 4 | 1.074% | 0.397 |
| 5 | 0.256% | 0.349 |
| 6 | 0.091% | 0.309 |
| 7 | 0.041% | 0.275 |
| 8 | 0.022% | 0.246 |
| 9 | 0.013% | 0.221 |
| 10 | 0.009% | 0.199 |
Power-law fit: ().
Only has Hausdorff dimension above , so only density grows with ; all others converge to zero.
Stable Candidate Exception Sets
| Digit set | Exceptions | Stable across |
|---|---|---|
| 27 | ||
| 64 | ||
| 374 | completed; log partial | |
| 1,834 | ||
| 7,178 |
For and , the completed logs contain RESULTS blocks. For , , and , the repository currently has partial logs without RESULTS blocks, so those sets should be cited only through their completed ranges. None of these observations proves finiteness.
Open Exception Sets at 10^11
| Digit set | Exceptions | Status |
|---|---|---|
| 23,590 | Growing | |
| 77,109 | Growing | |
| 228,514 | Growing | |
| 80,945 | Slowly converging (9.5x deceleration per decade) |
Digit 1 Amplification
The ratio grows with scale:
| Ratio at | Ratio at | Growth | |
|---|---|---|---|
| 3 | 243x | 424x | 1.74x |
| 4 | 152x | 249x | 1.64x |
| 5 | 107x | 158x | 1.48x |
Findings Produced
- Density phase transition
- Exception hierarchy
- Digit pair hierarchy
- logarithmic convergence
- Inverse-square amplification
Reproduce
nvcc -O3 -arch=sm_90 -o zaremba_density_gpu scripts/experiments/zaremba-density/zaremba_density_gpu.cu -lm
# Single pair
./zaremba_density_gpu 100000000000 1,3
# All {1,k} pairs at 10^11
for k in 2 3 4 5 6 7 8 9 10; do
CUDA_VISIBLE_DEVICES=$((k-2)) ./zaremba_density_gpu 100000000000 1,$k &
done
Status
65 GPU runs are archived across ranges to , but audit status depends on each log having a completed RESULTS block. Stable candidate exception sets are observations, not proofs of finiteness. Completed stability is presently supported for and ; , , and need completed reruns before being cited at that range.
Human-AI collaboration (Cahlen Humphreys + Claude). All code and data open at github.com/cahlen/idontknow.