← All projects / Bases 0, 1, 2 and 8
A base is how many different digits you're allowed. This page takes the four that matter most here: base 0, which can't write anything, base 1, which is tally marks, base 2, where every family on this site lives, and base 8, which reads those families straight off.
Base 10 has ten digits, base 2 has two. Base 0 would have none. With no digits you can't write any number, not even zero. It's the blank page before the first mark.
One digit: a stroke. There's no zero and no places, so nothing carries. The number is simply how many strokes there are. Seven is |||||||.
Two digits, on and off. This is the first base where the position of a digit matters, and it's where all the families are built: 0101, 000111 and the rest are patterns of bits.
8 is 2 × 2 × 2, so each base 8 digit stands for exactly three bits. Nothing gets mixed up on the way. 8 itself is written 10.
Numbers from 1 to 144.
Twelve strokes can be stacked as 2 rows of 6 or 3 rows of 4. Seven strokes can only sit in one line. That's the whole meaning of "prime", and it's the only pattern base 1 has: with a single digit there's nothing to look at except the length.
Write 91 in ordinary digits and nothing about it says 7 rows of 13. Bigger bases make numbers short to write and hard to see into. That trade is why primes are easy to define and hard to find.
Take a row of strokes and, instead of counting them, read them as digits. Three strokes, 111, is 3 in base 1. Read in base 2 it's 7. Read in base 4 it's 21. Read in base 8 it's 73. Several of the families turn out to be nothing more than a tally read in the right base.
| Read in | 1, 11, 111, 1111, 11111 become | Which is | Lengths that give a prime |
|---|
1, 5, 21, 85, 341 are 1, 11, 111, 1111, 11111 in base 4. The 1010 family is the same thing doubled. So the strongest signals on this site are base 1 wearing a base 4 coat.
A tally read in base 64 gives 1, 65, 4161. Written in base 8 those are 1, 101, 10101: the 0101 pattern again, one level up. Multiply by 7 and you get 7, 707, 70707, a thread of the 000111s.
Base 4 gives only 5. Base 8 gives only 73. Base 16 gives only 17. Base 32 and base 64 give none. In these bases any longer tally splits into smaller pieces, the way a 0101 number splits in two. Base 9 gives none for the same reason, because 9 is 3 × 3. Base 2 itself is the exception, and its primes are the record holders.
Base 10 gives a prime at lengths 2, 19, 23, 317 and 1,031. Base 3 and base 5 are a little more generous. Nobody knows whether any of these lists ends.
On the other pages the first 100,000 numbers of every family are written in ordinary digits and tallied, and each digit comes out within a whisker of 10%. Here is the same count with the numbers written in base 8.
| Family | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|
In ordinary digits every family looks the same from a distance: ten digits, 10% each. In base 8 each family has its own fingerprint, and most use only one or two digits.
The ten bits of 666, sent three times, read 5152465232 in base 8. That's three 5s, three 2s and one each of 1, 3, 4 and 6. The balance pair 2 and 5 carry 60% of it, and 0 and 7 never appear.
Each is a power of two with a small number added, so in base 8 it's one digit at the front, one at the back and zeros between. The null1nulls are the reverse: almost all 7s.
10 is 2 × 5. The 2 fits the bits. The 5 doesn't, and it stirs every digit except the last few. All the loops, endings and fading echoes on the other pages come from that 5. The proofs are really proofs about powers of 5.
A base 8 digit is three bits, so the question is which groups of three bits the pattern can produce.
| Family | Digits past the front | Why |
|---|---|---|
| 0101 and 1010 | 2 5 | The bits take turns, so three in a row are 010 or 101. |
| 000111s and 111000s | 0 7 | Three off is 0 and three on is 7. |
| 1null1s, 67s and 97s | 0, then one last digit | A power of two is a single bit, and the small number added only reaches the last digit. |
| null1nulls | 7, then a 6 | A power of two minus 2 is a run of ones ending in a zero. |
| 666s and 357s | 1 2 3 4 5 6 | The pattern never has three equal bits in a row, so 000 and 111 can't happen. Never a 0, never a 7. |
| Fibonacci family | 0 1 2 4 | Past 5, Fibonacci numbers are at least three apart, so no group of three bits holds two 1s. |
| Prime family | 0 1 2 4 5 | Past 3, primes are never next-door neighbours, so no 3, 6 or 7. A 5 is 101: a pair of twin primes caught in one digit. |
Each row is checked against the first 100,000 numbers of the family: these are the only digits found past the first four.
In base 8 the digits 1, 2 and 4 are 001, 010 and 100: one bit each. Any family whose 1s are spread thin, like the Fibonacci family, ends up written in nothing but 0, 1, 2 and 4.
They're the two extremes, full and empty. The 666s avoid both for ever. The 000111s use nothing else.
In ordinary digits the families come in three kinds. Some go stale: uneven in the last digit or two, then exactly level for ever, like the 97s and 67s. Some echo: the unevenness shrinks at every place and never reaches zero, like 0101. I ran the same exact count in base 3 to base 9, and in 12 and 14, to see whether that only happens in base 10.
| Base | 97s | 67s | 1null1s | 0101 | 000111s | 666s | In short |
|---|
It has the whole system. The 67s go level after two places and the 1null1s after one. The 0101s, 000111s and 666s echo for ever, with the gap shrinking 3 times at each place where base 10 shrinks it 5 times.
In base 3, 5, 7 and 9 every family is exactly level by the third place. An odd base shares nothing with 2, so the powers of two wander through every ending freely and only the last digit is restricted. In base 3 and base 9 the 0101s and 000111s are level in every place, even the last.
These are binary regrouped, so each place holds one fixed digit and never changes. There's no decay because there's nothing random to settle down. It's frozen from the start.
The 2 in the base locks the last digits to the bit pattern, and the odd part stirs everything above. Base 10 is 2 × 5 and base 6 is 2 × 3. Bases 18, 20, 22, 26, 34, 38 and 50 behave the same way. But 12, 14, 28 and 30 don't: there everything echoes and nothing goes stale.
For a base that's twice an odd number, it tends to work when some power of two is one short of a multiple of that odd number. 4 is one short of 5. 2 is one short of 3. 8 is one short of 9. With 7 it fails: powers of two only ever leave 1, 2 or 4 when divided by 7, never 6.
I found that rule on ten bases, then tested it on 39 more, every base of this kind up to 198. It was right on 46 of the 49. When the odd part is a prime or a power of one prime it was right all 29 times. The three misses, bases 114, 138 and 154, all have an odd part made of two different primes. So the rule is part of the answer, not the whole of it.
The 97s take two places to settle there instead of one. A 97s number is 3 times a power of two, plus 1, and 3 divides 6. Base 3 does the same thing more plainly: a 97s number in base 3 is a power of two with a 1 written after it.
| Base | What a prime looks like | Status |
|---|---|---|
| 1 | A tally that can't be laid out as a rectangle. | the definition |
| 2 | Past 2, it ends in 1. Nothing more can be read off the bits. | proved |
| 3 | Past 3, it ends in 1 or 2 and has an odd number of 1s. | proved |
| 8 | Past 2, it ends in 1, 3, 5 or 7. Past 7, its digits never add up to a multiple of 7. | proved |
| 10 | Past 5, it ends in 1, 3, 7 or 9. Past 3, its digital root is never 3, 6 or 9. | proved |
Add up a number's digits, then add up the digits of the answer, and keep going until one digit is left. That's the digital root, and it can be done in any base.
| Base | Roots a prime can have | How the primes up to 100,000 split | The odd ones out |
|---|
In base 3 the digital root only says whether a number is odd or even: odd numbers come to 1 and even numbers come to 2. Every prime past 2 is odd. So the whole list of primes, written in base 3 and added up, is 1, 1, 1, 1 without end. The single exception is 2.
In base b the digital root is what's left after dividing by b − 1. A prime can't share a factor with b − 1, so its root can't either. Base 10 has 9, so no 3, 6 or 9. Base 8 has 7, so no 7. Base 3 has 2, so no 2. Base 7 has 6, so only 1 and 5.
In ordinary digits, adding up the digits tells you whether a number divides by 9 or 3. In base 8 the same trick tells you whether it divides by 7. So a prime past 7 never has base 8 digits adding to a multiple of 7.
Each base rules out a few endings and a few digit sums, and that's all. Base 1 shows exactly what a prime is and takes for ever to write. The others are quick to write and show almost nothing. The primes page has the full lists in base 2, 3, 8 and 10.
Counters where every lane has a different base (4 2 1, 3 6 9 and others) are on The Counters.