← All projects / Bases 6 and 9 Without a Zero

Bases 6 and 9, without a zero

The same questions as carryless base 3, asked of base 6 (2 × 3) and base 9 (3 × 3). With the ordinary carry both are just new spellings. Drop the carries and they come apart in two very different ways.

Counting without a zero

Base 6 uses the digits 1 to 6 and base 9 the digits 1 to 9. When a digit would go past the top one it wraps back to 1 and carries one, so after 6 comes 11 in base 6, and after 9 comes 11 in base 9.

DecimalNo-zero base 6No-zero base 9DecimalNo-zero base 6No-zero base 9

With the ordinary carry

BaseThe first 25 primes
proved

Base 6 shows the 6n ± 1 rule in the last digit

exact

Base 9's last digit is the decimal digital root

proved

The top digit takes 1's place as a root

Adding the digits keeps the remainder by 5 in base 6 and by 8 in base 9. As in base 13, remainder 1 shows up as the top digit (6 or 9), and only the number 1 has root 1.

First 10,000 primesLast digitsDigital roots

Carryless base 6 is base 2 and base 3 glued together

Drop the carries and wrap each column at 6. Every number then has two shadows: wrap its digits at 2 (odd or even) and you get a carryless base 2 number; wrap them at 3 and you get a carryless base 3 number. Multiplying multiplies both shadows at once, and the two never talk to each other.

proved

Base 3 primes in disguise

Every digit but the last is 2, 4 or 6, the last digit is odd, and the wrap-at-3 shadow is a carryless base 3 prime. Example: 241 (97) wraps at 2 to 1 and at 3 to 211, and 211 is a carryless base 3 prime.

proved

Base 2 primes in disguise

Every digit but the last is 3 or 6, the last digit is 1, 2, 4 or 5, and the wrap-at-2 shadow is a carryless base 2 prime. Example: 331 (127) has shadow 111, which is 1 + x + x², a carryless base 2 prime.

exact

Nothing else is prime

DigitsBase 3 kindBase 2 kindTotal2 × base 3 count + 2 × base 2 count
exact

Only 1 and 5 act like 1

So each prime has one twin, itself times 5. 5 is odd and 2 more than a multiple of 3, so it flips the base 3 shadow and leaves the base 2 shadow alone.

proved

Some numbers can't be built from primes at all

A number written only with 2, 4 and 6 has a wrap-at-2 shadow of zero, and a number written only with 3 and 6 has a wrap-at-3 shadow of zero. Products of primes never have a zero shadow, so these numbers have no prime factoring at all. 2 ⊗ 3 = 6, the zero.

measured

Rare, and lopsided toward the ordinary primes

Carryless base 9, two ways

Wrapping each column at 9: it breaks

exact

3 ⊗ 3 is the zero

exact

Long numbers that act like 1

exact

No unique factoring

Letting the digits multiply like i: it works

Write each digit as a + 3b with a and b from 0 to 2 (digit 9 is 0), and let it stand for a + b·i, where i × i = −1 and everything wraps at 3. Adding is digit-by-digit with no carry inside the digit either. These nine digits form a proper number system (the field with nine elements, the Gaussian integers wrapped at 3), and carryless base 9 becomes as clean as base 3.

DigitsCarryless primes8 × Gauss's count with 9
exact

Eight twins

Every digit from 1 to 8 acts like 1, so each prime comes in 8 versions. Factoring is unique again.

proved

A string of ones is never prime past 11

In base 3, 11111 and 1111111 are carryless primes. In base 9 none are after 11: that would need the powers of 9 to go through every remainder, and 9 is a perfect square, so its powers only ever reach half of them.

exact

Base 3 primes inside base 9

measured

Against the ordinary primes

Side by side

CarrylessBase 3Base 6Base 9, wrap at 9Base 9, digits as i

The pattern from base 13 and base 12 holds: dropping the carries works cleanly when the digits form a field. A prime base is one; base 9 can be made into one by letting its digits multiply like i. Base 6 can't, because 2 and 3 pull it into two separate pieces.