← All projects / 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.
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.
| Decimal | No-zero base 13 | Decimal | No-zero base 13 | Decimal | No-zero base 13 |
|---|
Add a number's base 13 digits, then add the digits of the answer, and keep going until one digit is left.
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.
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.
| Root | First 10,000 primes | Every prime to 2,000,000 | Share |
|---|
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.
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 digit | Base 13 root | Primes (first 10,000) |
|---|
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.
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.
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.
| Prime | Base 13 root | Base 12 last digit | With √3 |
|---|
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 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.
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 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.