Ternary rule for comma-numbers

At least 1 year old · documented by

Write a positive integer nn in base 33 as n=d1d2…dmn=d_1d_2\ldots d_m, with digits di∈{0,1,2}d_i\in\{0,1,2\}, and let cn(n)cn(n) denote its comma-number. The notation dmd1d_md_1 denotes the two-digit base-33 number formed from the last and first digits. Ternary comma-number conjecture. In base 33, cn(n)cn(n) is dmd1d_md_1, except for the following cases:

ncn(n)correction1 2i 1 (i≥1)12+11 2i j 2 (i≥0, j=0,1,2)22+12 or 2221+1 or −12i 1 (i≥0)11−12i j 2 (i≥0, j=0,1,2)21−12i 11 (i≥0)does not existnone\begin{array}{|c|c|c|} \hline n & cn(n) & \text{correction}\\ \hline 1\,2^i\,1\ (i\geq 1) & 12 & +1\\ 1\,2^i\,j\,2\ (i\geq 0,\ j=0,1,2) & 22 & +1\\ 2\ \text{or}\ 22 & 21 & +1\ \text{or}\ -1\\ 2^i\,1\ (i\geq 0) & 11 & -1\\ 2^i\,j\,2\ (i\geq 0,\ j=0,1,2) & 21 & -1\\ 2^i\,11\ (i\geq 0) & \text{does not exist} & \text{none}\\ \hline \end{array}

Here the correction is the amount added to the base-33 number dmd1d_md_1. The rule is presented as a precise empirical description of the ternary comma-number function; the authors state that they do not give a formal proof.

References

Primary source

Eric Angelini, Michael S. Branicky, Giovanni Resta, N. J. A. Sloane and David W. Wilson, “The Comma Sequence: A Simple Sequence With Bizarre Properties”, arXiv:2401.14346 (2024).

Progress summary

Refreshed
Claimed progress

A reader-submitted argument claims to prove the empirical rule, but no independent verification of that proof has appeared.

Angelini, Branicky, Resta, Sloane, and Wilson stated the ternary rule as Conjecture 9.29.2 in 2024. They reported strong confidence in the rule but explicitly gave no formal proof.

Community submission (unverified)

A submitted argument claims a complete proof for every digit length, using a reduction to the two possible leading digits, and presents a disjoint classification that adjusts some boundary cases in the printed table. The argument is unverified and has no independent corroboration in the retrieved sources.

Current status (as of August 2026): The rule remains formally unproved in the published source; a community-submitted proof claim exists, but it is unverified.

Sources

Solutions 1

ProofThis solution needs a summarySee full solutionHide full solution

A complete proof and corrected boundary classification for ternary comma-numbers

In The Comma Sequence: A Simple Sequence With Bizarre Properties, The Fibonacci Quarterly 62 (2024), 215--232, Eric Angelini, Michael S. Branicky, Giovanni Resta, N. J. A. Sloane, and David W. Wilson state Conjecture 9.2 concerning the comma-number of every positive integer written in base three. We prove the conjectured comma-number values for all digit lengths and make its exceptional families disjoint, correcting several boundary annotations in the printed table.

Write a positive integer in its canonical ternary representation

n=(d1d2⋯dm)3,d1∈{1,2},dm∈{0,1,2}.(1)n=(d_1d_2\cdots d_m)_3, \qquad d_1\in\{1,2\}, \qquad d_m\in\{0,1,2\}. \tag{1}

Throughout, a superscript in a digit word indicates repetition, so that 2i2^i denotes a string of ii copies of the ternary digit 22, and 202^0 denotes the empty string. Define the uncorrected comma-number by

c0(n)=(dmd1)3=3dm+d1.(2)c_0(n)=(d_md_1)_3=3d_m+d_1. \tag{2}

The complete, disjoint classification is

ternary word for ncn⁡(n)cn⁡(n)−c0(n)12i1,i≥1(12)3+112ij2,i≥0, j∈{0,1,2}(22)3+12 or 22(21)3−12i1,i≥1(11)3−12ij2,i≥1, j∈{0,1,2}(21)3−12i11,i≥0no successorundefinedevery other canonical wordc0(n)0(3)\begin{array}{c|c|c} \text{ternary word for }n&\operatorname{cn}(n)& \operatorname{cn}(n)-c_0(n)\\ \hline 12^i1,\quad i\geq1 &(12)_3&+1\\ 12^ij2,\quad i\geq0,\ j\in\{0,1,2\}&(22)_3&+1\\ 2\text{ or }22&(21)_3&-1\\ 2^i1,\quad i\geq1&(11)_3&-1\\ 2^ij2,\quad i\geq1,\ j\in\{0,1,2\}&(21)_3&-1\\ 2^i11,\quad i\geq0&\text{no successor}&\text{undefined}\\ \text{every other canonical word}&c_0(n)&0 \end{array} \tag{3}

In particular, this gives every value asserted by the source conjecture, including all positions with no comma-successor.

Reduction to two leading digits. Let r=dm=n mod 3r=d_m=n\bmod3. A comma-child whose leading ternary digit is e∈{1,2}e\in\{1,2\} must equal

Ne=n+(re)3=n+3r+e.(4)N_e=n+(re)_3=n+3r+e. \tag{4}

Conversely, NeN_e is a comma-child if and only if its actual leading ternary digit equals ee. Thus

Ne is a comma-child⟺δ3(Ne)=e,(5)N_e\text{ is a comma-child} \quad\Longleftrightarrow\quad \delta_3(N_e)=e, \tag{5}

where δ3\delta_3 denotes the leading ternary digit. Because N1<N2N_1<N_2, the comma-successor uses e=1e=1 whenever (5) holds for e=1e=1, and otherwise uses e=2e=2 if (5) holds for e=2e=2.

Suppose first that m≥3m\geq3, and put

P=3m−1≥9.(6)P=3^{m-1}\geq9. \tag{6}

The increments in (4) are at most 8<P8<P. Consequently, starting from a number with leading digit 11 can encounter only the boundary 2P2P, and starting from a number with leading digit 22 can encounter only the boundary 3P3P. At either boundary BB, define

h=B−n>0.(7)h=B-n>0. \tag{7}

Since 3∣B3\mid B, the trailing digit satisfies

h≡−r(mod3).(8)h\equiv-r\pmod3. \tag{8}

Leading digit 11. Here P≤n<2PP\leq n<2P and B=2PB=2P. The candidate N1N_1 has leading digit 11 precisely when it remains below BB, namely when

h>3r+1.(9)h>3r+1. \tag{9}

In this case the successor has comma-number 3r+1=c0(n)3r+1=c_0(n). If h≤3r+1h\leq3r+1, then N1N_1 crosses the boundary and has leading digit 22, whereas N2=N1+1N_2=N_1+1 also has leading digit 22. Hence the successor instead has comma-number

cn⁡(n)=3r+2=c0(n)+1.(10)\operatorname{cn}(n)=3r+2=c_0(n)+1. \tag{10}

Combining the inequality h≤3r+1h\leq3r+1 with (8) gives precisely

rhternary word1212m−2121,4,712m−3j2,j∈{2,1,0}.(11)\begin{array}{c|c|c} r&h&\text{ternary word}\\ \hline 1&2&12^{m-2}1\\ 2&1,4,7&12^{m-3}j2,\quad j\in\{2,1,0\}. \end{array} \tag{11}

There is no exceptional case when r=0r=0. The two rows of (11) are exactly the first two families in (3).

Leading digit 22. Here 2P≤n<3P2P\leq n<3P and B=3PB=3P. The smaller candidate N1N_1 has leading digit 11 precisely when it crosses BB, that is, when

h≤3r+1.(12)h\leq3r+1. \tag{12}

In this case the successor has

cn⁡(n)=3r+1=c0(n)−1.(13)\operatorname{cn}(n)=3r+1=c_0(n)-1. \tag{13}

If h≥3r+3h\geq3r+3, then N1N_1 still has leading digit 22 and is invalid, whereas N2N_2 also remains below BB and has leading digit 22. Consequently N2N_2 is the successor and

cn⁡(n)=3r+2=c0(n).(14)\operatorname{cn}(n)=3r+2=c_0(n). \tag{14}

The remaining possibility is

h=3r+2.(15)h=3r+2. \tag{15}

Then N1=B−1N_1=B-1 has leading digit 22, while N2=BN_2=B has leading digit 11. Neither candidate has its required leading digit, so there is no comma-successor.

Using (8), the exceptional and terminal possibilities become

rhternary wordoutcome122m−11−1 correction21,4,72m−2j2,j∈{2,1,0}−1 correction152m−211no successor.(16)\begin{array}{c|c|c|c} r&h&\text{ternary word}&\text{outcome}\\ \hline 1&2&2^{m-1}1&-1\text{ correction}\\ 2&1,4,7&2^{m-2}j2,\quad j\in\{2,1,0\}&-1\text{ correction}\\ 1&5&2^{m-2}11&\text{no successor}. \end{array} \tag{16}

No other value of hh changes the usual comma-number. In particular, the terminal family agrees with the independently established no-successor classification in Theorem 5.1 of the source.

One- and two-digit boundary cases. For the remaining eight positive integers below 99, the defining criterion (5) gives

n in base 312101112202122cn⁡(n) in base 311211none2121121.(17)\begin{array}{c|cccccccc} n\text{ in base }3&1&2&10&11&12&20&21&22\\ \hline \operatorname{cn}(n)\text{ in base }3&11&21&1& \text{none}&21&2&11&21. \end{array} \tag{17}

The words 11, 1010, 1212, and 2020 are ordinary; the words 22, 2121, and 2222 have correction −1-1; and 1111 has no successor. Combining these boundary cases with (11) and (16) proves (3) for every positive integer.

The original table gives the correct comma-number values but has overlapping endpoint conventions in its correction column. In particular, 201=12^0 1=1 and 2012=122^0 12=12 have correction 00, not −1-1; 2002=022^0 02=02 is not a canonical ternary word; and both 22 and 2222 have correction −1-1. The revised index ranges and separate boundary row in (3) remove these ambiguities while proving the full comma-number statement of Conjecture 9.2.