← All projects / The 666 Families

666, on repeat

666 in binary is 1010011010. Write it out one bit at a time, and when you run out, start it again. Every row is a number. It's the first family on this site that grows on the right instead of the left.

The two walls

Each row is the row above with one more bit on the end. On the left the bits follow 1010011010 round and round. On the right every bit is swapped, which gives 0101100101: that's 357. Beside each row is the number it spells.

0101100101 repeating: the 357s

The numbers across the top count the bits from the left. Only the first 40 bits of a row are drawn. The shaded rows are whole copies of the pattern.

Double it, then add the next bit

Putting a bit on the end doubles a number, and adds 1 if the bit is a 1. So 333 becomes 666, then 1,333, then 2,666.

Every tenth row is a multiple of 666

Row 10 is 666. Row 20 is 682,650, which is 666 × 1,025. Row 30 is 699,034,266, which is 666 × 1,049,601.

It keeps saying 333 and 666

Rows 9 to 14 read 333, 666, 1,333, 2,666, 5,333 and 10,666. Then two zeros in a row break the spell and row 15 is 21,332.

The mirror is 357

Swap every bit of 666 and you get 357. Read 666's bits backwards and you also get 357. On any row the two walls add up to all ones: 666 + 357 = 1,023, which is 1111111111.

A fraction in disguise

Every row is about 65.1% of the power of two just above it. The exact fraction is 666 over 1,023, which cancels down to 222 over 341. And 341 is a 0101 number: 101010101.

Homing in on the fraction

Each bar is one row: how much of the power of two above it the number fills. The dashed line is 222 over 341. A 1 bit nudges the bar up. A 0 bit leaves it where it is.

Why it's a fraction at all

It works like recurring decimals. 0.666... going on for ever is 6 over 9. In binary, 1010011010 going on for ever is 666 over 1,023, and 1,023 is ten ones in a row: the binary version of 999.

Cancelling it down

Both numbers divide by 3. Ten ones divided by 3 leaves the 0101 pattern, because 3 times 0101010101 fills every gap.

Same trick as 3 × 21 = 63 on the signal page, where 010101 times 3 becomes 111111.

How they end

The last digit of each family runs in a loop of twenty.

The 357s

Digital roots

3 and 6 take turns for eight rows

83, 166, 333, 666, 1,333, 2,666, 5,333, 10,666. The last digits go 3, 6, 3, 6, 3, 6, 3, 6, and that run comes back every twenty rows. 3 and 6 are the commonest endings in the family, at 20% each.

The two families split the digits between them

Both end in 0, 1, 2 and 5 exactly 15% of the time each. Those are the numbers of balance from the digit families page. Of the other six digits, the 666s only ever use 3 and 6, and the 357s only ever use 4, 7, 8 and 9.

Odd and even, mixed

Every other family here is all odd or all even. This one can't be, because the last bit keeps changing. In every ten rows, five are odd and five are even.

The 666s never have a digital root of 3 or 6

Add up each number's digits until one is left. The 666s go 1, 2, 5, 1, 2, 5, 2, 4, 9, 9 and round again, every ten rows, from the very first row. 3, 6, 7 and 8 never appear. The 333 row and the 666 row always come out as 9. The 357s take thirty rows to repeat and use all nine.

Do their digits pile up differently?

Write the numbers out in ordinary decimal and tally every digit you see. 666 adds three 6s. 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.

The last two digits hold a strong pattern

Pick last digit only, then second-last digit only, and switch between the two families. In the 666s the second-last digit is a 6 nearly a third of the time and a 3 a quarter of the time. It's never a 7 or a 9.

The first digit is Benford again

About 30.1% of the numbers in both families start with 1, and under 5% start with 9. Growing on the right makes no difference.

Counted whole, it's as even as any family

By 100,000 numbers of each family every digit sits between 9.997% and 10.003%. For all the sixes in its name, 666 on repeat doesn't favour 6.

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.

It never stops, and from the third place on the two families are identical: 4, then 0.8, then 0.16, each echo 5 times weaker than the last. That's the 0101 echo and the 1010 echo from the digit families page woven together, one on the even places and one on the odd. It fits: this family takes turns being odd and even.

More sixes

666 isn't the only one. Here are 6, 66, 666, 6666 and so on in binary, lined up on the right. I ran it out to 1,000 sixes.

The shaded bits are the part that flips on every tick.

proved

Every string of sixes ends in the 1010 signal

The shaded run is always exactly one bit longer than the number of sixes: 6 ends in 2 alternating bits, 66 in 3, 666 in 4. Fifty sixes end in 51 of them. It holds for every length, and I checked each one up to 2,000 to be sure. The reason: a string of sixes is two thirds of a power of ten, minus a bit, and two thirds in binary is 0.101010 for ever.

exact

Nearly a third of the number is signal

Each extra six adds a little over three bits to the number and exactly one bit to the signal at the bottom. So about 30% of any long string of sixes is pure 1010.

measured

The top doesn't settle

The bits above the shaded run are the front end of a power of ten, and they don't repeat. 666 starting with 1010 as well is a coincidence: 6666 starts 1101.

Are there primes in there?

Not in the sixes themselves, which are all even. So I tried changing each one: adding 1, and inverting it by the same-width row of every family. This counts the primes among 1 to 1,000 sixes.

What's done to the sixesPrimes out of 1,000How many sixes
Add 1 (7, 67, 667, 6667...)201, 2, 6, 8, 9, 11, 20, 23, 41, 63, 66, 119, 122, 149, 252, 284, 305, 592, 746, 875
Inverted by 010181, 2, 14, 16, 26, 34, 224, 470
Inverted by the 000111s82, 10, 11, 20, 27, 31, 53, 271
Inverted by the Fibonacci mirror62, 22, 33, 380, 530, 598
Inverted by the 1null1s51, 2, 17, 23, 77
Inverted by the 97s44, 40, 52, 642
Inverted by the 67s45, 87, 235, 579
Inverted by the 666s41, 2, 34, 93
Inverted by the 357s195
Inverted by 1010, the null1nulls or the 111000s0always even
Ordinary odd numbers the same sizeabout 6what chance alone would give
measured

Inverting doesn't bring more primes

Every inversion gives between 1 and 8 primes, which is what you'd get from ordinary odd numbers of the same size. Scrambling the bits with a family makes the result behave like any other number.

proved

Adding 1 does, and there's a reason

Sixes plus 1 gives 20 primes, more than three times chance. The first two are 7 and 67. These numbers can never be divided by 2, 3, 5, 11 or 13, so five of the commonest ways for a number to fail are closed off.

proved

Inverted by 0101, the tail turns to all ones

The bottom of the sixes is 1010 and the 0101 family is the opposite, so inverting fills every gap. Those numbers end in a run of ones, again exactly one longer than the number of sixes.

Counts are from tools/sixes_experiment.py in this site's code. The sixes-plus-1 list matches entry A096507 in the On-Line Encyclopedia of Integer Sequences.

Does it follow the eight rules?

The all the families page has eight rules that hold for the other eight families. This is the first family built a different way, so it's a fair test.

RuleHereWhat happens
1. All odd or all evenNoThe last bit keeps changing, so it's half and half.
2. The last digit runs in a loopYesA loop of twenty, the longest on the site.
3. One stay-put digit the family goes aroundNoTwo rules take turns here: double, and double plus 1. Each has its own stay-put digit, 0 and 9. The 666s never end in 9, but they do land on 0.
4. One-bit families miss a trio of digital rootsNoThe 666s' roots touch all three trios: 1 and 4, 2 and 5, and 9.
5. First digits follow Benford's lawYes30.1% start with 1, the same as every other family.
6. Whole-number counts even outYes9.997% to 10.003% at 100,000 numbers.
7. The pattern lives at the end of the numberYesStrong in the last two places, then a fading echo.
8. Families come in linked pairsYesThe 357s are its mirror, and each pair of rows adds up to all ones.

Five hold and three break. The three that break are the ones that depended on the last bit never changing.

Primes in the 666s

FamilyRows testedPrimes foundBiggest oneRows they're on
exact

Seven rows in ten are ruled out

In the 666s, five rows in every ten are even. Of the odd rows, the 333 row in each block of ten has a digital root of 9, so it divides by 9, and two rows in every twenty end in 5. Past row 3, a prime can only sit on a row that's 1, 6, 7, 11, 13 or 17 more than a multiple of 20.

measured

Rows 333, 341 and 357 all hold primes

Three of the 22 prime rows in the 666s are numbers that already turned up on this page: 333, the mirror 357, and 341 from the fraction. That's a coincidence as far as I can tell, but it's a good one.

exact

666 itself is never prime, and nor are its copies

Every tenth row is a multiple of 666. The row before it is always a multiple of 333.

Small numbers were checked for certain. The big ones passed the standard tests that a number which isn't prime fails almost every time, which isn't a formal proof.

Every repeated digit, from 1 to 99999

The 666 family comes from writing 666 in binary and sending those bits on repeat. The same thing can be done for every number made of one digit repeated: 1, 11, 111, up to 99999. Those 45 families now have a page of their own. Eight of them turned out to leave no echo in their digits, which led to the rule for which numbers do that.