← All projects / The 111000 Families

Three on, three off

The 0101 and 1010 families flip on every bit. Slow that down to three bits on, three bits off, and you get two new families: one that always ends in 111, and one that always ends in 000.

The two walls

Same build as before. Start on the right and keep adding bits on the left, three the same, then three of the other. One wall starts with 111, the other with 000. Beside each row is the number it spells.

Ends in 000: the 111000s

New numbers come in threes

Adding a 1 makes a new number. Adding a 0 changes nothing. So each wall gives three new numbers, then sits still for three rows: 1, 3, 7, then 71, 199, 455, then 4551, 12743, 29127.

Three threads, one rule

Jump three numbers ahead and it's always 64 times the number, plus the ending. On the left that's times 64 plus 7: 1, 71, 4551. On the right it's times 64 plus 56: 8, 568, 36408.

In base 8 it's nothing but 7s and 0s

Three bits make one base-8 digit, so three on is a 7 and three off is a 0. Count in eights and the left wall reads 1, 3, 7, then 107, 307, 707, then 10707, 30707, 70707. The right wall is the same with a 0 on the end: 10, 30, 70, 1070, 3070, 7070.

Each thread has a one-line formula

The thread that starts at 1 is 10 times a power of 64, minus 1, divided by 9: 1, 71, 4,551, 291,271. The thread that starts at 3 is the same with 28 in place of 10. The thread that starts at 7 has 64 in place of 10.

The right wall is 8 times the left

Three zeros on the end is the same as multiplying by 8. So 8, 24, 56 are 8 times 1, 3, 7, and that holds all the way down.

How they end

This is where these two families stand out. Their last digits don't just avoid some numbers. They run in a fixed loop of six.

The 111000s

8, 24, 56, 568, 1592, 3640, 36408, 101944, 233016...

Odds on one side, evens on the other

The 000111s end in every odd digit and nothing else. The 111000s end in every even digit and nothing else. Between them they use all ten digits, once each side.

1 and 8 are the anchors

Every third number on the left ends in 1. Every third number on the right ends in 8. Those two come up twice as often as any other ending, and they're the mirror pair from the digit families page: 1 + 8 = 9.

The other endings come in pairs

On the left, 3 and 9 take turns, and so do 7 and 5. On the right it's 4 and 2, then 6 and 0. In my groups that puts the two good digits 3 and 9 together, and the two evil digits 4 and 2 together.

The tens place tilts hard

In the 000111s the second-last digit is a 5 or a 7 nearly half the time, 23% each, with every other digit down at 7%. In the 111000s it's 0 and 6. That's because the anchor thread only ever ends in 71 or 51 on the left, and 68 or 08 on the right.

Do their digits pile up differently?

Write the numbers out in ordinary decimal and tally every digit you see. 455 adds one 4 and two 5s. The chart is that tally: how often each digit from 0 to 9 has turned up so far.

Show
Count
Colour

The Colour setting repaints every digit on this page, not just this chart. The number on the right is how many times that digit turned up. Sizes above 10,000 were counted ahead of time.

At the ends, completely

Pick last digit only and switch between the two families. One chart is all odd digits, the other all even. Then try second-last digit only to see the tilt toward 5 and 7, or 0 and 6.

The first digit is Benford again

About 30% of the numbers in both families start with 1, and under 5% start with 9. Same split as every other family on this site.

Everything in between flattens out

Counting whole numbers, by 100,000 of each family every digit sits between 9.998% and 10.002%. The strong pattern lives in the last two digits and nowhere else.

Place by place, counting from the end

Each row is one place in the number: the last digit, the one before it, and so on. Each cell is how often that digit lands there, as a percentage. An even split is 10 in every cell.

These are exact, not estimates. The last five digits of each family run in a cycle, so tallying whole cycles gives the true long-run split.

How far in does it carry?

The gap between the most and least common digit at each place, in percentage points. 0 means that place is perfectly even.

Both families echo again at the 4th place, and then faintly around the 7th. Each echo is far weaker than the last. By the 9th place both are exactly even.

Other block sizes: 0011, 00001111 and the rest

The 000111s are three on, three off. The same idea works with any block size: 0101 is blocks of one, 0011 is blocks of two, 00001111 is blocks of four. Each family has one thread for every number of 1s it can start with, so blocks of four have four threads. I searched every thread of every block size from 1 to 8, and 16, up to 20,000 bits.

Block by block

BlockEnds inThreads alivePrimes expectedPrimes found

"Expected" and "found" count primes bigger than a trillion, where the estimate is reliable. A thread is alive if some of its numbers get past the small-prime sieve.

measured

No block size is magic

measured

Lopsided threads turn up elsewhere too

Blocks of three are still the most lopsided pair: 2 primes on one thread and 13 on the other, where about 6 and 8 were due. But blocks of five have a thread with 4 where 1 was due and another with none where 2 were due. Blocks of seven have one with 5 where 2 were due.

proved

Some threads are dead from the start

A thread that begins with a full block always splits into two factors, the same way a 0101 number does. That's why blocks of one give only 5. When the block size is even, every thread that starts with an even number of 1s divides by 3. So blocks of 4, 6, 8 and 16 lose half their threads or more before the search begins.

exact

The mirrors have no primes at all

1100, 11110000 and the other families that end in a block of zeros are the same numbers multiplied by a power of two. They're all even. Flipping every bit gives an even number too. So the split to look at is between the threads of one family, not between a family and its mirror.

Thread by thread

Block1s at the frontExpectedFoundHow many bits long the primes areSmall primes, in bits