Skip to content
ponderance / anmol
← Marginalia

math

Loeschian numbers and the Eisenstein integers

Why 'rounds nicely' secretly depends on the prime factorization of T, a tour down to the Eisenstein integers.

2026-06-22

The whole Sonobe story rests on one condition, T=b2+bc+c2T = b^2 + bc + c^2, and I kept treating it as a black box, the way you nod along to a friend explaining their crypto. The numbers it produces are called Loeschian numbers, and the reason some integers are Loeschian and others aren’t is genuinely deep.

A quick refresher on notation first, since the rest leans on it. ab(modn)a \equiv b \pmod n means aa and bb leave the same remainder when divided by nn. A clock is the everyday version: 15 ⁣: ⁣003(mod12)15\!:\!00 \equiv 3 \pmod{12}. Working mod 3 just sorts every integer into three bins by remainder: the multiples of 3, the ones that leave remainder 1, and the ones that leave remainder 2.

The test for whether nn is Loeschian, prime by prime:

  • primes 1(mod3)\equiv 1 \pmod 3: free, any power
  • the prime 3: free, any power
  • primes 2(mod3)\equiv 2 \pmod 3: allowed only to even powers

That instantly explains the puzzles from the paper-budget note. 6161 is prime and 611(mod3)61 \equiv 1 \pmod 3, so it contains zero troublesome primes and sails through. And sure enough 61=(5,4)61 = (5,4). Meanwhile 95=51995 = 5 \cdot 19: here 52(mod3)5 \equiv 2 \pmod 3 appears to the first power, an odd power, so 95 is not Loeschian, and no Sonobe ball lands there.

Why are the 2\equiv 2 primes the troublemakers? This is the part that made me put the paper down and stare at a wall for a while. The form factors:

b2+bc+c2=(bcω)(bcω2)b^2 + bc + c^2 = (b - c\omega)(b - c\omega^2)

where ω\omega is a primitive cube root of unity, satisfying ω2+ω+1=0\omega^2 + \omega + 1 = 0. That product is a norm, the squared size of the number bcωb - c\omega in the ring of Eisenstein integers, the triangular lattice of points a+bωa + b\omega in the complex plane.11 The Eisenstein integers are to a 60° triangular grid what the ordinary integers are to the number line. And it’s the very same triangular grid your Sonobe faces tile. And the behavior of an ordinary prime pp in that ring is exactly what the mod-3 rule is tracking:

1ωa + bω60° triangular lattice
The Eisenstein integers: a 60° triangular lattice, the same grid the paper faces sit on.
  • p1(mod3)p \equiv 1 \pmod 3 splits: it factors into two Eisenstein primes whose norms multiply back to pp, so it can contribute any power.
  • p2(mod3)p \equiv 2 \pmod 3 stays inert: it remains prime in the Eisenstein integers, and the smallest norm it can contribute is p2p^2, which is precisely why it’s forced to even powers.
  • p=3p = 3 is the lone ramified case, sitting on its own.

So the question “will my paper ball round nicely?” reduces, after enough unfolding, to “how does this number factor in the Eisenstein integers?” The triangular lattice the units physically sit on is the same lattice the number theory is secretly about. The paper knew before I did. The geometry and the algebra were never two different things, which, after six notes, feels like the right place to stop.

← back to the index