← All projects / The Anchor

The anchor

Binary with no front and no back. Put an anchor in the middle and let the places grow out both ways. A switch on the right adds its place, a switch on the left takes its place away. Six switches make every number from -13 to 13.

-7 -5 -1 d 1 3 9the places, with the anchor d in the middle
13 and 13each side adds up to 13, so it balances on the anchor

Flip the switches

Pick a set of places, then switch them on and off. The total is underneath, along with what the same 1s and 0s are worth as ordinary binary.

exact

Swap the 3 and the 7 and it balances

The first try was -5 -3 -1 d 1 7 9. It makes every number from -9 to 17, but it balances on 4, not on the anchor, because the places add up to 8. Moving a place across the anchor slides everything by that place's worth. The 7 going left and the 3 going right slides it 4, and that's the only swap that leaves 13 on each side.

exact

Flip every switch, get the opposite

With 13 on each side, turning every switch over turns a number into its opposite: 010d011 makes 7 and 101d100 makes -7. In the first try the same flip turns n into 8 - n, and in 7 8 9 d 1 2 3 it turns n into 30 - n.

Every number in 1s and 0s

How many ways each number can be made

every stringstrings with no zero hiding inside

NumberThe strings that make itWays

The same strings as ordinary binary

Take the anchor out and each string is just a six-bit binary number, from 0 to 63. Here are all 64 in counting order, with what each one makes when the anchor goes back in. Pick one to see it with its flip.

Do the zeros in front count?

They do. The anchor sits in the middle of the string, so zeros in front move it. 13 is 1101 in binary. With the anchor in the middle of those four bits it makes -3. Written out to six places it's 001d101, which makes 9. This translator keeps the zeros: it fills the string out to 6, 12 or 18 places, puts the anchor in the middle, and reads it. Past six places a second set goes outside the first, ten times the size.

The string, zeros kept, anchor in the middle

Keep translating the answer

measured

Keeping the zeros brings a loop back

For -7 -5 -1 d 1 3 9, every number up to a million was followed. 31.9 of 63 (50.7%) end on 0. 28.9 of 63 (45.9%) fall into one loop: 1, 9, 8, then -1, -9, -8, and round again. A negative number is read as the opposite of its positive, which is why the loop has two halves.

exact

11 reads as itself

11 is 001d011, and -1 + 3 + 9 = 11. Up to 100,000 only one other number reads as itself: 109. About 1.9 of 63 (3.1%) of numbers end on 11 or -11, and 0.2 of 63 (0.3%) on 109 or -109.

measured

Drop the zeros and the loop goes

Read the string without the zeros in front, with the anchor in the middle of whatever is left, and there are no loops at all. Every number ends on 0, 1 or -1. The strings that make exactly 0 have a page of their own: The Zeros of the Anchor.

measured

Primes don't stand out

Primes were compared with numbers that have no small factor but aren't prime, up to 227. They end in the same places in the same shares. Whatever leaning there is comes from small factors.

Loops and traps

Translate a number, then translate the answer, and keep going. Every number ends somewhere: on a number that reads as itself, or going round a loop. The pictures follow the places picked at the top of the page.

Every number from 0 to 4,095: across is the number, up is what it reads as

Where the numbers 1 to 10,000 end, 100 to a row