← All projects / The Tilt From Outside

The tilt from outside

On The Seesaw every number gets a tilt, and the picture of all the tilts looks like slanted bands. The bands are a flat view of something with two directions. A number's tilt is its right half against its left half. Put one across and the other up, and every number is a point in a square.

tilt = 3 × (right - left)each half read as a base-3 number, the right one reversed first
the diagonalis every number that balances

One number, step by step

Type any whole number, or pick one. The four steps below are the whole machine.

1Write it in binary and cut it in half

2Turn the right half round

3Read each half with places 1, 3, 9, 27

4Take one from the other, and times 3

exact

It's the seesaw's own rule, rearranged

exact

Which way it tips needs no base 3

Reading a string of 1s and 0s in base 3 keeps the order: a bigger binary number always gives a bigger reading. So to know which way a number tips, compare the two halves from step 2 as ordinary numbers. The bigger one goes down.

Every number as a point

Now do it for every number of a given size at once. Across is the left half. Up is the right half, turned round. Each little square is one number. Move over it to read a number off, or click to send it to the steps above.

left half: 0

tips righttips leftbalanced: the dark diagonal

exact

The diagonal is the balanced numbers

On the diagonal the left half and the turned-round right half are the same. That's a string that reads the same forwards and backwards, and those are exactly the numbers that balance.

exact

Above the diagonal tips right, below tips left

Above the line the right half is the bigger of the two, so the right side goes down. The whole picture is one straight cut.

counted

How this size splits

try it

The turn is what makes it simple

Untick "turn the right half round". The one clean diagonal breaks into a comb of bars of different lengths. Every row still has its own cut, but the cuts are shuffled, because the last bit of a number carries the most weight on the seesaw and the least in ordinary counting. Turning the half round puts the heavy bit where a big number has it.

The flat view, and why it slants

The same numbers the way the seesaw page draws them: across is the number, up is its tilt. The marked number is the one from the steps above.

exact

The slant is the left half growing

Count upwards and the left half creeps up slowly, one step for every full run of the right half. A bigger left half pulls the tilt down, so the blocks step downhill from left to right.

exact

The two bands are odd and even

The last bit of a number sits furthest out on the right arm, where the place is biggest. An odd number has that bit on, which lifts it a whole band above the even number next to it.

exact

Flat hides one direction

In the square, the left half and the right half each get their own direction. Drawn flat, both are squashed onto one line, and the right half's fast jumps show up as the speckle inside each block.

Where the primes fall

exact

Always in the top half

A prime past 2 is odd, so its last bit is on. Turned round, that bit leads the right half, which puts every prime in the top half of the square. Tick "show the primes" to see it.

exact

An odd count of bits always tips right

counted

Otherwise they split like any odd numbers

try it

The crossing lines are the sieve

Untick the turn, then tick the multiples of 3, 5 and 7 with the primes showing. The tilt colours step aside so the lines stand out. Each one is a set of slanted lines at its own angle. The primes sit only in the gaps that all the lines leave. That's the old sieve, drawn in two directions. It shows where primes can't be, and it doesn't say which gaps they take.