← All projects / Base 13 Without a Zero

Base 13, without a zero

Count in thirteens with the digits 1 to 9, then A, B, C and D, and no 0 at all. Every number still gets exactly one spelling, so the primes are the same primes. What changes is what the digits can tell you about them.

Counting without a zero

After D (thirteen) comes 11, because 1 thirteen and 1 more is fourteen. When a digit would go past D it wraps back to 1 and carries one. This is the same trick as ten without a zero, one size up. The register page uses ordinary base 13, with a 0; this page doesn't.

DecimalNo-zero base 13DecimalNo-zero base 13DecimalNo-zero base 13

The primes, lined up

Look a number up

Digital roots: D takes 1's place

Add a number's base 13 digits, then add the digits of the answer, and keep going until one digit is left.

proved

The root is the remainder by 12

13 is one more than 12, so adding the digits never changes a number's remainder on dividing by 12. Remainder 0 shows as C. Remainder 1 shows as D, because D is a real digit here and a sum of 13 stops at D instead of going on to 1+3.

exact

Only 1 itself has root 1

proved

Primes above 3 use four roots

A prime above 3 is never a multiple of 2 or 3, so its remainder by 12 is 1, 5, 7 or 11. Its root is D, 5, 7 or B. The other nine roots rule out two thirds of all numbers. It's the 6n ± 1 rule, read off the digit sum.

RootFirst 10,000 primesEvery prime to 2,000,000Share

The four shares stay level, as Dirichlet's theorem says they must. D runs a hair behind the rest, which is the small lag known as Chebyshev's bias.

The base 12 mirror

Write the same primes in no-zero base 12 (digits 1 to 9, A, B, C). Every prime above 3 ends in 1, 5, 7 or B, and the last digit always matches the prime's base 13 root.

Base 12 last digitBase 13 rootPrimes (first 10,000)
proved

A base's root is the last digit one base down

Base 12's last digit is the remainder by 12. Base 13's digit sum keeps the remainder by 12. So they carry the same information, in different places. Ordinary ten does the same with nine: casting out nines.

exact

Base 12 spells it 1, base 13 spells it D

The only difference is remainder 1. A last digit can be 1, but a root of 1 belongs to the number 1 alone, so base 13 shows it as D.

Which primes split when 3 carries two columns over

Change the carry rule: instead of 3 in one column carrying 1 into the next, let it carry 1 two columns over. Then two columns over is worth 3, one column over is worth √3, and every number becomes a + b√3. In that world some primes break into two.

PrimeBase 13 rootBase 12 last digitWith √3
proved

Root B or D splits, root 5 or 7 stays prime

proved

Why 12 and 13

Whether a prime splits depends on whether 3 is a square on its clock, and that comes down to its remainder by 12. 12 also holds 2 and 3. So 12 and 13 are the smallest pair of bases that show both the 6n ± 1 rule and this split. Base 6 and 7 show the first but not the second.

DDD and the hidden 3

DDD = 13 × 169 + 13 × 13 + 13 = 2,379
2,379 = 3 × 13 × 61 = 13 × 183, and 183 is 111 in base 13

DDD is the biggest three-digit number, the job 999 does in ten, and 999 = 27 × 37 hides a 3 the same way. A number made of the top digit repeated is always a multiple of the base, so it is never prime. The next prime after DDD is 2,381, written 1112.

What changes, and what doesn't

The primes don't change

Counting, adding and multiplying in no-zero base 13 step through the same numbers in the same order, so the products are the same and so are the primes. A sieve run entirely in base 13 digits finds the same 352 primes up to DDD as decimal does.

The digits tell you more

The root gives the remainder by 12 for free: the 6n ± 1 filter and the √3 split, read off the digits. It doesn't make primes easier to find than the rule it repeats.