← All projects / The Death of Zero
One rule: wherever a 0 appears in a number, read it as a 1, then do ordinary arithmetic. 100 × 10 becomes 111 × 11 = 1221, and 12 × 12 is still 144. Ten disappears, 11 becomes 2 times 5, and a new list of primes falls out. Then a second idea: binary places worth 3, 6, 9, 12, and the place where it starts to repeat.
Multiply, then rewrite any 0 in the answer as a 1, so every answer stays inside the zero-free numbers.
In ordinary arithmetic (a × b) × c is always a × (b × c). With the rule it often isn't, because a 0 can appear halfway through one route and not the other.
Call a zero-free number a new prime if it can't be made as a × b with the rule, from two smaller zero-free numbers. 11 is out, because 2 × 5 = 10 reads as 11. So are 31, 41, 61, 71: each is a multiple of ten in disguise. Going the other way, numbers like 327 = 3 × 109 become new primes, because their only factor pairs contain a 0.
prime both waysordinary prime, factors with the rulenew prime onlycomposite both ways
Read binary's 0s as 1s and every number of the same length collapses to the same string: 8, 12, 13 and 15 all become 1111. What's left is 1, 3, 7, 15, 31, the numbers one less than a power of 2. But there's a second way to drop the zero that loses nothing: digits 1 and 2 instead of 0 and 1, where each 0 becomes a 2 and the place to its left drops by one.
Keep binary's 0s and 1s but make each place worth 3 more than the one before: 3, 6, 9, 12, 15, and so on. Type a number: it's written in binary and read with the new place values. Below are all the other binary strings that come out the same, with the primes among them marked.
The same strings of 0s and 1s, read two ways. In binary the places are worth 1, 2, 4, 8, so every string means a different number and every number has one spelling. With places worth 3, 6, 9, 12, strings start to share a value as soon as the 4's place arrives (100 is worth 9, the same as 11), and the sharing only grows.
How many strings spell each value with the new places. In binary the answer is always 1. Move along the chart to read it.
Move along the chart.
Never, however far it goes. Every place is a multiple of 3, so every total is a multiple of 3, and 10 isn't one. The system makes every multiple of 3 and nothing else: no 1, 2, 4, 5, 7, 8, 10, 11, ever.
Divide every place by 3 and they're just 1, 2, 3, 4, and so on. The first four together make 1 + 2 + 3 + 4 = 10, so the string 1111 is worth 30, which is 3 × 10. Its group holds a power of 2 (512), a Fermat prime (257) and 67 itself, from the 67s family.
Written in base 10, a few values do contain the digits 1 and 0 side by side: 102, 105, 108, 210. That's the naming, not the system. Written as strings of places, nothing in it is ten.
Each place is worth more than all the smaller places put together: 2 is more than 1, 4 is more than 1 + 2, 8 is more than 1 + 2 + 4. So the biggest place in a number can't be faked by the smaller ones, and every number has exactly one spelling.
The 4's place is worth 9, and the two places below it add up to 3 + 6 = 9. So 3 (written 11) and 4 (written 100) both come out as 9. That's the first repeat. From there it only gets worse: 18 has 4 spellings, 30 has 8, and by 300 there are more than four hundred thousand.
In base 10 each digit goes up to 9, so the most the smaller places can reach is 9, then 99, then 999. The next place is worth exactly one more: 10, 100, 1000. No gap and no overlap, which is why every number has one spelling. Ten is exactly the point where the places stop overlapping.
Reading 0 as 1 turns 10 into 11, so ten itself is gone. The zero-free base that keeps ten, keeps every number and keeps ordinary arithmetic gives ten a digit of its own, A: ten is A, twenty is 1A, a hundred is 9A. See the zero-free echo.
Every prime below 221 (about two million) written in binary and read with the new place values. They land on 3 × a whole number, and the chart counts how many primes land on each value. Move along it to read the counts. Look closely: the grey bars, the values that are multiples of 9, tend to come up shorter than their neighbours. That's the pattern in the next section.
other valuesmultiples of 9
Move along the chart.
Divide each prime's new value by 9 instead, and look at the remainder (0, 3 or 6, since every value is a multiple of 3). For ordinary odd numbers the three come out exactly even. For primes they don't: the remainder 0 is short and 6 is ahead.
primesall odd numbersodd multiples of 7
Take every odd number that isn't a multiple of 3, or of 5, or of 9, or of 15: the remainders stay perfectly even. Take every odd number that isn't a multiple of 7, and the lean appears at exactly the size the primes show. The primes lean because they skip the multiples of 7, and the multiples of 7 pile up on remainder 0 more than half the time.
7 is 111 in binary, one less than 8. Multiply anything by 7 and the bits arrange themselves so that the value leaves 0 by 9, exactly for the first eight multiples and often after that. The next section shows how, and that 31 and 127 do the same.
The chart above adds every number below two million together. Split them by how many bits long they are and the shares move. Each point here is counted exactly, by stepping through the bits, for every length up to 48.
Out of 33, an even share is exactly 11, where per cent gives 33.33 and never ends. It's the same chart either way: changing the unit moves the labels, not the lines.
leaves 0 by 9leaves 3 by 9leaves 6 by 9
Move along either chart.
exact
At 3 bits and at 6 bits every odd multiple of 7 leaves 0. After that the three lines swap places in a pattern that repeats every 3 bits, because 7's dial has three steps: 1, 2, 4, and then 8 is back at 1. Leans that come from 5 keep time in 4s instead, since 5's dial has four steps.
exact
measured
exact
All odd numbers share out a third each. But they don't land at random. Here are the odd numbers from 1 to 399 in order, each one sitting on its remainder, with a line joining it to the next.
primemultiple of 7other odd number
Move over a dot.
proved
Going from one odd number to the next adds 2, which flips the 2's place. If that place held a 0, the remainder moves round one way: 0, then 6, then 3. If it held a 1 there's a carry, and how far the carry runs decides the direction. No case leaves the remainder where it was.
proved
The remainder goes round 0, 3, 6 only when the carry runs through exactly 1, 4, 7 or 10 places. The chance of that is 1/4 + 1/32 + 1/256 and on, which adds up to 2/7. Every other time, 5/7, it goes round 0, 6, 3. The sevenths come from the same place as the lean: the pattern repeats every three places, and 8 is one more than 7.
proved
Count the 1s an odd number ends in. One 1: the next odd number's value is 6 more. Two 1s: 3 more. Three: 3 less. Four: 12 less. The rule is 6, take away 3 for every pair you can make from those 1s (0, 1, 3, 6, 10 pairs). Adding 2 turns that run of 1s into 0s and lights the place above it, and that's all that changes. By 9 it comes to three cases: ending in 2, 5 or 8 ones moves the remainder on by 3, and anything else moves it on by 6.
exact
The rule tells you the remainder of any number you name. What it can't tell you is where the next prime is. Once you know the gap, the remainder follows, and nothing about being prime changes it.
measured
measured
7 is 23 − 1. Primes of that shape are called Mersenne primes, and the next two are 31 = 25 − 1 and 127 = 27 − 1. Each makes its own lean: 31 when the value is divided by 15, 127 when it's divided by 21. So far, each 2p − 1 that is prime leans by 3p.
7 × m is 8 × m − m. For m up to 8 that means m − 1 moved up three places, with the bottom three places holding m − 1 flipped. Places three apart are worth 9 apart, so by 9 they count the same. Between the moved copy and its flip, each of the bottom three places is counted exactly once: 3 + 6 + 9 = 18, which leaves 0 by 9. Every time.
m − 1, moved upm − 1, flipped
Every prime from 8,192 to 226 (about 67 million), nearly 4 million of them. The bars show how far the primes sit above or below an even share in each remainder. The dots are the prediction: the same shares for odd numbers that just skip the multiples of that one Mersenne number. Each chart has its own scale, since the leans shrink fast.
primesodd numbers skipping its multiples
The dots skip one number. Primes skip every number, and three things move the bars away from the dots. Pick a number to see each bar on its own.
In base 8, 7 is the top digit, and 777 is 511 = 7 × 73. So 73 is 111 in base 8, and its multiples lean by 9 as well. Primes skip those too. For 31 the partners are 11 and 151, from 1023 = 3 × 11 × 31 and 32,767 = 7 × 31 × 151. 127 has no partner big enough to see.
Primes are more common among short numbers, and short numbers lean more (next table). The last column counts each number n as 1 ÷ ln n, the usual estimate of how common primes are near n.
With about 4 million primes, every bar wobbles by about 0.02 points whatever the number. What's left after partners and thinning is that size, so nothing here is unexplained. It's also why 2047 shows nothing: its predicted lean is half the wobble.
The lean of odd numbers that skip the multiples, counted up to each length. The first 2p multiples land on 0 exactly. After that, borrowing scrambles the bits a little more with every place, so the 2.62 above belongs to numbers up to 226, not to 7 itself.
Skipping the multiples of 2p − 1 removes only one number in 2p − 1, so the lean is the multiples' own lean divided by 2p − 2. About 2.6 percentage points for 7, 0.43 for 31, 0.09 for 127.
3 is 22 − 1, also a Mersenne prime. But the bottom places add up to 3 + 6 = 9, which doesn't leave 0 by 6. In general the bottom p places add up to 3 × p(p + 1)/2, and that's a multiple of 3p only when p is odd. Below 226 the multiples of 3 split exactly evenly.
211 − 1 = 2047 = 23 × 89. Its multiples still pile up on 0 by 33, but primes skip far more than just those, and the lean it predicts (about 0.01 points) is smaller than the random wobble in these counts. So the last chart shows nothing you could separate from chance.
The first 2p multiples of 2p − 1 always land on 0, for odd p. Past that the pile-up can be worked out exactly, and it fades as the numbers get longer: for 7 it's 55% at 21 bits, 48% at 26, 36% at 60, and level at a third by about 150. So this is a lean of small numbers. The Gap of 3 shows why.
Each prime's new value, how many binary strings spell that value, and how many of those strings are prime themselves. Touch a row to see the spellings above.