Digit-Partitioning Primes and the Alignment Formula

In base 10, exactly three primes produce total digit separation: 3, 7, and 11. Three different mechanisms, one shared condition, one universal formula.

Digit-Partitioning Primes and the Alignment Formula
The digit function sends each remainder to a digit bin. For $p = 7$ and $p = 11$, each occupied bin receives one remainder. At $p = 13$, some bins receive two, and collisions begin.

Write out all ten fractions of 11 and read down the columns:

 1/11 => 0.|09|
 2/11 => 0.|18|
 3/11 => 0.|27|
 4/11 => 0.|36|
 5/11 => 0.|45|
 6/11 => 0.|54|
 7/11 => 0.|63|
 8/11 => 0.|72|
 9/11 => 0.|81|
10/11 => 0.|90|

Ten fractions, ten two-digit blocks. Every digit appears exactly once in each column. No two fractions share a digit at the same position. The separation is total.

Now try $p = 13$:

 1/13 => 0.|076923|     7/13 => 0.|538461|
 2/13 => 0.|153846|     8/13 => 0.|615384|
 3/13 => 0.|230769|     9/13 => 0.|692307|
 4/13 => 0.|307692|    10/13 => 0.|769230|
 5/13 => 0.|384615|    11/13 => 0.|846153|
 6/13 => 0.|461538|    12/13 => 0.|923076|

Twelve fractions, but only ten possible digits. Read the leading digits. 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9. The digits 3 and 6 each appear twice. The separation is gone.

The line between these two cases is a single inequality, $p \leq b + 1$. At or below it, there are no more remainders than digit bins, so separation is possible. Above it, there are more remainders than bins, and some must share.

The primes on the clean side I call digit-partitioning. In base 10, there are exactly three: 3, 7, and 11.

Three primes, three mechanisms, one condition

Start with 3. Its fractional field is as clean as it gets:

1/3 => 0.|3|
2/3 => 0.|6|

Two fractions. Two single-digit repetends. 3 and 6. There is nothing to collide with.

Now 7. Read the columns instead of the rows:

1/7 => 0.|142857|
2/7 => 0.|285714|
3/7 => 0.|428571|
4/7 => 0.|571428|
5/7 => 0.|714285|
6/7 => 0.|857142|

Every column contains six different digits. Six fractions, six positions, six different choices at every position. Six remainders, ten bins, room to keep them apart.

Now think about 142857. Multiply it by 2 and you get 285714. By 3, 428571. By 4, 571428. The same six digits, rearranged, every time. It has appeared in recreational math books for over a century, usually without an explanation. The explanation is this: each multiplication corresponds to a different fraction of 7, each fraction's repetend is a rotation of the same string, and the rotations never collide because six remainders fit into ten bins without sharing. The cyclic structure comes from the multiplicative order of 10 modulo 7. The separation is forced by $7 \leq 10 + 1$.

Now 11:

 1/11 => 0.|09|
 2/11 => 0.|18|
 3/11 => 0.|27|
 4/11 => 0.|36|
 5/11 => 0.|45|
 6/11 => 0.|54|
 7/11 => 0.|63|
 8/11 => 0.|72|
 9/11 => 0.|81|
10/11 => 0.|90|

Read down the first column. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Every digit exactly once. Read down the second column. 9, 8, 7, 6, 5, 4, 3, 2, 1, 0. The same digits in reverse.

In base 10, $10 \equiv -1 \pmod{11}$. Multiplying a remainder by 10 is the same as negating it. The digit function forces each pair of digits to sum to 9:

$$\lfloor 10r/11 \rfloor + \lfloor 10(11{-}r)/11 \rfloor = 9$$

09 becomes 90. 18 becomes 81. 27 becomes 72. Every fraction paired with its complement, the outward path and its mirror. The same $k \leftrightarrow n{-}k$ symmetry visible in the early arithmetic notes, now showing up inside the repetend structure of a single prime.

Single digits. Full cycles. Complement pairs. Three different structures, one shared property. The condition $p \leq b + 1$ does not depend on how the separation happens, only on whether there are enough bins.

One formula for all three

Three primes, three completely different internal mechanisms. The alignment formula does not care how the separation happens. It cares only that it does. For every digit-partitioning prime:

$$\alpha(pm) = \frac{2m - 1}{pm - 1}$$

where $m$ is a $b$-smooth integer, built from the base's own prime factors. I proved this for $p = 3$ in Why the Golden Ratio Selects the Prime Three and found the same formula holds at $p = 7$ and $p = 11$. No correction terms, no special cases. As $m$ grows, the alignment approaches $2/p$.

The golden ratio, again

The alignment limit is $2/p$. For this to exceed the golden threshold $1/\varphi \approx 0.618$, we need $p < 2\varphi \approx 3.236$. Among primes, only $p = 2$ and $p = 3$ satisfy this, and $p = 2$ is trivial.

At $p = 3$, the limit is $2/3 \approx 0.667$. Above the line. At $p = 7$, $2/7 \approx 0.286$. Below. At $p = 11$, $2/11 \approx 0.182$. Further below. The crossing happens between 3 and 5, and no prime can land in that gap.

So the digit-partitioning class contains the entire golden tier in one prime. The other two digit-partitioning primes, clean as they are internally, fall on the wrong side of $1/\varphi$. The class and the threshold are not the same thing. The threshold cuts through the class.

The last seat

The digit function takes each remainder and drops it in a bin. In base 10, there are ten bins. A prime $p$ has $p - 1$ remainders. When there are fewer remainders than bins, everyone fits. When there are more, some have to share.

The digit function sorts remainders into bins

At $p = 3$, two remainders in ten bins. At $p = 7$, six into ten. At $p = 11$, ten into ten. The bins are full, not overcrowded.

Once the boundary is crossed, sharing begins. At $p = 13$, twelve remainders, ten bins. Two bins turn red. At $p = 17$, more red. At $p = 23$, the remainders outnumber the bins two to one.

Collisions explode

The diagram shows each prime's ten digit bins, colored by how crowded they are. At $p = 3$, $7$, and $11$, below the gold line, all blue. At $p = 13$, the first red appears. At $p = 17$, $19$, and $23$, more bins are shared. By $p = 499$, the crowding is heavy. A second plot counts the total collisions.

And it never comes back. Every prime larger than 11 has collisions in base 10.

The collisions land in specific places, governed by the same digit function, and they have structure. That structure is where the program goes next.

Different bases, same formula

Change the base and the clean primes change with it. Base 10 gives you 3, 7, and 11. Base 6 gives you 2, 3, and 5. Base 16 gives you 2, 3, 5, 7, 11, 13, and 17. Different grids, different clean primes. But the alignment formula $(2m-1)/(pm-1)$ is the same in every base. The golden threshold is the same in every base.

Something underneath does not depend on which grid you chose.

What does the prime look like when you stop choosing bases and look at it directly?


A note from 2026

April 2026

The boundary at $p = b + 1$ is the place where the program splits in two. On one side, the clean cases from this paper. On the other, the collisions. The Collision Invariant makes that second side finite and visible. The Collision Periodic Table shows its antisymmetry. The Collision Transform carries it to the prime number theorem boundary. The Collision Spectrum identifies the Fourier coefficients with $L$-function data at $s = 1$.

The complement pairs at $p = 11$, the digits summing to 9 in every position, are an early glimpse of the same reflection that later becomes structural in The Collision Periodic Table. The counting argument here is elementary, but it is already drawing the line the rest of the work has to cross.

The role of the prime 3 also held up. Why the Golden Ratio Selects the Prime Three picks it out from the alignment side. The later boundary-algebra work picks it out again from a completely different direction. The agreement between those two routes is why this boundary still feels important.

.:.


Try it yourself

See the three mechanisms. Each one different, each one clean.

./nfield field 3     # single digits. 3 and 6. Nothing to collide with.
./nfield field 7     # full cycle. Read down the columns. Six different digits in each.
./nfield field 11    # complement pairs. Digits sum to 9. The tightest possible fit.

Now cross the boundary.

./nfield field 13    # twelve remainders, ten bins. The digits 3 and 6 appear twice.
./nfield field 17    # sixteen remainders. More doubles.
./nfield field 23    # twenty-two remainders. The bins are crowding.

Code: github.com/alexspetty/nfield
Paper: Digit-Partitioning Primes and the Alignment Formula


Alexander S. Petty
April 2020 (updated April 2026)
.:.