There is a newer version of the record available.

Published October 24, 2025 | Version https://github.com/boonespacedog/omega-mod-m.git

Finite-Size Equidistribution of Omega(n) Modulo m: Theory and Computation

Description

We study the finite-size distribution of the additive prime factor count Omega(n) modulo m. Using Fourier analysis and the Selberg-Delange method, we derive explicit decay laws for residue class imbalances and verify predictions computationally up to x = 10^8. The flagship case m=3 exhibits |S(x)|/x ~ 1.708(log x)^{-3/2}, confirmed to 6 decimal places. We extend to m = 4,5,6 and demonstrate universality across omega(n) and Omega(n). Short-interval analysis reveals a threshold H ≳ x^{0.6} for the decay law to manifest locally.
 
## Overview

This repository contains computational verification of finite-size distribution laws for the prime omega function Omega(n) modulo m. We establish that residue classes exhibit structured deviations from uniformity following the classical Selberg-Delange prediction with decay rate (log x)^{cos(2π/m)-1}.

**Key Innovation**: First explicit empirical verification of the Selberg-Delange constant C_m with dyadic shell regression, confirming theoretical predictions to 6 decimal places.

## Main Results

- **Flagship case m=3**: Verified decay |S(x)|/x ~ 1.708(log x)^{-3/2} up to x = 10^8
- **Extension**: Confirmed universal exponent cos(2π/m)-1 for m = 4,5,6
- **Constants**: First explicit estimates C_3 = 1.708 ± 0.025 (bootstrap 95% CI)
- **Threshold**: Short-interval law requires H ≳ x^{0.6} to manifest
- **Universality**: Same law holds for omega(n) (distinct prime factors)
 
## Methods

The computational approach combines four key techniques:

1. **SPF Sieve**: O(N log log N) preprocessing enables O(log n) factorization per number
2. **Euler Product**: Theoretical constants via truncated product over primes (10^6 primes ≈ 6 decimal accuracy)
3. **Dyadic Shell Regression**: Power-law fitting on [2^k, 2^{k+1}] intervals reduces autocorrelation
4. **Bootstrap**: 1000-sample resampling (seed=42) for uncertainty quantification

**Reference**: Paper Section 3 (Computational Methods)

## Key Theoretical Results

### The Decay Law

For any modulus m, the Fourier coefficient decays as:

```
|S(x)|/x ~ C_m (log x)^{cos(2π/m) - 1}
```

where `S(x) = sum_{n ≤ x} omega^{Omega(n)}` with `omega = exp(2πi/m)`.

### Theoretical Constants (Paper Table 1)
Modulus m Exponent C_m (Theory) C_m (Empirical) Agreement
3 -1.500 1.708456 1.708 ± 0.025 Excellent
4 -1.000 1.55523 1.555 ± 0.020 Excellent
5 -0.691 1.273375 1.273 ± 0.015 Excellent
6 -0.500 1.117734 1.118 ± 0.012 Excellent


**Empirical estimates**: Dyadic shell regression on x ∈ [2^{10}, 2^{26}], bootstrap 95% CI

### Short Intervals

The decay law also holds in short intervals [x, x+H] provided:
- H ≳ x^{0.6} (threshold for law to manifest)
- Optimal window: H ≈ x^{0.8} (balances noise vs. bias)

**Reference**: Paper Section 5 (Short Intervals)

## Reproducibility

All computational results in the paper are fully reproducible:

**Hardware**: Intel Core i9-12900K, 64GB RAM (consumer-grade)
**Software**: Python 3.11.5, NumPy 1.24.3, Matplotlib 3.7.1, SciPy 1.10.1
**Seed**: 42 (for all bootstrap sampling)
**Dyadic ranges**: [2^k, 2^{k+1}] for k = 10, 11, ..., 26
**Runtime**: ~45 min for m=3 at N=10^8 (single-threaded)

Results are stored in `data/omega_constants_final.json` and can be verified against paper values.
 
**Oksana Sudoma**
Independent Researcher
Email: boonespacedog@gmail.com
Web Tool: https://boonespacedog.github.io/omega-mod-m/ 

Files

omega_mod_m_24OCT_2025_Sudoma_O.pdf

Files (2.6 MB)

Name Size Download all
md5:35d79e1e1a893cb1cccc5d296e59fa02
1.2 MB Download
md5:7cabed9c2ac683fd395e181eba982b4f
1.4 MB Preview Download

Additional details

Related works

Is supplemented by
Software: https://github.com/boonespacedog/omega-mod-m (URL)
Computational notebook: https://boonespacedog.github.io/omega-mod-m/ (URL)

Dates

Copyrighted
2025-10-24

Software

Repository URL
https://github.com/boonespacedog/omega-mod-m
Programming language
Python , HTML , TeX
Development Status
Active