📱 The paper in five short screens, for a phone or a first look: the result, what it says in words, how it is proved, what has been checked, and where to try it. Nothing here loads Python.
🎯 The result 1 / 5
Write \(n=2^{e-1}m\) with \(m\) odd, \(e\ge 1\), and put \(t=2^e\). Then \(D_n\setminus 2D_n=D_m\) and \(2D_n\setminus D_n=tD_m\). Hence \(\langle \! \langle n\rangle \! \rangle _2\) is obtained by merging \(D_m\) (letters \({\mathtt{(}}\)) with \(tD_m\) (letters \({\mathtt{)}}\)), and its semilength is \(\tau (m)\).
💬 In plain words 2 / 5
Only the odd part of $n$ and the power of two matter, and in a simple way. If $n=2^{e-1}m$ with $m$ odd, the letters $\op$ of the word are the divisors of $m$ and the letters $\cl$ are those divisors multiplied by $t=2^e$; all the other divisors of $n$ cancel against their doubles. So the word has $\tau(m)$ letters of each kind, and it is obtained by merging the two sorted lists $D_m$ and $tD_m$. For $n=13720=2^3\cdot5\cdot7^3$ (Figure 1), $t=16$ and $m=5\cdot7^3$ has $8$ divisors, so the word has semilength $8$.
The paper attributes the reduction to Rodríguez Caballero, who pointed it out in the discussion that led to the note; the paper includes the short proof.
next ↓🛠️ How it is proved 3 / 5
What the paper contributes
The language $L$ of the words $\langle\!\langle n\rangle\!\rangle_2$ and the question of describing it are Rodríguez Caballero's. Starting from the reduction to the odd part, the paper counts the words of each semilength:
- Part I (structure). The words of a pattern are the words of the cells of a hyperplane arrangement in the logarithms of the primes, and every cell is realised by primes (Lemma 2.3). $L_k$ is produced by the single finest pattern $p_1^{q_1-1}\cdots p_r^{q_r-1}$, $k=q_1\cdots q_r$ (Theorem 3.1), so membership in $L$ is decidable (Corollary 4.2). Written proofs.
- Part II (general enumeration). The number $R(a,b)$ of cells of the pattern $p^ap'^b$ is a known count: $R(a,b)=(N(2b,2a)+4a+4b+6)/8$, with $N$ Alekseyev's number of two-dimensional threshold functions on a grid (Proposition 5.3; Acketa–Žunić, Alekseyev); the paper gives a direct proof, with leading coefficient $C_a\sim12a^2/\pi^2$ (Theorem 5.1, Corollary 5.2); $W(a,b)$ is eventually a quasipolynomial in $b$ of degree exactly two (Theorem 6.1, an application of Woods' theorem, existence only; Theorem 6.3, Corollary 6.4); three mechanisms by which distinct cells give the same word (Section 7). Written proofs.
- Part III (explicit counts). $|L_{2q}|=(9q^2-10q+13)/4$ for odd primes $q$ (Theorem A, written proof) and $|L_{3q}|=(44q^2-69q+58-3(\tfrac q3))/6$ for primes $q\ge5$ (Theorem B: one lemma is decided by exact SMT queries with Z3, without a checked proof object); a table of $|L_k|$ for small $k$ by exact enumeration.
The paper claims no novelty for the Kassel–Reutenauer reformulation of the appendix, which is implicit in Rodríguez Caballero's work (JNT 2018). The arrangements and their link with semiorders go back to Stanley; counting cells through vertices is the planar case of Zaslavsky's face-count formula; the quasipolynomiality rests on a theorem of Woods.
It rests on:
- Language of divisor words (Rodríguez Caballero) — the word ⟨⟨n⟩⟩₂, its Dyck property and symmetry, the reduction to the odd part, the decision problem (FOM 2020) and the link with the Kassel–Reutenauer polynomials are his
- Hyperplane arrangements (Stanley; Zaslavsky; Beck–Zaslavsky) — the word is the cell of a point in an arrangement α·x = 1; cells are counted through vertices (Euler’s relation, the planar case of Zaslavsky’s face count)
- Two-dimensional threshold functions (Acketa–Žunić 1991; Alekseyev 2010) — the number of cells R(a,b) is (N(2b,2a) + 4a + 4b + 6)/8, with N Alekseyev’s exact count of threshold functions on a grid; its leading term is Alekseyev’s too
- Presburger arithmetic (Woods 2015) — W(a,b) as a Presburger counting function is eventually a quasipolynomial (existence only)
- Prime numbers (Bertrand’s postulate) and SMT solving (Z3, cvc5) — every open cell is realised by primes; the completeness and disjointness of the coincidence classes for a = 2 are decided by exact SMT queries
🛡️ What is checked 4 / 5
🟢 2 formal · 🟡 5 formal in part · 🔵 20 computation · 🔴 10 by hand · ⚪ 11 cited / no proof here.
Proof: in this note · Formalized: Isabelle/HOL, by the author (public formalizations repository) · Covers: the whole statement
next ↓🧪 Try it 5 / 5
Labs in your browser (they load Python the first time):