← All projects / The Zeros of the Anchor

The zeros of the anchor

On The Anchor, six switches sit round an anchor: -7 -5 -1 d 1 3 9. Add more sets of six outside the first, each ten times the size, and ask one question: which strings make exactly 0? There are two kinds, and they behave nothing alike.

(3 × 6k + 2) / 5how many strings make 0 with k sets of six places
4k builtfrom blocks. The rest are carry zeros.

Two kinds of zero

kind oneBlock-built zeros

Every set of six makes 0 by itself. Inside a set only two groups of switches cancel: the inner pair (-1 and 1), and the outer four (-7 and -5 against 3 and 9). Switch on any mix of those blocks and the string makes 0.

kind twoCarry zeros

No set needs to make 0. One set makes 10 and the next set out, where every place is ten times bigger, makes -1. The -1 is worth -10, so the two sets pay each other off. That is a carry: ten of these for one of those.

Build one from blocks

Or pick a carry zero (12 places)

Every zero at once

Each column is one string that makes 0, with its furthest left place at the top. The line across the middle is the anchor. A block-built string looks the same above and below the line. A carry string never does.

Where they sit among all the numbers

Side by side

Block-built zerosCarry zeros
How they cancelinside each setacross sets
Same forwards and backwardsalwaysnever
Multiple of 3always
Can be primenever
Switches onalways an even numberodd or even
What a set makes0
Depend on the 10no, same strings whatever the sets are scaled byyes, they are the 10
PlacesAll zerosBlock-builtCarryCarry, multiple of 3Carry, primeSize alone says

Share of the zeros of each kind

block-builtcarry

"Size alone says" is how many primes you'd expect among the carry zeros that aren't multiples of 2 or 3, going only by how big they are.

exact

Why block-built zeros are never prime

Each block switches on a place and its mirror place together, so the string reads the same both ways. A binary string of even length that reads the same both ways is always a multiple of 3: a mirror pair of places is one odd place and one even place, and those are worth 2 and 1 by 3.

measured

Carry zeros can be prime, at the usual rate

exact

They come in flip pairs

Each side of the anchor adds up to 13, so turning every switch over turns a number into its opposite. The opposite of 0 is 0, so the flip of a zero is a zero. At 12 places they pair up to 4,095: 468 with 3,627, and 1,070 with 3,025.

How many, exactly

With k sets of six places, the number of strings that make 0 is (3 × 6k + 2) / 5. That gives 4, 22, 130, 778, 4,666. Of those, 4k are block-built, so the carry zeros take over fast.

What's owed, from one set to the next

2 4 2 3 1 1 3 1 each way owes-1 nothingowed owes1

The number on an arrow is how many switch patterns of one set make that move. Every circle sends out 6. A string makes 0 when it starts and ends on "nothing owed".

What one set makes, inside the carry zeros of 24 places

exact

The carry table

Work outward from the anchor. After each set, what's left to pay off is always -1, 0 or 1 of the next set, because one set only reaches 13. Counting the switch patterns for each case gives this table (rows: owed before, columns: owed after):

2 3 1
1 4 1
1 3 2

Every row adds up to 6. That's the 6 in the formula, and the formula follows from the table by a short induction.

exact

One, three, one

Run the table for a long time and the three cases settle into the mix 1 : 3 : 1. Three times in five nothing is owed, once in five a ten is owed, once in five a ten is owed the other way. The 3 and the 5 in the formula are that mix.

exact

Only nine totals ever appear

Change the ten

The sets don't have to be ten times apart. Make each further set 2, 3, 4 ... times the size and count the zeros again. The block-built zeros never change. The carry zeros change every time, and at 14 they vanish.

Each set is1 set2 sets3 sets4 sets5 setsGrows by

Zeros with 3 sets, for each size of step

Bar heights are on a doubling scale. The dashed line is 64, the block-built zeros, which never change. At 14 and beyond nothing is left above it.

exact

Carry zeros are the overlap between sets

One set of six reaches from -13 to 13. If the next set is 14 or more times bigger, one set can never pay off a single step of the next, so there's nothing to carry and only the block-built zeros are left: 4, 16, 64. Below 14 the sets overlap, and every carry zero is one way of trading across that overlap.

exact

So is this how you change base?

In one sense, yes. Changing base is nothing but carrying, and here every carry rule shows up as a string you can point at. But it's the ordinary rule seen from a new side, not a shortcut: the carry zeros tell you which trades are allowed, and you still have to make them one at a time.

exact

10 and 11 give the same count

Sets 10 times apart and sets 11 times apart have exactly the same number of zeros at every size checked (up to 8 sets): 4, 22, 130, 778. The strings themselves are different. Sets 9 times apart give 4 × 7 × 7 ..., a clean 7 each time.

The blocks are echo numbers

Read as ordinary binary, each block is a power of 2 times a number of the shape 2m + 1. A prime's echo is how long 2 takes to come back round to 1 when you keep doubling and dividing by that prime. The primes inside the blocks have echoes that climb in steps of 12, one step for every set.

SetInner pairPrimes and echoesOuter fourPrimes and echoes

newest prime in the inner pairnewest prime in the outer four

17 and 65,537 are Fermat primes. The newest prime in each inner pair has echo 2, 14, 26, 38, and in each outer four 8, 20, 32, 44.

First bits, and Benford's law

Benford's law says first digits aren't evenly shared: small ones come up more. In binary the first bit is always 1, so the law starts at the second bit. A number should start 10 more often than 11, in the shares below. Fibonacci numbers and powers of 3 follow it very closely.

Starts withThe law saysFibonacci numbersPowers of 3

the lawFibonacci numberspowers of 3

known

For these families it's already proved

Each Fibonacci number is about 1.618 times the last, which adds about 0.694 of a bit each step. That amount never lines up with a whole number of bits, so the leftover part spreads evenly, and an even spread of the leftover is exactly the law. The same goes for powers of 3. Powers of 2 are the exception: they always start 10.

measured

It explains a tilt in the readings

Read through the anchor, Fibonacci numbers come out above 0 more often than below: 36.5 of 63 (57.9%). Numbers drawn straight from the law do the same: 36.4 of 63 (57.8%). The tilt is the first bits, not something about Fibonacci.

honest note

The zeros don't prove it

The carry table above and Benford's law are both about what happens at the front of a number as it grows, but one doesn't give the other. The law for a family comes from how fast the family grows. The zeros come from how far one set of places reaches.