← All projects / 30, 33 and 63

30, 33 and 63

Translate a number into the 369 with its 1 at the end and you nearly always get a different number. Three numbers come back as themselves, and only three. This isn't a count that might change with more searching. It's proved, and the proof is short enough to follow here.

3011110all 1s, then a 0
33100001a 1 at each end, 0s between
63111111all 1s

Watch one come back

Line the number up with its 1's place last, then read that string with places worth 3, 6, 9, 12 and on. Try the three, then try any other number and watch it miss.

The usual way: places 1, 2, 4, 8

The 1 at the end, read in 3 6 9 12

Why each one works, and only once

Each shape has a simple formula for its reading. As the shape gets longer, the number doubles but the reading only climbs steadily. So the two can meet once, and after that the number is ahead for good.

the number itselfwhat it reads as

proved

They meet once and never again

Adding a bit more than doubles an all-1s number. It multiplies the reading by less than 2. So once the number is ahead, at 7 bits, it stays ahead. The same argument closes the other two shapes. The full steps are on the proofs page.

exact

The three sums

30 is 3 × 10, and 10 is 1 + 2 + 3 + 4. 33 is 3 × 11, and 11 is 5 + 6. 63 is 3 × 21, and 21 is 1 + 2 + 3 + 4 + 5 + 6. Those land exactly on 25 − 2, 25 + 1 and 26 − 1.

Why there can't be a fourth

proved

Big numbers always fall short

The most any string can read is when every place holds a 1. At 8 bits that's 108, and the smallest 8-bit number is 128. From there the gap only widens. So a number of 8 bits or more can never read as itself.

proved

That leaves 127 numbers to check

Every number below 128 was followed by a program that stops with an error if anything unexpected turns up. It finds 30, 33 and 63, and one loop: 27, 39, 42. Nothing else. Written out on the proofs page.

The mirror ties them together

Swap every 0 and 1 in a number and you get its mirror. 33 is 100001, and its mirror is 011110, which is 30. For an odd number, its reading and its mirror's reading always add up to the same total: every place for that length, added together.

proved

A number and its mirror use every place once

The mirror has a 1 exactly where the number has a 0. The mirror of an odd number is even, so the 1's place it carries to the end holds a 0 and adds nothing. Between them the two strings light every place once, so the readings add up to 3 + 6 + 9 and on, as far as the length goes. That's 30 at 4 bits, 63 at 6 bits and 84 at 7 bits.

proved

30 and 33 are one fact, not two

At 6 bits the readings add up to 63. A 6-bit number and its mirror also add up to 63, because together they make 111111. So an odd 6-bit number is as far above its reading as its mirror is below. If one reads as itself, the other has to. 33 does, so its mirror must: 63 − 33 = 30.

proved

63 is why it happens at 6 bits

Six bits is the only length where the places add up to the all-1s number: 3 + 6 + 9 + 12 + 15 + 18 = 63 = 111111. That's the same fact as 63 reading as itself. So the three numbers hang together: 63 sets the length, 33 reads as itself there, and 30 follows as its mirror.

proved

67 and its mirror both read as 42

At 7 bits the total is 84, and 42 is exactly half. A number that reads as half the total reads the same as its mirror. 67 is 1000011, and with its 1 at the end it reads as 3 + 18 + 21 = 42. Its mirror is 60, which also reads as 42. 67 is the only 7-bit odd number that does this, and no shorter odd number can: their readings start above the halfway mark.

exact

Where the halfway mark can be hit

tested, nothing steady

The endings don't follow the mirror

Why it's the 3s

Swap the 3 for any other step, so the places are worth the step, twice the step, three times the step, and ask the same of each shape.

measured

3 is the only step that gets all three

not proved

How far that's been checked

How it ties the other pages together

exact

33 is a 1null1 number

A 1 at each end with zeros between is the 1null1 family: 3, 5, 9, 17, 33, 65. 33 is the member with four zeros, and it's the only one that reads as itself in the 369.

exact

33 and 63 are the two ends of a row

Six-bit odd numbers run from 33 to 63. The two that read as themselves are the first and the last. Count odd numbers from zero and they sit at positions 16 and 31, which are 10000 and 11111: the two ends again.

exact

13 is the door to the loop

The numbers that don't come back to themselves end up in the signal loop, 27, 39, 42. The first number through is 13, because 13 with its 1 at the end is 0 1 1 1, the only four-place string that reads as 27.

exact

67 sits at position 33

67 is 2 × 33 + 1, so it's odd number 33. With the 1 at the end it reads as 42, and joins the loop. More on The 1 at the End.

All three are calm in base ten as well

This is a different question from a different part of the site. Send a number's bits over and over and count the ordinary digits that come out. Most numbers stay lopsided for ever, which is an echo. A few settle to perfectly level. See Not Luck for what that means.

measured

Three for three

proved, separately

33 is special twice over

33 settling to level in base ten has its own proof, on The Ones That Don't Echo: it belongs to an endless run of 1null1 numbers that are level after the last digit. So 33 reads as itself in the 369 for one proved reason, and is calm in base ten for another.

tested, nothing general

But one doesn't explain the other

So what can be claimed

The proof explains why 33 comes back to 33. It doesn't explain why the 1null1 numbers are calm in base ten: that needs the carry argument on the echo page. What the two share is the shape. A number with only two 1s, one at each end, is about the simplest thing either calculation can be given, and 33 is where both come out clean.