Positional system with base $\beta = 2 - \omega$
Seven digits for the complex plane
Every Eisenstein integer has a unique finite representation in digits to base .
Full paragraph (abstract translation)
Knuth (1960), then still a high-school student, observed that an imaginary number can be used as the base of a positional numeral system — the quater-imaginary base for Gaussian integers. The same idea on the Eisenstein lattice gives rise to something even more elegant.
Take ; then
so there are exactly seven residue classes modulo , and the digit set is . Every Eisenstein integer admits a unique finite representation:
Addition, multiplication, and carry become geometric operations on the hexagonal lattice. The talk shows complete addition and multiplication tables for and a worked example of long addition with hexagonal carry — an operation accessible to any child who can do long addition in base ten.
Digit palette (solid version)
Colour carries the algebra: green / blue / red — (the RGB triple), magenta / yellow / cyan — (the CMY triple); pairs on opposite clock positions are pairwise complementary, and negation = switching to the complementary colour.
What deserves special attention
- The number is for the base , which means that this is exactly how many digits must belong to any self-consistent numeral system on . Not a designer's choice, but an arithmetic necessity.
- The carry rule is fully determined by the equation — it can be drawn as a triangle of three hexagons that "fold up" into zero.
- This septenary system is the direct arithmetic predecessor of the GQ128 format (slide 8).
Reference
- Knuth, D. E. (1960) An imaginary number system. Communications of the ACM, 3(4), 245–247. DOI:10.1145/367177.367233. dl.acm.org