← All projects / The Seesaw

The seesaw

A made-up way to read a number. Write it in binary, fold the string at its middle and sit it on a seesaw. Every 1 is a weight. Weights on the right add, weights on the left take away, and the further out a weight sits the more it counts. The total is the tilt. Then put the tilt on the seesaw, and keep going. Every number does one of three things.

0it balances
12↔−12it rocks for ever
21or87it sticks, tilted

The rules

the fold

The pivot goes in the middle

Write the number in binary. If it has an odd count of bits, put a 0 in front so the two sides match. The pivot sits between the two halves.

the places

3, 9, 27, growing outward

The place next to the pivot is worth 3 on each side. The next one out is worth 9, then 27, then 81. A 1 on the right adds its place. A 1 on the left takes its place away.

again

Read the tilt the same way

The tilt is a number, so it goes back on the seesaw. A tilt below zero is read as its positive and then turned over, the way a mirror would show it.

One number on the seesaw

Places
on the right, addson the left, takes away

NumberFoldedTilt

Every tilt at once

Across is the number, up is its tilt. Above the line the right side is heavier, below it the left. Move over the picture to read off a number.

Numbers up to
tips righttips leftbalanced

Where every number ends

Every number from 0 to 65,535, 256 to a row, coloured by what it does in the end.

In the endShare of the numbers 1 to 65,535

What turned up

exact

The same both ways means balanced

A string that reads the same forwards and backwards has a matching weight on the other side for every weight it has, so it balances at once. 33 is 100001 and it balances. Nothing else does: the tilt is 0 only for these strings.

exact

Turn it round and it tips the other way

Write the string backwards and the tilt becomes its opposite. Swap every 0 and 1 and the tilt becomes its opposite too. Do both and the tilt is back where it was.

exact

Each pair is a three-way switch

The two places the same distance from the pivot work as one switch with three settings: add, off, take away. Off can be made two ways, with both weights or with neither. So 12 bits make only 729 different tilts from 4,096 strings, and a tilt is made by 2 strings for every pair that cancels. Every tilt is a multiple of 3.

exact

Only 12 rocks

12 is 1100. Both weights are on the left, on places 3 and 9, so it tilts to -12. Turned over, -12 tilts to 12, and round it goes. 12 is the only number whose tilt is its own opposite.

exact

Only 21 and 87 stick

21 is 010101 and its tilt is 3 - 9 + 27, which is 21. 87 is 01010111 and its tilt is -3 + 9 + 81, which is 87. From 4,096 on, the biggest tilt a number can have is smaller than the number, so there can be no others further out. Every number was checked below that.

counted

About half of all numbers end up rocking

Of the numbers 1 to 65,535, 33.6 of 63 (53.4%) end rocking between 12 and -12. 21.7 of 63 (34.4%) balance. 5.0 of 63 (7.9%) stick at 21 or -21 and 2.7 of 63 (4.3%) at 87 or -87. Up to a million or so (1,048,575) it is much the same: 33.5 of 63 (53.2%) rock and 22.2 of 63 (35.3%) balance. No number below 65,536 takes more than 8 steps.

counted

Change the places and it changes character

With places 3, 6, 9 every number balances in the end. With 1, 2, 3, which is a real seesaw where a weight counts for its distance, the numbers split into near thirds between 0, 1 and -1, and 1, 2, 4 does the same. With 1, 3, 9 they end at 0, 1 or -1 and 39.6 of 63 (62.8%) balance. With 1, 4, 16 two new numbers are their own tilt: 1,103 and 17,727. Pick a set of places above to see each one.

what's ours

Made up for this site

Three-way switches on places 1, 3, 9 are an old idea, known as balanced ternary. Folding a binary string onto them and following the tilt was made up here. It is simple enough that it may well be known already, and it hasn't been checked against what is written.