← All projects / Bases 0, 1, 2 and 8

Nothing, strokes, bits and eights

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.

Four bases

exact

Base 0 doesn't exist

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.

exact

Base 1 is tally marks

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 |||||||.

exact

Base 2 is the first base with a zero

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.

exact

Base 8 is base 2, read three bits at a time

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.

One number, four ways

Base 0
can't be written
Base 1
Base 2
Base 8
Base 10

The same strokes, laid out as rectangles

Numbers from 1 to 144.

exact

In base 1, a prime is a tally that won't make a rectangle

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.

exact

Every other base hides that picture

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.

Read the tally in another base and the families appear

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 in1, 11, 111, 1111, 11111 becomeWhich isLengths that give a prime

exact

0101 is a tally read in base 4

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.

exact

The same shape at every scale

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.

known result

Bases that are powers of two get one prime at most

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.

measured

Other bases keep producing primes, rarely

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.

The first 100,000 numbers of each family, counted in base 8

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.

Family01234567

exact

Base 10 flattens everything. Base 8 flattens nothing.

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.

exact

The 666s are 2 and 5 at 30% each

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.

exact

The 67s, 97s and 1null1s are almost all zeros

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.

exact

Why base 10 hides it

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.

Which base 8 digits a family can ever use

A base 8 digit is three bits, so the question is which groups of three bits the pattern can produce.

FamilyDigits past the frontWhy
0101 and 10102 5The bits take turns, so three in a row are 010 or 101.
000111s and 111000s0 7Three off is 0 and three on is 7.
1null1s, 67s and 97s0, then one last digitA power of two is a single bit, and the small number added only reaches the last digit.
null1nulls7, then a 6A power of two minus 2 is a run of ones ending in a zero.
666s and 357s1 2 3 4 5 6The pattern never has three equal bits in a row, so 000 and 111 can't happen. Never a 0, never a 7.
Fibonacci family0 1 2 4Past 5, Fibonacci numbers are at least three apart, so no group of three bits holds two 1s.
Prime family0 1 2 4 5Past 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.

proved

1, 2 and 4 are single bits

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.

proved

7 is three bits on, and 0 is three bits off

They're the two extremes, full and empty. The 666s avoid both for ever. The 000111s use nothing else.

Is base 10 special? The same search in every base

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.

Base97s67s1null1s0101000111s666sIn short

measured

Base 6 is base 10's twin

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.

measured

Odd bases have no echoes at all

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.

exact

Bases 4 and 8 never even out

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.

measured

The fading needs a base that's even but not a power of two

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.

measured

A rule that fits most bases, and where it breaks

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.

exact

One difference in base 6

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.

The primes, base by base

BaseWhat a prime looks likeStatus
1A tally that can't be laid out as a rectangle.the definition
2Past 2, it ends in 1. Nothing more can be read off the bits.proved
3Past 3, it ends in 1 or 2 and has an odd number of 1s.proved
8Past 2, it ends in 1, 3, 5 or 7. Past 7, its digits never add up to a multiple of 7.proved
10Past 5, it ends in 1, 3, 7 or 9. Past 3, its digital root is never 3, 6 or 9.proved

The digital root of a prime, base by base

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.

BaseRoots a prime can haveHow the primes up to 100,000 splitThe odd ones out

proved

In base 3, every prime past 2 boils down to 1

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.

proved

The rule for every base

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.

proved

7 does in base 8 what 9 does in base 10

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.

exact

No base makes the primes easy

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.