← All projects / 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.
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.
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.
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 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.
| Place | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|
more than its fair 10%less than 10%exactly 10%
| Place | Digit is 0 to 4 | Digit is even | Gap between most and least common digit |
|---|
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.
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.
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.
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.
| Row | The number | Last digit | Carries? | Second-last digit of the next row |
|---|
"The block" below means the bits that repeat. For 9 that's 1001. For 153, which is 10011001, the block is still 1001.
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.
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.
| Depth | Families | Balanced | Of those, level past the depth | Unbalanced | Of those, echo | Exceptions |
|---|
The full statement and its proof are in the write-up: Echo families (PDF, 5 pages).
| What the family does | How many | Share | Smallest examples |
|---|
| Number | Its block | Block length | Ones in the block | Last digit is 0 to 4 | Result | Why |
|---|
The bottom rows are three that do echo, for comparison. 1, 3 and 7 share one family, because their bits are all ones.
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.
| Bits in the number | Last digit only | Out of |
|---|
| Base | How many digits long | Last digits never used | Palindromes found, and expected | What stands out |
|---|
| How they're combined | No echo anywhere | Level after 1 place | After 2 | After 3 | Echo |
|---|
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.
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.
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.
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.
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.
| Depth | Numbers to 16,383 | Places before the echo starts to fade |
|---|
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.
| Number | In base 5 | Depth | Noisy base 5 places | How often its last base 5 digit is 0, 1, 2, 3, 4 | Its last ordinary digit, row by row |
|---|
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.
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.
| What was tested | Found | What chance gives | Verdict |
|---|
| Bits in the number | Numbers that size | Last digit only | No echo anywhere | Primes |
|---|
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.
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.
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.