← All projects / The Ones That Don't Echo

The ones that don't echo

Send a number's bits on repeat and its ordinary digits nearly always come out lopsided, in every place, for ever. A few numbers leave no mark at all. There is a rule that says which, and it comes down to what happens when you double a number by hand.

What an echo is

The family of a number

Write a number in binary and send those bits over and over, one more bit per row. 9 is 1001, so its rows are 1, 10, 100, 1001, 10011 and so on. In ordinary numbers that's 1, 2, 4, 9, 19, 38, 76, 153.

The tally

Look at one place of those numbers, say the last digit, and count how often each digit from 0 to 9 turns up there. The counts loop for ever, so the shares are exact.

The echo

For most numbers the shares are uneven in the last digit, and uneven again in the second-last, the third-last and every place after. Each place is about five times closer to level than the one before, but it never gets there. That fading unevenness is the echo.

The odd ones out

The table of repeated digits turned up eight families with no echo: 9 and 2222 are level everywhere, and 1, 3, 7, 33, 333 and 8888 are level in every place after the last. This page is about why.

Try any number

How often each digit turns up, place by place

Place0123456789

more than its fair 10%less than 10%exactly 10%

The two splits that matter

PlaceDigit is 0 to 4Digit is evenGap between most and least common digit

The reason: doubling by hand

Each row of a family is the row before it, doubled, plus the new bit. So everything about the digits comes from what doubling does to a number.

proved

A doubled digit is even, unless there's a carry

Twice any digit is even. The only thing that can make it odd is a 1 carried in from the digit on its right. And that digit sends a carry exactly when it is 5 or more. Double 27 and you get 54: the 7 is 5 or more, so it carries, and the 4 becomes an odd 5.

proved

So each place sets the next one's odds and evens

How often a place holds an even digit is exactly how often the place on its right held 0, 1, 2, 3 or 4 one row earlier. Over a whole loop those are the same share. You can see it in the table above: each "even" share equals the "0 to 4" share one row up.

proved

An echo is a lopsided carry, passed along

If the last digit is 5 or more too often, the second-last digit is odd too often. That's an uneven second-last digit, which hands on its own lopsided carry to the third-last, and so on up the number.

RowThe numberLast digitCarries?Second-last digit of the next row

The rule

"The block" below means the bits that repeat. For 9 that's 1001. For 153, which is 10011001, the block is still 1001.

proved

Rule 1: no echo after the last digit

proved

Rule 2: no echo anywhere

proved

The general rule: one test for every family

worked out

Why one split decides every place

Powers of two stir the digits thoroughly. In these families the five even digits of any place past the last always share equally with each other, and so do the five odd ones. So a place can only be off in its split between even and odd, and the carry law sets that from the 0 to 4 split on its right. Now 0 to 4 holds three even digits and two odd ones, so a lean toward even turns into a lean toward 0 to 4 that is exactly a fifth the size. The lean climbs the number, five times weaker at each place, and never reaches zero. Unless it starts at zero: a last digit that is 0 to 4 exactly half the time.

worked out

Why a block of 4, 8 or 12 bits is special

A family's rows are powers of two times a fraction: the block over a run of ones as long as the block. For 9 that's 9 ÷ 15, which is 3 ÷ 5. A run of ones divides by 5 exactly when its length is a multiple of 4. That 5 underneath gives the digits one extra stir, enough to level the last digit as well. After that the only tilt left comes from the bits themselves: a 1 leans a place toward odd digits and a 0 toward even ones. Half ones and half zeros cancel exactly.

measured

It covers the awkward ones too

The general rule, checked depth by depth

DepthFamiliesBalancedOf those, level past the depthUnbalancedOf those, echoExceptions

The full statement and its proof are in the write-up: Echo families (PDF, 5 pages).

Every number, counted

What the family doesHow manyShareSmallest examples

The numbers with no echo anywhere

The numbers that are level after the last digit

The eight from the repeated-digit table, explained

NumberIts blockBlock lengthOnes in the blockLast digit is 0 to 4ResultWhy

The bottom rows are three that do echo, for comparison. 1, 3 and 7 share one family, because their bits are all ones.

The ones where only the last digit is noisy

proved

There is no end to them

proved

Why that family works

The block of such a number is a 1, a row of 0s, and a 1. Its length isn't a multiple of 4 or of 5, and its value isn't a multiple of 5, so its depth is 1 and Rule 1 decides it. Going through the block one position at a time, each position allows two last digits. The two end positions each give one low digit and one high. The positions in between come in fours that give 0, 1, 2 and 1 low digits out of two, which is exactly half. So the last digit is 0 to 4 exactly half the time, for every length of this kind.

exact

What they all have in common

measured

Some lengths are nearly empty

Bits in the numberLast digit onlyOut of

The no-echo numbers in other bases

BaseHow many digits longLast digits never usedPalindromes found, and expectedWhat stands out
exact

Base 16 is their natural home

exact

In base 4: as many 0s as 3s, and never a palindrome

exact

The only thing they avoid is multiples of 5

exact

They come in pairs, never in threes

exact

Rotate the block, or flip it, and you get another one

measured

They are prime exactly as often as they should be

Overlaying two no-echo families

How they're combinedNo echo anywhereLevel after 1 placeAfter 2After 3Echo
proved

XOR, AND and OR stay in the same world

Combine two families bit by bit and what you get is the family of the two blocks combined the same way. So the depth rule applies to the result exactly as it does to any single number.

exact

XOR keeps the property when the overlap is exactly a quarter

exact

AND and OR never keep it

AND leaves a 1 only where both blocks have one, so the result has too few ones. OR leaves a 1 where either has one, so it has too many. Neither can be exactly half unless the two blocks are the same. An AND leans every place toward even digits and an OR toward odd.

exact

A family and its opposite cancel to all ones

measured

The primes don't line up

The other end: the ones that echo most

There is no single loudest family and no single longest one. Both can be pushed as far as you like, and neither ever reaches the limit.

exact

Loudest: a single 1 and a row of 0s

exact

Flip the bits and the lean flips

The opposite of a single 1 and a row of 0s is a row of 1s with a single 0. For a block whose length is a multiple of 4 and whose value isn't a multiple of 5, flipping every bit swaps the zeros and ones, so the lean keeps its size and changes direction: every place that leaned even now leans odd by the same amount.

exact

Longest: numbers with lots of 5s in them

measured

The most lopsided single digits belong to round numbers

exact

The family of 5 only ever ends in 1, 2 or 5

proved

Halving runs the carry law backwards

Doubling builds a family and halving takes it apart: drop the last bit of a row and you have the row before. Read that way the law turns round. When a number is halved, a digit comes out 5 or more exactly when the digit on its left was odd. It is the same fact seen from the other side, which is why the 2 and the 5 that make up ten keep turning up together on this page.

DepthNumbers to 16,383Places before the echo starts to fade

The 5 inside ten

Ten is 2 × 5. The 2 is the bits themselves. The 5 is what stirs the digits. Writing the families in base 5 shows the two jobs apart.

NumberIn base 5DepthNoisy base 5 placesHow often its last base 5 digit is 0, 1, 2, 3, 4Its last ordinary digit, row by row
exact

9 and 2222 are level in base 5 too

exact

But so is 8, and 8 echoes

The family of 8 is perfectly level in every base 5 place, just like 9. Its echo in base 10 comes entirely from its bits: 1000 has one 1 and three 0s. So base 5 harmony isn't what sets 9 and 2222 apart. A family is level in base 10 when two things hold together: it is level in base 5, and its bits are half ones.

exact

The depth is the number of noisy base 5 places

exact

How the last digit moves

proved

Is 5 the secret of base 10?

Yes, and it's the proved part, not a guess. The powers of 2 run through every possible ending in base 5, which is what stirs the digits. The 2 in ten does no stirring at all: it just copies the bits. Everything on this page is those two jobs meeting, and the depth counts how many places the 5 takes to get going.

measured

The same rule in other bases

open

What's left to conjecture

Are these families the secret to the primes?

What was testedFoundWhat chance givesVerdict

measured

The bits of a prime are a coin toss

measured

Shared bits and register shifts show nothing

measured

Two results stood out, and didn't survive a second look

exact

In other bases they look like ordinary numbers, not like primes

measured

They grow in jumps for a known reason

proved

The endless family is never prime

How many there are at each size

Bits in the numberNumbers that sizeLast digit onlyNo echo anywherePrimes

What this is, and what it isn't

It's real, and it's proved

The carry law is ordinary arithmetic. The general rule has a full proof in the write-up, built on a standard fact about the powers of 2, and it was checked against every family counted here. I couldn't find it written down anywhere, and nobody else has checked the proof yet.

It's about base 10

The 5 in "5 or more" is half of ten, and the multiple of 4 comes from the powers of two going round the digits mod 5 every four steps. In another base the special numbers would be different. The bases page has the wider picture.

It says nothing about primes

An echo is about how a family looks when written in base 10. Whether a number is prime doesn't depend on the base it's written in. Three checks agree: level and lopsided families got the same number of primes in the repeated-digit search, the no-echo numbers are prime exactly as often as other numbers their size, and the primes in different no-echo families don't line up.