Research log — Density of the Ulam sequence
Statement (as attacked)
Green 100 #7 (December 2025 update): does the classical Ulam sequence have positive density? Can one explain Steinerberger’s Fourier spike at ?
Erdős #342 (Bloom, accessed 2026-08-17): still open, “cannot be resolved with a finite computation”, zero claimed proofs. Additional questions in Guy C4 / Erdős–Graham: infinitely many pairs ? Eventually periodic differences? Density zero?
Tonight’s allowed dent, per the house prompt: a certified finite advance (exact prefix, covering/automaton certificate, or a spectral fact with a verifier). Density is not to be claimed unless proved.
Sources fetched
- Ben Green, 100 Open Problems, Problem 7, December 2025 update, https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf
- OEIS A002858, accessed 2026-08-17 (b-file through , )
- Steinerberger, A hidden signal in the Ulam sequence, Exp. Math. 26 (2017); arXiv:1507.00267
- Clément–Steinerberger, Small gaps in the Ulam sequence, CR Math. 363 (2025), 941–949; arXiv:2501.16285. Published growth record.
- Hinman–Kuca–Schlesinger–Sheydvasser, The unreasonable rigidity of Ulam sets, J. Number Theory 194 (2019); arXiv:1711.00145
- Kravitz–Steinerberger, Ulam sequences and Ulam sets, arXiv:1705.01883
- Erdős problem #342 and its forum (last page edit 2025-09-30; forum accessed 2026-08-17). A January 2026 comment already suggests optimizing the CS constant .
- Agama, arXiv:2007.02697v12, “Ulam numbers have zero density”. Not accepted by the current Green list or by Erdős #342. Unused.
Computational records we did not beat: Gibbs–McCranie, ; McCranie .
Published theorems used
- The sequence is infinite, and .
- Eggleton (in Recamán, AMM 1973): , hence with the real root of ().
- Clément–Steinerberger 2025, Lemma 1–2 and Theorem 1: Eggleton cannot hold twice in a row (once there are enough previous terms); if the next term is not Eggleton it is at most ; the resulting majorant is a product of with no consecutive ; gives for large . The same method cannot prove a base below .
- Regularity theorems of Finch, Schmerl–Spiegel, Cassaigne–Finch: not applicable to .
- Hinman et al.: . For this is , too weak to move Green #7.
What this folder proves
Theorem. Let be the Ulam sequence with , . Then
and
This is the Clément–Steinerberger majorant with a longer admissible word and with the Frobenius norm in place of the operator 2-norm. The 2-norm maximum was independently recomputed as , matching the published that they rounded to . The first at which the exact Frobenius maximum beats is (, ). The strongest run is (, ).
The all- statement at uses the majorant from and a direct integer check of on . The almost-all statement at uses the majorant from ; the only prefix failure is .
Record beaten. Clément–Steinerberger, CR Math. 363 (2025), Theorem 1. Record not beaten. Any published prefix length, any published digit of , any statement about density.
Not claimed. Existence of ; positivity of that limit; any explanation of .
Finite spectral fact (not a dent by itself)
On an independently generated prefix of terms,
except , and the same four
exceptions persist throughout the McCranie bracket on . Mean
cosine . Replay: compute/verify_spectral.py and the
spectral check inside compute/verify_all.py. This is Steinerberger’s
observation, re-verified, not a new theorem.
How to replay
cd problems/ulam-sequence/compute
python3 verify_all.py
That script does not re-enumerate words. It does:
- match OEIS A002858 (
b002858.txt) against a fresh generator; - recompute the integer products of the three winning words and the integer comparisons against ;
- check that the reported word counts equal the closed recurrence ;
- re-enumerate in Python and match , word
2313131131311313; - check on the first 200 terms, and that is the only failure in that range;
- replay the Steinerberger sign pattern on the first 5 000 terms.
To rebuild the large maxima from scratch (minutes to a few minutes per length):
cc -O3 -o search_cs_F search_cs_F.c -lm
./search_cs_F 16
./search_cs_F 22
The full 2-norm enumerator (used to reproduce CS at ) is
search_cs_bound.c. Matrices are in cs_matrices.py.
What is still open
Green #7 / Erdős #342, in full. The CS method, even at infinite , stops at unless a new combinatorial prohibition on words is proved. The actual sequence appears to grow linearly with slope about and density about ; that remains experimental. The hidden frequency remains an experimental constant.
Files
| path | role |
|---|---|
PROBLEM.md |
statement |
ATTACK.md |
chronological log |
WALKTHROUGH.md |
discovery narrative |
RESEARCH.md |
this file |
compute/ulam.py |
exact generator |
compute/cs_matrices.py |
|
compute/search_cs_bound.c |
2-norm + Frobenius enumerator |
compute/search_cs_F.c |
exact Frobenius enumerator |
compute/search_F_python.py |
independent Python enumerator |
compute/certify_bound.py |
integer certificate for one word |
compute/bounds_table.py |
table and exact |
compute/verify_all.py |
one-command replay |
compute/certificate_L{16,21,22}.json |
winning words |
compute/bounds_table.json |
table |
compute/b002858.txt |
OEIS b-file |
figures/cs_growth_constants.png |
versus |