← All projects / Three Arms
A made-up number system that balances on a pin. Cut a number's binary into pairs. Each pair is a switch that is off, or points along one of three arms a third of a turn apart. The number lives at the point its switches lead to. Every point gets exactly one number, and when you ask each number how far it is from the pin, nearly all of them end up at 7, 27 or 1.
the switches
Cut the binary into pairs from the right. 00 is off. 01 points along arm 1, 10 along arm 2 and 11 along arm 3. The arms are a third of a turn apart, so all three pulling the same amount cancel out. That is the balance.
the lengths
The switch at the right-hand end of the number is 1 step long. The next is 2 steps long and faces backwards. The next is 4 and faces forwards again, then 8 backwards, and so on.
the point
Start at the pin, which is 0. Walk each switch in turn. Where you stop is where the number lives.
The distance from the pin, squared, is always a whole number. So it is a number with a point of its own. Take that as the next number and go again.
| Number | Its switches, outermost first | Distance from the pin, squared |
|---|
Here are all the numbers that fit in a given count of switches, each drawn where it lives. No two share a point and no point inside is left empty. Move over the picture to read off a number.
Every number with its last switch on, followed until it stops. A number stops when it is its own squared distance.
| Ends at | Share of numbers |
|---|
If the last switch is off, nothing new happens. The number is 4 times a smaller one, its point is twice as far out, and it ends at 4 times wherever the smaller one ends: 28, 108, 112 and so on.
exact
The four settings of a switch are the four things that can be left over when a point is halved. So the last switch of any point is forced. Take it off and halve, and you have a point nearer the pin. Keep going until you are right beside the pin, where the six neighbours are 1, 2, 3, 5, 10 and 15. That reads off the one number that works.
counted
Leave out the turn-around and the numbers still land on different points, but about a third of the points near the pin, 21.4 of 63 (34.0%), never get a number at all. The first is the point straight across from arm 1. Turning every other switch round is what lets three arms reach all six directions.
exact
Where a number ends depends only on how far its point is from the pin. So colour the picture by ending and it comes out in rings. Turning every switch to the next arm spins a point a third of a turn and keeps its distance, which is why the picture has three matching parts.
exact
The squared distance is odd exactly when the number's last switch is on. And 4 times a number gives 4 times the squared distance. Together they mean a number keeps its power of 4 all the way down, which is why the last switch can be left out of the count above.
exact
27 is 01 10 11: arm 1, arm 2, arm 3, once each. It lands 3 steps out along arm 1 and 3 steps back along arm 2, and the square of that distance is 27. 7 is 01 11, arm 1 then arm 3. 1 is arm 1 alone.
counted
Of the 786,432 numbers below a million or so (1,048,576) with the last switch on, 44.8 of 63 (71.2%) end at 7, 14.1 of 63 (22.3%) at 27 and 4.1 of 63 (6.5%) at 1. That leaves 492 numbers, 0.04 of 63 (0.06%). The shares hardly move as the count goes up: 7 takes between 43.9 and 45.1 of 63 at every size tried.
counted
Five more numbers below 1,048,576 are their own squared distance: 29,659, then 114,651, 118,593, 278,161 and 625,671. The second one's switches read the same both ways: 1 2 3 3 3 3 1 2 3. There is also one loop, seven numbers long, that starts at 278,077.
not known
Every number below 1,048,576 does, and the longest takes 40 steps. On average a step shrinks a number to about 0.41 of its size, but a single step can nearly double it, so nothing here rules out a number that climbs for ever. There is no proof either way on this page.
what's ours
Naming the points of a triangle grid with switches like these is known mathematics. Asking each number for its squared distance and following the answers was made up for this page. It hasn't been checked against what is already written, so it may be known too.