← All projects / Moving the 1

Moving the 1

Binary places are worth 1, 2, 4, 8, 16, 32. Move the 1 to the far end instead, so a six-bit number is read with places worth 2, 4, 8, 16, 32 and then 1. The top bit of a number is always a 1, so there's always a 1 added on the end, a bit like the 67s. Do it to a prime: is the answer still prime?

This page came from a misreading of the idea. As it was meant, the number stays the same and only its string of 1s and 0s changes: that's on The 1 at the End. What's below is still true of the reading it tests.

Try one

Every prime, by length

Every prime of each length from 6 to 24 bits was moved, and the answers tested. "Any odd number" is how often an odd number below that size is prime, which is what you'd get if moving a prime meant nothing. The forecast uses small primes only, with nothing fitted to the counts.

Why the length decides it

exact

The move is one sum

For a number n that is L bits long, moving the 1 gives 2n + 1 − 2L. Every place doubles, and the top 1 loses its old value and gains 1. The answer is always odd.

proved

Some small primes can never divide the answer

Take a prime q that divides 2L − 1. If q also divided the answer, it would divide their sum, which is 2n, so it would divide n. But n is prime. So unless n is q itself, q is ruled out for every prime of that length.

exact

Which ones depends on the echo

q divides 2L − 1 exactly when L is a multiple of q's echo length. 3's echo is 2 long, so every even length dodges 3. 7's is 3, 5's is 4, 13's is 12. A length of 12 dodges 3, 5, 7 and 13 all at once.

measured

So lengths swing between rich and poor

held on every length

The forecast lands

already known

The poor lengths sit at 0.66

A length that dodges nothing pays a small penalty for every prime, and the penalties multiply out to 0.66. That number is the twin prime constant, the same one that sets how often two linked numbers are both prime. Asking for a prime and its moved partner is a question of that kind, so the method is the standard one. The rule by length is what's worked out here.

Longer lengths, forecast only

Nothing here has been counted. These are the forecast's figures for lengths past what was tested: how many times more often than chance a moved prime should be prime.